AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.73k stars 7.96k forks source link

How to send YOLO Object detection result to another program (C# GUI) on the same computer? #8237

Open PIjarihd opened 2 years ago

PIjarihd commented 2 years ago

I have successfully implemented and tested YOLOv4 for the custom dataset. The object detection using IPCamera is working fine. Now, I have to send the object detection result to the C# GUI running on the same computer. However, I could not figure out the way. I am very new in programming. I studied some articles about changing the object detection results to json format. But I am afraid I am confused about the transmission part. How can I send the json format result to the C# GUI? do i have to use Socket programming? I need to this in real time. Please guide me step-wise. Thank you in advance.

StefanCiobanu1989 commented 2 years ago

Go for the Server > Client approach. The "detector" application the one in which you run the model and get the results is the server that streams data over TCP/UPD, you create another application that will act as the client which connect to the server and starts receiving data like coordinates of bounding boxes and their width/height.

stephanecharette commented 2 years ago

Also see: https://www.ccoderun.ca/darkhelp/api/Server.html