Hermes Agent 條碼掃描器技能

為 Hermes 配備真正的本機條碼解碼器,可讀取 16 種一維及二維條碼格式,並完整保留前導零返回準確編號。

在 Hermes 安裝掃描器技能

需要 Node.js 22 或以上版本。

  1. 1

    直接執行指令,無需註冊帳戶。Hermes 會將全部五個檔案複製至 <HERMES_HOME>/skills/qrcode-barcode-scanner。

    Shell
    hermes skills install qrcode-ai-com/qrcode-barcode-scanner-rust/skills/qrcode-barcode-scanner
  2. 2

    按照 SKILL.md 的指示,將 @qrcode-ai-com/qrcode-barcode-scanner 安裝至項目本機的 .qrcode-barcode-scanner-runtime 資料夾。

  3. 3

    立即試用。向 Hermes 提問:

    請讀取 barcode-reference.png 中的 Code 128 條碼,並原樣保留前導零返回準確數值。

無需加上 --force 即可通過 Hermes 安全掃描。請避免使用僅下載 Markdown 的網址安裝方式,否則會遺漏 scripts/scan.mjs。詳情請參閱條碼掃描器技能指南。

在 GitHub 閱讀 SKILL.md

在 Hermes 任務中使用解碼條碼

條碼掃描器會返回準確編號與條碼格式,讓 Hermes 核對標籤資料而無需猜測數字。

在 Hermes 讀取條碼標籤

透過 scripts/scan.mjs 於本機擷取 Code 128、EAN-13、UPC-A 及二維條碼編號,完整保留前導零。

明確的結束狀態碼

scripts/scan.mjs 偵測成功返回 0、有效空報告返回 1、錯誤返回 2,且絕不查詢外部商品 API。

需要改用 MCP 工具呼叫?

Hermes 使用可攜式技能路徑;若屬原生支援 MCP 的助手,請參閱共用的 stdio MCP 伺服器指南。

在 Hermes 測試條碼圖片

準備測試圖片、複製以下請求,並比對工具返回的解碼內容。

barcode-reference.png

製作 Code 128 條碼,內容填入 STOCK-4827 並儲存為 barcode-reference.png。

指示 Hermes 讀取圖片

Text
Read barcode-reference.png with Barcode Scanner.
Return the complete identifier as text and its format.
Preserve leading zeros. Do not run external lookups.
If the tool is unavailable or detects nothing, report that
instead of guessing.
預期結果 · Code 128
STOCK-4827

透過掃描器,Hermes 會返回準確的條碼編號與格式,而非憑像素猜測。

barcode-reference.png 的示範解碼結果。

Hermes 條碼掃描器技能常見問題

安裝方式、條碼格式、前導零保留、本機私隱保護及 MIT 授權。

直接執行 hermes skills install qrcode-ai-com/qrcode-barcode-scanner-rust/skills/qrcode-barcode-scanner,無需帳戶。Hermes 會將全部五個技能檔案安裝至 <HERMES_HOME>/skills/qrcode-barcode-scanner。

技能本身只包含 SKILL.md 及 scripts/scan.mjs,並不附帶原生二進制檔案。請依照 SKILL.md 指引文件 的步驟,將 @qrcode-ai-com/qrcode-barcode-scanner 安裝至項目本機的 .qrcode-barcode-scanner-runtime 目錄(切勿放在技能目錄內)。

支援解碼 16 種條碼格式:Code 128、Code 39、Code 93、EAN-13(包括書籍 ISBN)、EAN-8、UPC-A、UPC-E、ITF、Codabar、Telepen、GS1 DataBar、GS1 DataBar Expanded、Data Matrix、PDF417、Aztec 及 MaxiCode,同時支援二維碼。

會。content.text 一律以原樣字串返回以完整保留前導零,EAN-13 報告亦會同時解析 14 位數的 GS1 GTIN。輔助指令碼解碼時不會發出任何網絡請求,亦不會查詢商品或 ISBN 資料庫。

直接透過 Markdown 網址安裝只會下載 SKILL.md 而遺漏 scripts/scan.mjs。請使用 hermes skills install 配搭 GitHub 目錄路徑,令五個檔案一併到位並無需 --force 即通過 Hermes 安全掃描。

偵測到條碼時 scripts/scan.mjs 會以 0 結束;找不到條碼但產生有效空 JSON 報告時返回 1;遇到用法、檔案或掃描錯誤則返回 2。若 trace.budget_exhausted 為 true,請加上 --budget-ms 0 重新掃描。

執行 hermes skills uninstall qrcode-barcode-scanner 即可移除。解碼在 Node.js 22 或以上版本於本機執行(Hermes 會將對話內容傳送至您設定的 LLM)。現有技能與引擎版本皆免費並採用 MIT 授權,與 QR Code AI 付費方案分開。

繼續瀏覽其他條碼掃描器指南

閱讀通訊協定指南、切換至 Hermes 二維碼掃描方案,或瀏覽所有條碼整合方案。

條碼掃描器技能

檢視 SKILL.md、Node 輔助指令碼、結束狀態碼及獨立引擎設定。

閱讀技能指南

Hermes 二維碼掃描器技能

在 Hermes 解碼 QR Code、Micro QR 及 rMQR 圖片,取得準確網址及質素評分。

探索 Hermes 二維碼掃描器