-
Notifications
You must be signed in to change notification settings - Fork 58
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
dtype not recognized/unsupported #74
Comments
What is the dtype of |
dtype of data: dtype of bkg: |
You should see something like |
Oh. I see what happened. |
Regardless of the method you use to read the data, you need to get it in the form of a 2-d numpy array of floats or ints. This should be possible with opencv, but I'm not that familiar with the library. |
Alright. I was able to get the code working. Whats happening is that since I am reading jpeg files, numpy array is uint8. Converting to float64 fixed the issue. Code I used:
|
I am following the example in tutorial.
I am getting a dtype not recognized/unsupported exception at
when I execute
What am I doing wrong?
The text was updated successfully, but these errors were encountered: