CV Education for the 2018 season
OpenCV needs to be installed at lib/opencv-3.2.0
.
On Linux, you can install OpenCV with the
install-opencv-unix.sh
script. There are more detailed
instructions on this in the README of
github.com/Team694/stuyvision-lib.
Once CV is setup, run make
to compile and then make run
to run the project.
To set up on Windows, see windows-setup.md
for instructions.
-
ReadTheDocs tutorials for OpenCV with Java (and GUIs with JavaFX).
-
Official OpenCV 3.1.0 JavaDocs. (There are no JavaDocs for OpenCV 3.2.0.)
-
Official OpenCV 3.2.0 documentation. This has much more detail than the JavaDocs, but is intended for those using OpenCV with C++. There are no examples in Java (all are C/C++).
More resources here, in stuyvision-lib.
If you're working on your own laptop and you have an installation of OpenCV 3.2.0 elsewhere on your laptop, you don't need to install it again. Instead, create a symbolic link with this command:
$ ln -s /path/to/OpenCV-3.2.0/installation lib/opencv-3.2.0
You may also do the same with your jfxrt.jar
(which should be installed at /usr/lib/jvm/default-java/jre/lib/ext/jfxrt.jar
if you are running Ubuntu.)
$ ln -s /path/to/jfxrt.jar lib/jfxrt.jar
To develop on the desktops, log in to either a Guest session or your own account, then clone this repo and set up your environment:
$ git clone https://github.com/Team694/cv-edu-2018
$ cd cv-edu-2018
$ source setup-workstation.sh
As usual, use make
to build:
$ make
# code compiles
$ make run
# code runs. Ctrl-C to interrupt (like force quit)
If you encounter an error while running make run
similar to the one below:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /path/to/cv-edu-2018/lib/opencv-3.2.0/build/lib/libopencv_java300.so: libopencv_photo.so.3.0: cannot open shared object file: No such file or directory
you may need to run the command:
$ export LD_LIBRARY_PATH=/path/to/cv-edu-2018/lib/opencv-3.2.0/build/lib/
Documentation written by Wilson for relevant StuyVision methods can be found here.
Documentation written by Wilson for relevant OpenCV functions can be found here.
The links to the lessons are here:
These lessons may be done on your own time, but you can always contact Helen on Slack if you need help!