Replies: 1 comment 4 replies
-
Did you check the documentation? I believe this is one of the errors that's discussed there related to baudrate.
Sent from an Android device, please excuse my brevity.
Diese Nachricht wurde von meinem Android Mobiltelefon gesendet, bitte meine Kürze entschuldigen.
Am So., Dez. 11, 2022 at 20:46 schrieb ***@***.***>:
Hi there,
I am trying to follow the tutorial posted here: ( ,. However, I am experiencing some difficulties
When I try to test the device by running
import pithermalcam as ptc
ptc.test_camera()
I receive the error:
Camera didn't seem to work properly. Returned the following error: Traceback (most recent call last): File "/home/pi/PiThermalCam/pithermalcam/cameraTest.py", line 2, in <module> ptc.test_camera() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/__init__.py", line 25, in test_camera raise(e) File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/__init__.py", line 11, in test_camera thermcam = pithermalcam() # Instantiate class File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 50, in __init__ self.update_image_frame() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 227, in update_image_frame self._pull_raw_image() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 88, in _pull_raw_image self.mlx.getFrame(self._raw_image) # read mlx90640 File "/home/pi/.local/lib/python3.9/site-packages/adafruit_mlx90640.py", line 126, in getFrame status = self._GetFrameData(mlx90640Frame) File "/home/pi/.local/lib/python3.9/site-packages/adafruit_mlx90640.py", line 155, in _GetFrameData raise RuntimeError("Too many retries") RuntimeError: Too many retries
When I try to run the camera via live video I get this error
Traceback (most recent call last): File "/home/pi/PiThermalCam/pithermalcam/runlive.py", line 2, in <module> ptc.display_camera_live() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/__init__.py", line 30, in display_camera_live thermcam = pithermalcam(output_folder=output_folder) # Instantiate class File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 50, in __init__ self.update_image_frame() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 227, in update_image_frame self._pull_raw_image() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 88, in _pull_raw_image self.mlx.getFrame(self._raw_image) # read mlx90640 File "/home/pi/.local/lib/python3.9/site-packages/adafruit_mlx90640.py", line 126, in getFrame status = self._GetFrameData(mlx90640Frame) File "/home/pi/.local/lib/python3.9/site-packages/adafruit_mlx90640.py", line 155, in _GetFrameData raise RuntimeError("Too many retries") RuntimeError: Too many retries
Similarly, when I try and run the python to stream the video over the local network via a web server, I receive this error:
Traceback (most recent call last): File "/home/pi/PiThermalCam/pithermalcam/onlinestream.py", line 3, in <module> ptc.stream_camera_online() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/__init__.py", line 38, in stream_camera_online web_server.start_server(output_folder=output_folder) File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/web_server.py", line 134, in start_server thermcam = pithermalcam(output_folder=output_folder) File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 50, in __init__ self.update_image_frame() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 227, in update_image_frame self._pull_raw_image() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 88, in _pull_raw_image self.mlx.getFrame(self._raw_image) # read mlx90640 File "/home/pi/.local/lib/python3.9/site-packages/adafruit_mlx90640.py", line 126, in getFrame status = self._GetFrameData(mlx90640Frame) File "/home/pi/.local/lib/python3.9/site-packages/adafruit_mlx90640.py", line 155, in _GetFrameData raise RuntimeError("Too many retries") RuntimeError: Too many retries
I noticed in another discussion that this error can be the case of not increasing the baudrate, however I tried and retried writing i2c_arm_baudrate=400000 into the /boot/config.txt file and I am still receiving the same errors. I noticed that they all fail when getting to the GetFrameData stage.
I am able to verify that the camera is connected. Would anyone be able to help me discern what is going wrong?
Thank you in advance.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I am trying to follow the tutorial posted here: ( ,. However, I am experiencing some difficulties
When I try to test the device by running
import pithermalcam as ptc
ptc.test_camera()
I receive the error:
Camera didn't seem to work properly. Returned the following error: Traceback (most recent call last): File "/home/pi/PiThermalCam/pithermalcam/cameraTest.py", line 2, in <module> ptc.test_camera() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/__init__.py", line 25, in test_camera raise(e) File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/__init__.py", line 11, in test_camera thermcam = pithermalcam() # Instantiate class File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 50, in __init__ self.update_image_frame() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 227, in update_image_frame self._pull_raw_image() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 88, in _pull_raw_image self.mlx.getFrame(self._raw_image) # read mlx90640 File "/home/pi/.local/lib/python3.9/site-packages/adafruit_mlx90640.py", line 126, in getFrame status = self._GetFrameData(mlx90640Frame) File "/home/pi/.local/lib/python3.9/site-packages/adafruit_mlx90640.py", line 155, in _GetFrameData raise RuntimeError("Too many retries") RuntimeError: Too many retries
When I try to run the camera via live video I get this error
Traceback (most recent call last): File "/home/pi/PiThermalCam/pithermalcam/runlive.py", line 2, in <module> ptc.display_camera_live() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/__init__.py", line 30, in display_camera_live thermcam = pithermalcam(output_folder=output_folder) # Instantiate class File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 50, in __init__ self.update_image_frame() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 227, in update_image_frame self._pull_raw_image() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 88, in _pull_raw_image self.mlx.getFrame(self._raw_image) # read mlx90640 File "/home/pi/.local/lib/python3.9/site-packages/adafruit_mlx90640.py", line 126, in getFrame status = self._GetFrameData(mlx90640Frame) File "/home/pi/.local/lib/python3.9/site-packages/adafruit_mlx90640.py", line 155, in _GetFrameData raise RuntimeError("Too many retries") RuntimeError: Too many retries
Similarly, when I try and run the python to stream the video over the local network via a web server, I receive this error:
Traceback (most recent call last): File "/home/pi/PiThermalCam/pithermalcam/onlinestream.py", line 3, in <module> ptc.stream_camera_online() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/__init__.py", line 38, in stream_camera_online web_server.start_server(output_folder=output_folder) File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/web_server.py", line 134, in start_server thermcam = pithermalcam(output_folder=output_folder) File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 50, in __init__ self.update_image_frame() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 227, in update_image_frame self._pull_raw_image() File "/home/pi/.local/lib/python3.9/site-packages/pithermalcam/pi_therm_cam.py", line 88, in _pull_raw_image self.mlx.getFrame(self._raw_image) # read mlx90640 File "/home/pi/.local/lib/python3.9/site-packages/adafruit_mlx90640.py", line 126, in getFrame status = self._GetFrameData(mlx90640Frame) File "/home/pi/.local/lib/python3.9/site-packages/adafruit_mlx90640.py", line 155, in _GetFrameData raise RuntimeError("Too many retries") RuntimeError: Too many retries
I noticed in another discussion that this error can be the case of not increasing the baudrate, however I tried and retried writing
i2c_arm_baudrate=400000
into the /boot/config.txt file and I am still receiving the same errors. I noticed that they all fail when getting to the GetFrameData stage.I am able to verify that the camera is connected. Would anyone be able to help me discern what is going wrong?
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions