How to change image formats and remove noise in image?

VeryPDF OCR to Any Converter Command Line can also be used to fix image like deskew, despeckle and noise removal, auto-orientation, dithering, black border removal. This function is helpful for those scan files, fax files as there may be some slop or dirty once after scanning. In the following part, I will take despeckle image for example to show you how to use this software.

Step 1. Download OCR to Any Converter CMD

  • As this is command line version software, when downloading finishes, there will be a zip file. Please extract it to some folder then you can check the elements in it and call it from MS Dos Windows.
  • Also there is GUI version of OCR to Any Converter available, if you would not like to use command line version, please use the GUI version.

Step 2.  Despeckle image by command line

  • Usage:    ocr2any.exe [options] <PDF-file> <Text-file>
  • When you use this software, please refer to the usage and examples.
  • When you process image and despeckle image, please refer to the following command line templates.
    ocr2any.exe -imageopt C:\in.tif C:\out.tif
    By this command line, you can deskew tiff and remove noise in tiff image file.
    ocr2any.exe -imageopt -rotate 45 C:\in.png C:\out.tif
    By this command line, you can also deskew tiff and remove noise in tiff  meanwhile rotate PDF in 45 degree.
    ocr2any.exe -imageopt -rotate 90 C:\in.png C:\out.tif
    Same with the above one, you can rotate input png file in any degree. Meanwhile you can convert png to tiff file format.
    ocr2any.exe -threshold 0 C:\in.tif C:\out.bmp
    Here is an example of converting tiff to bmp and set the threshold automatically according to the image file.
    ocr2any.exe -threshold 240 C:\in.tif C:\out.bmp
    This example show you how to convert tiff to bmp and set threshold at 240.
    ocr2any.exe -dither 0 C:\in.bmp C:\out.png
    ocr2any.exe -dither 7 C:\in.bmp C:\out.png
    The above two command line templates can be used to convert bmp file to png and convert the color image to B&W by adjusting dither values.
    If you need to check more examples and usage, please visit readme.txt. Now let us check the related parameters.

    -bitcount <int>         : set color depth when render PDF page to image data, it can be set 1, 8, 24, default is 8bit
      -rotate <int>           : rotate pages before OCR
      -threshold <int>        : lightness threshold that used to convert image to B&W, from 1 to 255, 0 is auto, default is -1
      -imageopt               : deskew and despeckle images automatically. This parameter is the key element of despeckle image.
      -dither <int>           : convert the color image to B&W using the desired method:
        -dither 0: Floyd-Steinberg
        -dither 1: Ordered-Dithering (4x4)
        -dither 2: Burkes
        -dither 3: Stucki
        -dither 4: Jarvis-Judice-Ninke
        -dither 5: Sierra
        -dither 6: Stevenson-Arce
        -dither 7: Bayer (4x4 ordered dithering)
    Now let us check the despeckle image from the following snapshot.

dirty tiff and clear tiff

Deduce from the above instruction, we can get that this software can help you change image file format and despeckle image. During the using, if you have any question, please contact us as soon as possible.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!