NVIDIA-AI-IOT / jetson-stereo-depth

MIT License
79 stars 20 forks source link

Are the cameras synchronized? #2

Closed axjensen closed 1 year ago

axjensen commented 2 years ago

Hi, I am wondering if the cameras are synchronized? Am I missing something here or are the two images just taken as close as possible in time?

Peter-Yao-7 commented 2 years ago

Hey Axjensen, I was wondering if you were able to have both the C++ and python implementations to work?

axjensen commented 2 years ago

Hi @Peter-Yao-7

I was able to run your C++ example. The python example crashes with a core dump. Can you share some insights on the synchronization of the cameras?

Thanks

Peter-Yao-7 commented 2 years ago

Hi @axjensen,

I'm not the owner of the repo but I was attempting to see the performance of the result too, I think the opencv python file results in a core dump but I haven't figured out why; the vpi file works but it doesn't have the same performance as shown. From what I can see, the cameras are not likely perfectly synchronized, but depending on the frame rate, they should be extremely close in time.

tomasz-lewicki commented 2 years ago

Hi @axjensen,

You're correct - the frames from sensors are not synced, and the code just grabs the newest available frame. Unfortunately I don't believe IMX219 camera has an option for an external trigger signal.

Regarding the crash, please try running this before running the program:

export OPENBLAS_CORETYPE=ARMV8;

Here's more on the related issue.

tomasz-lewicki commented 2 years ago

@Peter-Yao-7,

Feel free to open a separate issue, I'd be happy to help camera calibration.