dlstreamer / pipeline-server

Home of Intel(R) Deep Learning Streamer Pipeline Server (formerly Video Analytics Serving)
BSD 3-Clause "New" or "Revised" License
126 stars 50 forks source link

Difficult to get normalized coordinates for spatial analytics parameters #87

Closed antoniomtz closed 1 year ago

antoniomtz commented 3 years ago

Hello,

What would be the best way (tools) to get the normalized coordinates [0,1] in a video for the "line" value for object_line_crossing parameter?

antoniomtz commented 3 years ago

@whbruce What I need to do is to identify coordinates in different areas from a videos to configure a new line in the parameter file. I want to avoid a manual process of try/error. I'm wondering if there is a tool to get the normalized coordinates. For example, this tool https://stackoverflow.com/questions/55149171/how-to-get-roi-bounding-box-coordinates-with-mouse-clicks-instead-of-guess-che/55153612#55153612 allows me to get the coordinates but they are not normalized as you need them for the object_line_crossing.

In other words, for the https://github.com/intel-iot-devkit/sample-videos/raw/master/people-detection.mp4 , how did you guys calculate the exact coordinates to apply the different hallways at the right place?

whbruce commented 3 years ago

We did it empirically, but you've found a smarter way of doing it. That's a nice tool! I tweaked it slightly and it seemed to do the job.

@darrindu let's find a way of updating the docs to help people do this.

antoniomtz commented 3 years ago

@whbruce Thank! it seems to give me the right normalized coordinates! Yeah, I agree on adding this to the documentation. It is very helpful.

akwrobel commented 1 year ago

Answered by previous comments