tutrpi / raspberry-pi-ocr-live-text-detection Goto Github PK
View Code? Open in Web Editor NEWDetect text in images or a camera live feed
Detect text in images or a camera live feed
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.