Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horizontal lines when using cam_test.py #1048

Open
Shivam7Sharma opened this issue Jul 2, 2024 · 8 comments
Open

Horizontal lines when using cam_test.py #1048

Shivam7Sharma opened this issue Jul 2, 2024 · 8 comments

Comments

@Shivam7Sharma
Copy link

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?

@Erol444
Copy link
Member

Erol444 commented Jul 2, 2024

@Shivam7Sharma could you share some video of these lines?

@Shivam7Sharma
Copy link
Author

Shivam7Sharma commented Jul 2, 2024

@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

@Erol444
Copy link
Member

Erol444 commented Jul 2, 2024

@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).

@Shivam7Sharma
Copy link
Author

Shivam7Sharma commented Jul 2, 2024

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.

@Shivam7Sharma
Copy link
Author

Shivam7Sharma commented Jul 2, 2024

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?

@Erol444
Copy link
Member

Erol444 commented Jul 2, 2024

@Shivam7Sharma video please? Depends on your bandwidth, please see here: https://docs.luxonis.com/software/depthai/optimizing/

@Shivam7Sharma
Copy link
Author

Shivam7Sharma commented Jul 2, 2024

Sorry, in the previous reply I uploaded the video but the link doesn't work. The following is the video taken from my phone:

IMG_0413.MOV

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.

@Erol444
Copy link
Member

Erol444 commented Jul 3, 2024

Hi @Shivam7Sharma , 800P is limited to 120FPS. For visualization, you'll likely be limited to 60fps:
image

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants