feat: physics experiment score fetch#85
Conversation
- 缓存 Dio 实例以避免重复创建,提高网络请求性能 - 增加对登录获取的会话 ID 的校验,若为空则抛出异常 - 修复部分 dio.post 调用未正确使用 await 的问题 refactor(image_recognition_service): 延迟初始化 ExperimentReportSession - 将 _session 改为延迟初始化,仅在需要时创建实例 - 更新调用方式以确保使用带缓存的 session getter
|
Continue discussion on topic #84. 我看到了图片,有个大胆的想法。用微软雅黑字体生成一堆这样的图片,搞分析…… 同时,图片原始的文件名有没有保留。我打算确认文件名和图片内容是一一对应的,这样就只需要一个 Map<String, double> 就能解决问题了。 |
|
可能在生成图片需要考虑 truetype ,也就是边缘色条的来源。 仅供参考哈,您按自己想法节奏写。 |
|
ok,我回头再研究研究 |
只有这一个,因为看到我有的其他的这里已经有了。我是直接从网站上另存为下来的。 顺便,我发现网站上相同分数的文件名似乎是相同的,能否直接通过获取图片的文件名或者文件地址来判别分数呢? |
直接使用文件名作为识别标准我觉得不太妥,链接里面有cache关键词,说明这个文件可能就是个临时文件。所以在新的方案中我决定使用文件的哈希值作为判断依据,这个纯算法的方法可能会作为一个分支保留。 |
- Updated localization files to include new strings for score viewing and email sending. - Modified ExperimentData model to use RecognitionResult for score representation, including JSON serialization/deserialization. - Enhanced ExperimentInfoCard to display score information and allow users to send score data via email. - Implemented a new image recognition service that utilizes MD5 hash matching for score recognition. - Removed unused similarity metrics code to streamline the image recognition process. - Updated experiment session handling to accommodate new score recognition logic. - Adjusted pubspec.yaml to include the new score hashes JSON file.
|
完成使用MD5作为图片匹配的方案。 注意:
|
etting.json和build.gradle 你那里删下,反正没 merge ? |
|
只能明天再改,现在断电了🥲 |
- Using MD5 as the standard for score matching
…su/traintime_pda into feat/physicalExperimentScore
…sed methods in ExperimentReportSession
…used image import in ExperimentReportSession
hazuki-keatsu
left a comment
There was a problem hiding this comment.
我已经完成代码的Review工作,同时做了以下工作:
- 移除未使用到的方法,简化代码
- 增加缓存冲突处理机制
- 移除未使用到的依赖

这个PR主要实现了之前未解决的物理实验分数抓取问题。
任务表