{ "body": "
\n

cv_analysis.figure_detection.text module#

\n
\n
\ncv_analysis.figure_detection.text.apply_threshold_to_image(image)#
\n

Converts an image to black and white.

\n
\n\n
\n
\ncv_analysis.figure_detection.text.draw_bboxes(image, bboxes)#
\n
\n\n
\n
\ncv_analysis.figure_detection.text.is_likely_primary_text_segment(cnt)#
\n
\n\n
\n
\ncv_analysis.figure_detection.text.remove_primary_text_regions(image)#
\n

Removes regions of primary text, meaning no figure descriptions for example, but main text body paragraphs.

\n
\n
Parameters:
\n

image \u2013 Image to remove primary text from.

\n
\n
Returns:
\n

Image with primary text removed.

\n
\n
\n

References

\n

https://stackoverflow.com/questions/58349726/opencv-how-to-remove-text-from-background

\n
\n\n
\n", "title": "cv_analysis.figure_detection.text module", "sourcename": "modules/cv_analysis.figure_detection.text.rst.txt", "current_page_name": "modules/cv_analysis.figure_detection.text", "toc": "\n", "page_source_suffix": ".rst" }