183 - OCR in python using keras-ocr

Поделиться
HTML-код
  • Опубликовано: 2 июн 2024
  • Optical character recognition (OCR)
    References:
    keras-ocr.readthedocs.io/en/l...
    github.com/clovaai/CRAFT-pytorch
    Code generated in the video can be downloaded from here:
    github.com/bnsreenu/python_fo...
  • НаукаНаука

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

  • @akshaykhare9466
    @akshaykhare9466 2 года назад +3

    I tried this code, but after printing np.shape(images), every time it is showing message 'kernel died' . This is happening in Jupyter notebook as well as in Spyder. So I am not getting the output. I tried restarting kernel but same thing happening again and again. What should I do?

  • @deepakkumarjha1442
    @deepakkumarjha1442 3 года назад +2

    Really amazing work sir. I was putting huge effort for building the OCR like this in very short span of time and while working on it I spotted this and the work is done. Now I move further in other parts of the research.
    Great!!! Thanks again sir...

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

      I am glad it helped. The whole point of my tutorials is to teach but also help others not waste their time reinventing code.

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

    Thank you for the great introduction to this library, it looks fantastic. However, running the demo code on my Mac (M1) is giving me strange results - Text Detection and Localization is working fine, but the character recognitions are completely wrong, most words are recognized as something like "tuueldkstt" or other very similar nonsense. Almost seems like the recognition model wasn't loaded correctly. Do you have any thoughts as to why this could be happening?

  • @arturosorianorodriguez4584
    @arturosorianorodriguez4584 8 месяцев назад +1

    I have a problem. The code recognizes all the letters, but the H no. What can I do?

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

    Wow! I wasn’t aware of this ocr library and not having been satisfied with the results of what I had tried out, I am so glad you posted this video. I’ll test the keras ocr soon. Thank you so much.

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

    amazing video sir, thanks for this nice explaining

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

    Dear Sir,
    Thank you for the video.
    Is it possible to fine tune the model on a personal data to make it better on use case ?
    Thank's in advance.

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

      I recommend you to look into the documentation for this library to fine tuning the model. Often times you should be able to take their model and further train it with your data.

  • @sagihaviv5675
    @sagihaviv5675 3 года назад +2

    sir is it possible to recognize and extract a specific sentence or word in ocr? do i need to use nlp for that? please give me advice

    • @truongzgiang
      @truongzgiang 6 месяцев назад

      Only trian for show , can't do anything useful with it , if you want to take words form image , you write it with fingers , believe me 1000 ocr video on RUclips is trash , only trian and do nothing

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

    Dear sir,
    Where can we subscribe to every keras library released in order to keep learning?
    Do you have any recommendations?
    Thanks

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

      Unfortunately there is not single place (that I know of) where you can get information about all keras based applications. May be keras documentation page helps a bit but many useful applications based on kears are not listed there.

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

    Hi @DigitalSreeni,
    I'm trying to finetune the keras OCR recogniser using my own dataset by following their documentation. But my image size is different from theirs and this is giving an error (as anticipated).
    The error message says ValueError: You are trying to load a weight file containing 16 layers into a model with 15 layers.
    I am just finding it hard to figure out how to change the input size, without having to train from scratch. Can you help, please? Looking forward to your response.

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

      Please checkout if this approach works for you. ruclips.net/video/owiqdzha_DE/видео.html

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

    Great information srini.. Which has better accuracy is it keras ocr or tessaract...??

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

      I like EasyOCR... wait for my video on this topic... (August 2nd)

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

      @@DigitalSreeni that was quick.. Thanks srini... Waiting for it..

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

    when i write the code "import keras_ocr", it giving me an error said that no module named 'keras_ocr'. I already pip install the keras-ocr

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

      try:
      # %tensorflow_version only exists in Colab.
      %tensorflow_version 2.x
      except Exception:
      pass
      I just found the solution. need to install tensorflow first with this code

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

    how to print the text as output. Pls help

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

    hi sreeni i am trying to run code but i am getting this error again and agian can you help me to sort it out
    TypeError: annotate() missing 1 required positional argument: 's'

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

      This seems to be a new error showing up when you try to draw extracted text on to your original image. But the actual process of extracting text should work.

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

    Is keras-ocr work with other languages? I just see no argument in the function

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

      I believe it is English only. Try tesseract for non English OCR. I never used it but the documentation seems to be straightforward.

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

    sorry to ask, how do i install it from github??

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

      Please read the documentation on github. It saus, one way to install is via: pip install keras-ocr

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

    Thank you very much

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

    thanks

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

    After line pipeline.recognize(images) no more code is executed and program finishes, i have no idea what is problem even after google search.
    2022-06-23 12:24:26.055634: I tensorflow/stream_executor/cuda/cuda_dnn.cc:384] Loaded cuDNN version 8400
    Process finished with exit code -1073740791 (0xC0000409)