Skip to main content

The official Python Binding for the GenICam GenApi & the GenTL Producers

Project description

The genicam module is the official Python binding of GenICam that is developed and maintained by the GenICam committee.

GenICam

About the genicam module

The genicam module consists of two sub-modules. The one is genapi and the other is gentl. The genapi module gives you a way to control GenICam features of the target device supports. On the other hand, the gentl module gives you a way to control functionality that the target GenTL Producer supports.

Using the genicam module

The genapi module

In this section, you will learn how to use the genapi module.

Creating a node map object

First, you create a node map object instantiating the NodeMap class:

from genicam.genapi import NodeMap

node_map = NodeMap()

And then, load a device description file on the node map object. The NodeMap object supports several ways to make it. One is to load the file content as a str object:

file_content = 'blabla'
node_map.load_xml_from_string(file_content)

Another way is to load the file as an XML file:

file = an_xml_file
node_map.load_xml_from_file(file)

The other ways is to load the file as a Zip file:

file = a_zip_file
node_map.load_xml_from_zip_file(file)

Changing a feature value

Once you loaded a device description file on a node map object, you would start to control GenICam feature nodes to control the target device. Now assume that we are going to control a GenICam feature node called Foo. To get the value of Foo, we code as follows:

a = node_map.Foo.value

On the other hand, if Foo is an Integer node then we code as follows to set a value:

node_map.Foo.value = 42

If Foo is a Boolean node, then you code as follows:

node_map.Foo.value = True

Or if Foo is an Enumeration node, then you code as follows; it also works for a case where Foo is a String node:

node_map.Foo.value = 'Bar'

If Foo is a Command node, then you can execute the command with the following code:

node_map.Foo.execute()

The gentl module

In this section, you will learn how to use the gentl module.

[TO BE DOCUMENTED]

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

genicam-1.4.0-cp311-cp311-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.11 Windows x86-64

genicam-1.4.0-cp311-cp311-manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11

genicam-1.4.0-cp311-cp311-manylinux2014_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.11

genicam-1.4.0-cp311-cp311-macosx_13_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.11 macOS 13.0+ ARM64

genicam-1.4.0-cp310-cp310-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.10 Windows x86-64

genicam-1.4.0-cp310-cp310-manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.10

genicam-1.4.0-cp310-cp310-manylinux2014_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.10

genicam-1.4.0-cp310-cp310-macosx_13_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.10 macOS 13.0+ ARM64

genicam-1.4.0-cp39-cp39-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.9 Windows x86-64

genicam-1.4.0-cp39-cp39-manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.9

genicam-1.4.0-cp39-cp39-manylinux2014_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.9

genicam-1.4.0-cp39-cp39-macosx_13_0_arm64.whl (3.9 MB view details)

Uploaded CPython 3.9 macOS 13.0+ ARM64

genicam-1.4.0-cp38-cp38-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.8 Windows x86-64

genicam-1.4.0-cp38-cp38-manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.8

genicam-1.4.0-cp38-cp38-manylinux2014_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.8

genicam-1.4.0-cp37-cp37m-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.7m Windows x86-64

genicam-1.4.0-cp37-cp37m-manylinux2014_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.7m

genicam-1.4.0-cp37-cp37m-manylinux2014_aarch64.whl (2.7 MB view details)

Uploaded CPython 3.7m

File details

Details for the file genicam-1.4.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: genicam-1.4.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.9

File hashes

Hashes for genicam-1.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9c6a2c53cd860109b26f36578b0af26b6229ff8d5e0480a8064fddf93f25ea47
MD5 6c6dd0c2fbe78db08c3c8352e5895d02
BLAKE2b-256 09ab7e073640812a9a75af33b2498b6df539ae53f5ebfe1d8e32521b0b7c28f8

See more details on using hashes here.

File details

Details for the file genicam-1.4.0-cp311-cp311-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for genicam-1.4.0-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ede848faa23bb4e20cff98b685d73cc3e6fc4b82b2ab98ffabd7831dd41da9aa
MD5 f2944a5e872d1c25883c341596a122d4
BLAKE2b-256 d25abf379cf219433d431eabbb2af90ea7008ef1d302ab6595966b84c38ba35b

See more details on using hashes here.

File details

Details for the file genicam-1.4.0-cp311-cp311-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for genicam-1.4.0-cp311-cp311-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 589e4f51a08ab2c4de6ca2c6991705b2a886da111c6802cf1621afdc53bfdd46
MD5 f1e8d4fe62b0f8fde698590ef8076c17
BLAKE2b-256 9d63da5a9ba6cac3edf3a38beb51bf0805ddb9c78b1cf09374224d3e89281cae

See more details on using hashes here.

File details

Details for the file genicam-1.4.0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for genicam-1.4.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 aedd5748067ed61f57835895de8bc7b00fbeb1fa5ca6a0f82b802cf48c71110e
MD5 de185745fb1a2bcf27a48b60dbc96d2d
BLAKE2b-256 ef793cb96dfb92a647a2b854e7691cd2d3383f8ba24b97fcb3c4abb2acc1463c

See more details on using hashes here.

File details

Details for the file genicam-1.4.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: genicam-1.4.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.9

File hashes

Hashes for genicam-1.4.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d54ea2b69329e6c26a51f1e5147bb3e3e2ac9d6440a907809a07bc15cc2b7ab6
MD5 d59287489e4c4a1d8b32a08948c6ff20
BLAKE2b-256 669266b5f6a3425fd6c33f9caa59cd79040ea549e96deccc07eeee88eb40914f

See more details on using hashes here.

File details

