I’m working on top of deepstream_test3, trying to make a social-distance detector.
(Deepstream 5.0 on Jetson Xavier NX, Python samples)
I’ve managed to detect when the label is “person”, get it’s position and calculate the distance between everybody.
However, I need to print the number of violations on the image and it’s not working:
I checked with the original deepstream_test3 script and it doesn’t show the text or the labels either.
I added a print(pyds.get_string(py_nvosd_text_params.display_text)) which is printing my information ok. It just doesn’t show on the stream!
Is there a way to “enable” the text on the image? (By the way, as well as the labels that aren’t appearing either)
First I ran it exactly like that… didn’t even look at the code.
Then, I realized those triple quotes might be interpreted as a “comment”, so I eliminated those and declared vehicle_count and person for it to run.
Both cases I got the same result: only bounding boxes appeared, no text showing on the video.
As a third test, I uncommented the print sentence in the second to last line you’re showing, and it seems to print correcty in the console, but still, no text on the video.
I’m attaching an image with the code I’m running, the video output and the console output.
Any idea what I’m doing wrong?