Raspberry Pi 4b camera integration OpenCV

February 17, 2024, 11:54

jestico

What OS should I use if im trying to use OpenCv and Tensorflow in my code?




thunder07337

You must install it if it is not included!

k9t33n

any os should be just about fine. I just suggest raspberry pi os 64 bit

jestico

alright thank youu

jestico

also

jestico

why doesnt picamera work

jestico

in raspberry pi 4 64bit os

k9t33n

try libcamera-hello -t -0

jestico

it opens but when i try to use it in Thonny it says the module doesnt work. when i try to install it it says i have to be in a virtual environment

k9t33n

I don't think libcamera is a python library

k9t33n

hmm ive never used my camera within python I'm gonna be honest

k9t33n

which camera do you have?

jestico

RPI camera module v2 8mp

jestico

whenever i try to install picamera, there is an error saying i have to create a virtual environment

jestico

and its on 64bit os

jestico

the camera's workiong but i just dont know what code i should put in Thonny to make it word through Thonny

jestico

cause ive only opened it using the terminal

k9t33n

oh yes

k9t33n

btw we need the actual error

k9t33n

I know what your talking about tho

k9t33n

one second

k9t33n

python3 -m path/to/venv and source path/to/venv/bin/activate if I remember correctly

jestico

yes