because AFAICT tesstrain.sh doesn't take that argument, so I had to set it in tesstrain_utils.sh (--degrade_image=0)
On Saturday, October 6, 2018 at 12:51:30 AM UTC+8, zdenop wrote: > > 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 <[email protected] <javascript:>> > napĂsal(a): > >> 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? >> >> -- >> 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 [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> 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 >> >> <https://groups.google.com/d/msgid/tesseract-ocr/aacf2075-a804-4c99-bb4f-f4f3318a3abe%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- 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 [email protected]. To post to this group, send email to [email protected]. 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/0326290f-67e8-4a4d-963b-f6e188419799%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

