Run SimpleVision computer-vision pipelines from Python — a student-friendly companion to the SimpleVision editor.
Project description
simplevision
Run SimpleVision computer-vision pipelines from Python.
SimpleVision is a learning tool for students: you build a vision pipeline
visually in the desktop editor (threshold, blob detect, color match,
geometric match, OCR, …), tick the measurements you care about, and the
editor saves the pipeline as a single .simplevision JSON file. This
library is the companion that runs that pipeline from Python so you can
plug the measurements into your own code.
Install
pip install simplevision
OCR is optional (it pulls in RapidOCR + ONNX Runtime, ~300 MB):
pip install "simplevision[ocr]"
Use it
Open your pipeline in the SimpleVision editor, tick the measurements you want in Output Control, and save. Then in Python:
from simplevision import Pipeline
p = Pipeline.load("my_pipeline.simplevision")
p.run()
# Each name below is one you typed in the editor's Output Control panel.
if p.outputs.MatchPercentage[0] > 0.85:
print("Match found at", p.outputs.Centroids[0])
Pass your own frame to p.run() to process many images through the same
pipeline:
import cv2
for path in ["frame_001.png", "frame_002.png", "frame_003.png"]:
p.run(path)
print(path, "->", p.outputs.Count)
print(p.outputs) shows everything readably — handy while you're getting
oriented.
What's in the package
simplevision.Pipeline,simplevision.Outputs,simplevision.Point— the student-facing API.simplevision.runtime— the execution engine. You normally don't import this directly; the desktop app uses it as a sidecar andPipeline.run()drives it under the hood. The runtime is documented indocs/pipeline-spec.mdif you want to build pipelines without the editor.
License
Apache-2.0. See LICENSE and NOTICE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simplevision-0.6.2.tar.gz.
File metadata
- Download URL: simplevision-0.6.2.tar.gz
- Upload date:
- Size: 56.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecdfc3e3af73da1f6950ad44b3352299d5e6c5a91b18d0e16c4d8c685e90f374
|
|
| MD5 |
883034e9edd23505afecc94ddfe4873a
|
|
| BLAKE2b-256 |
5326b01f16ad50b1c0c38f2226662df57d3e4f80aab590b00c7810db7fa47f91
|
Provenance
The following attestation bundles were made for simplevision-0.6.2.tar.gz:
Publisher:
pypi-publish.yml on AutoElecAB/SimpleVision
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
simplevision-0.6.2.tar.gz -
Subject digest:
ecdfc3e3af73da1f6950ad44b3352299d5e6c5a91b18d0e16c4d8c685e90f374 - Sigstore transparency entry: 1525872676
- Sigstore integration time:
-
Permalink:
AutoElecAB/SimpleVision@97aaf159131f512899da79252b4691c97a220238 -
Branch / Tag:
refs/tags/py-v0.6.2 - Owner: https://github.com/AutoElecAB
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@97aaf159131f512899da79252b4691c97a220238 -
Trigger Event:
push
-
Statement type:
File details
Details for the file simplevision-0.6.2-py3-none-any.whl.
File metadata
- Download URL: simplevision-0.6.2-py3-none-any.whl
- Upload date:
- Size: 81.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
403ab9deb3165d5068eb6e61fa070e1d7f43260b18cb66bac4722e66d4987941
|
|
| MD5 |
c8459d98ef6a5b19ac44b732e3e1d110
|
|
| BLAKE2b-256 |
58341f3e368cd9b0b3b4f6f85274c4ac8aed195570d30bd2490c500d881efe68
|
Provenance
The following attestation bundles were made for simplevision-0.6.2-py3-none-any.whl:
Publisher:
pypi-publish.yml on AutoElecAB/SimpleVision
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
simplevision-0.6.2-py3-none-any.whl -
Subject digest:
403ab9deb3165d5068eb6e61fa070e1d7f43260b18cb66bac4722e66d4987941 - Sigstore transparency entry: 1525872781
- Sigstore integration time:
-
Permalink:
AutoElecAB/SimpleVision@97aaf159131f512899da79252b4691c97a220238 -
Branch / Tag:
refs/tags/py-v0.6.2 - Owner: https://github.com/AutoElecAB
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@97aaf159131f512899da79252b4691c97a220238 -
Trigger Event:
push
-
Statement type: