开源软件名称(OpenSource Name):PatternConsulting/opencv开源软件地址(OpenSource Url):https://github.com/PatternConsulting/opencv开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):Pattern)OpenCV 2.4.9 (packaged byOpenCV Java bindings packaged with native libraries, seamlessly delivered as a turn-key Maven dependency. Deprecation NoticeDue to time constraints, this package is not actively maintained. As of December 29, 2015, it's strongly recommended users migrate to OpenPnP's excellent fork of this project, generously and regularly maintained by Jason von Nieda. UsageProjectPattern's OpenCV package is added to your project as any other dependency. Maven<project>
<!-- ... -->
<dependencies>
<!-- ... -->
<dependency>
<groupId>nu.pattern</groupId>
<artifactId>opencv</artifactId>
<version>2.4.9-7</version>
</dependency>
<!-- ... -->
</dependencies>
<!-- ... -->
</project> SBT// ...
libraryDependencies += "nu.pattern" % "opencv" % "2.4.9-7"
// ... APITypically, using the upstream OpenCV Java bindings involves loading the native library as follows: static {
System.loadLibrary(org.opencv.core.Core.NATIVE_LIBRARY_NAME);
} Fortunately, this is unchanged except for one caveat. To use the native libraries included with this package, first call This call will—exactly once per class loader—first attempt to load from the system-wide installation (exactly as if This approach keeps most clients decoupled from Pattern's package and loader. As long as this is done sufficiently early in execution, any library using the OpenCV Java bindings can use the usual load call as documented by the OpenCV project. There are, however, cases where Java class loaders are frequently changing (e.g., application servers, SBT projects, Scala worksheets), and spurious attempts to load the native library will result in JNI errors. As a partial work-around, this package offers an alternative API, It's recommended developers using any JNI library read further:
DebuggingJava logging is used to produce log messages from RationaleDevelopers wishing to use the Java API for OpenCV would typically go through the process of building the project, and building it for each platform they wished to support (e.g., 32-bit Linux, OS X). This project provides those binaries for inclusion as a typical dependency in Maven, Ivy, and SBT projects. Apart from testing, this package deliberately specifies no external dependencies. It does, however, make use of modern Java APIs (such as Java NIO). ContributingProducing native binaries is the most cumbersome process in maintaining this package. If you can contribute binaries for the current version, please make a pull request including the build artifacts and any platform definitions in SupportThe following platforms are supported by this package:
If you can help create binaries for additional platforms, please see notes under Contributing. CreditsThis package is maintained by Michael Ahlers. Acknowledgements
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论