How can I only detect objects that are located in the center region of the screen?

Hi, I’m only trying to detect things that are located in the center of the screen. I know this can be done with openCV, but I’m not sure how to do it with detectnet. Any input would be greatly appreciated.

You can crop your region of interest and only feed that crop to the engine.

Hi, thanks for the response. How would I go about doing that in

Hi @justin60, you can use the cudaCrop() function:

Thanks @dusty_nv for the reply. Is that function only for images? Or can it be used for a live video stream as well?

I figured it out, thanks for everyone’s help!

Glad you got it working! And to answer your last question for others who may read this thread, like most functions in jetson-inference it operates on individual images. However you can just call it for each new image from the video stream as they are captured.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.