- Notifications
You must be signed in to change notification settings - Fork14
Start using OpenCV in your JVM project in just 1 line, no separate compiling, installing OpenCV, or fussing with your system required
License
bytedeco/sbt-javacv
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Makes it easy to start playing around with OpenCV (via JavaCV) in Scala without having to compileor install OpenCV on your own.
Configures the following dependencies in your project:
- JavaCV
- JavaCPP
- JavaCPP Presets
In yourproject/plugins.sbt
:
addSbtPlugin("org.bytedeco"%"sbt-javacv"% version)
See the Maven badge for latest version.
By default, this plugin will download the appropriate binaries for the platform of the computer currentlyrunning SBT, you can modify this by setting it to another platform (for example, if you want to compile JARs to be runon other platforms)
javaCppPlatform:="android-arm"
For more details, see theSBT-JavaCPP plugin
Also, this plugin only pulls inopencv
JavaCPP preset by default. If you wish to add more, use thejavaCppPresetLibs
settings key and use++=
to append more (if you do not use append, you will end up wiping out the ones this plugin appends by default):
javaCppPresetLibs++=Seq("ffmpeg"->"3.4.1")
As of JavaCPP 1.4videoinput
is only available for windows, so it's not included by default since sbt-javacv 1.16.If you need it, you can add it just like any other JavaCPP preset:
javaCppPresetLibs++=Seq("videoinput"->"0.200")
About
Start using OpenCV in your JVM project in just 1 line, no separate compiling, installing OpenCV, or fussing with your system required