Comments (8)
If someone can come up with working fix for this, I'd be happy to integrate it :) Otherwise it will take a while until I can find some time to do this work on Windows.
from opencv.
My project can probably spend some time on a PR for this since it's really annoying for our users. Packaging binaries for Windows/Linux/Mac less so.
from opencv.
That would be awesome! I am planning to work on new binaries soon - just swamped with a cross country move right now and don't have time.
from opencv.
I just did that two weeks ago. I understand. I will check into OpenCV 3.1 stability too.
from opencv.
I've done a little bit of experimenting here and using a custom classloader that will get garbage collected, as the other repo issue suggests, just isn't going to be reliable. You can't guarantee when the garbage collector will actually run even with System.gc
or how extensive the collection will be. In fact, System.gc
, which is the only real illusion of control over garbage collection, doesn't even have to be implemented by a JVM.
I am going to propose a formalization of a solution I use in my project that uses this OpenCV package:
- On Windows, prepend the folder created to hold the OpenCV binaries with
opencv_
so that it's easy to find. - On Windows, do not try to delete the folder on shutdown.
- On Windows, on startup look for folders that start with opencv_ and try to delete them otherwise the drive fills up with temporary OpenCV instances. If the delete fails, log it but move on without an exception. Failure to delete could simply mean another application on the same system is using the library.
from opencv.
Note: The JNA loader does something similar, but takes it a step further by adding a marker indicating which file should be deleted. I like this method and we should adopt it: https://github.com/java-native-access/jna/blob/master/src/com/sun/jna/Native.java#L1192
from opencv.
hi, just looked through the project and found an commit addressing the isse described here and I in openpnp/#699:
4697860#diff-cc2450ddb977c98e67b0eaa70c4aaa92R372
the commit was merged but I can't find the code in the local copy my eclipse is using. why is this?
this error prevents the junit-tests on windows to fail and abort early ...
from opencv.
Believe this was fixed in #9. If still experiencing please reopen.
from opencv.
Related Issues (20)
- Should the License be Changed to Apache v2 for OpenCV version 4.7?
- videoCapture.isOpened() always is false! HOT 4
- Opencv 4.8.1 and BarcodeDetection
- libwebp cve-2023-4863 HOT 1
- Memory Leak with some functions HOT 2
- Java 11 requirement HOT 1
- OpenCV.loadLocally() init error HOT 2
- Caused by: java.lang.UnsatisfiedLinkError: /tmp/opencv_openpnp5364447482759473585/nu/pattern/opencv/linux/x86_64/libopencv_java460.so: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /tmp/opencv_openpnp5364447482759473585/nu/pattern/opencv/linux/x86_64/libopencv_java460.so) HOT 2
- platform specific binaries/artifacts HOT 1
- Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java490 in java.library.path HOT 3
- Long delay when opening camera 0
- update with 4.10.0 HOT 1
- Impossible to load library on Mac OS X HOT 1
- 4.7.0 Version HOT 1
- BarcodeDetector HOT 4
- Extra modules HOT 1
- Class CaptureDelegate is implemented in both HOT 2
- version 4.8.0
- Project runs on M2 Mac but fails on x86 Linux HOT 1
- Setting VideoCapture to certain square resolutions results in garbled output
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencv.