Skip to content

Commit d6e934e

Browse files
authored
Update README.md with dynamic image segmentation step (#38)
- Provide a clear and user-friendly guide that highlights the new feature effectively.
1 parent f5628f6 commit d6e934e

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

dl3/android/DeepLabV3Demo/README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,26 @@ Run the following adb command to push the model.
3939
adb push dl3_xnnpack_fp32.pte /data/local/tmp/dl3_xnnpack_fp32.pte
4040
```
4141

42-
## Step 5: Run unit test
42+
## Step 5: Load and Test Custom Images (No APK Rebuild Needed)
43+
You can now test image segmentation on your own images (supported formats: .jpg, .jpeg, .png) without rebuilding the APK. The app supports loading .jpg, .jpeg, and .png images from the /sdcard/Pictures/ directory, with user-granted permissions.
44+
45+
### How to Use
46+
#### a. Push your image to the device:
47+
```
48+
adb push <path to your image> /sdcard/Pictures/
49+
50+
```
51+
#### b. After the push, In the app:
52+
- Tap the "Load And Refresh" button.
53+
- If prompted, grant the app permission to access the /sdcard/Pictures/ folder.
54+
- The image should appear immediately in the app.
55+
- You can now run dynamic image segmentation and view the results.
56+
57+
Tip: You can use images containing Dog, Sheep, Person, or any combination of these classes.
58+
59+
This feature enhances the testing/validation process by allowing users to quickly test different images without the need to rebuild the application.
60+
61+
## Step 6: Run unit test
4362
### On your terminal
4463
```
4564
./gradlew connectedAndroidTest

0 commit comments

Comments
 (0)