New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class value and export coordinates to csv #30
Comments
Hi. For the first question, you would need to get a list of the mapping between class number and class name from the official COCO website, and then print them to the user. For the second question, you would need to continously store the results you get from norfair as you iterate over a video in some data structure in memory, and then convert it into a CSV when you finish processing the video. Or you could just append to an CSV file on disk on each frame processed. It should be quite easy. |
Thanks for your reply joaqo. Following up on the second question, could you please help me understand the norfair results? I may well be approaching this in the wrong way (I am completely new to python). |
Hi nacho! On each frame processed, Norfair takes as inputs a list of With regards to how to use these Regarding that hexadecimal number, its just the memory address of that object, just an internal python implementation detail and not really related to Norfair. Please feel free to ask more questions. |
Thanks again Joaqo! You helped push me in the right direction to have a working implementation using TrackedObject's estimate :) It would be nice to have the actual Detection's coordinates whilst maintaining Norfair's ID for each object, but I can manage with the slight loss of accuracy. I have another question unrelated to the above, so I'll open as a new issue... |
Hey @nachonacho2, you actually can access the Detection's coordinates, its listed in the link to |
Hey Joaqo, took me awhile but I got there... Thanks! |
Oh I now understand what you meant. The property Regarding the memory address you mention, |
Hi, I have a question related to issue # 19:
I'm working through the detectron2 demo (detectron2_cars.py) to understand the code and wanted to change the detected class from cars to person. I found that changing row 32 to "if c == 0" does this. How do I export/print a list of the detected classes?
Also, I would like to export to a csv file the centroid/center coordinates for each tracked object for each frame (similar to print_objects_as_table, but ideally with the data from each frame in one row). Any suggestions?
The text was updated successfully, but these errors were encountered: