Instalar v4l4j

Páginas: 3 (523 palabras) Publicado: 28 de mayo de 2010
Instalar v4l4j

en http://code.google.com/p/v4l4j/ estan los downloads
bajarse
libvideo0_0.8.7-0ubuntu1~ppa1_i386.deb

instalar tal cual
bajarse
libv4l4j-java_0.8.7-0ubuntu1~ppa1_i386.debinstalar tal cual

Incluir libreria en el ide que esta en
/usr/share/java/v4l4j.jar

copiar el driver libv4l4j.so
desde
/usr/lib/jni
a
/usr/lib/jvm/java-6-openjdk/jre/lib/i386
nota, aCopiar en el directorio de la version java que se este usando

codigo pa usar

package camaraweb;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
importjava.io.IOException;
import java.nio.ByteBuffer;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;

import au.edu.jcu.v4l4j.FrameGrabber;
importau.edu.jcu.v4l4j.exceptions.V4L4JException;
import au.edu.jcu.v4l4j.V4L4JConstants;
import au.edu.jcu.v4l4j.VideoDevice;

public class Viewer extends WindowAdapter implements Runnable {
private VideoDevice vd;private JLabel l;
private JFrame f;
private long start = 0;
private int n;
private FrameGrabber fg;
private Thread captureThread;
privateboolean stop;

/**
* Builds a WebcamViewer object
* @param dev the video device file to capture from
* @param w the desired capture width
* @param h thedesired capture height
* @param std the capture standard
* @param channel the capture channel
* @param qty the JPEG compression quality
* @throws V4L4JExceptionif any parameter if invalid
*/
public Viewer(String dev, int w, int h, int std, int channel, int qty) throws V4L4JException{
initFrameGrabber(dev, w, h, std, channel, qty);initGUI();
stop = false;
captureThread = new Thread(this, "Capture Thread");
captureThread.start();
}

/**
* Creates the graphical interface...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • instalaciones
  • Instalaciones
  • INSTALADORES
  • instalar
  • Instalaciones
  • Instalaciones
  • Instalaciones
  • Instalaciones

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS