Skip to content

Commit

Permalink
Create capture driver for V4L4J framework, closes #104
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed May 18, 2013
1 parent a88f031 commit be431af
Show file tree
Hide file tree
Showing 10 changed files with 504 additions and 0 deletions.
1 change: 1 addition & 0 deletions webcam-capture-drivers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<module>webcam-capture-driver-jmf</module>
<module>webcam-capture-driver-lti-civil</module>
<module>webcam-capture-driver-openimaj</module>
<module>webcam-capture-driver-v4l4j</module>
<module>webcam-capture-driver-vlcj</module>
</modules>

Expand Down
22 changes: 22 additions & 0 deletions webcam-capture-drivers/webcam-capture-driver-v4l4j/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src/example/java"/>
<classpathentry kind="src" path="src/example/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
23 changes: 23 additions & 0 deletions webcam-capture-drivers/webcam-capture-driver-v4l4j/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>webcam-capture-driver-v4l4j</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
54 changes: 54 additions & 0 deletions webcam-capture-drivers/webcam-capture-driver-v4l4j/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.github.sarxos</groupId>
<artifactId>webcam-capture-drivers</artifactId>
<version>0.3.10-SNAPSHOT</version>
</parent>

<artifactId>webcam-capture-driver-v4l4j</artifactId>
<packaging>jar</packaging>

<name>Webcam Capture - V4L4J Driver</name>
<description>Webcam Capture driver using V4L2 Java binding (V4L4J framework) to grab frames from camera devices</description>

<repositories>
<repository>
<id>sarxos-maven-repo</id>
<name>Sarxos Maven Repository</name>
<url>http://repo.sarxos.pl/maven2</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>com.github.sarxos</groupId>
<artifactId>webcam-capture</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>au.edu.jcu</groupId>
<artifactId>v4l4j</artifactId>
<version>0.9-WC</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import com.github.sarxos.webcam.Webcam;
import com.github.sarxos.webcam.WebcamViewer;
import com.github.sarxos.webcam.ds.v4l4j.V4l4jDriver;


public class V4l4jViewerExample {

static {
Webcam.setDriver(new V4l4jDriver());
}

public static void main(String[] args) {

new WebcamViewer();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<configuration scan="true" scanPeriod="30 seconds">
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern>
</layout>
</appender>
<root level="trace">
<appender-ref ref="STDOUT" />
</root>
</configuration>
Loading

0 comments on commit be431af

Please sign in to comment.