# 使用 Homebrew, apt, Nix 安装 ssocr

查看 ssocr 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:ssocr
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ssocr
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install ssocr
```

  证据: Debian stable package indexes: ssocr from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#ssocr
```

  证据: nixpkgs package indexes: pkgs/by-name/ss/ssocr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:ssocr
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ssocr>
- **版本:** 2.25.1
- **来源摘要:** Seven Segment Optical Character Recognition
- **主页:** <https://www.unix-ag.uni-kl.de/~auerswal/ssocr/>
- **仓库:** <https://github.com/auerswal/ssocr>
- **上游文档:** <https://www.unix-ag.uni-kl.de/~auerswal/ssocr/>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://www.unix-ag.uni-kl.de/~auerswal/ssocr/ssocr-2.25.1.tar.bz2>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ssocr (cli)
- ssocr (别名)

## 依赖

- imlib2

## 构建依赖

- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.25.1
- 本地数据: OK
- 上游仓库: https://www.unix-ag.uni-kl.de/~auerswal/ssocr/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

ssocr is a specialized command-line OCR program for reading seven-segment displays from images. It appeals to package nerds because it solves a narrow hardware-adjacent automation problem with deterministic C code rather than a general OCR or machine-learning stack.

### 项目历史

The official page explains that ssocr was written because general OCR software struggled with seven-segment displays, often segmenting a single digit into multiple characters. The project's niche is recognizing digits and characters made from seven-segment displays, especially from consistent camera setups.

The first 1.x versions used a separate preprocessing program named ssocrpp. The official version history says version 2 integrated all functionality into one binary and was the first publicly released ssocr version, with later development concentrating on image manipulation options and removing the need for separate tools.

### 采用历史

The upstream page lists third-party packages for FreeBSD, NixOS, Debian Buster and newer, Ubuntu Disco Dingo and newer, and Homebrew for macOS and x86-64 GNU/Linux. The supplied package metadata also shows Homebrew, Debian, Nix, and Ubuntu.

Adoption is use-case driven rather than broad platform infrastructure: ssocr is useful for people who need to turn photos of meters, scales, counters, or other seven-segment readouts into scriptable text.

### 使用方式

ssocr reads an image containing a seven-segment display, applies optional preprocessing commands such as crop, thresholding, inversion, rotation, shear, dilation, and erosion, then prints recognized digits to standard output. The man page documents reading from files or standard input and using Imlib2-supported image formats.

The official usage advice emphasizes fixed camera placement, consistent lighting, debug images, threshold tuning, cropping to the display, deskewing with shear or rotate, and specifying the expected number or character set of digits to catch recognition errors.

### 为什么软件包爱好者会关心

ssocr is significant because it is tiny, deterministic, and composable: it turns physical-world display readings into stdout, where shell scripts, cron jobs, home automation, and data logging can consume them.

It is also a reminder that not every OCR problem wants Tesseract. For package maintainers, ssocr's value is its small dependency surface, man page, source tarballs, and clear behavior for one specific class of displays.

### 时间线

- 2.x: Version 2 integrated ssocrpp preprocessing into the main ssocr binary and became the first publicly released ssocr line.
- 2.8.1: A manual page was added.
- 2.9.0: Reading images from a pipe was added, easing command-line composition.
- 2.11.0: Decimal point detection was added.
- 2.12.0: Hexadecimal digit detection was added.
- 2.13.0: Automatic digit-count determination was added.
- 2.15.0: Minus-sign detection was added.
- 2.22.0: A NEWS file was added, compilation with GCC 10 was fixed, and table-tennis-robot character sets were added.
- 2025: The official page lists version 2.25.1 as the current source tarball and generated man page version.

### Related projects

- The official page discusses general OCR programs such as GNU Ocrad, GOCR, OCRFeeder, ocropus, and Tesseract as related but less suitable for this specific seven-segment problem.
- It also links related seven-segment OCR projects such as Display OCR and sevenSegDecode.

### 来源

- <https://www.unix-ag.uni-kl.de/~auerswal/ssocr>
- <https://www.unix-ag.uni-kl.de/~auerswal/ssocr/ssocr-manpage.html>
- input source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ssocr
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Debian apt - ssocr - 2.25.0-1: normalized package name match | Debian stable package indexes: ssocr from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OCR for seven segment displays | https://www.unix-ag.uni-kl.de/~auerswal/ssocr/
- Nix - ssocr: normalized package name match | nixpkgs package indexes: pkgs/by-name/ss/ssocr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ssocr - 2.23.1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: ssocr from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OCR for seven segment displays | https://www.unix-ag.uni-kl.de/~auerswal/ssocr/


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [imlib2](https://pkg.so/zh-hans/brew/imlib2/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [ocrad](https://pkg.so/zh-hans/brew/ocrad/) - Shares pkgdb curated category or tags: cli, image-processing, media, ocr.
- [giflib](https://pkg.so/zh-hans/brew/giflib/) - Shares pkgdb curated category or tags: cli, image-processing, media.
- [leptonica](https://pkg.so/zh-hans/brew/leptonica/) - Shares pkgdb curated category or tags: cli, image-processing, media.
- [netpbm](https://pkg.so/zh-hans/brew/netpbm/) - Shares pkgdb curated category or tags: cli, image-processing, media.
- [ocrmypdf](https://pkg.so/zh-hans/brew/ocrmypdf/) - Shares pkgdb curated category or tags: cli, media, ocr.
- [epsilon](https://pkg.so/zh-hans/brew/epsilon/) - Shares pkgdb curated category or tags: cli, image-processing, media.
- [gifsicle](https://pkg.so/zh-hans/brew/gifsicle/) - Shares pkgdb curated category or tags: cli, image-processing, media.
- [openimageio](https://pkg.so/zh-hans/brew/openimageio/) - Shares pkgdb curated category or tags: cli, image-processing, media.
- [faceprints](https://pkg.so/zh-hans/brew/faceprints/) - Both packages work with overlapping file formats or content types. Shared terms: cli, image, image-processing, media, processing.
- [apngasm](https://pkg.so/zh-hans/brew/apngasm/) - Both packages work with overlapping file formats or content types. Shared terms: cli, image, image-processing, media, processing.

## Combined YAML source

View the package source record on GitHub. [combined/ssocr.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ssocr.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
