Skip to content

Commit

Permalink
feat(readme): 更新AI/ML功能和改进模型检测精度更新README以反映AI/ML功能的最新进展,包括模型在检测拼图时的改进。
Browse files Browse the repository at this point in the history
修正了代码中的一个小错误,并整理了TODO列表的格式。fix(yolov8_detector):修正检测框类别名称的赋值逻辑

确保在yolov8_detector.dart中为检测框正确分配类别名称。
调整了条件运算符以避免潜在的空值。

refactor(yolov8_input):调整导入路径

重构yolov8_input.dart中的导入语句,以符合项目结构。

refactor(yolov8_output):调整导入路径

重构yolov8_output.dart中的导入语句,以符合项目结构。
  • Loading branch information
einsitang committed Aug 10, 2024
1 parent f20442b commit 3ebd87d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
30 changes: 19 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,37 @@

an open source Sudoku game application powered by Flutter .

you can build the Sudoku Game just for your own.
you can build your own Sudoku Game app, which allows you to quickly learn dart/flutter and its ecologically related application techniques, and is very friendly and instructional for tiro .

Download apk for android (preview) -> [github release page](https://github.com/einsitang/sudoku-flutter/releases)


### recent:

feature of AI/ML sudoku detect to solver is basically available now , welcome to try and feedback .

[![document/img/sudoku-detect-bilibili-demo.png](document/img/sudoku-detect-bilibili-demo.png)](https://www.bilibili.com/video/BV1BKYteEEer)

<div style="text-align: center;"> <b>watch</b>: ai solver demo video </div>

about AI/ML model is train by **yolov8** , you can also visit [ultralytics](https://github.com/ultralytics/ultralytics) to know more

download latest release apk for android (preview) -> [github release page](https://github.com/einsitang/sudoku-flutter/releases)



## screenshots

### iOS

![Bootstrap](./document/img/WX20230312-193408.jpg)![Game](./document/img/WX20230312-193423.jpg)

recent update

### bilibili video
https://www.bilibili.com/video/BV1BKYteEEer


## plan-to-do
- [:bangbang:] AI sudoku solver with camera - working well :-)
- amendable detection puzzle on AI Solver
- AI MODELS optimize with "amendable detection cell"
- :ballot_box_with_check: AI sudoku solver with camera - working well :-)
- :black_square_button: amendable detection puzzle on AI Solver
- :black_square_button: AI MODELS optimize with "amendable detection cell"


## environment
Expand Down Expand Up @@ -106,9 +117,6 @@ $> flutter build iOS
$> flutter build apk
```
## more flutter features
see the [Flutter](https://flutter.dev/) official website
## star history
Expand Down
Binary file added document/img/sudoku-detect-bilibili-demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/ml/yolov8/yolov8_detector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class YoloV8Detector extends Predictor<YoloV8Input, YoloV8Output> {
var classId = classIds[index];
detectionBoxes.add(YoloV8DetectionBox(
classId: classId,
className: classes[classId] ??= 'Unknown',
className: classes[classId] ?? 'Unknown',
confidence: scores[index],
x: x,
y: y,
Expand Down
2 changes: 1 addition & 1 deletion lib/ml/yolov8/yolov8_input.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:typed_data';

import 'package:opencv_dart/opencv_dart.dart' as cv;
import 'package:sudoku/ml/predictor.dart';

import '../predictor.dart';

/**
* INPUT
Expand Down
2 changes: 1 addition & 1 deletion lib/ml/yolov8/yolov8_output.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '../predictor.dart';
import 'package:sudoku/ml/predictor.dart';

/**
* OUTPUT
Expand Down

0 comments on commit 3ebd87d

Please sign in to comment.