¡@

Home 

python Programming Glossary: cropbox

Detect face then autocrop pictures

http://stackoverflow.com/questions/13211745/detect-face-then-autocrop-pictures

L cv.GetSize cv_im cv_im.tostring def imgCrop image cropBox boxScale 1 # Crop a PIL image with the provided box x left y.. w width h height # Calculate scale factors xDelta max cropBox 2 boxScale 1 0 yDelta max cropBox 3 boxScale 1 0 # Convert cv.. scale factors xDelta max cropBox 2 boxScale 1 0 yDelta max cropBox 3 boxScale 1 0 # Convert cv box to PIL box left upper right..

PDF bleed detection

http://stackoverflow.com/questions/13236370/pdf-bleed-detection

a total of five different boxes mediaBox bleedBox trimBox cropBox artBox I read the pyPdf documentation concerning those boxes..