april-vision-1.0.2
توضیحات
An AprilTags wrapper with camera discovery and axis conversion.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | april-vision-1.0.2 |
| نام | april-vision |
| نسخه کتابخانه | 1.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | "Will Barber, Joshua Perriman" |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/WillB97/april_vision |
| آدرس اینترنتی | https://pypi.org/project/april-vision/ |
| مجوز | MIT |
# april_vision
A fiducial marker system used by Student Robotics.
Uses [april tag](https://april.eecs.umich.edu/software/apriltag) markers to provide detection, pose and distance estimation for these markers.
## Installation
This library requires OpenCV but the default installation does not install OpenCV. There are a few different versions of OpenCV with different install sizes, to install the default package without OpenCV, run the following command.
```bash
pip install april-vision
```
To install the lightweight headless version OpenCV install the library with the following command.
```bash
pip install april-vision[opencv]
```
If you want to perform some of the more advanced features of the CLI (live view of the camera) you need the full version of OpenCV, which can be installed with the following command.
```bash
pip install april-vision[cli]
```
If you need to run the calibration feature in the CLI you will need to install the `opencv-contrib-python` module. All the versions of OpenCV clash so you should only have one installed.
## Example
```python
from april_vision import Processor, USBCamera, calibrations, find_cameras
cameras = find_cameras(calibrations)
try:
camera = cameras[0]
except IndexError:
print("No cameras found")
exit()
source = USBCamera.from_calibration_file(
camera.index,
camera.calibration,
camera.vidpid
)
cam = Processor(
source,
tag_family='tag36h11',
quad_decimate=2.0,
tag_sizes=0.08,
calibration=source.calibration
)
markers = cam.see_ids()
print(markers)
```
## Tools
When installed april_vision can be used on the command line providing a few useful tools. Each of the tools listed below contain help text on correct usage accessed via the `-h` argument.
```
april_vision annotate_image
Annotate an image file with the detected markers
```
```
april_vision annotate_video
Annotate a video file with the detected markers
```
```
april_vision calibrate
Generate camera calibration using a ChArUco board
```
```
april_vision live
Live camera demonstration with marker annotation
```
```
april_vision vision_debug
Generate the debug images of the vision processing steps
```
نیازمندی
| مقدار | نام |
|---|---|
| <4,>=3.3.0.post1 | pyapriltags |
| <2,>=1.21 | numpy |
| <1,>=0.9.9 | pyquaternion |
| - | Pillow |
| <2,>=1.0.26.1 | libusb-package |
| <2,>=1.2.1 | pyusb |
| <5,>=4 | opencv-python |
| - | flake8 |
| - | isort |
| - | mypy |
| - | build |
| - | types-Pillow |
| <2,>=1 | j5 |
| <5,>=4 | opencv-python-headless |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl april-vision-1.0.2:
pip install april-vision-1.0.2.whl
نصب پکیج tar.gz april-vision-1.0.2:
pip install april-vision-1.0.2.tar.gz