Face-Detection-with-OpenCV | Face Detection in Python using OpenCV | Computer Vision library
kandi X-RAY | Face-Detection-with-OpenCV Summary
kandi X-RAY | Face-Detection-with-OpenCV Summary
Face Detection in Python using OpenCV
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Face-Detection-with-OpenCV
Face-Detection-with-OpenCV Key Features
Face-Detection-with-OpenCV Examples and Code Snippets
Community Discussions
Trending Discussions on Face-Detection-with-OpenCV
QUESTION
I need to use face detection to finish my homework and then I searched on the Internet and I think that using a pre-trained deep learning face detector model with OpenCV's DNN module is easy and good, it works well. Where I learnt it is here: https://www.pyimagesearch.com/2018/02/26/face-detection-with-opencv-and-deep-learning/ , but I am really confused about the 4D array returned by net.forward():
...ANSWER
Answered 2021-May-02 at 15:053rd dimension helps you iterate over predictions and
in the 4th dimension, there are actual results
class_lable = int(inference_results[0, 0, i,1])
--> gives one hot encoded class label for ith box
conf = inference_results[0, 0, i, 2]
--> gives confidence of ith box prediction
TopLeftX,TopLeftY, BottomRightX, BottomRightY = inference_results[0, 0, i, 3:7]
-->gives
co-ordinates bounding boxes for resized small image
and 2nd dimension is used when the predictions are made in more than one stages, for example in YOLO the predictions are done at 3 different layers.
you can iterate over these predictions using 2nd dimension like [:,i,:,:]
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Face-Detection-with-OpenCV
You can use Face-Detection-with-OpenCV like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page