SPE - Scorpion Python Examples’s documentation¶
The Scorpion Python Examples provides valuable insight in Scorpion Vision Python Scripting. Python is what has made Scorpion a powerful machine vision framework.
Scorpion is extended by the important open-source libraries Numpy, Scipy and OpenCV. Most of these powerful API are exposed by a smooth python interface.
The Scorpion Python Modules provides the source code and documentation for all python modules with Scorpion Vision Software.
Contents:
- Python Primer
- Examples 01-10
- Example 01: Calculate Area
- Example 02: Calculate mean value
- Example 03: Manipulate the results from two LineFinders
- Example 04: Dynamic Threshold
- Example 05: Auto Exposure
- Example 06: DrawLine
- Example 07: Overlays
- Example 08-A: Python Methods
- Example 08-B: Python Objects
- Example 09: Scorpion Timing
- Example 10: Imaging Averaging
- Examples 11-20
- Example 11: Resample Image
- Example 12: Constant Image Contrast
- Example 13-A: Serial Communication using PythonWin
- Example 13-B: Serial Communication in Scorpion
- Example 14: Python Results
- Example 15: Making a result string
- Example 16: Automation by tool scripting
- Example 17: Image Manipulation with Python
- Example 18: Calculate Median Angle
- Example 19: Iterating objects located by a blob
- Example 20: Resampling using non-linear calibration
- Examples 21-30
- Example 21: Custom Scorpion Python extension
- Example 22: Accessing Scorpion Image Pixels
- Example 23: Implementing a tcp/ip Socket Server
- Example 24: Setting ExternalReference from calculated four points
- Example 25: Rotating a reference around in a circle
- Example 26: Grabbing an image from an MOXA Video IP Server
- Example 27: Toolbox Switch
- Example 28: ColorMatcher Iteration
- Example 29: Audio notification
- Example 30: Resampling using non-linear calibration
- Examples 31-40
- Example 31: Client to tcp Socket Server
- Example 32: Read / Write External Data from / to file
- Example 33: Changing a tool’s ROI using ExecuteCmd
- Example 34: Histogram Equalization
- Example 35: Robust Adam 6060 scripts
- Example 36: Bubble Sorting
- Example 37: Element Statistics
- Example 38: Saving Scorpion 3D Image
- Example 39 - Disabling Zoom in Image Windows
- Example 40 - Filtering timeseries
- Examples 41-50
- Using Arrlib from Python
- Introduction
- arrlibct versus pyArrlib
- How to get help on arrlibct
- Data types in ArrLib and arrlibct
- Fundamental types
- Small vectors
- Supported operations
- Small matrices
- Supported operations
- Poses
- Supported operations
- Ranges
- Parametric lines
- Supported operations
- Circles and spheres
- Color pixels
- Important note on garbage collection
- Geometric recipes
- Planar geometry
- Working with homogeneous lines and points in the plane
- Fitting points to a straight line
- Transformation of normal vectors and homogeneous lines.
- 3D space geometry
- 3D point transformations
- Merging two point clouds in Scorpion
- Intersecting lines in 3D
- Python Script Samples
- Using ScorpionOpenCV
- Release notes
- Scorpion Vision Software