FlyingDutch
Advanced Member level 1

- Joined
- Dec 16, 2017
- Messages
- 431
- Helped
- 45
- Reputation
- 92
- Reaction score
- 52
- Trophy points
- 28
- Location
- Bydgoszcz - Poland
- Activity points
- 4,571
Hello,
I am trying to write application (using OpenCV library) in C++ for detecting in room human bodies (in many various positions). I am using "openCV" version 4.5.1 on Windows 10 OS with USB camera attached to my laptop. As a compiler (IDE) I am using "Visual Studio 2019" (which is working fine). As a target hardware (for detection) I am going to use "Raspberry Pi Compute Module 4" - see links:
https://www.raspberrypi.org/products/compute-module-4/?variant=raspberry-pi-cm4001000
https://datasheets.raspberrypi.org/cm4/cm4-datasheet.pdf
with a MIPI Camera attached to it.
First I tried to write a face detection program using "Haar cascade classifier". I used pre-trained classifiers from "OpenCV" folder: "\opencv\build\etc\haarcascades". Face detection is working efficiently - I test it on few video files downloaded from "YouTube". Then I tried to detect a bodies with this method ("Haar cascade classifier") and pre-trained classifiers from "OpenCV" folder: "\opencv\build\etc\haarcascades". I used for detection such classifiers:
1) haarcascade_fullbody.xml
2) haarcascade_upperbody.xml
3) haarcascade_lowerbody.xml
Results in detection human bodies are disappointing. So I started to wonder if "Cascade Harr Classifier" is proper method for detecting human bodies. Maybe someone could to point me better method for this task - I mean different algorithm/method. I would care the algorithm would be implemented using OpenCV library (I prefer C++, but Python is also OK).
I have also second question related to comparison "OpenCV" and "Keras" (together with Tensorflow). Has somebody an exprierience and can compare a results achieved in full human body detection using OpenCV or Keras framework.
Thanks in advance and Regards
I am trying to write application (using OpenCV library) in C++ for detecting in room human bodies (in many various positions). I am using "openCV" version 4.5.1 on Windows 10 OS with USB camera attached to my laptop. As a compiler (IDE) I am using "Visual Studio 2019" (which is working fine). As a target hardware (for detection) I am going to use "Raspberry Pi Compute Module 4" - see links:
https://www.raspberrypi.org/products/compute-module-4/?variant=raspberry-pi-cm4001000
https://datasheets.raspberrypi.org/cm4/cm4-datasheet.pdf
with a MIPI Camera attached to it.
First I tried to write a face detection program using "Haar cascade classifier". I used pre-trained classifiers from "OpenCV" folder: "\opencv\build\etc\haarcascades". Face detection is working efficiently - I test it on few video files downloaded from "YouTube". Then I tried to detect a bodies with this method ("Haar cascade classifier") and pre-trained classifiers from "OpenCV" folder: "\opencv\build\etc\haarcascades". I used for detection such classifiers:
1) haarcascade_fullbody.xml
2) haarcascade_upperbody.xml
3) haarcascade_lowerbody.xml
Results in detection human bodies are disappointing. So I started to wonder if "Cascade Harr Classifier" is proper method for detecting human bodies. Maybe someone could to point me better method for this task - I mean different algorithm/method. I would care the algorithm would be implemented using OpenCV library (I prefer C++, but Python is also OK).
I have also second question related to comparison "OpenCV" and "Keras" (together with Tensorflow). Has somebody an exprierience and can compare a results achieved in full human body detection using OpenCV or Keras framework.
Thanks in advance and Regards