03-07-2023, 05:47 PM
System:
I try to use my own camera script:
If I run the camera.sh script myself and then openauto pro, the stream is displayed above the UI.
Does anyone have an idea what the problem could be?
Thanks!
- Raspberry Pi 3B+
- OpenAuto Pro 16.0
- Electreeks Raspberry Pi Camera 175° Super Wide Angle Lens & Automatic Infrared Blocking Filter - Full HD with Infrared LEDs
I try to use my own camera script:
- I activated camera interface in RaspiConfig
- I edited /boot/config.txt
[all] gpu_mem=256 max_framebuffers=1 start_x=1 #[pi3+] #gpu_mem=256 #max_framebuffers=1 #[pi4] #max_framebuffers=2 #start_x=1
- I edited /home/pi/.openauto/config/openauto_system.ini
[RearCamera] DeviceDescriptor=v4l2:///dev/video0 GpioPin=0 ShowGuideLine=false Orientation=2 ScriptPath=/home/pi/Desktop/camera.sh BackendType=2 ResolutionWidth=1920 ResolutionHeight=1080 ViewFinderIndex=0 VolumeLevelEnabled=false VolumeLevel=70
- I wrote the script /home/pi/Desktop/camera.sh
#!/bin/bash python camera.py
- I wrote the script /home/pi/Desktop/camera.py
import time import picamera camera = picamera.PiCamera() camera.rotation = 180 camera.resolution = (1024, 720) camera.framerate = 30 camera.start_preview() camera.annotate_text = 'Test' time.sleep(20) camera.stop_preview(
If I run the camera.sh script myself and then openauto pro, the stream is displayed above the UI.
Does anyone have an idea what the problem could be?
Thanks!