Skip to content

Commit

Permalink
reduced size
Browse files Browse the repository at this point in the history
  • Loading branch information
sanstorik committed Apr 11, 2018
1 parent 505fb2e commit 1132ea2
Show file tree
Hide file tree
Showing 92 changed files with 26 additions and 97 deletions.
29 changes: 17 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,31 @@
<version>1.0-SNAPSHOT</version>
<artifactId>helloworld</artifactId>
<dependencies>

<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.4-1201-jdbc4</version>
</dependency>

<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
<version>7.6.0.v20120127</version>
</dependency>

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
</dependency>

<dependency>
<groupId>org.nanohttpd</groupId> <!-- <groupId>com.nanohttpd</groupId> for 2.1.0 and earlier -->
<artifactId>nanohttpd</artifactId>
<version>2.2.0</version>
</dependency>

<dependency>
<groupId>com.github.kevinsawicki</groupId>
<artifactId>http-request</artifactId>
<version>6.0</version>
</dependency>

<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
Expand Down Expand Up @@ -66,16 +64,23 @@
<version>1.6.0</version>
</dependency>


<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>opencv-platform</artifactId>
<version>3.4.1-1.4.1</version>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>24.1-jre</version>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>flandmark-platform</artifactId>
<version>1.07-1.4.1</version>
</dependency>

<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>javacv-platform</artifactId>
<version>1.4.1</version>
<groupId>org.apache.commons</groupId>
<artifactId>commons-io</artifactId>
<version>1.3.2</version>
</dependency>
</dependencies>

