Ta hen chi yi.
We use OpenCV pretrained model to detect faces and draw the circles. 😆
Video source: https://youtu.be/6WImPscMmfw
-
Compile the source code
(For Linux) g++ -I<opencv include dir> main.cpp -o henchiyi.exe -L<opencv lib dir> -lopencv_core -lopencv_imgcodecs -lopencv_imgproc -lopencv_highgui -lopencv_videoio -lopencv_dnn -lopencv_face (For Windows) g++ -I<opencv include dir> main.cpp -o henchiyi.exe -L<opencv lib dir> -lopencv_coreXXX -lopencv_imgcodecsXXX -lopencv_imgprocXXX -lopencv_highguiXXX -lopencv_videoioXXX -lopencv_dnnXXX -lopencv_faceXXX (XXX is the version number of your OpenCV)
-
Run the program
./henciyi.exe // use webcam ./henciyi.exe <your video>.mp4 // use video ./henciyi.exe <your video>.mp4.mp4 10 310 // use video and export processed frames (last two arguments are the frame to start and end respectively)
-
Ta hen chi YEEEEEEEEEEEE
Video source: https://youtu.be/GcdwBoqW6TU
Video source: https://youtu.be/ZVKVXzSGxC8