Install
Install with PiG
pig install npm:@pi-dstools/ocrInstall with Pi
pi install npm:@pi-dstools/ocrPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./extensions/index.ts"
],
"changelogPath": "./CHANGELOG.md"
}README
Written by the package's publisher, shown as published in version 0.1.0 (README.md). PiG does not review it.
@pi-dstools/ocr
A Pi package that adds the ds_ocr tool, backed by DeepSeek's official OCR API.
Requirements
Pi must have a working DeepSeek connection, and the document or image must be available as a local file.
Install
Install the published package from your terminal, outside a Pi session:
pi install npm:@pi-dstools/ocr
Or install a checkout of this repository. From the workspace root:
pnpm install
pi install ./packages/ocr
To try that checkout for a single run without changing your settings:
pi -e ./packages/ocr
Usage
Ask Pi to recognize a local PDF, Word, PowerPoint, or image with ds_ocr. Provide a file path and optionally choose text_recognition or rich_layout_recognition. Short results are returned inline; longer results are saved to a temporary Markdown file whose path and total line count are returned, so Pi can read the full content with its built-in read tool.