Skip to content

Commit

Permalink
update: プロジェクト最新化
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus07424 committed Apr 3, 2023
1 parent 1d2b905 commit 4f2f188
Show file tree
Hide file tree
Showing 11 changed files with 658 additions and 640 deletions.
93 changes: 55 additions & 38 deletions .classpath
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>
16 changes: 6 additions & 10 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: 1.8
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
distribution: corretto
java-version: 8
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/target/
/images/
/.sts4-cache/
2 changes: 2 additions & 0 deletions .settings/org.eclipse.jdt.apt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.eclipse.jdt.apt.aptEnabled=false
1 change: 1 addition & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.processAnnotations=disabled
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8
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;
}
Loading

0 comments on commit 4f2f188

Please sign in to comment.