Details for the file genicam-1.4.0-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for genicam-1.4.0-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b01e34b8d51bf23218263352522a1c491d82fccbd0a65cddb055b2623c6bfbe6
MD5 6d12e76c8d33ee87c2f69c329945be2f
BLAKE2b-256 70b1f34c4e75fe1c93ae6dd5cd37f4cd1c46c8c2da13b0c19c25d7407cc54f94

See more details on using hashes here.

File details

Details for the file genicam-1.4.0-cp310-cp310-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for genicam-1.4.0-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b98fe6d1699497c6090f86c9426c982fb6e7a8f13b721bbd479efa52261e6b8d
MD5 ddfa52f825356185c965830751fe1a6e
BLAKE2b-256 ed12efc0343664bdad595b91557b8c34835c8e721af7a3ead966032f8be28fcc

See more details on using hashes here.

File details

Details for the file genicam-1.4.0-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for genicam-1.4.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8821c88c853e9159f48142710e2fa51c1fa94dec273e1957788285ea845ca0ad
MD5 09c18327fb2e8ccdd4ab0cbe7475973c
BLAKE2b-256 92d585c35798e8e9a7a6463294792ae1b795572d248b4d0b54de5cea2125f603

See more details on using hashes here.

File details

Details for the file genicam-1.4.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: genicam-1.4.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.9

File hashes

Hashes for genicam-1.4.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dba9fe569d7b4fd74f15d32406d8d9531af32e9377ebbbb1ea2fb93276029ba8
MD5 33e80cd65214b865f0f84790fb85aa38
BLAKE2b-256 d7d5e9bf4c2c532e2f622d5c64a6604f879fa8798d03b0caccea240c1a5b8777

See more details on using hashes here.

File details

Details for the file genicam-1.4.0-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for genicam-1.4.0-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1e4ed3df7b1225045097ad69a8df4c5b78862ae7cd2e9cdbbcfbb41c7d0c600e
MD5 1ecaeabd62325164cc600c5ff840e557
BLAKE2b-256 1168b4423abdd46836963ae92ba9c7ef936dd21598f6ef0ef048c709e2680e37

See more details on using hashes here.

File details

Details for the file genicam-1.4.0-cp39-cp39-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for genicam-1.4.0-cp39-cp39-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cafa50458c2697f6fb48b49fbf378cc9ec2d65335bc63555f205e9d29bef567b
MD5 dfadec8866ba51aeca037a990ed468b6
BLAKE2b-256 97d2ca551fc76183e0a62cfd239fe1d19024432b5a2c5aba5660f8b4c9e8a8cc

See more details on using hashes here.

File details

Details for the file genicam-1.4.0-cp39-cp39-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for genicam-1.4.0-cp39-cp39-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4ccfbb187b07f666cd304ffeca3fefcbd5d396eec8aa028eac4581ae9f15a7ac
MD5 0086ff6e99405b81897ec033a37e2864
BLAKE2b-256 4b150fc8e54212d5181aab3d086ff2ed631c07255e310b394ea85b82e25f7bcc

See more details on using hashes here.

File details

Details for the file genicam-1.4.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: genicam-1.4.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.9

File hashes

Hashes for genicam-1.4.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 50d8803570679de4784d813999c0a3a5d1ebf9a5a1cf3cab6371993ec77ef811
MD5 134ea5666055859e68bece73aaf5dffb
BLAKE2b-256 fbb0f5f02881b8371ccbbb77120d5624075f6d239e39478eb41dc136ed37cb26

See more details on using hashes here.

File details

Details for the file genicam-1.4.0-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for genicam-1.4.0-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 74decd15b4675b1ade3f0c617c8789b5f125e6316277528d69bf1ff9a30b95fa
MD5 a47c6628bcee7b9288c6c72850ddb996
BLAKE2b-256 b284d5a64839251a90ceabbcf383b0fb93c49b08d2cdb8596e1c675cd3381037

See more details on using hashes here.

File details

Details for the file genicam-1.4.0-cp38-cp38-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for genicam-1.4.0-cp38-cp38-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9137e605a35d1b9416553c1446611d4eb8c697d584d1c82dcb324114bfa9a402
MD5 13c14a58dc029af3bf4768e8f599e95f
BLAKE2b-256 adbcb70cea721ab36c3ebb963d8a75c668ecc174d7b2b7a954143905c6444437

See more details on using hashes here.

File details

Details for the file genicam-1.4.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: genicam-1.4.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.9

File hashes

Hashes for genicam-1.4.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 e063b88e48785ad8a4b51bc8997556c0845acea42004bb718dadba8152099b07
MD5 915ca77d811c6091815b83d33e862bf0
BLAKE2b-256 80ab316d97832ab55e66d524f952b0b12501444c8365c4f797d176c69e496227

See more details on using hashes here.

File details

Details for the file genicam-1.4.0-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for genicam-1.4.0-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 096592949ba8f8da0af6505617b911a30e05f01349c72442ff996490a782e26a
MD5 96e3addfc0512ae23d8c30b46ec53044
BLAKE2b-256 2a693b4fa67740bd8513f3edb50efc6f3afecfc8f9621511915ea83092ac064d

See more details on using hashes here.

File details

Details for the file genicam-1.4.0-cp37-cp37m-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for genicam-1.4.0-cp37-cp37m-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 217dde404aadaf6a2f05bbd4393e2bf84fb7998953bd54b982367251ad068d05
MD5 6aaa0e31a291ca9894948ec84cf63044
BLAKE2b-256 2d0b96267a70038d2ad1415c5669001c73fee2d54e4b9cc7a2410b3bab7a4712

See more details on using hashes here.

Supported by

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