Expand Down
84 changes: 4 additions & 80 deletions sanstorik_server.iml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
<orderEntry type="library" name="Maven: org.eclipse.jetty:jetty-util:7.6.0.v20120127" level="project" />
<orderEntry type="library" name="Maven: javax.servlet:servlet-api:2.5" level="project" />
<orderEntry type="library" name="Maven: org.nanohttpd:nanohttpd:2.2.0" level="project" />
<orderEntry type="library" name="Maven: com.github.kevinsawicki:http-request:6.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpmime:4.0.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.0.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.0.1" level="project" />
Expand All @@ -37,26 +36,9 @@
<orderEntry type="library" name="Maven: org.tensorflow:tensorflow:1.6.0" level="project" />
<orderEntry type="library" name="Maven: org.tensorflow:libtensorflow:1.6.0" level="project" />
<orderEntry type="library" name="Maven: org.tensorflow:libtensorflow_jni:1.6.0" level="project" />
<orderEntry type="library" name="Maven: com.google.guava:guava:24.1-jre" level="project" />
<orderEntry type="library" name="Maven: com.google.code.findbugs:jsr305:1.3.9" level="project" />
<orderEntry type="library" name="Maven: org.checkerframework:checker-compat-qual:2.0.0" level="project" />
<orderEntry type="library" name="Maven: com.google.errorprone:error_prone_annotations:2.1.3" level="project" />
<orderEntry type="library" name="Maven: com.google.j2objc:j2objc-annotations:1.1" level="project" />
<orderEntry type="library" name="Maven: org.codehaus.mojo:animal-sniffer-annotations:1.14" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco:javacv-platform:1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco:javacv:1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco:javacpp:1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:opencv:3.4.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:3.4.2-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:flycapture:2.11.3.121-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libdc1394:2.2.5-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libfreenect:0.5.3-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libfreenect2:0.2.0-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:librealsense:1.12.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:videoinput:0.200-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:artoolkitplus:2.3.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:flandmark:1.07-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:opencv-platform:3.4.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:opencv:3.4.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco:javacpp:1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:opencv:android-arm:3.4.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:opencv:android-arm64:3.4.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:opencv:android-x86:3.4.1-1.4.1" level="project" />
Expand All @@ -70,67 +52,8 @@
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:opencv:macosx-x86_64:3.4.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:opencv:windows-x86:3.4.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:opencv:windows-x86_64:3.4.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg-platform:3.4.2-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:android-arm:3.4.2-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:android-arm64:3.4.2-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:android-x86:3.4.2-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:android-x86_64:3.4.2-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:linux-x86:3.4.2-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:linux-x86_64:3.4.2-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:linux-armhf:3.4.2-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:linux-ppc64le:3.4.2-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:macosx-x86_64:3.4.2-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:windows-x86:3.4.2-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:ffmpeg:windows-x86_64:3.4.2-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:flycapture-platform:2.11.3.121-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:flycapture:linux-x86:2.11.3.121-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:flycapture:linux-x86_64:2.11.3.121-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:flycapture:linux-armhf:2.11.3.121-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:flycapture:windows-x86:2.11.3.121-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:flycapture:windows-x86_64:2.11.3.121-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libdc1394-platform:2.2.5-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libdc1394:linux-x86:2.2.5-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libdc1394:linux-x86_64:2.2.5-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libdc1394:linux-armhf:2.2.5-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libdc1394:linux-ppc64le:2.2.5-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libdc1394:macosx-x86_64:2.2.5-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libdc1394:windows-x86:2.2.5-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libdc1394:windows-x86_64:2.2.5-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libfreenect-platform:0.5.3-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libfreenect:linux-x86:0.5.3-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libfreenect:linux-x86_64:0.5.3-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libfreenect:linux-armhf:0.5.3-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libfreenect:linux-ppc64le:0.5.3-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libfreenect:macosx-x86_64:0.5.3-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libfreenect:windows-x86:0.5.3-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libfreenect:windows-x86_64:0.5.3-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libfreenect2-platform:0.2.0-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libfreenect2:linux-x86:0.2.0-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libfreenect2:linux-x86_64:0.2.0-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libfreenect2:macosx-x86_64:0.2.0-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:libfreenect2:windows-x86_64:0.2.0-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:librealsense-platform:1.12.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:librealsense:linux-x86:1.12.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:librealsense:linux-x86_64:1.12.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:librealsense:macosx-x86_64:1.12.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:librealsense:windows-x86:1.12.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:librealsense:windows-x86_64:1.12.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:videoinput-platform:0.200-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:videoinput:windows-x86:0.200-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:videoinput:windows-x86_64:0.200-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:artoolkitplus-platform:2.3.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:artoolkitplus:android-arm:2.3.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:artoolkitplus:android-arm64:2.3.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:artoolkitplus:android-x86:2.3.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:artoolkitplus:android-x86_64:2.3.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:artoolkitplus:linux-x86:2.3.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:artoolkitplus:linux-x86_64:2.3.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:artoolkitplus:linux-armhf:2.3.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:artoolkitplus:linux-ppc64le:2.3.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:artoolkitplus:macosx-x86_64:2.3.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:artoolkitplus:windows-x86:2.3.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:artoolkitplus:windows-x86_64:2.3.1-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:flandmark-platform:1.07-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:flandmark:1.07-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:flandmark:android-arm:1.07-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:flandmark:android-arm64:1.07-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:flandmark:android-x86:1.07-1.4.1" level="project" />
Expand All @@ -142,5 +65,6 @@
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:flandmark:macosx-x86_64:1.07-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:flandmark:windows-x86:1.07-1.4.1" level="project" />
<orderEntry type="library" name="Maven: org.bytedeco.javacpp-presets:flandmark:windows-x86_64:1.07-1.4.1" level="project" />
<orderEntry type="library" name="Maven: commons-io:commons-io:1.3.2" level="project" />
</component>
</module>
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.sanstorik.neural_network.face_detection;

import org.sanstorik.neural_network.face_detection.Face;
import org.sanstorik.neural_network.face_identifying.FaceRecognizer;
import org.sanstorik.neural_network.utils.FileUtils;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package org.sanstorik.neural_network.face_identifying;

