-
Notifications
You must be signed in to change notification settings - Fork 751
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
Android specific opencv helper #12
Comments
Would you have more concrete proposals? There is no such thing as a preprocessor in Java. |
The simplest way is to add to the build system either the awt_helper or the On Wed, Jul 30, 2014 at 3:25 PM, Samuel Audet [email protected]
|
Could you explain more concretely what is it you are proposing? Would we have like opencv-common.jar and mutually exclusive opencv-awt_helper.jar and opencv-android_helper.jar? How would that work with Maven? |
Something along the lines of
and
|
I meant, what are we going to do with the generated artifacts on the repository? I guess we could create submodules, so what directory structure do you propose to put the |
probably we can have a pattern like javacpp-presets/{library}/resource/{platform}/code |
Resources cannot be Java code. That must go in the Anyway, creating submodules just for that isn't worth the trouble. I should have created that as a utility class from the start. This way, in Java SE we use the AWT class, and not on Android, so we don't get warnings or errors. Tell you what, if you come up with equivalent code for Android, we'll break backward compatibility and put the AWT code in its own utility class, because it's a feature people have been wanting for years: |
I do agree! |
…meConverter` class of JavaCV (issue #12)
Hi, it's been a while, but I've finally figured out something nice. Let me know what you think of the latest changes in these commits: 0574e66 |
I had been horribly busy as well =/ I'll try to check if the people using JavaCV can update to this version and try. Thanks a lot! |
Changes included in the -0.11 release. Check out the details here: http://bytedeco.org/news/2015/04/04/javacv-frame-converters/ Let me know when you have some free time to work on something, thanks! |
The current code works in android but since some optional parts use awt and that triggers lots of misleading warnings and the debugger is set on hold for each awt import.
Probably would be possible either replace the helper with a version w/out the awt code or replace such code with android-specific one (Rect vs Rectangle and such).
The text was updated successfully, but these errors were encountered: