Home
Forums
New posts
Search forums
What's new
New posts
New resources
New profile posts
Latest activity
Resources
Latest reviews
Search resources
Members
Current visitors
New profile posts
Search profile posts
DMCA Policy
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
FEEL FREE TO SHARE TUTORIALS, YOUR SKILS & KNOWLEDGE ON CODING, SCRIPTS, THEMES, PLUGINS OR ANY RESOURCES YOU HAVE WITH THE COMMUNITY-
Click Here To Post Your Request,
JOIN COMPUTER REPAIR FORUM
Home
Forums
TUTORIALS
CODING TUTORIALS
Node.js
How to Detect Text in Images
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="codeguru" data-source="post: 64" data-attributes="member: 2"><p>Images are a great way to communicate without text but oftentimes images are used/abused to spread text within social media and advertisements. Text in images also presents an accessibility issue. The truth is that it’s important, for any number of reasons, to be able to detect text in image files. The amazing open source tool that makes detecting text in images possible is <a href="https://github.com/tesseract-ocr/tesseract" target="_blank">tesseract OCR</a>!</p><p></p><p>I recommend using Homebrew to install tesseract:</p><p></p><p></p><p>brew install tesseract</p><p></p><p>To run tesseract to read text from an image, you can run the following from command line:</p><p></p><p>[ICODE]tesseract ~/Downloads/MyImage.png ~/Downloads/MyImage.txt -l eng[/ICODE]</p><p></p><p>The command above extracts detected text in the English language ([ICODE]-l eng[/ICODE]) into a text file ([ICODE]MyImage.txt[/ICODE]). The process is very quick and there are dozens of supported languages.</p><p></p><p>Let’s look at the following example:</p><p></p><p><img src="https://davidwalsh.name/demo/2019/06/a.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>The following text is detected:</p><p></p><p>International</p><p>‘Champions</p><p>Cup</p><p></p><p>~- TOUR SQUAD</p><p></p><p>#AFCTour2018</p><p></p><p>CECH MUSTAFI GUENDOUZI oziL</p><p>LENO SOKRATIS NELSON IWOBI</p><p>MARTINEZ MAVROPANOS SMITHROWE = NKETIAH</p><p>BELLERIN OSEI-TUTU WILLOCK PEREZ</p><p>KOLASINAC ELNENY RAMSEY LACAZETTE</p><p>CHAMBERS MAITLAND-NILES MKHITARYAN AUBAMEYANG</p><p>HOLDING</p><p></p><p></p><p>There are a number of utilities in different programming languages that plug into tesseract’s functionality, but it’s important to know the underlying tool! tesseract is an unbelievable tool that you should take advantage of if you need an open source utility for detecting text in an image!</p><p></p><p></p><p>The post <a href="https://davidwalsh.name/how-to-detect-text-in-images" target="_blank">How to Detect Text in Images</a> appeared first on <a href="https://davidwalsh.name" target="_blank">David Walsh Blog</a>.</p><p></p><p><a href="https://tkjs.us/dwb" target="_blank"><img src="https://davidwalsh.name/demo/tjs_block-1.svg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></a></p><p></p><p><a href="https://davidwalsh.name/how-to-detect-text-in-images" target="_blank">Continue reading...</a></p></blockquote><p></p>
[QUOTE="codeguru, post: 64, member: 2"] Images are a great way to communicate without text but oftentimes images are used/abused to spread text within social media and advertisements. Text in images also presents an accessibility issue. The truth is that it’s important, for any number of reasons, to be able to detect text in image files. The amazing open source tool that makes detecting text in images possible is [URL='https://github.com/tesseract-ocr/tesseract']tesseract OCR[/URL]! I recommend using Homebrew to install tesseract: brew install tesseract To run tesseract to read text from an image, you can run the following from command line: [ICODE]tesseract ~/Downloads/MyImage.png ~/Downloads/MyImage.txt -l eng[/ICODE] The command above extracts detected text in the English language ([ICODE]-l eng[/ICODE]) into a text file ([ICODE]MyImage.txt[/ICODE]). The process is very quick and there are dozens of supported languages. Let’s look at the following example: [IMG]https://davidwalsh.name/demo/2019/06/a.jpg[/IMG] The following text is detected: International ‘Champions Cup ~- TOUR SQUAD #AFCTour2018 CECH MUSTAFI GUENDOUZI oziL LENO SOKRATIS NELSON IWOBI MARTINEZ MAVROPANOS SMITHROWE = NKETIAH BELLERIN OSEI-TUTU WILLOCK PEREZ KOLASINAC ELNENY RAMSEY LACAZETTE CHAMBERS MAITLAND-NILES MKHITARYAN AUBAMEYANG HOLDING There are a number of utilities in different programming languages that plug into tesseract’s functionality, but it’s important to know the underlying tool! tesseract is an unbelievable tool that you should take advantage of if you need an open source utility for detecting text in an image! The post [URL='https://davidwalsh.name/how-to-detect-text-in-images']How to Detect Text in Images[/URL] appeared first on [URL='https://davidwalsh.name']David Walsh Blog[/URL]. [URL='https://tkjs.us/dwb'][IMG]https://davidwalsh.name/demo/tjs_block-1.svg[/IMG][/URL] [url="https://davidwalsh.name/how-to-detect-text-in-images"]Continue reading...[/url] [/QUOTE]
Insert quotes…
Verification
Post reply
Richest Freecoded User
Most Freecoin
freecoded
4,838 Freecoin
Davy200
590 Freecoin
J
Johnhendrick
575 Freecoin
S
Smith16
527 Freecoin
nathan69
426 Freecoin
Laureine
415 Freecoin
A
anajeen
370 Freecoin
C
codeguru
287 Freecoin
Tekera
267 Freecoin
A
Akubay
170 Freecoin
Home
Forums
TUTORIALS
CODING TUTORIALS
Node.js
How to Detect Text in Images
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top