Giter Club home page Giter Club logo

raspberry-pi-ocr-live-text-detection's People

Contributors

tutrpi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

raspberry-pi-ocr-live-text-detection's Issues

Unsupported image object Error with live.py example

Encountered:
raise TypeError('Unsupported image object')
TypeError: Unsupported image object
While trying to run the live.py example. The example.py code worked and I check that all the dependencies listed had been installed. Using virtual environment.

Hardware:
RPI 4B 8gb w/ official 7" touch screen, RPi Camera Module 2

OS: Bookworm 64 bit 2023-12-05

Call Back:

Traceback (most recent call last):
File "/home/curtis/Beer_Frig/ocr_camera.py", line 12, in
d = pytesseract.image_to_data(frame, output_type=Output.DICT)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/curtis/Beer_Frig/env/lib/python3.11/site-packages/pytesseract/pytesseract.py", line 527, in image_to_data
return {
^
File "/home/curtis/Beer_Frig/env/lib/python3.11/site-packages/pytesseract/pytesseract.py", line 533, in
Output.DICT: lambda: file_to_dict(run_and_get_output(*args), '\t', -1),
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/curtis/Beer_Frig/env/lib/python3.11/site-packages/pytesseract/pytesseract.py", line 277, in run_and_get_output
with save(image) as (temp_name, input_filename):
File "/usr/lib/python3.11/contextlib.py", line 137, in enter
return next(self.gen)
^^^^^^^^^^^^^^
File "/home/curtis/Beer_Frig/env/lib/python3.11/site-packages/pytesseract/pytesseract.py", line 197, in save
image, extension = prepare(image)
^^^^^^^^^^^^^^
File "/home/curtis/Beer_Frig/env/lib/python3.11/site-packages/pytesseract/pytesseract.py", line 174, in prepare
raise TypeError('Unsupported image object')
TypeError: Unsupported image object

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.