Disable degradeimage function

27 views
Skip to first unread message

anonynamja

unread,
Oct 5, 2018, 12:16:20 PM10/5/18
to tesseract-ocr
I wish to disable the degradeimage function when generating training data. Does anyone know how to do this? Do I change this line 64 in text2image.cpp:

// Degrade the rendered image to mimic scanner quality.

BOOL_PARAM_FLAG(degrade_image, true,

                "Degrade rendered image with speckle noise, dilation/erosion "

                "and rotation");

to false?

Zdenko Podobny

unread,
Oct 5, 2018, 12:51:30 PM10/5/18
to tesser...@googlegroups.com
Why change source file?

text2image --help | grep degrade
  --degrade_image  Degrade rendered image with speckle noise, dilation/erosion and rotation  (type:bool default:true)

Zdenko


pi 5. 10. 2018 o 18:16 anonynamja <anony...@gmail.com> napísal(a):
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/aacf2075-a804-4c99-bb4f-f4f3318a3abe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

anonynamja

unread,
Oct 6, 2018, 12:01:23 AM10/6/18
to tesseract-ocr
because AFAICT tesstrain.sh doesn't take that argument, so I had to set it in tesstrain_utils.sh (--degrade_image=0)
Reply all
Reply to author
Forward
0 new messages