lib/ocr-file/document.rb in ocr-file-0.0.8 vs lib/ocr-file/document.rb in ocr-file-0.0.10
- old
+ new
@@ -23,9 +23,10 @@
ocr_engine: 'tesseract', # 'cloud-vision'
# Image Pre-Processing
image_preprocess: true,
effects: ['despeckle', 'deskew', 'enhance', 'sharpen', 'remove_shadow', 'bw'],
automatic_reprocess: true,
+ dimensions: nil, # width, height. Will lock images to these dimensions
# PDF to Image Processing
optimise_pdf: true,
extract_pdf_images: true, # if false will screenshot each PDF page
temp_filename_prefix: 'image',
spelling_correction: true,