Skip to content

Commit

Permalink
Add OpenIMAJ data source
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed Jul 10, 2012
1 parent 5266ea3 commit 12dcb46
Show file tree
Hide file tree
Showing 15 changed files with 453 additions and 221 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -6,4 +6,6 @@ webcam-capture-jmf-ds/.settings
webcam-capture-jmf-ds/target
webcam-capture/.settings
webcam-capture/target
webcam-capture-openimaj-ds/.settings
webcam-capture-openimaj-ds/target

25 changes: 25 additions & 0 deletions README.md
Expand Up @@ -72,6 +72,31 @@ registered before you start using webcam.
Webcam.setDataSource(new CivilDataSource());
```

### OpenIMAJ

OpenIMAJ is a collection of libraries for multimedia analysis written in the Java
programming language.

To use it as a data source you can add this dependency in your pom:

```xml
<dependency>
<groupId>com.sarxos.webcam</groupId>
<artifactId>webcam-capture-openimaj-ds</artifactId>
<version>0.3</version>
</dependency>
```

*NOTE!* I found that video capturing (via webcam) is not yet stable in OpenIMAJ, so
I would not recommend it for production systems right now. However whole library seems
to be growing and we can find it to be very usable piece of code in the near future.

To make ```Webcam``` using this data source:

```java
Webcam.setDataSource(new OpenImajDataSource());
```

### JMF (Java Media Framework)

Supported by Oracle (previously Sun), it is really old, first version is from 1998 and 2.0
Expand Down
340 changes: 143 additions & 197 deletions pom.xml
@@ -1,198 +1,144 @@
<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>

<groupId>com.github.sarxos</groupId>
<artifactId>webcam-capture-parent</artifactId>
<version>0.3</version>

<name>Webcam Capture - Root POM</name>
<description>This is Webcam Capture root POM</description>
<packaging>pom</packaging>

<organization>
<name>SarXos Design</name>
<url>http://www.sarxos.pl</url>
</organization>

<distributionManagement>
<repository>
<id>sarxos-ftp-repo</id>
<url>ftp://ftp.sarxos.pl/maven2</url>
</repository>
</distributionManagement>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>

</build>

<modules>
<module>webcam-capture</module>
<module>webcam-capture-civil-ds</module>
<module>webcam-capture-jmf-ds</module>
</modules>

<profiles>
<profile>
<id>notest</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.1</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>0.9.28</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>0.9.28</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.0.1</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.0.1</version>
<type>jar</type>
<classifier>sources</classifier>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<type>jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>3.0</version>
<type>jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymockclassextension</artifactId>
<version>3.0</version>
<type>jar</type>
<scope>test</scope>
</dependency>
</dependencies>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<reportSets>
<reportSet>
<id>aggregate</id>
<reports>
<report>aggregate</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<!-- The JXR plugin produces a cross-reference of the project's sources. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.1</version>
<configuration>
<linkJavadoc>true</linkJavadoc>
<aggregate>true</aggregate>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>2.4</version>
<configuration>
<linkXref>true</linkXref>
<sourceEncoding>utf-8</sourceEncoding>
<minimumTokens>100</minimumTokens>
<targetJdk>1.6</targetJdk>
<aggregate>true</aggregate>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.1.2</version>
<reportSets>
<reportSet>
<reports>
<report>index</report>
<report>dependencies</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId>
<version>2.4</version>
<configuration>
<tags>
<tag>TODO</tag>
<tag>@todo</tag>
<tag>FIXME</tag>
<tag>XXX</tag>
</tags>
<aggregate>true</aggregate>
</configuration>
</plugin>
<plugin>
<groupId>com.googlecode.maven-overview-plugin</groupId>
<artifactId>maven-overview-plugin</artifactId>
<version>1.6</version>
<inherited>false</inherited>
<configuration>
<includes>com.sarxos.medusa</includes>
</configuration>
</plugin>
</plugins>
</reporting>

<?xml version="1.0" encoding="UTF-8"?>
<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>

<groupId>com.github.sarxos</groupId>
<artifactId>webcam-capture-parent</artifactId>
<version>0.3</version>

<name>Webcam Capture - Root POM</name>
<description>This is Webcam Capture root POM</description>
<packaging>pom</packaging>

<organization>
<name>SarXos Design</name>
<url>http://www.sarxos.pl</url>
</organization>

<distributionManagement>
<repository>
<id>sarxos-ftp-repo</id>
<url>ftp://ftp.sarxos.pl/maven2</url>
</repository>
</distributionManagement>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>

</build>

<modules>
<module>webcam-capture</module>
<module>webcam-capture-civil-ds</module>
<module>webcam-capture-jmf-ds</module>
<module>webcam-capture-openimaj-ds</module>
</modules>

<profiles>
<profile>
<id>notest</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<dependencies>
</dependencies>

<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<reportSets>
<reportSet>
<id>aggregate</id>
<reports>
<report>aggregate</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<!-- The JXR plugin produces a cross-reference of the project's sources. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.1</version>
<configuration>
<linkJavadoc>true</linkJavadoc>
<aggregate>true</aggregate>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>2.4</version>
<configuration>
<linkXref>true</linkXref>
<sourceEncoding>utf-8</sourceEncoding>
<minimumTokens>100</minimumTokens>
<targetJdk>1.6</targetJdk>
<aggregate>true</aggregate>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.1.2</version>
<reportSets>
<reportSet>
<reports>
<report>index</report>
<report>dependencies</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId>
<version>2.4</version>
<configuration>
<tags>
<tag>TODO</tag>
<tag>@todo</tag>
<tag>FIXME</tag>
<tag>XXX</tag>
</tags>
<aggregate>true</aggregate>
</configuration>
</plugin>
<plugin>
<groupId>com.googlecode.maven-overview-plugin</groupId>
<artifactId>maven-overview-plugin</artifactId>
<version>1.6</version>
<inherited>false</inherited>
<configuration>
<includes>com.github.sarxos.webcam</includes>
</configuration>
</plugin>
</plugins>
</reporting>

</project>
4 changes: 2 additions & 2 deletions webcam-capture-civil-ds/pom.xml
Expand Up @@ -4,7 +4,7 @@

<groupId>com.github.sarxos.webcam-capture</groupId>
<artifactId>webcam-capture-civil-ds</artifactId>
<version>0.3</version>
<version>0.3-SNAPSHOT</version>

<name>Webcam Capture - LTI CIVIL Data Source</name>
<description>This is LTI Civil implementation of webcam data source. It allows you to capture webcam media without JMF installed.</description>
Expand All @@ -27,7 +27,7 @@
<dependency>
<groupId>com.github.sarxos</groupId>
<artifactId>webcam-capture</artifactId>
<version>0.3</version>
<version>0.3-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.lti-civil</groupId>
Expand Down

0 comments on commit 12dcb46

Please sign in to comment.