darkflow icon indicating copy to clipboard operation
darkflow copied to clipboard

Parsing network output in C++

Open luketg8 opened this issue 9 years ago • 5 comments

This is a great repository and has performed well for me with the Python API. I am however also interested in using this with C++ and I have managed to load my image and feed it to the network, however I was wondering if anybody had already taken the time to parse the output received to actually obtain the bounding boxes? (I am using a protobuf file that I generated from the tiny-yolo.cfg and standard weights)

luketg8 avatar Apr 13 '17 15:04 luketg8

Just an idea, you might be able to use some of the existing C code (from the original darknet repository) to do your post processing. See: https://github.com/pjreddie/darknet/blob/e610c7de9aa90dbaa6a4ec14189ac45c8058a495/src/detection_layer.c

abagshaw avatar Apr 13 '17 18:04 abagshaw

Or you can look at cython implementation in this repo https://github.com/thtrieu/darkflow/tree/master/darkflow/cython_utils

thtrieu avatar May 19 '17 06:05 thtrieu

Thank you! I will have a look at that today, I haven't had much experience with calling Cython from C++ before but I'll definitely look into it today. Thanks again!

luketg8 avatar May 19 '17 06:05 luketg8

@luketg8 Did you ever parse the output from this?

mrjc1400 avatar Feb 05 '18 20:02 mrjc1400

@luketg8 I know this is pretty old but did you manage to parse the output and how was the output shape in c++ I have the same problem and was thinking of following cython implementation

abulazm22 avatar Sep 22 '18 10:09 abulazm22