-
Notifications
You must be signed in to change notification settings - Fork 55
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
[BUG] I/System.out(11892): OpenCV Error: java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Integer #18
Comments
Hey @marcoramosw You're passing the size variable as a double... You'll have to pass an integer instead. |
Hey, @AdityaMulgundkar , thank you for the reply but that would be a simple fix that I indeed tried already, If I pass as integer: the Function's Parameter outputSize is a double and you can't pass an int:
but if you try to use double you get the already mentioned error:
|
Hey @marcoramosw Sorry for making that assumption... Many people miss out on such stuff and create issues, hence the quick response from my end. I just tried to replicate the error, but couldn't on my end. I think it might be because of casting and autoboxing in java at the same time (at the platform channel level), so I have changed the cast for this one function (warpPerspectiveTransform) and pushed this new version to another branch at https://github.com/AdityaMulgundkar/flutter_opencv/tree/java-cast-test Could you please help me out by testing this? In case it works out, I can replace all such casts. You can simply change the version of opencv you're using in your pubspec.yaml as such:
Awaiting your response. |
Thank you for answering, I will test it as soon as possible!
Aditya Mulgundkar <[email protected]> escreveu no dia segunda,
14/12/2020 à(s) 18:16:
… Reopened #18
<#18>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APILA5HZ5MP77SCZRRD5X6DSUZI6RANCNFSM4UW3U6KA>
.
|
still unable to get it to work :( unfortunetly I am a beginner in dart and flutter and can't help you resolve it, here is the error message:
|
hey, any new ideas regarding this issue? |
Did it get solved |
Describe the bug
the following error occurs when using the warpPerspectiveTransform function
I/System.out(11892): OpenCV Error: java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Integer
To Reproduce
The text was updated successfully, but these errors were encountered: