simplevision 0.5.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. simplevision-0.5.1/.gitignore +52 -0
  2. simplevision-0.5.1/LICENSE +201 -0
  3. simplevision-0.5.1/NOTICE +44 -0
  4. simplevision-0.5.1/PKG-INFO +102 -0
  5. simplevision-0.5.1/README.md +66 -0
  6. simplevision-0.5.1/pyproject.toml +66 -0
  7. simplevision-0.5.1/simplevision/__init__.py +23 -0
  8. simplevision-0.5.1/simplevision/_extractors.py +321 -0
  9. simplevision-0.5.1/simplevision/_version.py +1 -0
  10. simplevision-0.5.1/simplevision/outputs.py +74 -0
  11. simplevision-0.5.1/simplevision/pipeline.py +229 -0
  12. simplevision-0.5.1/simplevision/runtime/__init__.py +72 -0
  13. simplevision-0.5.1/simplevision/runtime/__main__.py +51 -0
  14. simplevision-0.5.1/simplevision/runtime/capture.py +136 -0
  15. simplevision-0.5.1/simplevision/runtime/context.py +22 -0
  16. simplevision-0.5.1/simplevision/runtime/executor.py +73 -0
  17. simplevision-0.5.1/simplevision/runtime/list_cameras.py +50 -0
  18. simplevision-0.5.1/simplevision/runtime/ops/__init__.py +31 -0
  19. simplevision-0.5.1/simplevision/runtime/ops/_common.py +35 -0
  20. simplevision-0.5.1/simplevision/runtime/ops/_registry.py +54 -0
  21. simplevision-0.5.1/simplevision/runtime/ops/barcode.py +115 -0
  22. simplevision-0.5.1/simplevision/runtime/ops/binary_ops.py +211 -0
  23. simplevision-0.5.1/simplevision/runtime/ops/caliper.py +182 -0
  24. simplevision-0.5.1/simplevision/runtime/ops/circles.py +62 -0
  25. simplevision-0.5.1/simplevision/runtime/ops/color_ops.py +126 -0
  26. simplevision-0.5.1/simplevision/runtime/ops/convolve.py +46 -0
  27. simplevision-0.5.1/simplevision/runtime/ops/cspace.py +73 -0
  28. simplevision-0.5.1/simplevision/runtime/ops/geomatch.py +205 -0
  29. simplevision-0.5.1/simplevision/runtime/ops/grayscale_ops.py +160 -0
  30. simplevision-0.5.1/simplevision/runtime/ops/image_ops.py +146 -0
  31. simplevision-0.5.1/simplevision/runtime/ops/lines.py +71 -0
  32. simplevision-0.5.1/simplevision/runtime/ops/lut.py +40 -0
  33. simplevision-0.5.1/simplevision/runtime/ops/mask.py +107 -0
  34. simplevision-0.5.1/simplevision/runtime/ops/ocr.py +145 -0
  35. simplevision-0.5.1/simplevision/runtime/ops/patternmatch.py +142 -0
  36. simplevision-0.5.1/simplevision/runtime/ops/pfilter.py +168 -0
  37. simplevision-0.5.1/simplevision/runtime/ops/qrcode.py +101 -0
  38. simplevision-0.5.1/simplevision/runtime/ops/rangethr.py +103 -0
  39. simplevision-0.5.1/simplevision/runtime/ops/shapematch.py +148 -0
  40. simplevision-0.5.1/simplevision/runtime/ops/skeleton.py +168 -0
  41. simplevision-0.5.1/simplevision/runtime/ops/warp.py +74 -0
  42. simplevision-0.5.1/simplevision/runtime/ops/watershed.py +110 -0
  43. simplevision-0.5.1/simplevision/runtime/types.py +77 -0
