<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>extract text from an image Archives -</title>
	<atom:link href="https://mitindia.in/tag/extract-text-from-an-image/feed/" rel="self" type="application/rss+xml" />
	<link>https://mitindia.in/tag/extract-text-from-an-image/</link>
	<description></description>
	<lastBuildDate>Mon, 18 Jan 2021 07:22:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://mitindia.in/wp-content/uploads/2023/03/cropped-android-chrome-512x512-1-32x32.png</url>
	<title>extract text from an image Archives -</title>
	<link>https://mitindia.in/tag/extract-text-from-an-image/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Text extracting from an Image (OCR )</title>
		<link>https://mitindia.in/text-extracting-from-an-image-ocr/</link>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Mon, 18 Jan 2021 07:22:36 +0000</pubDate>
				<category><![CDATA[Artificial Intelligence]]></category>
		<category><![CDATA[Machine Learning]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[extract text from an image]]></category>
		<category><![CDATA[machine learning]]></category>
		<category><![CDATA[ocr]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=1119</guid>

					<description><![CDATA[<p>Extract text from an image. Extracting text from an image using pytesseract tool and package using Python programming. install tesseract.exe from here. First, here is an image which contains some text as following..[saved as sample.jpg) And here is the full code to extract text from above image. from PIL import Image #Python Imaging Library (abbreviated [&#8230;]</p>
<p>The post <a href="https://mitindia.in/text-extracting-from-an-image-ocr/">Text extracting from an Image (OCR )</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<h1>Extract text from an image.</h1>
<p>Extracting text from an image using pytesseract tool and package using Python programming.</p>
<p>install tesseract.exe from <a href="https://sourceforge.net/projects/tesseract-ocr/">here.</a></p>
<p>First, here is an image which contains some text as following..[saved as sample.jpg)</p>
<p><img decoding="async" class="alignnone wp-image-1120 size-medium" src="http://www.mitindia.in/wp-content/uploads/2021/01/sample-300x162.jpg" alt="" width="300" height="162" srcset="https://mitindia.in/wp-content/uploads/2021/01/sample-300x162.jpg 300w, https://mitindia.in/wp-content/uploads/2021/01/sample-768x415.jpg 768w, https://mitindia.in/wp-content/uploads/2021/01/sample.jpg 850w" sizes="(max-width: 300px) 100vw, 300px" /></p>
<p>And here is the full code to extract text from above image.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="null">from PIL import Image
#Python Imaging Library (abbreviated as PIL) (in newer versions known as Pillow)
# is a free and open-source additional library for the Python programming language that
#adds support for opening, manipulating, and saving many different image file formats.
import pytesseract
#Python-tesseract is an optical character recognition (OCR) tool for python
import cv2
pytesseract.pytesseract.tesseract_cmd = 'C:\\Program Files (x86)\\Tesseract-OCR\\tesseract.exe' 
img = "sample.jpg"
t1=pytesseract.image_to_string(Image.open(img))
#print(pytesseract.image_to_string(Image.open(img)))
print(t1)
file1=open('recognized.txt', 'w')
file1.writelines(t1) 
file1.close()
print("File created successfully!")
</pre>
<p>And the output from above program is..</p>
<p><img decoding="async" class="alignnone size-medium wp-image-1121" src="http://www.mitindia.in/wp-content/uploads/2021/01/output_text-300x98.png" alt="" width="300" height="98" srcset="https://mitindia.in/wp-content/uploads/2021/01/output_text-300x98.png 300w, https://mitindia.in/wp-content/uploads/2021/01/output_text.png 364w" sizes="(max-width: 300px) 100vw, 300px" /></p>
<p>As the program just extracted only characters from an image. And also extracted string is stored in text file by using file handling.</p>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Ftext-extracting-from-an-image-ocr%2F&amp;linkname=Text%20extracting%20from%20an%20Image%20%28OCR%20%29" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fmitindia.in%2Ftext-extracting-from-an-image-ocr%2F&amp;linkname=Text%20extracting%20from%20an%20Image%20%28OCR%20%29" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fmitindia.in%2Ftext-extracting-from-an-image-ocr%2F&#038;title=Text%20extracting%20from%20an%20Image%20%28OCR%20%29" data-a2a-url="https://mitindia.in/text-extracting-from-an-image-ocr/" data-a2a-title="Text extracting from an Image (OCR )"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/text-extracting-from-an-image-ocr/">Text extracting from an Image (OCR )</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
