Skip to main content

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 and Pipeline.run() drives it under the hood. The runtime is documented in docs/pipeline-spec.md if you want to build pipelines without the editor.

License

Apache-2.0. See LICENSE and NOTICE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simplevision-0.8.2.tar.gz (93.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simplevision-0.8.2-py3-none-any.whl (128.4 kB view details)

Uploaded Python 3

File details

Details for the file simplevision-0.8.2.tar.gz.

File metadata

  • Download URL: simplevision-0.8.2.tar.gz
  • Upload date:
  • Size: 93.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simplevision-0.8.2.tar.gz
Algorithm Hash digest
SHA256 f1de19509700f05f4402291ba375f2aa4c1f5ef0e6bc1dcc97e67bb1d53568a0
MD5 c7aaea51b58da7f38d8832fa7ea842ad
BLAKE2b-256 46a3f0c825e37800a8f0e7b0e7394dbb3e2e3ae18632fbc5bc16689a7c2c7d45

See more details on using hashes here.

Provenance

The following attestation bundles were made for simplevision-0.8.2.tar.gz:

Publisher: pypi-publish.yml on AutoElecAB/SimpleVision

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file simplevision-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: simplevision-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 128.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simplevision-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 08b76f5aaf32968b7d4cbaa597bc71b483f40c5d34025c7142038137a91a7647
MD5 d37745053346b926b703c905064e2758
BLAKE2b-256 6fb575944149a31437f7bb5e8dd7754f6319cdd7cbefa77b25163279664ded35

See more details on using hashes here.

Provenance

The following attestation bundles were made for simplevision-0.8.2-py3-none-any.whl:

Publisher: pypi-publish.yml on AutoElecAB/SimpleVision

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page