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

TypeError: Expected Ptr<cv::UMat> for argument 'M' #4

Open
airgonawt opened this issue Jun 22, 2020 · 0 comments
Open

TypeError: Expected Ptr<cv::UMat> for argument 'M' #4

airgonawt opened this issue Jun 22, 2020 · 0 comments

Comments

@airgonawt
Copy link

Dear George,

Thank you for sharing your face average project!

When trying to run:

python ./run.py -i "datasets/us-mp/president" -w -wt 200

I encountered the following error:

Namespace(ext=None, height=400, input='datasets/us-mp/president', noCaching=False, noWarps=False, output=None, template=None, width=300, window=True, windowTime=200) Faces detected: 1 in ...-regan.jpg: 100%|██████████████████████████████| 6/6 [00:00<00:00, 1238.66it/s] Loading: ...ident\ronald-regan.jpg: 100%|████████████████████████████████| 7/7 [00:00<00:00, 22.77it/s] Warping: ...sident\barak-obama.jpg: 0%| | 0/7 [00:01<?, ?it/s] Traceback (most recent call last): File "./run.py", line 27, in <module> Averager(width=options.width, height=options.height).run(path=options.input, ext=ext, window=options.window, showWarps=not options.noWarps, windowTime=options.windowTime, useCaching=not options.noCaching, template=options.template).save(name=options.output) File "./src\faceAverage.py", line 103, in run img = cv2.warpAffine(images[i], tform, (w,h)) TypeError: Expected Ptr<cv::UMat> for argument 'M'

I'm not entirely sure what's causing this to happen - anyways, regards!

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

1 participant