ValueError: "EasyOcrOptions" object has no field "coverage_threshold" #172
Answered
by
dolfim-ibm
AdityaMannu1709
asked this question in
Q&A
-
Can we have a sample code snippet for the coverage threshold part in the documentation? pipeline_options = PdfPipelineOptions()
pipeline_options.images_scale = IMAGE_RESOLUTION_SCALE
pipeline_options.generate_page_images = False
pipeline_options.generate_table_images = False
pipeline_options.generate_picture_images = True
pipeline_options.ocr_options.coverage_threshold = 0.05
doc_converter = DocumentConverter(
format_options={
InputFormat.PDF: PdfFormatOption(pipeline_options=pipeline_options)
}
) |
Beta Was this translation helpful? Give feedback.
Answered by
dolfim-ibm
Oct 24, 2024
Replies: 1 comment
-
Do you mean explaining the parameter?
The title of your post "object has no field coverage_threshold" looks a bit suspicious? Are you having problem with this parameter?
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
PeterStaar-IBM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you mean explaining the parameter?
if (image_area / page_area) > pipeline_options.ocr_options.coverage_threshold: DO OCR ON IT
The title of your post "object has no field coverage_threshold" looks a bit suspicious? Are you having problem with this parameter?
pipeline_options.ocr_options.bitmap_area_threshold
.