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

Hello , I have some problem.... can u help me? #5

Closed
Rabbitbeer opened this issue Sep 18, 2019 · 1 comment
Closed

Hello , I have some problem.... can u help me? #5

Rabbitbeer opened this issue Sep 18, 2019 · 1 comment

Comments

@Rabbitbeer
Copy link

frame = cv2.cvtColor(img_np, cv2.COLOR_BGR2RGB)
TypeError: Expected Ptrcv::UMat for argument '%s'

this error

how can i fix?

@YECHEZ
Copy link
Owner

YECHEZ commented Sep 18, 2019

frame = cv2.cvtColor(img_np, cv2.COLOR_BGR2RGB)
TypeError: Expected Ptrcv::UMat for argument '%s'

this error

how can i fix?

  1. Try to debug what the img_np variable returns. I think for some reason the variable returns None
  2. Try to replace:
    frame = cv2.cvtColor(img_np, cv2.COLOR_BGR2RGB)
    to:
    frame = cv2.cvtColor(cv2.UMat(img_np), cv2.COLOR_BGR2RGB)

@YECHEZ YECHEZ pinned this issue Oct 16, 2019
@YECHEZ YECHEZ closed this as completed Oct 16, 2019
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

2 participants