图片识别番剧#2000
Merged
Merged
Conversation
Owner
|
看上去相当不错,我还看了它们的文档,看上去我们不会遇到请求速率限制 我们也许可以考虑将其作为搜索页面的一个功能,通过特定 IconButton 进入,就像 Google 图片搜索那样 我们还应该在设置页和 README 中提及此服务,并且在应用搜索页面的此功能页面也应该提及服务由 https://trace.moe/ 提供 |
- 支持上传图片文件和输入图片URL两种方式 - 集成trace.moe API实现以图搜番功能 - 添加图片预览和搜索结果显示界面
Contributor
Author
Contributor
|
这个圆角貌似有点奇怪🤔,像是框线被遮挡了 |
- strokeAlignInside to strokeAlignOutside边框对齐方式从内部改为外部
- 点击后返回选中的搜索标题到上一页面 - 在搜索页面接收图片搜索结果并自动填充搜索框
Contributor
Author
基本的页面和功能都已经完成了,如果没有问题我将继续在设置页和 README 中提及此服务2026-04-24_215053_747.mp42026-04-24_215049_679.mp4 |
Owner
|
看上去相当不错,这个pr很庞大,我会在周末仔细查看,此外 utils 中已经有格式化日期和时间的函数,新的函数似乎有重复的嫌疑 |
- 使用 durationToString 替换 formatTraceSeconds - 移除 Utils.formatTraceSeconds 方法
- 移除图片URL标签文本 - 修改预览容器最小高度从130调整为170
- 使用 Column 的 spacing 属性替代多个 SizedBox 组件
Predidit
reviewed
Apr 25, 2026
- 添加 mounted 检查防止组件卸载后状态更新
- 移除不必要的 Content-Type 头部设置
- 使用 whereType<num>() 替代 as int 类型转换以提高安全性
ErBWs
pushed a commit
to ErBWs/Kazumi
that referenced
this pull request
May 10, 2026
* anime_image_search * feat(image_search): 添加图片搜索番剧方法和api * feat(image_search_page): 添加图片搜索页面 * feat(image_search_page): 添加图片搜索功能实现 - 支持上传图片文件和输入图片URL两种方式 - 集成trace.moe API实现以图搜番功能 - 添加图片预览和搜索结果显示界面 * refactor(utils): update similarity formatting and remove unused import * fix(preview): 修复圆角边框被覆盖问题 - strokeAlignInside to strokeAlignOutside边框对齐方式从内部改为外部 * feat(plugin) * Rollback pubspec.lock * feat(search): 添加图片搜索结果搜索功能 - 点击后返回选中的搜索标题到上一页面 - 在搜索页面接收图片搜索结果并自动填充搜索框 * refactor(utils): 替换时间格式化方法 - 使用 durationToString 替换 formatTraceSeconds - 移除 Utils.formatTraceSeconds 方法 * refactor(search): 将剧集格式化方法从工具类移至搜索页面 * feat(about): add trace.moe about * style(search): 调整图片搜索页面UI布局 - 移除图片URL标签文本 - 修改预览容器最小高度从130调整为170 * refactor(search): 优化图片搜索页面布局间距 - 使用 Column 的 spacing 属性替代多个 SizedBox 组件 * refactor(search): 更新截图搜索提示文本 * docs(README) * fix(search): 修复图像搜索页面状态更新问题 - 添加 mounted 检查防止组件卸载后状态更新 * fix(request): 移除图像搜索请求中的多余选项配置 - 移除不必要的 Content-Type 头部设置 * fix(search): 修复图像搜索模块中的剧集数据类型处理问题 - 使用 whereType<num>() 替代 as int 类型转换以提高安全性 (cherry picked from commit a65b433)
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.





根据番剧的截图识别番剧信息
根据https://trace.moe/平台提供的api识别出番剧信息,(https://trace.moe平台根据ip限制每个用户每天可发送100次请求)
用户上传图片
↓
调用识别API(trace.moe)
↓
返回番剧信息(名称 / 集数 / 时间点)
↓
展示识别结果
↓
点击跳转搜索页面
如果觉得这个提议可行我可以实现他,这是我在其他项目的实现效果
a21850a0026633966b8e32beae4f4b4f_raw.mp4