-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from jpsacha/flandmark
Wrappers for FLandmark library
- Loading branch information
Showing
6 changed files
with
507 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>"/I${env.SDKDIR}/Include/"</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> |
Oops, something went wrong.