JetsonHacksNano / CSI-Camera

Simple example of using a CSI-Camera (like the Raspberry Pi Version 2 camera) with the NVIDIA Jetson Developer Kit
Other
817 stars 287 forks source link

[BUG] #61

Open Rusali28 opened 1 year ago

Rusali28 commented 1 year ago

Describe the issue The python code works when I type python3 camtry.py. It gives error when I type python3.9 camtry.py

What version of L4T/JetPack L4T/JetPack version: 4.6.3

What version of OpenCV OpenCV version: 4.1.1 (Python 3) ; 4.7.0 (Python3.9)

Python Version Python version if applicable: Python 3.6 (this works for code), Python 3.9 (this does not work for code)

To Reproduce Steps to reproduce the behavior: For example, what command line did you run? python3 camtry.py python3.9 camtry.py

Expected behavior Expected the camera to work on python3.9 just as it worked on python3.

If anyone is able to figure this out, please help me understand Screenshot from 2023-03-16 15-37-54

Additional context Add any other context about the problem here.

emrecvdr20 commented 1 year ago

Rusali hi, Same problem ı am Do you find solutions anywhere?

Rusali28 commented 1 year ago

Hello @emrecvdr20 , I tried many ways and then adopted my code to run on Python 3.6 itself. The issue is related to the OpenCV version on Python3.9. If you still want to run it on Python3.9, I would suggest to look up for a suitable Opencv version that is compatible with the camtry.py file and then manually install it on your Python3.9 environment.

All the best!