Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Difficult to get normalized coordinates for spatial analytics parameters #87

Closed
antoniomtz opened this issue Aug 31, 2021 · 4 comments
Closed
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@antoniomtz
Copy link

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
Copy link
Author

@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?

@akwrobel akwrobel added the question Further information is requested label Aug 31, 2021
@whbruce whbruce added documentation Improvements or additions to documentation and removed question Further information is requested labels Aug 31, 2021
@whbruce
Copy link

whbruce commented Aug 31, 2021

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
Copy link
Author

antoniomtz commented Aug 31, 2021

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

@whbruce whbruce changed the title Question: Best way to get normalized coordinates from a video Difficult to get normalized coordinates for spatial analytics parameters Sep 10, 2021
@whbruce whbruce added the enhancement New feature or request label Aug 18, 2022
@akwrobel
Copy link
Contributor

Answered by previous comments

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants