Skip to content

Commit 0b8af86

Browse files
committed
Fixed landmark example pipeline
1 parent 1100310 commit 0b8af86

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

libssj/src/main/AndroidManifest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
3737
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
3838
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
39+
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
40+
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/>
3941

4042
<!--uses-feature android:name="android.hardware.type.watch" /-->
4143
<uses-permission android:name="android.permission.RECORD_AUDIO"/>

libssj/src/main/java/hcm/ssj/landmark/FaceLandmarks.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public class FaceLandmarks extends Transformer
122122

123123
public class Options extends OptionList
124124
{
125-
public final Option<Integer> rotation = new Option<>("rotation", 270, Integer.class, "rotation of the input image, use 270 for front camera and 90 for back camera");
125+
public final Option<Integer> rotation = new Option<>("rotation", 0, Integer.class, "rotation of the input image, use 270 for front camera and 90 for back camera");
126126
public final Option<Float> faceConfidenceThreshold = new Option<>("faceConfidenceThreshold", 0.5f, Float.class, "threshold for the face confidence score to determine whether a face is present");
127127
public final Option<Boolean> useGPU = new Option<>("useGPU", true, Boolean.class, "if true tries to use GPU for better performance");
128128
public final Option<Boolean> useLegacyModel = new Option<>("useLegacyModel", false, Boolean.class, "if true uses old landmark detection model");

ssjcreator/src/main/assets/demo/pipelines/facial-landmarks.example.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<transformer class="hcm.ssj.camera.ImageResizer" id="215955256" delta="0.0">
7777
<options>
7878
<option name="cropImage" value="false" />
79-
<option name="maintainAspect" value="true" />
79+
<option name="maintainAspect" value="false" />
8080
<option name="rotation" value="-90" />
8181
<option name="savePreview" value="false" />
8282
<option name="size" value="224" />

0 commit comments

Comments
 (0)