This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rpi CSI Camera usage
#1
So now the v1.3 camera works with tinkerOS 2.03

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 ?
Reply
#2
Hi Mikerr, is there any update on A3 thing?

Regards,
Hasan
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)