腾讯健康觅影 45°眼底彩照多病种 AI 分析
将以下提示词粘贴到你的 AI 对话框中:
请根据 https://skillhub.cn/install/skillhub.md,安装 @tencent-adm/fundus-images-ai-analysis。
技能介绍
问题
45° 眼底彩照 AI 分析通常不是“调一个同步接口”就能完成:需要把 JPEG/PNG/DICOM 图片转成纯 Base64,按左右眼生成 images[].descPosition,使用自生成 studyId 上传,再轮询异步结果,并从 glaucomaResultList、multipleDiseasesResultList 里筛选 status = 200 的有效项。它还需要处理异步状态码、报告链接提取和跨字段的眼别编码差异。
工作方式
该 Skill 封装腾讯健康觅影眼底 AI 服务的 HTTP 流程:
- 上传检查:调用
studyupload/v2/{appId},固定studyName、studyType=2,至少 1 张、最多 20 张图片; - 鉴权:请求头携带
appId、timestamp,并按HMAC-SHA256(token, appId + timestamp)生成signature; - 轮询结果:调用
queryEyeAIResult/{appId},默认aiType=0覆盖青光眼与多病种,needReport=1返回 PDF 报告;轮询时以 10 秒间隔等待,code=30008表示任务处理中,code=0且data非空时才算成功; - 结构化输出:按 ✅/⚠️/❓ 标记正常、异常、未知,提取
reportUrl并生成诊断小结。
边界与注意
左右眼编码在不同字段中不一致:上传 descPosition 为 1=左眼, 2=右眼,结果 eyeCategory 为 0=左眼, 1=右眼。文件名含 OD、_R、right 会优先识别为右眼;OS、_L、left 会识别为左眼,无法判断时传未知。Base64 不要带 data:image/...;base64, 前缀;单文件建议 ≤5MB;上传超时可设 60 秒,查询 30 秒;每次 studyId 需唯一。适合需要把眼底彩照接入工程流程、异步任务状态管理和结果格式化的场景。试用凭证调用次数和并发有限,正式使用需另行联系。
使用场景
- {'zh': '将 JPEG/PNG/DICOM 眼底彩照转成纯 Base64,生成 `images[].descPosition` 后上传检查', 'en': 'Convert JPEG, PNG, or DICOM fundus images to raw Base64, generate `images[].descPosition`, and upload the study'}
- {'zh': '用自生成 `studyId` 上传眼底照片,再按 10 秒间隔轮询 `queryEyeAIResult` 直到拿到有效结果', 'en': 'Upload fundus photos with a self-generated `studyId`, then poll `queryEyeAIResult` at 10-second intervals until a valid result is returned'}
- {'zh': '从 `glaucomaResultList` 与 `multipleDiseasesResultList` 筛选 `status = 200` 的条目,并提取 `reportUrl`', 'en': 'Filter `status = 200` entries from `glaucomaResultList` and `multipleDiseasesResultList`, then extract `reportUrl`'}
- {'zh': '把左右眼编码差异写入结果解析逻辑,避免把上传 `descPosition` 与结果 `eyeCategory` 混淆', 'en': 'Handle left/right encoding differences in result parsing to avoid confusing upload `descPosition` with result `eyeCategory`'}
适合人员
- {'zh': '需要把 45° 眼底彩照接入 AI 诊断 HTTP 流程的医疗软件工程师', 'en': 'Healthcare software engineers who need to integrate 45-degree fundus photos into an AI diagnosis HTTP pipeline'}
- {'zh': '要处理 Base64 图片上传、HMAC-SHA256 签名与异步轮询的后端开发者', 'en': 'Backend developers who need to handle Base64 image upload, HMAC-SHA256 signing, and asynchronous polling'}
- {'zh': '要把眼底 AI 结果格式化成带图标和报告链接的结构化输出的工程人员', 'en': 'Engineers who need to format fundus AI results into structured output with status icons and report links'}
- {'zh': '需要区分上传眼位与结果眼位编码,避免左右眼字段解析错误的集成工程师', 'en': 'Integration engineers who need to distinguish upload eye-position fields from result eye-category fields to avoid left/right parsing errors'}