So now the v1.3 camera works with tinkerOS 2.03
view preview with this:
For single images, initially I just got black images - but the camera needs some setup time, so this discards the early frames:
I've generalised that into a bigger script camstill.sh so you can do:
or for PNG format:
text overlay
All the camera scripts are at http://github.com/mikerr/tinkercam
Other apps don't seem to able to access the camera via V4lL: /dev/video0 shows up and called rkisp10_ispdev but apps won't access it ?
view preview with this:
Code:
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=NV12,width=640,height=480 ! videoconvert ! autovideosink
For single images, initially I just got black images - but the camera needs some setup time, so this discards the early frames:
Code:
gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=5 ! video/x-raw,format=NV12,width=640,height=480 ! videoconvert ! jpegenc ! multifilesink location=test.jpg
Code:
gpicview test.jpg
I've generalised that into a bigger script camstill.sh so you can do:
Code:
./camstill.sh -e jpeg -w 1280 -h 800
or for PNG format:
Code:
./camstill.sh -e png -f test.png
text overlay
Code:
./camstill.sh -t "Experiment 13"
All the camera scripts are at http://github.com/mikerr/tinkercam
Other apps don't seem to able to access the camera via V4lL: /dev/video0 shows up and called rkisp10_ispdev but apps won't access it ?