Skip to content

Commit 5395c0e

Browse files
committed
Fixes for ONNX LP
1 parent 8001c6e commit 5395c0e

16 files changed

Lines changed: 11 additions & 12 deletions

File tree

content/learning-paths/mobile-graphics-and-gaming/onnx/01_Fundamentals.md renamed to content/learning-paths/mobile-graphics-and-gaming/onnx/01_fundamentals.md

File renamed without changes.

content/learning-paths/mobile-graphics-and-gaming/onnx/02_Setup.md renamed to content/learning-paths/mobile-graphics-and-gaming/onnx/02_setup.md

File renamed without changes.

content/learning-paths/mobile-graphics-and-gaming/onnx/03_PreparingData.md renamed to content/learning-paths/mobile-graphics-and-gaming/onnx/03_preparingdata.md

File renamed without changes.

content/learning-paths/mobile-graphics-and-gaming/onnx/04_Training.md renamed to content/learning-paths/mobile-graphics-and-gaming/onnx/04_training.md

File renamed without changes.

content/learning-paths/mobile-graphics-and-gaming/onnx/05_Inference.md renamed to content/learning-paths/mobile-graphics-and-gaming/onnx/05_inference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ Confusion matrix (rows=true, cols=pred):
240240
Saved: artifacts/cm_fp32_counts.png
241241
```
242242

243-
![img1](Figures/01.png)
243+
![img1](figures/01.png)
244244
The confusion matrix provides more insight than a single accuracy number. Each row corresponds to the true class, and each column corresponds to the predicted class. A strong diagonal indicates correct classification. In this output, blank cells (class 0) are almost always recognized correctly, while the remaining errors occur primarily between visually similar printed digits such as 6, 8, and 9.
245245

246246
This behavior is expected and indicates that the model has learned meaningful digit features. The remaining confusions are rare and can be addressed later through targeted augmentation or higher-resolution crops if needed.
247247

248248
## Summary
249-
With inference validated and error modes understood, the digit recognizer is now ready to be embedded into the full Sudoku image-processing pipeline, where OpenCV will be used to detect the grid, rectify perspective, segment cells, and run batched ONNX inference to reconstruct and solve complete puzzles.
249+
With inference validated and error modes understood, the digit recognizer is now ready to be embedded into the full Sudoku image-processing pipeline, where OpenCV will be used to detect the grid, rectify perspective, segment cells, and run batched ONNX inference to reconstruct and solve complete puzzles.

content/learning-paths/mobile-graphics-and-gaming/onnx/06_SudokuProcessor.md renamed to content/learning-paths/mobile-graphics-and-gaming/onnx/06_sudokuprocessor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ You simply provide the path to a Sudoku image and the ONNX model, and the script
436436

437437
Representational result is shown below:
438438

439-
![img2](Figures/02.png)
439+
![img2](figures/02.png)
440440

441441
## Summary
442442
By completing this section, you have built a full vision-to-solution Sudoku system:
@@ -445,4 +445,4 @@ By completing this section, you have built a full vision-to-solution Sudoku syst
445445
3. A deterministic solver,
446446
4. Clear visual diagnostics at every stage.
447447

448-
In the next step of the learning path, we will focus on optimization and deployment.
448+
In the next step of the learning path, we will focus on optimization and deployment.

content/learning-paths/mobile-graphics-and-gaming/onnx/07_Optimisation.md renamed to content/learning-paths/mobile-graphics-and-gaming/onnx/07_optimisation.md

File renamed without changes.

content/learning-paths/mobile-graphics-and-gaming/onnx/08_Android.md renamed to content/learning-paths/mobile-graphics-and-gaming/onnx/08_android.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ We start by creating a new Android project using Android Studio. This project wi
2727
1. Create a new project:
2828
* Open Android Studio and click New Project.
2929
* In the Templates screen, select Phone and Tablet, then choose Empty Views Activity.
30-
![img3](Figures/03.png)
30+
![img3](figures/03.png)
3131

3232
This template creates a minimal Android application without additional UI components, which is ideal for a focused, step-by-step integration.
3333

@@ -41,7 +41,7 @@ This template creates a minimal Android application without additional UI compon
4141
* Minimum SDK: API 24 (Android 7.0 – Nougat). This provides wide device coverage while remaining compatible with ONNX Runtime and OpenCV.
4242
* Build configuration language: Kotlin DSL (build.gradle.kts). We use the Kotlin DSL for Gradle, which is now the recommended option.
4343

44-
![img4](Figures/04.png)
44+
![img4](figures/04.png)
4545

4646
* After confirming these settings, click Finish. Android Studio will create the project and generate a basic MainActivity along with the necessary Gradle files.
4747

@@ -201,7 +201,7 @@ Because the image area is scrollable, the layout remains usable even on smaller
201201

202202
When rendered, this produces a clear, vertically structured interface with a fixed control panel at the top and large input/output images underneath, as shown in the figure below.
203203

204-
![img](Figures/05.png)
204+
![img](figures/05.png)
205205

206206
At this stage, the UI is intentionally minimal. In the next step, we will connect this view to the application logic in MainActivity, load a sample Sudoku bitmap, and wire up the Load image and Solve buttons to the ONNX-based processing pipeline.
207207

@@ -1035,8 +1035,8 @@ To test the app:
10351035

10361036
The figures below show two representative test cases. In each example, the upper image corresponds to the original Sudoku puzzle, while the lower image shows the same puzzle with the missing digits filled in and overlaid in green. This visual comparison confirms that grid detection, digit recognition, solving, and rendering are all functioning correctly on-device.
10371037

1038-
![img](Figures/06.png)
1039-
![img](Figures/07.png)
1038+
![img](figures/06.png)
1039+
![img](figures/07.png)
10401040

10411041
These tests demonstrate that the application is robust to perspective distortion and partial digit placement, and that the model performs reliably when deployed via ONNX Runtime on Android.
10421042

@@ -1056,4 +1056,4 @@ This concludes the learning path and provides a solid foundation for building, o
10561056
## Companion code
10571057
You can find the companion code in these repositories:
10581058
1. [Sudoku solver](https://github.com/dawidborycki/SudokuSolverOnnx.git)
1059-
2. [Python scripts](https://github.com/dawidborycki/ONNX-LP.git)
1059+
2. [Python scripts](https://github.com/dawidborycki/ONNX-LP.git)

content/learning-paths/mobile-graphics-and-gaming/onnx/_index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ author: Dawid Borycki
2626

2727
### Tags
2828
skilllevels: Introductory
29-
subjects: Machine Learning, Edge AI
29+
subjects: ML
3030
armips:
3131
- Cortex-A
3232
- Neoverse
@@ -39,7 +39,6 @@ tools_software_languages:
3939
- PyTorch
4040
- TensorFlow
4141
- ONNX
42-
- ONNX Runtime
4342
- Android
4443
- Android Studio
4544
- Kotlin

content/learning-paths/mobile-graphics-and-gaming/onnx/Figures/01.png renamed to content/learning-paths/mobile-graphics-and-gaming/onnx/figures/01.png

File renamed without changes.

0 commit comments

Comments
 (0)