Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import and run problems #21

Open
MezaaX opened this issue May 26, 2021 · 2 comments
Open

import and run problems #21

MezaaX opened this issue May 26, 2021 · 2 comments

Comments

@MezaaX
Copy link

MezaaX commented May 26, 2021

""""""
[INFO] Start webcam
Traceback (most recent call last):
File "C:\Users\Windows 10\Desktop\Heart-rate-measurement-using-camera-master\GUI.py", line 273, in run
self.main_loop()
File "C:\Users\Windows 10\Desktop\Heart-rate-measurement-using-camera-master\GUI.py", line 222, in main_loop
self.process.run()
File "C:\Users\Windows 10\Desktop\Heart-rate-measurement-using-camera-master\process.py", line 39, in run
frame, face_frame, ROI1, ROI2, status, mask = self.fd.face_detect(self.frame_in)
File "C:\Users\Windows 10\Desktop\Heart-rate-measurement-using-camera-master\face_detection.py", line 63, in face_detect
face_frame = self.fa.align(frame,gray,rects[0]) # align face
File "C:\Users\Windows 10\anaconda3\envs\envname\lib\site-packages\imutils\face_utils\facealigner.py", line 68, in align
M = cv2.getRotationMatrix2D(eyesCenter, angle, scale)
TypeError: Can't parse 'center'. Sequence item with index 0 has a wrong type
[ WARN:0] global C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-m8us58q4\opencv\modules\videoio\src\cap_msmf.cpp (438) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback
[INFO] Stop webcam
"""""
when i try to press start to start capturing video this is happened....please can u tell me why and how can i fix this

@TheOnlylight
Copy link

That's an error caused by imutils, change it to int in an explicit manner, and its all done

@ShitBro369
Copy link

what? what is imutils?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants