Skip to content

Raspberry Pi installation (Arch Linux)

Peter Uithoven edited this page Nov 20, 2013 · 6 revisions

These instructions are work in progress, it doesn't work yet, the installation on Raspbian was successfull, see: https://github.com/t-oster/VisiCam/wiki/Raspberry-Pi-installation-(Raspbian)

Needed

  • Raspberry Pi
  • Memory card
  • Camera module
  • Ethernet cable / wifi dongle
  • USB micro power cable
  • Enclosure

Installation

Raspbian

Install Arch Linux, I can really recommend the NOOBS install method http://www.raspberrypi.org/downloads

Login using:
username: root
password: root

Install Dependencies

pacman -Syu
pacman -S gcc pkg-config
pacman -S opencv
pacman -S git
pacman -S apache-ant 

Install the Camera module

See: https://wiki.archlinux.org/index.php/Raspberry_Pi > Raspberry Pi Camera module

Install VisiCam

Run the following commands:

cd ~
git clone https://github.com/t-oster/VisiCam.git
cd VisiCam
ant jar
cp lib/javacv-pi/javacv.jar dist/lib/
cp lib/javacv-pi/javacv-linux-arm.jar dist/lib/
java -jar dist/VisiCam.jar

Configure VisiCam to use Raspberry Pi

Goto: localhost:8080/configPage.html Use the following values:

  • InputWidth: 720
  • InputHeight: 576
  • OutputWidth: 720
  • OutputHeight: 576
  • Check "CustomCapture"
  • CaptureCommand: raspistill -n -w %w -h %h -o %f
    If you need to flip the camera image you can add -vf and/or -hf.
  • CaptureResult: capture.jpg

Create enclusure

Lasercut an enclosure like:
http://www.thingiverse.com/thing:183621
Lasercut a mount like:
http://www.thingiverse.com/thing:183627

Configure

  1. Place 4 Markers (Circles within circles) at the corners of you laser-bed
  2. Place a webcam over the laser-cutter, so that it's image contains all the markers
  3. Connect the webcam to a PC running VisiCam
  4. Go to you webbrowser and enter the VisiCam URL (is printed on the Command Line after starting)
  5. Click on "Get image from your webcam" to check if the camera is working and the markers are visible
  6. Click on "Show Configuration". Here you can specify the resolutions and more important:
  7. For each Marker-Position (top-left...) select a rectangle on the image, where VisiCam should search the marker
  8. Save the configuration
  9. 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.