Skip to content

Latest commit

 

History

History
35 lines (32 loc) · 2.86 KB

config.md

File metadata and controls

35 lines (32 loc) · 2.86 KB

Configuration

Properties

  • scan_folder (string): This should be shared with the process container in 'source'.
  • scanimage (string): The scanimage command. Default: scanimage.
  • scanimage_arguments (array): Default: ['--format=png', '--mode=color', '--resolution=300'].
    • Items (string)
  • default_args: Refer to #/definitions/args.
  • viewer (string): The command used to start the viewer. Default: eog.

Definitions

  • args (object): Cannot contain additional properties.
    • level (['boolean', 'integer']): true: => do level on 15% - 85% (under 15 % will be black above 85% will be white), false: => 0% - 100%, : => (0 + )% - (100 - number)%.
    • auto_level (boolean): If no level specified, do auto level. Default: False.
    • min_level (integer): Min level if no level end no auto-level. Default: 15.
    • max_level (integer): Max level if no level end no auto-level. Default: 15.
    • no_crop (boolean): Don't do any crop. Default: False.
    • margin_horizontal (number): The horizontal margin used on auto-detect content [mm]. Default: 9.
    • margin_vertical (number): The vertical margin used on auto-detect content [mm]. Default: 6.
    • dpi (number): The DPI used to convert the mm to pixel. Default: 300.
    • sharpen (boolean): Do the sharpen. Default: False.
    • dither (boolean): Do the dither. Default: False.
    • tesseract (boolean): Use tesseract to to an OCR on the document. Default: False.
    • tesseract_lang (string): The used language for tesseract. Default: fra+eng.
    • assisted_split (boolean): Do en assisted split. Default: False.
    • min_box_size_crop (number): The minimum box size to find the content on witch one we will crop [mm]. Default: 3.
    • min_box_size_limit (number): The minimum box size to find the limits based on content [mm]. Default: 10.
    • min_box_size_empty (number): The minimum box size to find the content to determine if the page is empty [mm]. Default: 10.
    • min_box_black_crop (number): The minimum black in a box on content find on witch one we will crop [%]. Default: 2.
    • min_box_black_limit (number): The minimum black in a box on content find the limits based on content [%]. Default: 2.
    • min_box_black_empty (number): The minimum black in a box on content find to determine if the page is empty [%]. Default: 2.
    • box_kernel_size (number): The block size used in a box on content find [mm]. Default: 1.5.
    • box_block_size (number): The block size used in a box on threshold for content find [mm]. Default: 1.5.
    • box_threshold_value_c (number): A variable used on threshold, should be low on low contrast image, used in a box on content find. Default: 70.