Please use the repo for my book, available here: https://github.com/shantnu/PyEng
webcam-face-detect's Introduction
webcam-face-detect's People
Forkers
uvicmakerlab amitshah andrei512 prabhjotsl khaidirh appscluster johancm stiers wibowo87 saifshili nagyistoce aerinkim goldenbucks doutdex rikitycrikt akfork kingel programmermattsrum talamantez why-not-sky robertoforlani aditya-chaudhary jaskaran94 hydex michaelrboyd pradhyu loae hirao-k hateif ctpuggle hazibii yuechengli chinnapun imclab aesmin sichaos kingluffyxx g104064208 dslwz2008 jinzhaozui-sky bluetulip89 a-goel nicktaporuk danielseetoh alexmorales26 regiedaquioag patriciasr92 lsahidin megmoreau jqsheng94 santiavenda2 dev8500 dabaxt01 rednuk sxhxc anatolyzimin mfcardenas cubesky programmin1 furetosan waco001 sociallyassistiverobotics vovanmozg ghalbi justin-stuck algorithmarchitects antonini navd cyrusndegwah akadata rabidaudio monishkapadia easonyi stefanomunarini rushidaoyhs tinovapram linghushaoxia kelvinkipsang ishrakhasin oscarmh emrys-merlin notalentgeek xiaoxwxw hunslater vik-y tobey123 mjr sweleck d-tux rshree2 akshayjh rameshbabuch arashrasoulzadeh roshanmadhushanka andrewcharlesjones alimiraftab ksaikiranr amwaleh udokmeci bashkirtsevichwebcam-face-detect's Issues
cv2 version
Please specify the version of cv2 you are using in the project
error open camera
[ WARN:0] global /io/opencv/modules/videoio/src/cap_v4l.cpp (887) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Unable to load camera.
Traceback (most recent call last):
File "webcam_cv3.py", line 23, in
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
cv2.error: OpenCV(4.2.0) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
IndexError: list of index out of range
IndexError: list of index out of range
Add a requirements.txt
This will help everyone in setting up the environment. Use pipreqs to do that.
CV_HAAR_SCALE_IMAGE compatibility
Command:
python webcam.py haarcascade_frontalface_default.xml
Output:
Traceback (most recent call last):
File "webcam.py", line 20, in
flags=cv2.CV_HAAR_SCALE_IMAGE
AttributeError: 'module' object has no attribute 'CV_HAAR_SCALE_IMAGE'
System:
Ubuntu 14.04 LTS
OpenCV 3.0
!_src.empty() in function 'cvtColor'
Hey,
Getting this error while using this code, so please check it out or give me an answer that how could I do correct it.
`error Traceback (most recent call last)
in
11 ret, frame = video_capture.read()
12
---> 13 gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
14
15 faces = faceCascade.detectMultiScale(
error: OpenCV(4.4.0) /tmp/pip-req-build-cg56sov1/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
`
Code optimisation required for CV3
Errors using cv3 version when using sudo
I am getting the following error when running the cv3 version as root i.e. by using sudo. But I sm not getting them when I am running them without sudo. What can be problem?
[ INFO:0] Initialize OpenCL runtime...
X Error: BadAccess (attempt to access private resource denied) 10
Extension: 130 (MIT-SHM)
Minor opcode: 1 (X_ShmAttach)
Resource id: 0x1b1
X Error: BadShmSeg (invalid shared segment parameter) 128
Extension: 130 (MIT-SHM)
Minor opcode: 5 (X_ShmCreatePixmap)
Resource id: 0x340000d
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x340000e
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x340000e
X Error: BadAccess (attempt to access private resource denied) 10
Extension: 130 (MIT-SHM)
Minor opcode: 1 (X_ShmAttach)
Resource id: 0x147
X Error: BadShmSeg (invalid shared segment parameter) 128
Extension: 130 (MIT-SHM)
Minor opcode: 5 (X_ShmCreatePixmap)
Resource id: 0x340000f
X Error: BadPixmap (invalid Pixmap parameter) 4
Major opcode: 54 (X_FreePixmap)
Resource id: 0x340000e
X Error: BadShmSeg (invalid shared segment parameter) 128
Extension: 130 (MIT-SHM)
Minor opcode: 2 (X_ShmDetach)
Resource id: 0x340000d
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x3400010
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x3400010
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x3400010
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x3400010
The last error is being repeated multiple times as shown.
code not working with opencv 3
The code of webcam.py is not working when used with opencv3
The CV_HAAR_SCALE_IMAGE would return the error upon compilation.
Cv module is outdated
The correct module name for image scale is cv2.CASCADE_IMAGE_SCALE
webcam_cv3 work well, continue to develop it(recognition).
detect-modify-recognition
that way , hope to continue to develop it(recognition)
I have found that : AttributeError: 'module' object has no attribute 'cv'
AttributeError: 'module' object has no attribute 'cv'
What should i do ?
what dependencies do i have to install ?
Can't detect
i can execute it well but i can't detect my face. there is no rectangle on the video. Do you have any idea?
MAC OX
會閃退
執行webcam_cv3.py 的時候主機會閃退後並重新開機
請問是甚麼問題??
Attribute Error in webcam.py
file webcam.py when run with cv2, there is an attribute error.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.