dLife Home Page

dlife.vision.server
Class VisionServer

java.lang.Object
  extended by dlife.vision.server.VisionServer

public class VisionServer
extends Object

The VisionServer class is a server designed stream video data via UDP. These will be sent and JPEG images in byte arrays. This class requires that Video4Linux4Java be installed on the host machine only. This package can be downloaded from: http://code.google.com/p/v4l4j/ Clients will make a connection via a TCP socket which will run on a port specified in the arguments to main. The follow commands can then be sent to the server: DEVLIST - sends a serialized VisionServerDeviceList containing all the device info over a ObjectOutputStream STOP_STREAM - will stop the stream if it has ever been started as well as close the socket. START_STREAM(dev,input,std,port,width,height,quality) - start streaming byte arrays via UDP to the client machine on the given port. These packets should be fed into a VideoFrame object. The parameters should be as follows: - dev: a String representation of the device file. e.g. /dev/video0 - input: a String representation of the input. e.g. Composite0 - std: a String representation of the video standard. e.g. NTSC - port: a non-negative integer which will be the port to send the data to - width: a non-negative integer for the width of the image sent back - height: a non-negative integer for the height of the image sent back - quality: an integer between 1 and 100 (inclusive) for the image quality A list of device files should be given as the arguments to 'main' separated by spaces.

Version:
June 23, 2010
Author:
Russell Toris, Dickinson College

Constructor Summary
VisionServer()
           
 
Method Summary
static void main(String[] args)
          Start the VisionServer on the port specified by the first argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisionServer

public VisionServer()
Method Detail

main

public static void main(String[] args)
Start the VisionServer on the port specified by the first argument.

Parameters:
args - a list of the device files to read video from

dLife Home Page