mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 00:33:03 +08:00
[Bug Fix] fix AllocateFaceDetectionResultFromJava error (#628)
* [Bug Fix] fix android app detail page errors * [Android] fix realtime camera mode and shutter * [Bug Fix] fix AllocateSegmentationResultFromJava error
This commit is contained in:
@@ -15,14 +15,14 @@
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme">
|
||||
<activity android:name=".detection.DetectionMainActivity">
|
||||
<activity android:name=".facedet.FaceDetMainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".detection.DetectionSettingsActivity"
|
||||
android:name=".facedet.FaceDetSettingsActivity"
|
||||
android:label="Settings">
|
||||
</activity>
|
||||
</application>
|
||||
|
@@ -352,30 +352,16 @@ public class SegmentationMainActivity extends Activity implements View.OnClickLi
|
||||
|
||||
@Override
|
||||
public void onStartTrackingTouch(SeekBar seekBar) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStopTrackingTouch(SeekBar seekBar) {
|
||||
// runOnUiThread(new Runnable() {
|
||||
// @Override
|
||||
// public void run() {
|
||||
// if (TYPE == ALBUM_SELECT) {
|
||||
// SystemClock.sleep(TIME_SLEEP_INTERVAL * 10); // 500ms
|
||||
// detail(picBitmap);
|
||||
// } else {
|
||||
// SystemClock.sleep(TIME_SLEEP_INTERVAL * 10); // 500ms
|
||||
// svPreview.onPause();
|
||||
// detail(shutterBitmap);
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void detail(Bitmap bitmap) {
|
||||
predictor.predict(bitmap, true, 0.6f);
|
||||
predictor.predict(bitmap, true, 0.4f);
|
||||
resultImage.setImageBitmap(bitmap);
|
||||
resultNum = 1.0f;
|
||||
}
|
||||
|
Reference in New Issue
Block a user