hellofont-font-recognition
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "hellofont-font-recognition" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f31af5028161fd91125abf2c5e13d1b07140f3622908efb6198cf12c3701c704. Verify the upstream source and version against https://skillhub.cn/skills/hellofont/hellofont-font-recognition before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
When a user uploads an image, recognize the fonts of the text in the image and produce results for WebFont visualization.
Introduction source: third_party · hellofont · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: hellofont-font-recognition
description: 当用户上传图片,希望付费识别图片中的文字、匹配字体、候选字体与置信度,并生成 WebFont 可视化结果时使用。AI识字
仅用于通过图片识别中文文字字体、OCR 文本、最佳匹配与候选字体,并生成本地 HTML 富结果;不用于判断字体版权、授权或商业使用资格。每次识别费用为 0.50 元。
开始前
要求用户提供 JPEG、PNG 或 WebP 图片。没有图片时,请求上传清晰、紧密裁切到文字区域的图片;不要调用接口、创建订单或猜测字体。若对话状态已列出附件,即使只显示附件名,也直接使用该附件,不要搜索工作区或要求重新上传。
同一次用户识别意图只生成并保存一个规范 UUID client_request_id。所有传输重试必须等待前一次请求明确结束并复用这个 UUID;不得并发重复请求。
付费识别
严格按以下顺序执行:
- 向
https://agentpay.hellofont.cn/v1/font-recognition发起一次 multipart POST,只提交图片file、保存的client_request_id和可选query。 - 收到 HTTP 402 后,从
WeixinPay-Required取得paymentCode,并保存响应中的out_trade_no。两者都缺一不可;不要创建第二笔订单。 - 告知用户本次费用为 0.50 元,只将保存的
paymentCode交给weixinpay_pay,且同一次识别仅调用一次。等待支付工具返回明确状态;用户自行声称“已支付”不等于支付工具成功。 - 仅当
weixinpay_pay明确返回支付成功时,使用同一个out_trade_no在X-Out-Trade-No请求头向同一 endpoint 重试;不重传图片,不再发送client_request_id,也不再次支付。 - 重试必须得到 HTTP 200 且响应
mode=real。保存完整 JSON 到当前任务工作目录,例如hellofont-response.json;不要改写 OCR、候选顺序、置信度、字体 ID 或响应根级webfonts。
支付取消时立即停止,不重试取结果、不再支付。支付失败时立即停止,不重试取结果、不再支付。支付状态未知时停止;不得再次支付、再次调用 weixinpay_pay 或新建订单,请用户先通过支付渠道核验原 out_trade_no。没有支付工具明确成功或既有订单已支付的可靠执行状态时,不得仅凭用户陈述继续取结果。
对于已明确支付的订单,若取结果发生传输失败或返回 OCR_TIMEOUT,等待当前请求结束后,串行复用同一个 out_trade_no 重试;不重传图片、不创建订单、不再次支付。既有已支付订单的结果回放也只使用原 out_trade_no。
生成富结果
HTTP 200 且 mode=real 后,从本 Skill 目录运行:
python3 scripts/render_result.py \
--image "/absolute/path/to/original-image" \
--response "/absolute/path/to/hellofont-response.json" \
--output "/absolute/path/to/hellofont-result.html"
渲染器只消费响应根级 webfonts 中已批准的 HTTPS CSS;不需要也不得索取本地 WebFont 凭据。字体映射缺失、无效或加载失败时仍生成页面,并明确显示“系统字体回退”。只有页面显示“已使用识别字体渲染”时,才可声称启用了 WebFont。
当前 API 没有提供可验证的文字坐标,因此结果页展示原图但不绘制文字标框。
先返回可打开的 hellofont-result.html,再简要列出每一行 OCR 文本、最佳匹配 best_font、全部 candidates 和 confidence。所有字体匹配和 confidence 仅供参考,不承诺准确率。
NO_TEXT 是已完成结果:说明未检测到文字,建议上传更清晰、紧密裁切的文字区域,不编造 OCR 或字体。图片损坏或格式不支持时说明实际错误并请求 JPEG、PNG 或 WebP,不根据文件名推断内容。任何接口、支付或脚本未实际完成时,不得声称已经完成。
识别结果不构成任何字体版权、商用或其他授权结论;请以字体权利方的正式授权条款为准。
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决设计师和开发者识别图片字体的实际痛点
- 提供端到端付费识别和 WebFont 可视化闭环
Highlights
- 触发词精准完整,覆盖上传图片、识别字体、生成可视化等核心意图
Areas to improve
-
缺少 When to Use 显式章节 Reported severity: Minor
虽然有 description 描述使用场景,但未独立成 When to Use 章节
Recommendation: 建议增加显式的 When to Use 章节以提升可读性
Highlights
- Phase 划分清晰,步骤完整
- 包含端到端执行示例和出口条件
Highlights
- 支付流程有明确确认机制
- 覆盖主要异常场景并给出处理方案
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- agentpay.hellofont.cn
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.