A Java application, that turns a webcam into a VisiCut compatible network camera with marker detection and perspective correction. Uses OpenCV through JavaCV
- download JavaCV: On Linux, simply run ./lib/fetch-javacv.sh on the command line. On Windows, read the instructions in that file (Download and unpack ZIP).
- Make sure you have apache-ant, java jdk >=6 and openCv installed (see below for OS-specific instructions)
- run "ant" on the command line
- run java -jar dist/VisiCam.jar on the Command Line or double click in finder/explorer
If you use it on ARM, you need to replace the javacv.jar in the dist/lib folder with the javacv.jar from the lib/javacv-pi folder. It works on ArchLinux (opencv can be installed through pacman). But is VERY SLOW. Any help is appreciated.
TODO: currently broken?
-
Download and install Microsoft Visual C++ 2010 Redistributable Package (x86) http://www.microsoft.com/download/en/details.aspx?id=5555 or Microsoft Visual C++ 2010 Redistributable Package (x64) http://www.microsoft.com/download/en/details.aspx?id=14632
-
Download OpenCV from http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.4.3/OpenCV-2.4.3.exe/download
-
Add either the build/vc10/bin folder to PATH or copy all the dlls to the VisiCam folder
Install the required dependencies with: sudo apt-get install openjdk-8-jdk ant libopencv2.4
Read the Dockerfile for a more up-to-date list of all commands.
- Place 4 Markers (Circles within circles) at the corners of you laser-bed
- Place a webcam over the laser-cutter, so that it's image contains all the markers
- Connect the webcam to a PC running VisiCam
- Go to you webbrowser and enter the VisiCam URL (is printed on the Command Line after starting)
- Click on "Get image from your webcam" to check if the camera is working and the markers are visible
- Click on "Show Configuration". Here you can specify the resolutions and more important:
- For each Marker-Position (top-left...) select a rectangle on the image, where VisiCam should search the marker
- Save the configuration
- In VisiCut go to Preferences->Manage Lasercutters->Edit and enter the CameraURL, which is the VisiCam URL with /image at the end. If you have the latest version, you can just click "search" and all VisiCam instances in your Network should appear.