Skip to main content

No project description provided

Project description

Pycameleon

CI PyPI PyPI Downloads PyPI Python

A python binding for cameleon, a rust crate to interact with U3V (USB 3 Vision) camera that implement GenICam.

⚠️ Work in Progress
This project is currently under active development. Features are being added, and APIs may change as we improve the design.

We welcome new contributors! If you want to help, here’s how you can get involved:

Your contributions, whether code, documentation, or ideas are highly appreciated!

Instalation

PyPI (Recommended)

This package is available in PyPI.

pip install pycameleon

Build from source

Build dependencies:

  • Rust/Cargo toolchain installed
  • maturin pip install maturin/pipx install maturin
  • libusb header (See cameleon FAQ)

First install maturin using pip or pipx or other package manager.

pip install maturin

Then run the following to install the package into the current environment.

maturin develop

Linux

By default, many devices are only accessible to root and need udev rules for non root users to access.

First use lsusb to list vendor and product id ID vendor_id:product_id.

Then, create an udev rule file at /etc/udev/rules.d/, for example /dev/udev/rules.d/99-u3v.rules

Choose and change vendor and product id with your own.

# Example: USB with vendor Id 2676 and product id 5678
SUBSYSTEM=="usb", ATTRS{idVendor}=="2676", ATTR{idProduct}=="5678", MODE:="0666", TAG+="uaccess", TAG+="udev-acl"
# Example: USB with vendor Id 2676 with any product id
SUBSYSTEM=="usb", ATTRS{idVendor}=="1234", MODE:="0666", TAG+="uaccess", TAG+="udev-acl"

If the framerate is low, you may need to increase usbfs_memory_mb limit. By default, USB-FS on Linux systems only allows 16 MB of buffer memory for all USB devices. This is quite low for high-resolution image streaming. We recommend you to set the value to 1000MB. You could set the value as following:

echo 1000 > /sys/module/usbcore/parameters/usbfs_memory_mb

Windows

For Windows, driver supported by libusb like WinUSB is required.

In most case, Zadig is recommended as an Automated Driver Installer GUI application.

NOTE: Make sure to install a driver to a composite device not to its child devices. To do this, you need to list all devices connected to the host computer with zadig like below.

MacOS

MacOS should have out of box support after installing the pip package, for building from source, the libusb package is available in homebrew.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pycameleon-0.2.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl (835.0 kB view details)

Uploaded PyPymanylinux: glibc 2.28+ x86-64

pycameleon-0.2.0-pp311-pypy311_pp73-manylinux_2_28_i686.whl (902.6 kB view details)

Uploaded PyPymanylinux: glibc 2.28+ i686

pycameleon-0.2.0-cp39-abi3-win_amd64.whl (633.9 kB view details)

Uploaded CPython 3.9+Windows x86-64

pycameleon-0.2.0-cp39-abi3-win32.whl (585.9 kB view details)

Uploaded CPython 3.9+Windows x86

pycameleon-0.2.0-cp39-abi3-musllinux_1_2_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ x86-64

