AlexeyAB / darknet

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

Counting objects? #2240

Open dascar5 opened 5 years ago

dascar5 commented 5 years ago

Any way for me to count objects present in the stream? The feed will be pointed at a parking lot, so I really only need a number of cars present in the frame. Is that doable? Thanks.

BahaaMansour commented 5 years ago

yes , 1.Compile yolo_console_dll.sln with release and x64 and use this code yolo_console_dll.exe data/***.names cfg/***.cfg ***.weights ***.mp4 2.when you finish compile yolo_console_dll.sln you will find the .exe version on x64

BahaaMansour commented 5 years ago

yolo_console_dll.exe numbers the objects automatically.

dascar5 commented 5 years ago

yes , 1.Compile yolo_console_dll.sln with release and x64 and use this code yolo_console_dll.exe data/***.names cfg/***.cfg ***.weights ***.mp4 2.when you finish compile yolo_console_dll.sln you will find the .exe version on x64

Stupid question, but I get this fatal error C1083: Cannot open include file: 'opencv2/opencv.hpp': No such file or directory Which is weird, cuz I'm pretty sure I had to use opencv for darknet stuff before and it compiled just fine.

dascar5 commented 5 years ago

I even rewrote that part to match my location, so it really confuses me...

#include <C:/opencv_3.0/opencv/build/include/opencv2/opencv.hpp>            // C++
#include "C:/opencv_3.0/opencv/build/include/opencv2/core/version.hpp"
#ifndef CV_VERSION_EPOCH
#include "C:/opencv_3.0/opencv/build/include/opencv2/videoio/videoio.hpp"
bit-scientist commented 5 years ago

Hi @dascar5, @BahaaMansour any updates on that C1083: Cannot open include file: 'opencv2/opencv.hpp': No such file or directory error. I am stuck here too.

bit-scientist commented 5 years ago

(right click on project) -> properties -> C/C++ -> General -> Additional include Directories, doing



helped me

bit-scientist commented 5 years ago

@BahaaMansour Hi, Could you give your advice on this. I'd very much appreciate it.

BahaaMansour commented 5 years ago

Could you share the c++ code?

Get Outlook for iOShttps://aka.ms/o0ukef


From: bit-scientist notifications@github.com Sent: Monday, February 11, 2019 3:32:29 PM To: AlexeyAB/darknet Cc: BahaaMansour; Mention Subject: Re: [AlexeyAB/darknet] Counting objects? (#2240)

@BahaaMansourhttps://github.com/BahaaMansour Hi, Could you give your advice on this.https://github.com/AlexeyAB/darknet/issues/2317 I'd very much appreciate it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/AlexeyAB/darknet/issues/2240#issuecomment-462206018, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AqLemWV4_PR4qLt4eXySMk5_801dsuEwks5vMNY9gaJpZM4aFNA1.

bit-scientist commented 5 years ago

@BahaaMansour It is nothing but _yolo_consoledll.sln itself which you can find in darknet\build\darknet. I didn't change anything in it as I don't know how to program in c++. (Let's move to the issue itself)