Open WZRPW opened 6 years ago
@Iamthegeekdavid Hi,
Running several individual programs of Darknet.exe will be very costly due to the overhead of CPU resources.
I think multi-camera support will have the same cost as running several individual programs of Darknet.exe.
@AlexeyAB , wouldn't it save the memory resource with multiple-camera concurrently running in one process?
At least YOLO weight file will be shared among multi-cameras.
Nice topic, the same issue we've met during the project implementation
@Iamthegeekdavid @AlexeyAB I want to accomplish the same task. one of the solutions I think it works is that we can combine two images, for example from different cameras, into one and separate them with the results after detection. I'm trying to achieve this. On the other hand, I am not sure if it's useful to change the batch. Is it possible to get the results of two images once by setting the batch=2 ? https://github.com/AlexeyAB/darknet/blob/c2a8cc2ad3f4b31243cbf577440ee45bafcc7f92/src/demo.c#L143
@qunsorber @Iamthegeekdavid @dolphinking Batch processing during test isn't implemented yet.
You just can write your code for multi-camera detection by using this example: https://github.com/AlexeyAB/darknet/blob/master/src/yolo_console_dll.cpp
that uses darknet.dll/darknet.so
library, that has this API: https://github.com/AlexeyAB/darknet/blob/master/src/yolo_v2_class.hpp
For SO/DLL creation:
yolo_cpp_dll.sln
LIBSO=1
in the Makefile@qunsorber I anm doing the same thing with you. I wonder whether it is useful to combine two pictures into one. So, have you gotten the result?
@coolmatt1024 Yes, you can do like that, actually I think you can combine the four into one, and the limit is four.
hi there, it seems that Darknet was coded to run the object detection for one camera. I wonder if any suggestion could be provided to run the object detection in case of multiple cameras. Running several individual programs of Darknet.exe will be very costly due to the overhead of CPU resources. It may have to update the current Darknet code to allow the concurrent object detection for each camera. Thanks for all thoughts and discussions on this.
David