@@ -0,0 +1,52 @@
1
+ node_modules/
2
+ .DS_Store
3
+ dist/
4
+ build/
5
+ .svelte-kit/
6
+ *.log
7
+
8
+ # Tauri
9
+ app/src-tauri/target/
10
+ app/src-tauri/binaries/*
11
+ !app/src-tauri/binaries/.gitkeep
12
+ app/src-tauri/gen/
13
+ # Bundled Python sidecar — built by scripts/build-sidecar.sh, NOT tracked.
14
+ # Keep the .gitkeep placeholder so Tauri's resources glob matches even
15
+ # before the sidecar has been built.
16
+ app/src-tauri/python-runtime/*
17
+ !app/src-tauri/python-runtime/.gitkeep
18
+
19
+ # python-build-standalone download cache
20
+ .cache/python-build-standalone/
21
+
22
+ # Python runtime
23
+ runtime/.venv/
24
+ runtime/dist/
25
+ runtime/build/
26
+ runtime/*.egg-info/
27
+ runtime/__pycache__/
28
+ runtime/**/__pycache__/
29
+ runtime/.pytest_cache/
30
+
31
+ # Editor
32
+ .vscode/
33
+ .idea/
34
+ *.swp
35
+
36
+ # Runtime per-step outputs (live next to user frames)
37
+ samples/simplevision-*/
38
+ samples/.simplevision-*/
39
+
40
+ # Playwright CLI local session artefacts
41
+ .playwright/
42
+ .playwright-cli/
43
+
44
+ # Per-user Claude Code config + locally-cached plugin skills
45
+ .claude/
46
+
47
+ # Stray npm lockfile (this project uses pnpm)
48
+ package-lock.json
49
+
50
+ # Windows NTFS alternate-data-stream markers that leak through WSL
51
+ *:Zone.Identifier
52
+
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for describing the origin of the Work and
141
+ reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may accept and charge a
167
+ fee for acceptance of support, warranty, indemnity, or other liability
168
+ obligations and/or rights consistent with this License. However, in
169
+ accepting such obligations, You may act only on Your own behalf and
170
+ on Your sole responsibility, not on behalf of any other Contributor,
171
+ and only if You agree to indemnify, defend, and hold each Contributor
172
+ harmless for any liability incurred by, or claims asserted against,
173
+ such Contributor by reason of your accepting any such warranty or
174
+ additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed copy" page as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 AutoElec AB
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,44 @@
1
+ SimpleVision
2
+ Copyright 2026 AutoElec AB
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
5
+ use this product except in compliance with the License. A copy of the
6
+ License is included in the LICENSE file at the root of this repository.
7
+
8
+ ---------------------------------------------------------------------------
9
+ Third-party components bundled in SimpleVision release builds
10
+ ---------------------------------------------------------------------------
11
+
12
+ SimpleVision release installers redistribute the following third-party
13
+ software as binary components. Each component remains the property of its
14
+ respective copyright holders and is licensed under the terms below.
15
+
16
+ 1. CPython
17
+ The Python programming language interpreter.
18
+ Copyright (c) 2001-2026 Python Software Foundation. All rights reserved.
19
+ Licensed under the Python Software Foundation License Agreement (PSF).
20
+ Source and license: https://www.python.org/
21
+
22
+ 2. python-build-standalone
23
+ The portable CPython distribution used to package the bundled
24
+ interpreter.
25
+ Licensed under the Mozilla Public License 2.0 (MPL-2.0).
26
+ Source and license: https://github.com/astral-sh/python-build-standalone
27
+
28
+ 3. OpenCV (opencv-python)
29
+ Open Source Computer Vision Library.
30
+ Copyright (c) 2000-2026 Intel Corporation, Willow Garage, Itseez, and
31
+ contributors. All rights reserved.
32
+ Licensed under the Apache License, Version 2.0.
33
+ Source and license: https://github.com/opencv/opencv-python
34
+
35
+ 4. NumPy
36
+ The fundamental package for scientific computing with Python.
37
+ Copyright (c) 2005-2026 NumPy Developers. All rights reserved.
38
+ Licensed under the BSD 3-Clause License.
39
+ Source and license: https://github.com/numpy/numpy
40
+
41
+ The above list covers the principal bundled binaries. Transitive native
42
+ dependencies linked into the OpenCV and NumPy wheels (e.g. libpng, libjpeg,
43
+ zlib, OpenBLAS) retain their own upstream licenses; refer to the OpenCV
44
+ and NumPy projects for the complete dependency inventory.
@@ -0,0 +1,102 @@
1
+ Metadata-Version: 2.4
2
+ Name: simplevision
3
+ Version: 0.5.1
4
+ Summary: Run SimpleVision computer-vision pipelines from Python — a student-friendly companion to the SimpleVision editor.
5
+ Project-URL: Homepage, https://github.com/AutoElecAB/SimpleVision
6
+ Project-URL: Source, https://github.com/AutoElecAB/SimpleVision
7
+ Project-URL: Issues, https://github.com/AutoElecAB/SimpleVision/issues
8
+ Project-URL: Changelog, https://github.com/AutoElecAB/SimpleVision/blob/main/CHANGELOG.md
9
+ Author-email: AutoElec AB <tornblomanton@gmail.com>
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ License-File: NOTICE
13
+ Keywords: computer-vision,education,image-processing,opencv,pipelines
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Intended Audience :: Education
16
+ Classifier: Intended Audience :: Science/Research
17
+ Classifier: License :: OSI Approved :: Apache Software License
18
+ Classifier: Operating System :: MacOS
19
+ Classifier: Operating System :: Microsoft :: Windows
20
+ Classifier: Operating System :: POSIX :: Linux
21
+ Classifier: Programming Language :: Python :: 3
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Topic :: Education
26
+ Classifier: Topic :: Multimedia :: Graphics
27
+ Classifier: Topic :: Scientific/Engineering :: Image Processing
28
+ Classifier: Topic :: Scientific/Engineering :: Image Recognition
29
+ Requires-Python: >=3.11
30
+ Requires-Dist: numpy>=1.26
31
+ Requires-Dist: opencv-python>=4.9
32
+ Requires-Dist: pygrabber>=0.2; platform_system == 'Windows'
33
+ Provides-Extra: ocr
34
+ Requires-Dist: rapidocr-onnxruntime>=1.3; extra == 'ocr'
35
+ Description-Content-Type: text/markdown
36
+
37
+ # simplevision
38
+
39
+ Run [SimpleVision](https://github.com/AutoElecAB/SimpleVision) computer-vision
40
+ pipelines from Python.
41
+
42
+ SimpleVision is a learning tool for students: you build a vision pipeline
43
+ visually in the desktop editor (threshold, blob detect, color match,
44
+ geometric match, OCR, …), tick the measurements you care about, and the
45
+ editor saves the pipeline as a single `.simplevision` JSON file. This
46
+ library is the companion that runs that pipeline from Python so you can
47
+ plug the measurements into your own code.
48
+
49
+ ## Install
50
+
51
+ ```bash
52
+ pip install simplevision
53
+ ```
54
+
55
+ OCR is optional (it pulls in RapidOCR + ONNX Runtime, ~300 MB):
56
+
57
+ ```bash
58
+ pip install "simplevision[ocr]"
59
+ ```
60
+
61
+ ## Use it
62
+
63
+ Open your pipeline in the SimpleVision editor, tick the measurements you
64
+ want in **Output Control**, and save. Then in Python:
65
+
66
+ ```python
67
+ from simplevision import Pipeline
68
+
69
+ p = Pipeline.load("my_pipeline.simplevision")
70
+ p.run()
71
+
72
+ # Each name below is one you typed in the editor's Output Control panel.
73
+ if p.outputs.MatchPercentage[0] > 0.85:
74
+ print("Match found at", p.outputs.Centroids[0])
75
+ ```
76
+
77
+ Pass your own frame to `p.run()` to process many images through the same
78
+ pipeline:
79
+
80
+ ```python
81
+ import cv2
82
+ for path in ["frame_001.png", "frame_002.png", "frame_003.png"]:
83
+ p.run(path)
84
+ print(path, "->", p.outputs.Count)
85
+ ```
86
+
87
+ `print(p.outputs)` shows everything readably — handy while you're getting
88
+ oriented.
89
+
90
+ ## What's in the package
91
+
92
+ - `simplevision.Pipeline`, `simplevision.Outputs`, `simplevision.Point` —
93
+ the student-facing API.
94
+ - `simplevision.runtime` — the execution engine. You normally don't
95
+ import this directly; the desktop app uses it as a sidecar and
96
+ `Pipeline.run()` drives it under the hood. The runtime is documented
97
+ in [`docs/pipeline-spec.md`](https://github.com/AutoElecAB/SimpleVision/blob/main/docs/pipeline-spec.md)
98
+ if you want to build pipelines without the editor.
99
+
100
+ ## License
101
+
102
+ Apache-2.0. See `LICENSE` and `NOTICE`.
@@ -0,0 +1,66 @@
1
+ # simplevision
2
+
3
+ Run [SimpleVision](https://github.com/AutoElecAB/SimpleVision) computer-vision
4
+ pipelines from Python.
5
+
6
+ SimpleVision is a learning tool for students: you build a vision pipeline
7
+ visually in the desktop editor (threshold, blob detect, color match,
8
+ geometric match, OCR, …), tick the measurements you care about, and the
9
+ editor saves the pipeline as a single `.simplevision` JSON file. This
10
+ library is the companion that runs that pipeline from Python so you can
11
+ plug the measurements into your own code.
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ pip install simplevision
17
+ ```
18
+
19
+ OCR is optional (it pulls in RapidOCR + ONNX Runtime, ~300 MB):
20
+
21
+ ```bash
22
+ pip install "simplevision[ocr]"
23
+ ```
24
+
25
+ ## Use it
26
+
27
+ Open your pipeline in the SimpleVision editor, tick the measurements you
28
+ want in **Output Control**, and save. Then in Python:
29
+
30
+ ```python
31
+ from simplevision import Pipeline
32
+
33
+ p = Pipeline.load("my_pipeline.simplevision")
34
+ p.run()
35
+
36
+ # Each name below is one you typed in the editor's Output Control panel.
37
+ if p.outputs.MatchPercentage[0] > 0.85:
38
+ print("Match found at", p.outputs.Centroids[0])
39
+ ```
40
+
41
+ Pass your own frame to `p.run()` to process many images through the same
42
+ pipeline:
43
+
44
+ ```python
45
+ import cv2
46
+ for path in ["frame_001.png", "frame_002.png", "frame_003.png"]:
47
+ p.run(path)
48
+ print(path, "->", p.outputs.Count)
49
+ ```
50
+
51
+ `print(p.outputs)` shows everything readably — handy while you're getting
52
+ oriented.
53
+
54
+ ## What's in the package
55
+
56
+ - `simplevision.Pipeline`, `simplevision.Outputs`, `simplevision.Point` —
57
+ the student-facing API.
58
+ - `simplevision.runtime` — the execution engine. You normally don't
59
+ import this directly; the desktop app uses it as a sidecar and
60
+ `Pipeline.run()` drives it under the hood. The runtime is documented
61
+ in [`docs/pipeline-spec.md`](https://github.com/AutoElecAB/SimpleVision/blob/main/docs/pipeline-spec.md)
62
+ if you want to build pipelines without the editor.
63
+
64
+ ## License
65
+
66
+ Apache-2.0. See `LICENSE` and `NOTICE`.
@@ -0,0 +1,66 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "simplevision"
7
+ dynamic = ["version"]
8
+ description = "Run SimpleVision computer-vision pipelines from Python — a student-friendly companion to the SimpleVision editor."
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ authors = [{ name = "AutoElec AB", email = "tornblomanton@gmail.com" }]
12
+ license = "Apache-2.0"
13
+ license-files = ["LICENSE", "NOTICE"]
14
+ keywords = [
15
+ "computer-vision",
16
+ "opencv",
17
+ "image-processing",
18
+ "education",
19
+ "pipelines",
20
+ ]
21
+ classifiers = [
22
+ "Development Status :: 4 - Beta",
23
+ "Intended Audience :: Education",
24
+ "Intended Audience :: Science/Research",
25
+ "License :: OSI Approved :: Apache Software License",
26
+ "Operating System :: MacOS",
27
+ "Operating System :: Microsoft :: Windows",
28
+ "Operating System :: POSIX :: Linux",
29
+ "Programming Language :: Python :: 3",
30
+ "Programming Language :: Python :: 3.11",
31
+ "Programming Language :: Python :: 3.12",
32
+ "Programming Language :: Python :: 3.13",
33
+ "Topic :: Education",
34
+ "Topic :: Multimedia :: Graphics",
35
+ "Topic :: Scientific/Engineering :: Image Processing",
36
+ "Topic :: Scientific/Engineering :: Image Recognition",
37
+ ]
38
+
39
+ dependencies = [
40
+ "opencv-python>=4.9",
41
+ "numpy>=1.26",
42
+ 'pygrabber>=0.2; platform_system == "Windows"',
43
+ ]
44
+
45
+ [project.optional-dependencies]
46
+ ocr = ["rapidocr-onnxruntime>=1.3"]
47
+
48
+ [project.urls]
49
+ Homepage = "https://github.com/AutoElecAB/SimpleVision"
50
+ Source = "https://github.com/AutoElecAB/SimpleVision"
51
+ Issues = "https://github.com/AutoElecAB/SimpleVision/issues"
52
+ Changelog = "https://github.com/AutoElecAB/SimpleVision/blob/main/CHANGELOG.md"
53
+
54
+ [tool.hatch.version]
55
+ path = "simplevision/_version.py"
56
+
57
+ [tool.hatch.build.targets.wheel]
58
+ packages = ["simplevision"]
59
+
60
+ [tool.hatch.build.targets.sdist]
61
+ include = [
62
+ "simplevision",
63
+ "README.md",
64
+ "LICENSE",
65
+ "NOTICE",
66
+ ]
@@ -0,0 +1,23 @@
1
+ """SimpleVision — student-friendly Python interface to SimpleVision pipelines.
2
+
3
+ Typical use::
4
+
5
+ from simplevision import Pipeline
6
+
7
+ p = Pipeline.load("my_pipeline.simplevision")
8
+ p.run()
9
+
10
+ hit = p.outputs.MatchPercentage[0]
11
+ if hit > 0.85:
12
+ print("Match found")
13
+
14
+ The pipeline definition (steps, params, output bindings) lives entirely
15
+ in the ``.simplevision`` JSON. To change a step, open the editor — the
16
+ ``.py`` file never needs to be regenerated.
17
+ """
18
+
19
+ from ._version import __version__
20
+ from .outputs import Outputs, Point
21
+ from .pipeline import Pipeline
22
+
23
+ __all__ = ["Pipeline", "Outputs", "Point", "__version__"]