Logging Object Detection Results of Video in the Excel File #2133
-
Hi, I am new to coding and posting first time on GitHub. Well, I was able to successfully train the model on the custom dataset and I am using it to detect some signs in the videos. Now I want my results to be saved in an excel file which should have a log of all the objects detected along with the time of the video. Can someone please suggest how it can be done? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 19 replies
-
@Aar-Kay hey buddy, congrats on your first training! You can produce detection logs as text files from video frames like this: python detect.py --source video.mp4 --save-txt The part of detect.py that saves these text files is here, you could introduce your own code to update an excel file instead: Lines 103 to 110 in 73a0669 |
Beta Was this translation helpful? Give feedback.
-
glenn-jocher@ can detect.py file can read video file directly from outlook one drive? |
Beta Was this translation helpful? Give feedback.
-
glenn-jocher@ you are right! the url is too complex. I also used to ' ' but did not work, same error. if you want to test! Thanks for the help! |
Beta Was this translation helpful? Give feedback.
-
Here is all you want with the code its in my you tube channel bi have made an video on how to save yolo object detection with time stamp try to understand it the git link is given below the video description |
Beta Was this translation helpful? Give feedback.
-
Hello Mr @ glenn-jocher i have a question that am in need of your help with, is it possible to get the object detected information, say the names of a detected class, and display it on a different platform using the OPC-UA system? I have two computers one is running object detection which is our OPC client then the other computer is running the OPC server. I have created a node on the server which then the client subscribes to and can change the values of the node, so what I would want to show is the results am obtaining from the object detection to show on the server. How can I achieve this? |
Beta Was this translation helpful? Give feedback.
@Aar-Kay hey buddy, congrats on your first training! You can produce detection logs as text files from video frames like this:
The part of detect.py that saves these text files is here, you could introduce your own code to update an excel file instead:
yolov5/detect.py
Lines 103 to 110 in 73a0669