Horizontal lines when using cam_test.py
Hi,
I am getting horizontal lines whenever I move in front of my OV9282 camera. I am using the cam_test.py file, and I have set the fps to 90, although it doesn't reach 90 fps. Is it because the output is raw?
@Shivam7Sharma could you share some video of these lines?
@Erol444 https://github.com/luxonis/depthai-python/assets/92198336/12237fdd-c32e-4f0b-84e4-a4a2f06bdb9f
Edit1: Adding the terminal output:
shivam157@ubuntu:~/driver/src$ python3 cam_test.py -fps 90
DepthAI version: 2.26.0.0
DepthAI path: /home/shivam157/.local/lib/python3.10/site-packages/depthai.cpython-310-aarch64-linux-gnu.so
Enabled cameras:
camb : mono
camc : mono
CAM: camb
CAM: camc
Connected cameras:
-socket CAM_B : OV9282 1280 x 800 focus:fixed - MONO
-socket CAM_C : OV9282 1280 x 800 focus:fixed - MONO
USB speed: SUPER
IR drivers: []
Cam: camb camc [host | capture timestamp]
FPS: 55.04| 55.10 55.04| 55.10 ^CExiting cleanly
@Shivam7Sharma are you streaming via network (like vnc)? This doesn't look like 90fps, and the streaming might be the issue (not the device/software).
I am using VNC over WiFi on a Jetson Orin Nano. Are you sure this is because of VNC? The processing is being done on the jetson, and the wifi data bandwidth is supposed to be better than the USB 3.2 cable.
Edit 1:
I will try to run this on a connected monitor and will tell you the results.
https://github.com/luxonis/depthai-python/assets/92198336/89f4d659-3aaf-440e-8e6b-24f9a940d408
It is still there and you can see the fps is still 55. This time the lines are even worse. They don't exist outside of the camera window.
Edit 1:
The lines could be the HDMI port but what about the fps issue?
@Shivam7Sharma video please? Depends on your bandwidth, please see here: https://docs.luxonis.com/software/depthai/optimizing/
Sorry, in the previous reply I uploaded the video but the link doesn't work. The following is the video taken from my phone:
https://github.com/luxonis/depthai-python/assets/92198336/eae1a8d5-2de8-47e0-a49c-8defe78f5224
But If the resolution is 800 and the USB wire is 3.2 then I should be getting better fps according to the link you sent.
Hi @Shivam7Sharma , 800P is limited to 120FPS. For visualization, you'll likely be limited to 60fps:
If you don't visualize, you'll get better fps (I got full 120fps), code here:
from depthai_sdk import OakCamera
from depthai_sdk.fps import FPSHandler
fps = FPSHandler()
def cb(packet):
fps.nextIter()
print(fps.fps())
with OakCamera() as oak:
left = oak.create_camera('left', resolution='800p', fps=120)
oak.callback([left], cb)
oak.start(blocking=True)