Crates.io | aravis |
lib.rs | aravis |
version | 0.11.0 |
source | src |
created_at | 2019-10-26 16:00:48.478946 |
updated_at | 2024-09-09 16:59:19.88437 |
description | safe bindings for Aravis, a vision library for genicam based cameras |
homepage | |
repository | https://github.com/robohouse-delft/aravis-rs |
max_upload_size | |
id | 175918 |
size | 496,498 |
This crate contains (mostly) safe bindings to the Aravis library.
The bindings are mostly auto-generated with the gir
tool from the gtk-rs project.
This crate currently targets version 0.8.14 of the Aravis library.
The autogenerated API uses extension traits to implement methods for many structs.
This is done by the gir
tool to emulate class inheritance.
Practically, this means that you should also look the CameraExt
trait if you want to know what you can do with a Camera
.
You can import the prelude to bring all available extension traits in scope:
use aravis::prelude::*;
The API was regenerated with a new version of the gir
tool.
As a result, the public API has changed a bit:
get_
prefix, so a function that was called get_foo()
is now simply called foo()
.*Ext
traits.
For example, this means that all methods for Buffer
objects are now directly implemented on the Buffer
struct.
This mostly means you can just remove the import of traits that no longer exist.This documentation constist mainly of original documentation of the Aravis project. The copyright and license of the Aravis project apply to those parts. The full original documentation is also available online and might help if the translation to Rust made things unclear.