seal-script-ocr
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSeal Script OCR
篆书 OCR
Upload a user-selected image to cyeam.com to recognize Chinese seal-script characters (篆字). For finding calligraphy glyphs or assembling text from copybook images, use the separate skill.
calligraphy-composition上传用户选择的图像到 cyeam.com,以识别中文篆书字符(篆字)。如需查找书法字形或从字帖图像中组合文本,请使用单独的 skill。
calligraphy-compositionCommand
命令
bash
cyeam mo ocr image.pngPass the local image path as the positional argument. The command reads the file, uploads its filename and contents to , and writes the recognition response as JSON to stdout.
https://www.cyeam.com/mo/api/ocrbash
cyeam mo ocr image.png将本地图像路径作为位置参数传入。该命令读取文件,将文件名和内容上传到 ,并将识别响应以 JSON 形式写入标准输出。
https://www.cyeam.com/mo/api/ocrResults and scope
结果与适用范围
- Report the recognized characters and any alternatives or confidence information actually returned by the service. Preserve uncertainty when a glyph is ambiguous.
- Image formats are not restricted by this workflow; PNG or JPG is recommended.
- Run OCR only for the image the user asks to recognize.
- No login or Microsoft authorization is required.
- 报告服务实际返回的已识别字符,以及任何备选结果或置信度信息。当字形存在歧义时,应保留不确定性。
- 此工作流不限制图像格式;推荐使用 PNG 或 JPG。
- 仅对用户要求识别的图像运行 OCR。
- 无需登录或进行 Microsoft 授权。
Installation
安装
Review the commands before installing. These examples pin v1.1.4, rather than latest, and download an executable archive.
Install only when the CLI is needed; do not reinstall for every command.
安装前请检查命令。这些示例固定使用 v1.1.4,而不是最新版,并会下载可执行文件归档。
仅在需要 CLI 时安装;不要为每条命令都重新安装。
macOS / Linux: verify and install in the user directory
macOS / Linux:在用户目录中验证并安装
Run in Bash or Zsh with , , , and either or .
The script selects macOS / Linux on arm64 or x86_64 and stops on other platforms.
curltarinstallshasumsha256sumbash
(
set -eu
version='v1.1.4'
case "$(uname -s)/$(uname -m)" in
Darwin/arm64)
asset='cyeam_Darwin_arm64.tar.gz'
sha256='06b5af004ab4f0f05d5829ea6bd18b97c4449c262af7df14c67175f7d3cb29db' ;;
Darwin/x86_64)
asset='cyeam_Darwin_x86_64.tar.gz'
sha256='107342bb9d2fa444b96155c468e71b8cc63e0f5ad0acc784698afe221548efa6' ;;
Linux/aarch64|Linux/arm64)
asset='cyeam_Linux_arm64.tar.gz'
sha256='ed87697f3948bead67b585e9881c3bef20e8d2d903beb5b125587281a5091c5b' ;;
Linux/x86_64)
asset='cyeam_Linux_x86_64.tar.gz'
sha256='873d6805fab8ab56540bb034aaf2f57f12eb672fcabd322ebe401e8250a5966d' ;;
*) echo 'Unsupported platform; see the pinned release.' >&2; exit 1 ;;
esac
workdir=$(mktemp -d)
trap 'rm -rf "$workdir"' EXIT
cd "$workdir"
curl --fail --show-error --silent --location --proto '=https' --proto-redir '=https' \
--output "$asset" "https://github.com/mnhkahn/cyeam-cli/releases/download/$version/$asset"
printf '%s %s\n' "$sha256" "$asset" > expected.sha256
if command -v sha256sum >/dev/null 2>&1; then
sha256sum -c expected.sha256
else
shasum -a 256 -c expected.sha256
fi
# set -e prevents extraction or installation if download or verification fails.
tar -xzf "$asset" cyeam
mkdir -p "$HOME/.local/bin"
install -m 0755 cyeam "$HOME/.local/bin/cyeam"
CYEAM_CLI_NO_UPDATE_NOTIFIER=1 "$HOME/.local/bin/cyeam" --no-analytics version
)This writes only to a temporary directory and (replacing an existing binary).
No administrator privileges are needed; system directories, services, and shell configuration are unchanged. For the current shell:
~/.local/bin/cyeambash
export PATH="$HOME/.local/bin:$PATH"For persistent access, add that line to your shell configuration.
Check the v1.1.4 release page and
checksums.txt
for checksums. When changing the pinned version, verify and replace both the version and its SHA-256 values.
Checksums confirm release-file consistency; they are not an independent signature or security audit.
在 Bash 或 Zsh 中运行,需要使用 、、,以及 或 。
curltarinstallshasumsha256sum该脚本会根据 arm64 或 x86_64 架构选择 macOS / Linux 版本,并在其他平台上停止。
bash
(
set -eu
version='v1.1.4'
case "$(uname -s)/$(uname -m)" in
Darwin/arm64)
asset='cyeam_Darwin_arm64.tar.gz'
sha256='06b5af004ab4f0f05d5829ea6bd18b97c4449c262af7df14c67175f7d3cb29db' ;;
Darwin/x86_64)
asset='cyeam_Darwin_x86_64.tar.gz'
sha256='107342bb9d2fa444b96155c468e71b8cc63e0f5ad0acc784698afe221548efa6' ;;
Linux/aarch64|Linux/arm64)
asset='cyeam_Linux_arm64.tar.gz'
sha256='ed87697f3948bead67b585e9881c3bef20e8d2d903beb5b125587281a5091c5b' ;;
Linux/x86_64)
asset='cyeam_Linux_x86_64.tar.gz'
sha256='873d6805fab8ab56540bb034aaf2f57f12eb672fcabd322ebe401e8250a5966d' ;;
*) echo 'Unsupported platform; see the pinned release.' >&2; exit 1 ;;
esac
workdir=$(mktemp -d)
trap 'rm -rf "$workdir"' EXIT
cd "$workdir"
curl --fail --show-error --silent --location --proto '=https' --proto-redir '=https' \
--output "$asset" "https://github.com/mnhkahn/cyeam-cli/releases/download/$version/$asset"
printf '%s %s\n' "$sha256" "$asset" > expected.sha256
if command -v sha256sum >/dev/null 2>&1; then
sha256sum -c expected.sha256
else
shasum -a 256 -c expected.sha256
fi
# set -e prevents extraction or installation if download or verification fails.
tar -xzf "$asset" cyeam
mkdir -p "$HOME/.local/bin"
install -m 0755 cyeam "$HOME/.local/bin/cyeam"
CYEAM_CLI_NO_UPDATE_NOTIFIER=1 "$HOME/.local/bin/cyeam" --no-analytics version
)这只会写入临时目录和 (替换已有二进制文件)。
不需要管理员权限;系统目录、服务和 shell 配置均不会发生变化。若要在当前 shell 中使用:
~/.local/bin/cyeambash
export PATH="$HOME/.local/bin:$PATH"如需持久使用,请将该行添加到 shell 配置中。
查看 v1.1.4 发布页面和 checksums.txt 中的校验和。变更固定版本时,需同时验证并替换版本及其 SHA-256 值。
校验和可确认发布文件的一致性,但它们并非独立的签名或安全审计。
External requests and local state
外部请求与本地状态
- Installation: Downloads the selected archive from a pinned GitHub release, which may redirect to GitHub's asset CDN. Verifies the pinned SHA-256 before extracting only . Installation verification disables analytics and update checks.
cyeam - OCR: reads the selected local file and uploads its filename and contents to
mo ocr <image>for recognition. Run only when the user requests recognition of that image; Microsoft login is not required.https://www.cyeam.com/mo/api/ocr - Analytics: By default, sends command names, CLI version, system information, and a random installation ID to . The server may infer location from the outgoing IP. Command arguments, image contents, and credentials are not included. The ID is stored in
https://us.i.posthog.com; disable with~/.cyeam/analytics-idor--no-analytics.CYEAM_CLI_NO_ANALYTICS=1 - Update notices: Checks GitHub for the latest release at most once every 24 hours and caches state in . Notices do not replace the executable. Set
~/.cyeam/update-state.jsonto disable. The explicitCYEAM_CLI_NO_UPDATE_NOTIFIER=1command downloads and verifies the latest release, replaces the executable, and then attempts to sync skills throughcyeam update. To remain on a pinned version, use the installation steps above instead.npx skills add
To keep only the network requests required for this skill in the current shell:
bash
export CYEAM_CLI_NO_ANALYTICS=1
export CYEAM_CLI_NO_UPDATE_NOTIFIER=1- 安装: 从固定的 GitHub 发布版本下载所选归档,重定向可能会指向 GitHub 的资源 CDN。在仅解压 之前,会验证固定的 SHA-256。安装验证会禁用分析功能和更新检查。
cyeam - OCR: 读取所选的本地文件,并将文件名和内容上传到
mo ocr <image>进行识别。仅当用户要求识别特定图像时运行;不需要 Microsoft 登录。https://www.cyeam.com/mo/api/ocr - 分析: 默认将命令名称、CLI 版本、系统信息和随机安装 ID 发送到 。服务器可能会根据传出 IP 推断位置。命令参数、图像内容和凭据不会被包含在发送的数据中。该 ID 存储在
https://us.i.posthog.com中;可使用~/.cyeam/analytics-id或--no-analytics禁用。CYEAM_CLI_NO_ANALYTICS=1 - 更新通知: 每 24 小时最多检查一次 GitHub 上的最新发布版本,并将状态缓存到 。通知不会替换可执行文件。设置
~/.cyeam/update-state.json可禁用通知。显式的CYEAM_CLI_NO_UPDATE_NOTIFIER=1命令会下载并验证最新发布版本、替换可执行文件,然后尝试通过cyeam update同步 skills。若要继续使用固定版本,请改用上述安装步骤。npx skills add
如需在当前 shell 中仅保留此 skill 所需的网络请求:
bash
export CYEAM_CLI_NO_ANALYTICS=1
export CYEAM_CLI_NO_UPDATE_NOTIFIER=1