pjreddie / darknet

Convolutional Neural Networks
http://pjreddie.com/darknet/
Other
25.54k stars 21.33k forks source link

Running `darknet detector demo` and process output by another application #848

Open ido-ran opened 6 years ago

ido-ran commented 6 years ago

I'm trying to run darknet detector demo using another application and I want to process the output of which class detected but when I run darknet detector demo (..) > test.txt I do not see the detection output only part of the setup.

Is there a switch I need to use to get the output to print?

ido-ran commented 6 years ago

I've run it now with simple node app and it looks like I do get the results in stdout but it is buffered so it takes few seconds for a batch of results to get back. I guess there is no way around adding fflush(stdout); or similar thing to flush the buffer, right?