Install and verify
Install the SDK. Note that Python 3.9+ is required.pip show perceptron.
Next, configure credentials and run a simple query.
PerceiveResult object containing text, optional points, parsed segments, any errors, and the raw provider payload. Call result.points_to_pixels(width, height) when you need pixel-space coordinates from the normalized 0–1000 grid (more on this here).
First-run checklist
caption("drone.png").textreturns content with no exception.caption("drone.png").errorsis empty (or populated with expected warnings).- Outbound network access to
https://api.perceptron.incsucceeds. - Logs show retries or timeouts only when expected.
Troubleshooting reference
| Symptom | Fix |
|---|---|
AuthError | Recheck environment variables, or pass api_key directly to perceptron.configure. |
TimeoutError | Allowlist the hostname or route through your proxy; bump timeout via perceptron.config. |
| SSL certificate error | Point PERCEPTRON_BASE_URL at the TLS endpoint your network trusts. |
Looking for other languages or SDKs? Tell us in Discord so we can prioritize official releases.