-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d2b905
commit 4f2f188
Showing
11 changed files
with
658 additions
and
640 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 |
---|---|---|
@@ -1,38 +1,55 @@ | ||
<?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 excluding="**" kind="src" output="target/classes" path="src/main/resources"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"> | ||
<attributes> | ||
<attribute name="optional" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
<attribute name="test" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
<attribute name="test" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> | ||
<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> | ||
<?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 excluding="**" kind="src" output="target/classes" path="src/main/resources"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"> | ||
<attributes> | ||
<attribute name="optional" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
<attribute name="test" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
<attribute name="test" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> | ||
<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="src" path="target/generated-sources/annotations"> | ||
<attributes> | ||
<attribute name="optional" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
<attribute name="ignore_optional_problems" value="true"/> | ||
<attribute name="m2e-apt" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations"> | ||
<attributes> | ||
<attribute name="optional" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
<attribute name="ignore_optional_problems" value="true"/> | ||
<attribute name="m2e-apt" value="true"/> | ||
<attribute name="test" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="output" path="target/classes"/> | ||
</classpath> |
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
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
/target/ | ||
/images/ | ||
/.sts4-cache/ |
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,2 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.apt.aptEnabled=false |
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
146 changes: 73 additions & 73 deletions
146
src/main/java/jp/evosystem/objectSizeMeasurer/constants/Configurations.java
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 |
---|---|---|
@@ -1,74 +1,74 @@ | ||
package jp.evosystem.objectSizeMeasurer.constants; | ||
|
||
/** | ||
* 環境設定. | ||
* | ||
* @author evosystem | ||
*/ | ||
public interface Configurations { | ||
|
||
/** | ||
* デバッグモードを有効化するかどうか. | ||
*/ | ||
boolean ENABLE_DEBUG_MODE = false; | ||
|
||
/** | ||
* 使用するブラーのサイズ(奇数). | ||
*/ | ||
int USE_GAUSSIAN_BLUR_SIZE = 7; | ||
|
||
/** | ||
* 使用するCanny処理のしきい値1. | ||
*/ | ||
int USE_CANNY_THRESHOLD_1 = 50; | ||
|
||
/** | ||
* 使用するCanny処理のしきい値2. | ||
*/ | ||
int USE_CANNY_THRESHOLD_2 = 100; | ||
|
||
/** | ||
* 使用する輪郭の面積の最小値. | ||
*/ | ||
int USE_CONTOUR_AREA_MIN_THRESHOLD = 100; | ||
|
||
/** | ||
* 使用する輪郭の面積の最大値. | ||
*/ | ||
int USE_CONTOUR_AREA_MAX_THRESHOLD = 1000; | ||
|
||
/** | ||
* 使用するピクセル/cm. | ||
*/ | ||
int USE_PIXEL_PER_CENTIMETER = 40; | ||
|
||
/** | ||
* 全ての輪郭を描画するかどうか. | ||
*/ | ||
boolean DRAW_ALL_CONTOURS = false; | ||
|
||
/** | ||
* 回転を考慮しない外接矩形を描画するかどうか. | ||
*/ | ||
boolean DRAW_RECTANGLE = false; | ||
|
||
/** | ||
* 処理結果をファイルに出力するかどうか. | ||
*/ | ||
boolean ENABLE_RECORDING = true; | ||
|
||
/** | ||
* 対象の画像ファイルのパス. | ||
*/ | ||
String TARGET_IMAGE_FILE_PATH = "images/example_01.jpg"; | ||
|
||
/** | ||
* 対象の動画ファイルのパス. | ||
*/ | ||
String TARGET_VIDEO_FILE_PATH = "videos/example.mp4"; | ||
|
||
/** | ||
* 使用するWebカメラのデバイス番号. | ||
*/ | ||
int TARGET_DEVICE_NUMBER = 0; | ||
package jp.evosystem.objectSizeMeasurer.constants; | ||
|
||
/** | ||
* 環境設定. | ||
* | ||
* @author evosystem | ||
*/ | ||
public interface Configurations { | ||
|
||
/** | ||
* デバッグモードを有効化するかどうか. | ||
*/ | ||
boolean ENABLE_DEBUG_MODE = false; | ||
|
||
/** | ||
* 使用するブラーのサイズ(奇数). | ||
*/ | ||
int USE_GAUSSIAN_BLUR_SIZE = 7; | ||
|
||
/** | ||
* 使用するCanny処理のしきい値1. | ||
*/ | ||
int USE_CANNY_THRESHOLD_1 = 50; | ||
|
||
/** | ||
* 使用するCanny処理のしきい値2. | ||
*/ | ||
int USE_CANNY_THRESHOLD_2 = 100; | ||
|
||
/** | ||
* 使用する輪郭の面積の最小値. | ||
*/ | ||
int USE_CONTOUR_AREA_MIN_THRESHOLD = 100; | ||
|
||
/** | ||
* 使用する輪郭の面積の最大値. | ||
*/ | ||
int USE_CONTOUR_AREA_MAX_THRESHOLD = 1000; | ||
|
||
/** | ||
* 使用するピクセル/cm. | ||
*/ | ||
int USE_PIXEL_PER_CENTIMETER = 40; | ||
|
||
/** | ||
* 全ての輪郭を描画するかどうか. | ||
*/ | ||
boolean DRAW_ALL_CONTOURS = false; | ||
|
||
/** | ||
* 回転を考慮しない外接矩形を描画するかどうか. | ||
*/ | ||
boolean DRAW_RECTANGLE = false; | ||
|
||
/** | ||
* 処理結果をファイルに出力するかどうか. | ||
*/ | ||
boolean ENABLE_RECORDING = true; | ||
|
||
/** | ||
* 対象の画像ファイルのパス. | ||
*/ | ||
String TARGET_IMAGE_FILE_PATH = "images/example_01.jpg"; | ||
|
||
/** | ||
* 対象の動画ファイルのパス. | ||
*/ | ||
String TARGET_VIDEO_FILE_PATH = "videos/example.mp4"; | ||
|
||
/** | ||
* 使用するWebカメラのデバイス番号. | ||
*/ | ||
int TARGET_DEVICE_NUMBER = 0; | ||
} |
Oops, something went wrong.