{
    "body": "<section id=\"module-cv_analysis.figure_detection.text\">\n<span id=\"cv-analysis-figure-detection-text-module\"></span><h1>cv_analysis.figure_detection.text module<a class=\"headerlink\" href=\"#module-cv_analysis.figure_detection.text\" title=\"Link to this heading\">#</a></h1>\n<dl class=\"py function\">\n<dt class=\"sig sig-object py\" id=\"cv_analysis.figure_detection.text.apply_threshold_to_image\">\n<span class=\"sig-prename descclassname\"><span class=\"pre\">cv_analysis.figure_detection.text.</span></span><span class=\"sig-name descname\"><span class=\"pre\">apply_threshold_to_image</span></span><span class=\"sig-paren\">(</span><em class=\"sig-param\"><span class=\"n\"><span class=\"pre\">image</span></span></em><span class=\"sig-paren\">)</span><a class=\"headerlink\" href=\"#cv_analysis.figure_detection.text.apply_threshold_to_image\" title=\"Link to this definition\">#</a></dt>\n<dd><p>Converts an image to black and white.</p>\n</dd></dl>\n\n<dl class=\"py function\">\n<dt class=\"sig sig-object py\" id=\"cv_analysis.figure_detection.text.draw_bboxes\">\n<span class=\"sig-prename descclassname\"><span class=\"pre\">cv_analysis.figure_detection.text.</span></span><span class=\"sig-name descname\"><span class=\"pre\">draw_bboxes</span></span><span class=\"sig-paren\">(</span><em class=\"sig-param\"><span class=\"n\"><span class=\"pre\">image</span></span></em>, <em class=\"sig-param\"><span class=\"n\"><span class=\"pre\">bboxes</span></span></em><span class=\"sig-paren\">)</span><a class=\"headerlink\" href=\"#cv_analysis.figure_detection.text.draw_bboxes\" title=\"Link to this definition\">#</a></dt>\n<dd></dd></dl>\n\n<dl class=\"py function\">\n<dt class=\"sig sig-object py\" id=\"cv_analysis.figure_detection.text.is_likely_primary_text_segment\">\n<span class=\"sig-prename descclassname\"><span class=\"pre\">cv_analysis.figure_detection.text.</span></span><span class=\"sig-name descname\"><span class=\"pre\">is_likely_primary_text_segment</span></span><span class=\"sig-paren\">(</span><em class=\"sig-param\"><span class=\"n\"><span class=\"pre\">cnt</span></span></em><span class=\"sig-paren\">)</span><a class=\"headerlink\" href=\"#cv_analysis.figure_detection.text.is_likely_primary_text_segment\" title=\"Link to this definition\">#</a></dt>\n<dd></dd></dl>\n\n<dl class=\"py function\">\n<dt class=\"sig sig-object py\" id=\"cv_analysis.figure_detection.text.remove_primary_text_regions\">\n<span class=\"sig-prename descclassname\"><span class=\"pre\">cv_analysis.figure_detection.text.</span></span><span class=\"sig-name descname\"><span class=\"pre\">remove_primary_text_regions</span></span><span class=\"sig-paren\">(</span><em class=\"sig-param\"><span class=\"n\"><span class=\"pre\">image</span></span></em><span class=\"sig-paren\">)</span><a class=\"headerlink\" href=\"#cv_analysis.figure_detection.text.remove_primary_text_regions\" title=\"Link to this definition\">#</a></dt>\n<dd><p>Removes regions of primary text, meaning no figure descriptions for example, but main text body paragraphs.</p>\n<dl class=\"field-list simple\">\n<dt class=\"field-odd\">Parameters<span class=\"colon\">:</span></dt>\n<dd class=\"field-odd\"><p><strong>image</strong> \u2013 Image to remove primary text from.</p>\n</dd>\n<dt class=\"field-even\">Returns<span class=\"colon\">:</span></dt>\n<dd class=\"field-even\"><p>Image with primary text removed.</p>\n</dd>\n</dl>\n<p class=\"rubric\">References</p>\n<p><a class=\"reference external\" href=\"https://stackoverflow.com/questions/58349726/opencv-how-to-remove-text-from-background\">https://stackoverflow.com/questions/58349726/opencv-how-to-remove-text-from-background</a></p>\n</dd></dl>\n\n</section>\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": "<ul>\n<li><a class=\"reference internal\" href=\"#\">cv_analysis.figure_detection.text module</a><ul>\n<li><a class=\"reference internal\" href=\"#cv_analysis.figure_detection.text.apply_threshold_to_image\"><code class=\"docutils literal notranslate\"><span class=\"pre\">apply_threshold_to_image()</span></code></a></li>\n<li><a class=\"reference internal\" href=\"#cv_analysis.figure_detection.text.draw_bboxes\"><code class=\"docutils literal notranslate\"><span class=\"pre\">draw_bboxes()</span></code></a></li>\n<li><a class=\"reference internal\" href=\"#cv_analysis.figure_detection.text.is_likely_primary_text_segment\"><code class=\"docutils literal notranslate\"><span class=\"pre\">is_likely_primary_text_segment()</span></code></a></li>\n<li><a class=\"reference internal\" href=\"#cv_analysis.figure_detection.text.remove_primary_text_regions\"><code class=\"docutils literal notranslate\"><span class=\"pre\">remove_primary_text_regions()</span></code></a></li>\n</ul>\n</li>\n</ul>\n",
    "page_source_suffix": ".rst"
}