import com.google.common.io.ByteStreams;
import org.sanstorik.neural_network.face_detection.*;
import org.apache.commons.io.IOUtils;
import org.sanstorik.neural_network.face_detection.Face;
import org.sanstorik.neural_network.face_detection.UserFaceDetector;
import org.sanstorik.neural_network.utils.FileUtils;
import org.tensorflow.Graph;
import org.tensorflow.Session;
Expand Down Expand Up @@ -259,7 +260,7 @@ private float euclidDistance(float[] first, float[] second) {
private byte[] loadGraphDef() {
try (InputStream is = getClass().getClassLoader()
.getResourceAsStream("save_session/model_face_recognition.pb")) {
return ByteStreams.toByteArray(is);
return IOUtils.toByteArray(is);
} catch (IOException e) {
throw new RuntimeException("couldn't load graph");
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed target/dependency/artoolkitplus-2.3.1-1.4.1.jar
Binary file not shown.
Binary file not shown.
Binary file removed target/dependency/checker-compat-qual-2.0.0.jar
Binary file not shown.
Binary file added target/dependency/commons-io-1.3.2.jar
Binary file not shown.
Binary file removed target/dependency/error_prone_annotations-2.1.3.jar
Binary file not shown.
Binary file removed target/dependency/ffmpeg-3.4.2-1.4.1-android-arm.jar
Binary file not shown.
Binary file not shown.
Binary file removed target/dependency/ffmpeg-3.4.2-1.4.1-android-x86.jar
Binary file not shown.
Binary file not shown.
Binary file removed target/dependency/ffmpeg-3.4.2-1.4.1-linux-armhf.jar
Binary file not shown.
Binary file not shown.
Binary file removed target/dependency/ffmpeg-3.4.2-1.4.1-linux-x86.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed target/dependency/ffmpeg-3.4.2-1.4.1-windows-x86.jar
Binary file not shown.
Binary file not shown.
Binary file removed target/dependency/ffmpeg-3.4.2-1.4.1.jar
Binary file not shown.
Binary file removed target/dependency/ffmpeg-platform-3.4.2-1.4.1.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed target/dependency/flycapture-2.11.3.121-1.4.1.jar
Binary file not shown.
Binary file not shown.
Binary file removed target/dependency/guava-24.1-jre.jar
Binary file not shown.
Binary file removed target/dependency/http-request-6.0.jar
Binary file not shown.
Binary file removed target/dependency/j2objc-annotations-1.1.jar
Binary file not shown.
Binary file removed target/dependency/javacv-1.4.1.jar
Binary file not shown.
Binary file removed target/dependency/javacv-platform-1.4.1.jar
Binary file not shown.
Binary file removed target/dependency/jsr305-1.3.9.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed target/dependency/libdc1394-2.2.5-1.4.1.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed target/dependency/libfreenect-0.5.3-1.4.1.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed target/dependency/libfreenect2-0.2.0-1.4.1.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed target/dependency/librealsense-1.12.1-1.4.1.jar
Binary file not shown.
Binary file not shown.
Binary file removed target/dependency/opencv-3.4.1-1.4.1-android-arm.jar
Binary file not shown.
Binary file removed target/dependency/opencv-3.4.1-1.4.1-android-x86.jar
Binary file not shown.
Binary file not shown.
Binary file removed target/dependency/opencv-3.4.1-1.4.1-ios-arm64.jar
Binary file not shown.
Binary file removed target/dependency/opencv-3.4.1-1.4.1-ios-x86_64.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed target/dependency/videoinput-0.200-1.4.1.jar
Binary file not shown.
Binary file not shown.
Binary file modified target/helloworld-1.0-SNAPSHOT.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Generated by Maven
#Wed Apr 11 19:08:55 EEST 2018
#Wed Apr 11 21:12:40 EEST 2018
version=1.0-SNAPSHOT
groupId=com.example
artifactId=helloworld

0 comments on commit 1132ea2

Please sign in to comment.