Skip to content

Commit

Permalink
Merge pull request #9 from jpsacha/flandmark
Browse files Browse the repository at this point in the history
Wrappers for FLandmark library
  • Loading branch information
saudet committed Jul 21, 2014
2 parents 743406b + 10c8f43 commit 3caa4e8
Show file tree
Hide file tree
Showing 6 changed files with 507 additions and 0 deletions.
10 changes: 10 additions & 0 deletions flandmark/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
`flandmark` is a JVM wrapper for [flandmark library](https://github.com/uricamic/flandmark).

##Sources and Native Binaries
It is assumed that:

* `opencv` headers and binaries are available in `../opencv/cppbuild`
* `flanddmark` sources can be found in `cppbuild/flandmark/sources`
* Native binaries were build in `cppbuild/flandmark/build/${architecture}`, for instance, `cppbuild/flandmark/build/x64`.
The `${architecture}` convention is similar one used by opencv.
* Native binaries were build for `RelWithDebInfo`.
30 changes: 30 additions & 0 deletions flandmark/cppbuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh
if [[ -z "$PLATFORM" ]]; then
echo "This file is meant to be included by the parent cppbuild.sh script"
exit 1
fi

# FLANDMARK_VERSION=a0981a3b09cc5534255dc1dcdae2179097231bdd
# download https://github.com/uricamic/flandmark/archive/$FLANDMARK_VERSION.zip flandmark.zip

# unzip -o flandmark.zip -d flandmark/sources

mkdir -p $PLATFORM
cd $PLATFORM

mkdir -p include
cp -r ../flandmark/sources/libflandmark/flandmark_detector.h include
cp -r ../flandmark/sources/libflandmark/msvc-compat.h include
cp -r ../../../opencv/cppbuild/$PLATFORM/include/opencv/cv.h include
cp -r ../../../opencv/cppbuild/$PLATFORM/include/opencv/cvaux.h include
cp -r ../../../opencv/cppbuild/$PLATFORM/include/opencv2/ include

mkdir -p bin
cp -r ../flandmark/build/x64/libflandmark/RelWithDebInfo/flandmark_shared.dll bin
cp -r ../../../opencv/cppbuild/$PLATFORM/bin/* bin

mkdir -p lib
cp -r ../flandmark/build/x64/libflandmark/RelWithDebInfo/flandmark_static.lib lib
cp -r ../../../opencv/cppbuild/$PLATFORM/lib/* lib

cd ..
101 changes: 101 additions & 0 deletions flandmark/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.bytedeco</groupId>
<artifactId>javacpp-presets</artifactId>
<version>0.8-2-SNAPSHOT</version>
</parent>

<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>flandmark</artifactId>
<version>1.7-${project.parent.version}</version>
<packaging>jar</packaging>
<name>JavaCPP Presets for flandmark</name>

<properties>
<!-- Skip on non-Windows system (see profile below) -->
<generate-sources.skip>true</generate-sources.skip>
<process-classes.skip>true</process-classes.skip>
</properties>

<dependencies>
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>javacpp</artifactId>
</dependency>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>opencv</artifactId>
<version>2.4.9-0.8-2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>opencv</artifactId>
<version>2.4.9-0.8-2-SNAPSHOT</version>
<classifier>${platform}</classifier>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>ISO-8859-1</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.bytedeco</groupId>
<artifactId>javacpp</artifactId>
<configuration>
<environmentVariables>
<!-- Hack required for Windows SDK v7.1 -->
<CL>&quot;/I${env.SDKDIR}/Include/&quot;</CL>
</environmentVariables>
</configuration>
<dependencies>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>opencv</artifactId>
<version>2.4.9-0.8-2-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<encoding>ISO-8859-1</encoding>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>windows</id>
<activation>
<os><family>windows</family></os>
</activation>
<properties>
<generate-sources.skip>false</generate-sources.skip>
<process-classes.skip>false</process-classes.skip>
</properties>
</profile>
</profiles>

</project>
Loading

0 comments on commit 3caa4e8

Please sign in to comment.