(CURRENT ISSUE STATED IN MESSAGES)I cannot enable the camera under interface and the vcgencmd get camera command says it isn't detected, but if I run the command libcamera-jpeg -o test.jpg it will take a photo. Does anyone know why this is happening
warlord_shado
If I go into the config, it isn't there either
k9t33n
It isnt in the config anymore
warlord_shado
Where is it then?
k9t33n
No it's no where. You don't need to enable it anymore
warlord_shado
Ah
warlord_shado
Okay
k9t33n
I can think of a reason it would just only show 1 frame
k9t33n
Try the libcamera vid command. I forgot it
warlord_shado
It displays, and now I'm using picamera2 and it is saying that libcamera module isn't found and I can't seem to find any reason why this is happening
warlord_shado
k9t33n
hmm no idea either
warlord_shado
I was using this manuel in found and I ran all the commands it said and it is throwing that error
thunder07337
9.7. HDR mode on the Pi 5
The Raspberry Pi 5 has some in-built support for HDR, allowing its use even for non-HDR cameras.
To turn on the HDR mode, use (assuming picam2 is your Picamera2 object)
import libcamera
picam2.set_controls({'HdrMode': libcamera.controls.HdrModeEnum.SingleExposure})
Do you have the Pi 5?
This is the only place in the PDF where "import libcamera" appears.
warlord_shado
I'm using a pi4
thunder07337
Then it's probably because it's not working...
e_xie
Hold on I had an issue like this yesterday
e_xie
I’ll try to find the commands that fixed it
e_xie
groups pi
e_xie
(Checks if pi is a part of the required groups that open the camera )
e_xie
Then if not: sudo usermod -aG video pi
warlord_shado
Thanks, I'll test it tomorrow when I get up and report back
warlord_shado
It is telling me both commands don't exist
badboygod
what command did you run to get no module named libcamera
e_xie
Hmm that’s weird bc it worked for me
warlord_shado
A python script gave the error on an import statement -
from picamera2 import Picamera2, Preview
badboygod
try this
md
sudo apt install -y python3-libcamera
warlord_shado
It told me it is already installed and I can't import it in VS code