buildOpenCVTX2 icon indicating copy to clipboard operation
buildOpenCVTX2 copied to clipboard

Jetson freezes when more than one videocapture is running.

Open jonready opened this issue 5 years ago • 5 comments

This library has worked great for single videocapture but when I try to do 2 at the same time eventually my jetson freezes and stops responding to mouse and keyboard inputs. I posted an example usage of videocapture. cv::VideoCapture cap1(pipeline1, cv::CAP_GSTREAMER);

jonready avatar Apr 04 '19 21:04 jonready

Did you happen to check the memory usage? What type of cameras are you using?

jetsonhacks avatar Apr 05 '19 16:04 jetsonhacks

I am using two leopard imaging imx377 cameras. Memory usage is about 12%.

jonready avatar Apr 05 '19 17:04 jonready

The script is just a wrapper around an OpenCV install. I'm not sure what the issue might be. Since I don't have the cameras, it's difficult to suggest a fix.

Please ask this question on the official NVIDIA Jetson forum where a large number of developers and NVIDIA engineers share their experience. Jetson TX2 forum: https://devtalk.nvidia.com/default/board/188/jetson-tx2/

jetsonhacks avatar Apr 05 '19 22:04 jetsonhacks

I have asked my question there. But I had wondered if it might have been something related to OpenCV.

jonready avatar Apr 05 '19 22:04 jonready

It could be. I would tend to be more suspicious of the the other players, ie imx377 drivers and GStreamer. Certainly it's worth checking with Leopard Imaging.

jetsonhacks avatar Apr 05 '19 22:04 jetsonhacks