Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers.

Use ObjectDetect without playback on host

0 votes

I am trying to use ObjectDetect module for a safety application. I need the Jevois camera to notify my arduino when it detects certain objects. But I could see that this is working only when I am playing the stream in my laptop. ie the camera stops detecting the objects and therefore stops sending serial notification messages when I am no longer playing the stream. This is giving me problems as I cant keep a host computer connected to  my system always. Is there any way I can detect objects without the camera feed being accessed in a host computer? If my problem can be solved by another module or if there is any other better solution for me kindly let me know.

asked Feb 25 in User questions by kiran (120 points)

2 Answers

0 votes

Basically, you need to change initscript to start in none video mode.

Not all modules can do that but object detection is possible.

I just had a similar investigation and i believe you may find hints within what i just wrote


answered Feb 27 by dbddv01 (140 points)
0 votes

Oh, ObjectDetect currently only supports modes with video output. But check out the tutorial by dbddv01 nevertheless, it is great!

To allow ObjectDetect to run without USB video output, we need to create an additional process(inframe) function in the module, which only takes an input frame in and sends no output frame. The code will be very similar to the one in the existing process(inframe, outframe) function, just strip out anything related to creating the output image.

If you are not familiar with C++, we can add this as part of a future release or tutorial.

answered Feb 27 by JeVois (16,490 points)