Giter Club home page Giter Club logo

opencv-dnn-demo's People

Contributors

fabito avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

opencv-dnn-demo's Issues

(-215:Assertion failed) !ssize.empty() in function 'resize'

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

How to implement multi-processing ?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.