Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Raspberry Pi NoIR camera low framerate

Hope this is in the right place. I am trying to use a raspberry pi NoIR camera (with a RPi zero running in peripheral mode) as a USB webcam (as described here). The webcam runs fine and at 30fps if i just run it through windows, or if I use Python to acquire frames.

 

Running it in Labview (2020), it runs at only about 2fps. If i look into MAX I can see that there is only one option under "video mode" and that is for the camera running at 2fps (1920x1080 MJPG 2.00fps). Other USB webcams I have all have multiple options and can run at higher framerates.

 

Why would the camera run fine in windows camera view but not in Labview? I imagine it is some driver issue, but I don't know how to see what drivers the camera is using in labview. Any advice appreciated!

0 Kudos
Message 1 of 2
(1,706 Views)

Those instructions for configuring the emulated camera set the 2hz rate:

 

cat <<EOF > /sys/kernel/config/usb_gadget/pi4/functions/uvc.usb0/streaming/mjpeg/m/1080p/dwFrameInterval
5000000
EOF
0 Kudos
Message 2 of 2
(1,650 Views)