-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Im migrating my java application from 1.8 to 11 Im getting Import Errors. #1287
Comments
Use version 1.5.1 everywhere. |
Thank you I have correct the version of my dependencies to 1.5.1. I was using very old version of JavaCV before and found out that opencv imports was coming from javacpp packge which need to be also correct, which resolve most of my error. JavaCV Java2DFrameConverter class when converting JavaCV frame to BufferedImage is giving me error
I have used BuferedImage other places in app it only giving me error on converter.
Any Ideas? Also openCV is also showing error
|
You'll need Java 2D to be able to use Java2DFrameConverter. JavaCV doesn't depend on the "opencv" module; you can remove it. |
Thank you for Java2D hint i will check it. |
JavaCV bundles all the classes from OpenCV, just use those. |
I have 7 child modules which is using openCV, and one module (video-viewer) is using both javacv which use open cv and ffmpeg. video-viewer is using method of other child modules and the input of those method have openCV MAT image. it will be big change if i change all the 7 modules to JavaCV opencv. do you have a work around for that? I will be Thank you |
Just exclude the "opencv" module in your app, that will work fine. |
I have exclude the openCV modules in the VIdeo-Viewer which is giving me error on JavaCV version of OpenCV code in video-viewer. There are 5-8 classes which i nned to change, which is less then the other work. I think there is no other work around that these both can can work together. |
Thank you for support. Let me know if i can do something for you. |
You shouldn't need to change any classes. What is missing from the presets? |
I have excluded the openCV like that
So it start giving me error on
After excluding openCV conflict errror is resolved but import error start coming, so i guess i have to port the code form bytedeco.opencv to openCV version? Im doing something wrong? |
That excludes "org.bytedeco.opencv". JavaCV won't be able to work without it. You need to exclude the "opencv" one. |
Thank you I get it now, it use the openCV version of JavaCV. My version was older, so few error comes after excluding which i resolve now. Thank you for your support. Again let me know i can help you. |
All Error are resolved in the code , when i run the app it give me
I have deleted the tesserac folder and it downloaded again, but still got the same issue, Im not using this library in my app. |
That's a known issue fixed in 1.5.2-SNAPSHOT: bytedeco/javacpp-presets#772 |
It solve the above issue, but get another error.
`
|
Like I said, you'll need to exclude that "opencv" module! |
I have checked the dependency Hierarchy, search pom, check modular and classpath there is no opencv dependency. |
It's coming from somewhere, you'll need to find where. |
Yes you were right, the child module class path had the opencv (manually added), which is added to our video app class path at runtime. It fixed the above problem but it say it cannot find the opencv module required by child projects.
image.group.mi6 is a child project also have module.info file which has require opencv in it, which i exclude in the main app. |
I guess the only way around that is by not using the module path... |
I'm using eclipse and create module.info file int which added automatically the exports and requires
requires opencv;
requires org.bytedeco.javacpp;
requires org.bytedeco.javacv;
requires org.bytedeco.opencv;
It is giving me the error
The package org.bytedeco.javacpp is accessible from more than one module: ffmpeg, opencv, org.bytedeco.javacpp
I was also using OpenCV jar which is also giving me error.
The package org.opencv.core is accessible from more than one module: opencv, org.bytedeco.opencv
In my pom i have added
Thank you
The text was updated successfully, but these errors were encountered: