the-house-of-black-and-white / opencv-dnn-demo Goto Github PK
View Code? Open in Web Editor NEWRealtime Face detection demo using YOLO v2 and OpenCV DNN module
License: MIT License
Realtime Face detection demo using YOLO v2 and OpenCV DNN module
License: MIT License
Hi Fabito,
Thank you for your code. I am trying to run webcam.py file. But, I get the following error
**Traceback (most recent call last):
File "/usr/local/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/local/lib/python3.6/multiprocessing/process.py", line 93, in run
self._target(*self._args, *self._kwargs)
File "/usr/local/lib/python3.6/multiprocessing/pool.py", line 103, in worker
initializer(initargs)
File "mainWebCam.py", line 70, in worker
frm = detect_objects(frm, net, min_confidence)
File "mainWebCam.py", line 36, in detect_objects
blob = cv.dnn.blobFromImage(frame, inScaleFactor, (inWidth, inHeight), (0, 0, 0), True, False)
cv2.error: OpenCV(3.4.2) /io/opencv/modules/imgproc/src/resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function 'resize'
output of pip list
$ pip list
Package Version
imutils 0.4.6
mtcnn 0.0.7
numpy 1.14.5
opencv-contrib-python 3.4.2.16
pip 18.0
setuptools 28.8.0
utils 0.9.0
Can you please help?
Regards
Hossain
Hi,
I tried to run face detection using multi processing I am getting below error
Traceback (most recent call last): File "extract_face_MP.py", line 66, in main() File "extract_face_MP.py", line 56, in main pool.map(detect_face_yolo, image_paths) File "C:\Anaconda3\lib\multiprocessing\pool.py", line 260, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "C:\Anaconda3\lib\multiprocessing\pool.py", line 608, in get raise self._value File "C:\Anaconda3\lib\multiprocessing\pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "C:\Anaconda3\lib\multiprocessing\pool.py", line 44, in mapstar return list(map(*args)) File "extract_face_MP.py", line 40, in detect_face_yolo faces = yolo_face_detector.detect(img,draw_faces=False,include_score=True) File "C:\Anaconda3\lib\site-packages\hof\face_detectors.py", line 223, in detect detections = self.net.forward() cv2.error: OpenCV(3.4.3) C:\projects\opencv-python\opencv\modules\dnn\src\dnn.cpp:686: error: (-215:Assertion failed) mapIt != reuseMap.end() in function 'cv::dnn::experimental_dnn_34_v7::BlobManager::releaseReference'
What was the issue sorry I new to CV and Yolo
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.