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

[BUG] Alternate between dot projector and illumination LED when adjust the image frame rate to 60Hz #1100

Open
yyh-pc opened this issue Aug 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yyh-pc
Copy link

yyh-pc commented Aug 19, 2024

In examples/MonoCamera/mono_preview_alternate_pro.py
example script will run both left and right monochrome camera sensors at 30FPS, and it will switch between the IR LED and dot projector every frame - meaning we will get LED-illuminated frames at 15FPS, and dot projector-illuminated frames at 15FPS.

But when I try to set the fps to 60, the part of the script that checks for left and right image frame time synchronization always reports an error like this:
1844301011CD3BF500] [3.2] [6.534] [Script(6)] [error] frame/event desync! Fr-Ev: 1 frames, 16.667 ms; R-L: 0.013 ms
[1844301011CD3BF500] [3.2] [6.551] [Script(6)] [error] frame/event desync! Fr-Ev: 1 frames, 16.667 ms; R-L: 0.012 ms
[1844301011CD3BF500] [3.2] [6.568] [Script(6)] [error] frame/event desync! Fr-Ev: 1 frames, 16.666 ms; R-L: 0.013 ms
[1844301011CD3BF500] [3.2] [6.584] [Script(6)] [error] frame/event desync! Fr-Ev: 1 frames, 16.667 ms; R-L: 0.011 ms
[1844301011CD3BF500] [3.2] [6.601] [Script(6)] [error] frame/event desync! Fr-Ev: 1 frames, 16.666 ms; R-L: 0.011 ms

The parameters are set as follows:
if 1: # PoE config
fps = 60
res = dai.MonoCameraProperties.SensorResolution.THE_400_P
poolSize = 25 # default 3, increased to prevent desync
else: # USB
fps = 30
res = dai.MonoCameraProperties.SensorResolution.THE_720_P
poolSize = 8 # default 3, increased to prevent desync

I tried to change the poolSize parameter but it still doesn't work. How should I fix this problem?

@yyh-pc yyh-pc added the bug Something isn't working label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant