C# tips and tricks 21 - Extracting text from an image using Tesseract OCR library for C# (CSharp)

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

Комментарии • 68

  • @AnkproTraining
    @AnkproTraining  3 года назад

    Thank you for watching this video. Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter. Link to subscribe the channel goo.gl/hFueBi

  • @Jeeruz
    @Jeeruz 4 месяца назад

    Can I still use this as reference for the Tesseract 5 version, in this current times? I used this in 4 years ago and it worked for me back then. You have a clear explanation of the setup.

  • @anitapatel6021
    @anitapatel6021 3 года назад +1

    All worked when image has small world like "Testing" , "Contact less delivery"
    -I have image with 3000 worlds and it did not read any text.
    Any suggestion for large amount of word.?
    -I have tried all pagesegmode. I am using 4.1.1 ver.

  • @MarioAxl
    @MarioAxl 3 года назад +1

    I implemented this but saddly it doesnt work, it was changing numbers when i extract chains of strings, confusing 1 to 4 and seven and 3 for 8 etc, is a very good tool, but I fell in that 10 % that it couldn't resolve my issue. Congrats !!

  • @ankitchourasiya254
    @ankitchourasiya254 4 года назад +2

    nice video.. its work when we generate image on Paint but in case of Scan Image it has not work

  • @anitapatel6021
    @anitapatel6021 3 года назад +3

    TesseractEngine engine = new TesseractEngine("./tessdata", "eng", EngineMode.Default);
    tessdata - use only folder name path only. I was using with file name and it throws error.

  • @sushantsahoo1105
    @sushantsahoo1105 2 года назад

    how to read the license number plate from an image using c#.pls. suggest

  • @saarthakarts5495
    @saarthakarts5495 3 года назад +1

    your explanation is very nice. easily understandable.

    • @AnkproTraining
      @AnkproTraining  3 года назад

      Thank you Rupa for watching this video and commenting.
      Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter. Link to subscribe the channel goo.gl/hFueBi

  • @prasanthkotagiri3613
    @prasanthkotagiri3613 4 года назад

    Hi, When i am using the above code I am getting error - cannot convert from 'System.Drawing.Bitmap' to 'Tesseract.Pix' at this point of code - Page page = engine.Process(img, PageSegMode.Auto);

  • @carloscosta4713
    @carloscosta4713 6 лет назад +4

    I am Brazilian, and I am very happy to have found this channel!
    Congratulations on applying C # ...
    One suggestion: Make one use a camera to capture the image and then extract the text.
    Once again, congratulations !!

    • @AnkproTraining
      @AnkproTraining  6 лет назад +1

      Thank you for your comments. We will definitely try that. Subscribe to our channel. And share this video link to needy ones via facebook, twitter and whatsapp.

    • @ITPROFESSIONAL
      @ITPROFESSIONAL 6 лет назад +1

      +1

    • @AnkproTraining
      @AnkproTraining  6 лет назад +1

      Thank you

  • @hiepnguyenthanh1272
    @hiepnguyenthanh1272 5 лет назад

    I have a small problem. Process method required img value is a Pix not bitmap.Now I use Tesseract 3.3.0 how do i fix it? Thanks

  • @abdelkaderfellague297
    @abdelkaderfellague297 4 года назад

    engine.Process requires a Pix image not a Bitmap and I didn't find how to convert Bitmap to pix, help !!

  • @chinmayk2657
    @chinmayk2657 4 месяца назад

    My test passed, but cant see the output, any help

  • @taitetai
    @taitetai 3 года назад

    How can get position of a text appear in image, please help me

  • @Vidya_Sagar_S_D
    @Vidya_Sagar_S_D 6 лет назад +1

    which version of visual studio is used in this demo. what are the limitations of this library? does it support Kannada

    • @AnkproTraining
      @AnkproTraining  6 лет назад

      We have used visual studio 2017 community edition. It should support kannada. github.com/tesseract-ocr/tesseract/wiki/Data-Files

    • @AmitSingh-xh3gn
      @AmitSingh-xh3gn 5 лет назад

      Not only Kannada it also supports Ragi balls, lemon rice, Set dosa, thatte idli 😂😂😂😂

  • @tomcruise1387
    @tomcruise1387 4 года назад

    Does not work for a lot of reason
    1) above 3.0.2 we cannot use bitmap in the line engine.process, because we have to convert the bitmap in tesseract .pix ...
    It is so hard to setup that the only way i got through is to downgrade to 3.0.2 version
    2) Now that I am in 3.0.2 I do not have the folders x86 and x64 ! Why ?! I downloaded the tesseract data for 3.0.2 I putted them in the folder "tessdata" and when i try to run the program it says at the new tesseractEngine line:
    "missingmethodexeption 'Method not found: 'System.Reflection.Emit.AssemblyBuilder System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName, System.Reflection.Emit.AssemblyBuilderAccess)'.' "
    I'm getting tired of all thoses errors only occuring on my environment...

  • @stellarspacetraveler
    @stellarspacetraveler 5 лет назад +3

    This is one beautiful video, it worked perfectly the first time! I used V3.02 tessdata files for my
    installation of V3.3.0.0 tesseract. There were no 3.3.0 specific tessdata files that I could find.
    Fortunately the 3.02 files worked. Thanks for the video.

    • @AnkproTraining
      @AnkproTraining  5 лет назад

      Thank you Glenn for watching and commenting the video. Subscribe to our channel. If you like any of our videos, please share them in your circle via whatsapp, facebook and twitter.

  • @troxsa2
    @troxsa2 3 года назад

    Hello, you have the project please ? can you post the link for download
    Today, we have the version 4.1.1 it's not the same ?
    Thank you in advance ;) and of your help

  • @CodeSeekers
    @CodeSeekers 5 лет назад +1

    I found you video very helpful... thanks a lot... but I am having a problem... I found version 3.3.0.. but I am unable to find the tessdata files for this version.. :( how can I get the older version or from where I can get tssdata files of version 3.3.0

    • @AnkproTraining
      @AnkproTraining  5 лет назад

      Check this link
      github.com/tesseract-ocr/
      You will find old version of tesseract.
      Subscribe to our channel to get latest uploads.

  • @AMIRKHAN-dm2fm
    @AMIRKHAN-dm2fm 5 лет назад +1

    very very nice!!
    but i have a question if there is a number in the picture like MKL4569 e.t.c then what i can do???
    Thanks again

    • @AnkproTraining
      @AnkproTraining  5 лет назад

      It will recognize number also from the image.
      Subscribe to our channel. Share this video via facebook, twitter and whatsapp.

    • @AmitSingh-xh3gn
      @AmitSingh-xh3gn 5 лет назад

      You can sing a song from any of your movies. Like Tare Zameen par, 3 Idiots, Mangal Pandey etc

  • @vishwashehan8441
    @vishwashehan8441 3 года назад +1

    thanks so much saved me

    • @AnkproTraining
      @AnkproTraining  3 года назад

      Thank you for watching this video and commenting. Don't forget to *_like, subscribe_* and hit that *_notification_* bell 🔔

  • @sandilemaphumullo1297
    @sandilemaphumullo1297 6 лет назад +2

    Great tutorial! I have typed the code exactly as posted , however I get an error that points to the image "Test1.jpg" and it says "Invalid parameter".I am using Visual studio 2015 , enterprise.

    • @AnkproTraining
      @AnkproTraining  6 лет назад

      Code is given in the video description. Compare your code with that. If problem is still not resolved check versions of the library you are using.
      Please do subscribe to our channel. Share this video link with your friends. We also have videos on C# series, Java series, HTML, HTML5, CSS, CSS3, JavaScript, Advanced JavaScript, JQuery, Bootstrap, Selenium using C# and Selenium using Java.

    • @santoshshrestha7182
      @santoshshrestha7182 5 лет назад

      i am also getting the same error :(

    • @abhin7508
      @abhin7508 5 лет назад

      @@santoshshrestha7182 Instead of just passing the name of the image, I recommend you to pass the path to the image.
      eg: Folder_Path\\.png

  • @sk8leesk8
    @sk8leesk8 2 года назад +1

    Thank you!

    • @AnkproTraining
      @AnkproTraining  Год назад

      You're welcome! Subscribe to our channel and share the video link in your circle.

  • @HaydenWilsonOutdoors
    @HaydenWilsonOutdoors 5 лет назад +1

    I get the following error on Bitmap even after I've added using.drawning; "The type name'Bitmap' could not be found in the namespace ' System.Drawing'. This type has been forwarded to assembly 'System.Drawing.Commin, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b12ffcd2ddd51' Consider adding a reference to that assembly"
    And please don't comment saying to sub like you have every other comment, that makes me not want to sub

  • @muralipulimi1943
    @muralipulimi1943 6 лет назад

    I am not able to download the english data files from the link provided, is there any alternate link to get the data files for the Tesseract to test

    • @AnkproTraining
      @AnkproTraining  6 лет назад

      Try this link github.com/tesseract-ocr/tessdata/raw/4.00/eng.traineddata . Please do subscribe to our channel. Share this video in whatsapp, twitter and facebook.

    • @arifaman9577
      @arifaman9577 3 года назад +1

      @@AnkproTraining not able to unzip this file, or we can use this file directly ?

  • @andreabaldassari3746
    @andreabaldassari3746 4 года назад +3

    grande omar

  • @wydyantom.m.m.kom.6012
    @wydyantom.m.m.kom.6012 5 лет назад

    want to convert characters / letters with OCR
    this is the story
    I want to make a robot that can write letters that come from character images.
    existing components
    1. kameraweb
    2. Raspberry Pi
    3. Arduino
    4. Printer tool

    for example this picture, please make three kinds of changes with different methods so that the results of the letters can be printed,
    for example how to eliminate background, noise blur and others
    in the form of an image followed by the listing of the program / what the algorithm uses.
    and how much does it cost please
    thank you for your cooperation and really answer

  • @Vijaykumar-jx8jq
    @Vijaykumar-jx8jq 5 лет назад +1

    Thank you for this useful tutorial. Actually, for my project, I want to extract the metadata from an image can you please guide me for that or provide with source code if you have.
    Thank you once again.

    • @AnkproTraining
      @AnkproTraining  5 лет назад +1

      Meta data is a different concept. We will make a video on that too. Please subscribe to our channel. Share this video link with your friends using facebook, whatsapp and twitter.
      Code for this program is available in the video description.

  • @samrakhan3326
    @samrakhan3326 5 лет назад +1

    thanks sir for all tutorials of emgu cv.These help me alot...i m working on currrency detection in emgu cv...can you help me that how i extract text from currency...i m cropping the text part of currency..for example in pakistani currrency case Serial nmbr i want to be extract from lower back portion of note....can Anyone help me???

  • @ahmedhalim4547
    @ahmedhalim4547 5 лет назад +2

    how can i unzip this file "enm.traineddata"

    • @AnkproTraining
      @AnkproTraining  5 лет назад

      Hi Ahmed, Did you tried unzipping using windows?

    • @dannezia
      @dannezia 4 года назад +1

      @@AnkproTraining i have the same problem ...i can't unzipp

    • @AnkproTraining
      @AnkproTraining  4 года назад

      @@dannezia Try unzipping using 7Zip or WinRar or Winzip. Let us know if you are able to do it.

  • @HocineFerradj
    @HocineFerradj 4 года назад +1

    thank you ...

    • @AnkproTraining
      @AnkproTraining  4 года назад +1

      Thank you for watching this video and commenting.
      Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter.

  • @anitapatel6021
    @anitapatel6021 3 года назад +1

    Goood Video

    • @AnkproTraining
      @AnkproTraining  3 года назад

      Thank you for watching this video and commenting.
      Cheers! would you mind hitting *_like_* button and *_subscribe_* to our channel! That will be awesome. We would be grateful to you. And also share this video in your circle via whatsapp, facebook and twitter. Link to subscribe the channel goo.gl/hFueBi

  • @meghapuppala241
    @meghapuppala241 5 лет назад

    Paramerter is displaying invalid .please help me with this

  • @arkanomer7230
    @arkanomer7230 6 лет назад +1

    thanks for channel so good , but I need Extracting Arabic text from an Image Can you Help me So thanks

    • @AnkproTraining
      @AnkproTraining  6 лет назад

      Good to know you like it. I guess you can extract from Arabic text also, take data files from github.com/tesseract-ocr/langdata/tree/master/ara
      Like this video. Share this video with your friends. And subscribe to our channel.
      Thank you
      - Ankpro

    • @arkanomer7230
      @arkanomer7230 6 лет назад +1

      thanks for your answer I used Arabic data files , but not read all number and text , but not problem for Eng..

    • @AnkproTraining
      @AnkproTraining  6 лет назад

      May be data files requires update. As it is a open source project we should wait for someone to update or if you have time you can update the same.

  • @kubakakauko
    @kubakakauko 6 лет назад +1

    Thanks

    • @AnkproTraining
      @AnkproTraining  6 лет назад

      Thank you for your comment. Subscribe to our channel. And share this video link to needy ones via facebook, twitter and whatsapp.

  • @abdulaquib9385
    @abdulaquib9385 2 года назад +1

    Thanks

    • @AnkproTraining
      @AnkproTraining  2 года назад

      Thank you for watching this video and commenting. Don't forget to *_like, subscribe_* and hit that *_notification_* bell 🔔