Repository navigation
feat: green EdgeTPU QUANT8 freesched + BatteryManager mJ/img + PP-OCRv4 ONNX - #4
Merged
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/build-freesched-aar.sh): Bumps pinnedfreesilicon/freeschedtoa8a80cb(QUANT8_ASYMM1x1 CONV_2DNNAPI lowering fromfreesilicon/freesched#57), unlocking realgoogle-edgetpuexecution on stock unrooted Android 17 (315.8 img/s,3.17 ms/img,8.22xvs CPU baseline).FreeSchedEngine.kt): Measures realmJ/imgusing publicBatteryManager.BATTERY_PROPERTY_CURRENT_NOW+ stickyACTION_BATTERY_CHANGEDvoltage (0 permissions; staysnull/ unmeasured honestly when unavailable).PaddleOcrOnnxExtractor.kt): Adds SHA-256-pinned PP-OCRv4 English DBNet detector (2.3 MB) + CRNN CTC recognizer (7.5 MB) +dict.txton existing 16 KiB-aligned zero-permissiononnxruntime-android:1.25.0, packaged inside:models_packwith clean fallback toBitmapOcrExtractoron JVM hosts.RecallDatabase.ktv5): Automatically re-indexes existing screenshots with PP-OCRv4 text, bounding boxes, and MobileCLIP-S0 embeddings.Verification
./gradlew --no-daemon testDebugUnitTest assembleDebug bundleDebug— 17/17 unit & Robolectric tests PASS../scripts/check-zero-permissions.sh— 0<uses-permission>in source manifest, 0 platform permissions in merged manifests & APK../scripts/check-16k-alignment.sh— all 4 native libsZIP_STORED,PT_LOAD 0x4000,zipalign -P 16PASS../scripts/clean-room-audit.sh— PASS across 58 files (0 errors).Google EdgeTPU + Vulkangreennpu active(315.8 img/s,3.17 ms/img,13.19 mJ/img,8.22xvs CPU) + 100% character-accurate PP-OCRv4 extraction.