pycameleon-0.2.0-cp39-abi3-musllinux_1_2_i686.whl (1.1 MB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ i686

pycameleon-0.2.0-cp39-abi3-musllinux_1_2_armv7l.whl (1.1 MB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARMv7l

pycameleon-0.2.0-cp39-abi3-musllinux_1_2_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARM64

pycameleon-0.2.0-cp39-abi3-manylinux_2_28_x86_64.whl (842.0 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ x86-64

pycameleon-0.2.0-cp39-abi3-manylinux_2_28_s390x.whl (860.4 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ s390x

pycameleon-0.2.0-cp39-abi3-manylinux_2_28_ppc64le.whl (1.0 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ppc64le

pycameleon-0.2.0-cp39-abi3-manylinux_2_28_i686.whl (913.7 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ i686

pycameleon-0.2.0-cp39-abi3-manylinux_2_28_armv7l.whl (832.6 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ARMv7l

pycameleon-0.2.0-cp39-abi3-manylinux_2_28_aarch64.whl (829.6 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ARM64

pycameleon-0.2.0-cp39-abi3-macosx_11_0_arm64.whl (705.5 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

pycameleon-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl (731.6 kB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file pycameleon-0.2.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pycameleon-0.2.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 47f6d040f30668b973fc155b0a7496b9bd3cf61471cae65bbd806794aaa169c0
MD5 5784aecedd3be693582ed27f51f12ca7
BLAKE2b-256 413494cc37b4ed611c8751efe916080f46fe092962e39c5e73221e5e3922f624

See more details on using hashes here.

File details

Details for the file pycameleon-0.2.0-pp311-pypy311_pp73-manylinux_2_28_i686.whl.

File metadata

File hashes

Hashes for pycameleon-0.2.0-pp311-pypy311_pp73-manylinux_2_28_i686.whl
Algorithm Hash digest
SHA256 c91fba77c248eabd51d4ff48d11dce065c0902c617c28120de79f804f036e6bb
MD5 74c4d0834eb0aace12f8f1fd1d127377
BLAKE2b-256 2ef6b87d925e06885fc445ea3a0fa631176a4f4e80198f88153c78ec90206dc2

See more details on using hashes here.

File details

Details for the file pycameleon-0.2.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: pycameleon-0.2.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 633.9 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.10.2

File hashes

Hashes for pycameleon-0.2.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5bb2c48acda458258f82d3a6b5f7cdc34f67379754aecc893418bf99d4159ed6
MD5 a934d5b03be85428124d1732524857c9
BLAKE2b-256 abfbf52e5ab4b7d3065a354a16535b2ae3c297a6e2b03bee22693a371c142c72

See more details on using hashes here.

File details

Details for the file pycameleon-0.2.0-cp39-abi3-win32.whl.

File metadata

  • Download URL: pycameleon-0.2.0-cp39-abi3-win32.whl
  • Upload date:
  • Size: 585.9 kB
  • Tags: CPython 3.9+, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.10.2

File hashes

Hashes for pycameleon-0.2.0-cp39-abi3-win32.whl
Algorithm Hash digest
SHA256 f2d0217ff29f7b6302e756983abd502aa9c143548edacee424aadc1a86264e72
MD5 b85c481d2bc2ff5806130a48b9b72746
BLAKE2b-256 660960230b27921652970c8e95194a5ba6e70c5ea3d017341657886d9fe27ccf

See more details on using hashes here.

File details

Details for the file pycameleon-0.2.0-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pycameleon-0.2.0-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 643a5494d5c6ceeff09f8a269edadc09b02077dfcb6479de37b19fc94b7f09d9
MD5 07d5657867fb2b7dd6913995915e73ba
BLAKE2b-256 bcaae0ea34735a48372bb98768ecfdd34bda1ca97f886d815db1e91de09338d4

See more details on using hashes here.

File details

Details for the file pycameleon-0.2.0-cp39-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for pycameleon-0.2.0-cp39-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 d7a7352c77855380f9a5a9348d3d0a1c51be2ff7ac7a8bd5267e19fe92b2c766
MD5 a436ed32b7bfdcc52b70e134b847f8c2
BLAKE2b-256 65384601cb08fc9fa8acb820e15093e4b0e863a52552ae5076928e1676408d1f

See more details on using hashes here.

File details

Details for the file pycameleon-0.2.0-cp39-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for pycameleon-0.2.0-cp39-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 bfa616a7ee59b0e2b6c05b696f8410541b35c24a88a8efa2d0a0d2a32a25bba4
MD5 25fa2071ef09aa30d04624b8e5411936
BLAKE2b-256 b8b8dc39bf456514feadc324f74df0d5243d7b930ccd71a15c5d115541725428

See more details on using hashes here.

File details

Details for the file pycameleon-0.2.0-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for pycameleon-0.2.0-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 6ad830a05c8dee13572b90cdf359f3c4f282e5afa472891c2f7cb1a69d0a3946
MD5 78ad333a5e4558d80a56010fa4b2b882
BLAKE2b-256 895dd5d9146fe6547daca6ae4d9d54bea412656f1364b9bb40352e41b5bfe701

See more details on using hashes here.

File details

Details for the file pycameleon-0.2.0-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pycameleon-0.2.0-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f0bbc45993857fa8901cfbc9884399a285fb2215e7c9cde293dce769e5caf0b5
MD5 5e0552ee14906f430ecd0b0a9550b623
BLAKE2b-256 5ffed74764957b460fdc162239498bb3ba8f46f36bb9591bca2cd033fa673067

See more details on using hashes here.

File details

Details for the file pycameleon-0.2.0-cp39-abi3-manylinux_2_28_s390x.whl.

File metadata

File hashes

Hashes for pycameleon-0.2.0-cp39-abi3-manylinux_2_28_s390x.whl
Algorithm Hash digest
SHA256 136996998dfa6cc6555f7b2fcf51e0a5b9a0b82f12431d08911d81809fe110f9
MD5 9083d99e55eea84e124c828a989cc4d3
BLAKE2b-256 71ec864a6d7882ce65f9d17bd1a9b87f3ce52fbe8ef418eda911495378f96a70

See more details on using hashes here.

File details

Details for the file pycameleon-0.2.0-cp39-abi3-manylinux_2_28_ppc64le.whl.

File metadata

File hashes

Hashes for pycameleon-0.2.0-cp39-abi3-manylinux_2_28_ppc64le.whl
Algorithm Hash digest
SHA256 213cf6da990cc6057340eecd255a6d18598b0a98d8f7f8688dccbc65d4555376
MD5 493bfb67c228769e95b2eef776abf0f9
BLAKE2b-256 724ef0d041fa2ce38d641966435c6c64a72cca80e3fcdcb05958f4c492d6f2fd

See more details on using hashes here.

File details

Details for the file pycameleon-0.2.0-cp39-abi3-manylinux_2_28_i686.whl.

File metadata

File hashes

Hashes for pycameleon-0.2.0-cp39-abi3-manylinux_2_28_i686.whl
Algorithm Hash digest
SHA256 fd8cbb76586bf06333247e51069ad8b6916eb5bef9a850c0f35856d77570319c
MD5 00bcf5b3ed86fc425f9e8ff81befb945
BLAKE2b-256 7c09d60439aceb58984110235e12e04c43f51dae2c2c7bd30d8abb8aece2ceb5

See more details on using hashes here.

File details

Details for the file pycameleon-0.2.0-cp39-abi3-manylinux_2_28_armv7l.whl.

File metadata

File hashes

Hashes for pycameleon-0.2.0-cp39-abi3-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 173c4a4887b851aec9de1a350e1e3172512028b4e16e249384bce36fecc16e42
MD5 1fc32ff494c35fa6164f63627077fda4
BLAKE2b-256 bf39e61141ef07084f9a631448cfe874b7481637cd32ff4347a625c06ccae802

See more details on using hashes here.

File details

Details for the file pycameleon-0.2.0-cp39-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pycameleon-0.2.0-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fd010751bf750edc1ceb1eed2c68fcc7e06ffe9503279d4d6ce85c0950b25f6a
MD5 5005f2e25fa1983658a4b91d61efacfa
BLAKE2b-256 6d3006cca9025b28db40947b183007830ca43772f1baaa7f961b50d6b2b65a42

See more details on using hashes here.

File details

Details for the file pycameleon-0.2.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pycameleon-0.2.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e0b1054c6a2fab71524b1cead0726c8b7dacdcdc80945bcd552fa7a8e21858fa
MD5 1de3bb1dd6c297c69985f4bb03b2f1d2
BLAKE2b-256 e880fd986b8ceacd3ed9dc2d089d43c8c377b5c5e48e6e4bc4900cb975a0aa88

See more details on using hashes here.

File details

Details for the file pycameleon-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pycameleon-0.2.0-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 50e32b921483a63d996a70495c358879726d8dd09d7c827f3bea46ddf23c9115
MD5 416c2048ce278f7b2a0273a6038f328b
BLAKE2b-256 fb9a8c9b7e18dac258cfc3e7a07f45ac3239f50f4c264a1deca22360f8d93653

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page