Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
pip install stag-python
Note: in this example cv2 is used for loading the image. To use cv2, you need to install opencv-python: pip install opencv-python
import stag
import cv2
# specify marker type
libraryHD = 21
# load image
image = cv2.imread("example.jpg")
# detect markers
(corners, ids, rejected_corners) = stag.detectMarkers(image, libraryHD)
For a more comprehensive example refer to example.py
Following parameters can be specified:
libraryHD
:
Sets the "family" or "type" of used STag markers
The following HD libraries are possible:
HD | 11 | 13 | 15 | 17 | 19 | 21 | 23 |
---|---|---|---|---|---|---|---|
Library Size | 22,309 | 2,884 | 766 | 157 | 38 | 12 | 6 |
Specifies the used Hamming Distance, for further information refer to the original paper
errorCorrection
:
0 <= errorCorrection <= (libraryHD-1)/2
Install Prerequisites
apt install cmake
OpenCV 4 for C++
apt install libopencv-dev
NumPy: pip install numpy
"numpy/ndarrayobject.h: No such file or directory"
occurs, try one of following solutions:
apt install python-numpy
orfind / -name ndarrayobject.h
) and create a symlink from its parent directory to "/usr/include/numpy" (e.g. ln -s /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy /usr/include/numpy
)Clone this repository recursively:
git clone --recursive https://github.com/ManfredStoiber/stag-python
Build the project
In the project directory, run the following command:
pip install .
Run the example
cd example
python example.py
FAQs
STag - A Stable, Occlusion-Resistant Fiducial Marker System
We found that stag-python demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.