# Python API

**URL:** https://forum.commonvisionblox.com/c/programming-questions/python-api/19.md

[Latest](https://forum.commonvisionblox.com/latest.md) · [Categories](https://forum.commonvisionblox.com/categories.md) · [Tags](https://forum.commonvisionblox.com/tags.md)

---

## [Getting Started with CVBpy](https://forum.commonvisionblox.com/t/getting-started-with-cvbpy/241)

<div class="topic-metadata">

**Author:** [@Theo](https://forum.commonvisionblox.com/u/Theo)\
**Replies:** 12\
**Last updated:** [September 6, 2022, 7:27am UTC](https://forum.commonvisionblox.com/t/getting-started-with-cvbpy/241 "2022-09-06T07:27:36Z")

</div>

Download “Anaconda” with Python 3.6 and install it. Make sure that you have the newest released CVB version. Use pip to install the cvb wheel form %CVB%/Lib/Python e.g: python -m pip install cvb-1.1-cp35.cp36.cp37-n…

---

## [About the Python API category](https://forum.commonvisionblox.com/t/about-the-python-api-category/201)

<div class="topic-metadata">

**Author:** [@Andreas](https://forum.commonvisionblox.com/u/Andreas)\
**Replies:** 0\
**Last updated:** [August 24, 2017, 7:19am UTC](https://forum.commonvisionblox.com/t/about-the-python-api-category/201 "2017-08-24T07:19:18Z")

</div>

The CVBpy API (see also this post) is a new object oriented Python wrapper for the :cvb: SDK. It has been designed on top of the CVB++ wrapper and alongside the CVB.Net. The currently supported Python versions are: P…

---

## [How to Fix "TL Call Failed" Error When Running Python Code?](https://forum.commonvisionblox.com/t/how-to-fix-tl-call-failed-error-when-running-python-code/2357)

<div class="topic-metadata">

**Author:** [@Mo212](https://forum.commonvisionblox.com/u/Mo212)\
**Replies:** 1\
**Last updated:** [February 11, 2025, 2:47pm UTC](https://forum.commonvisionblox.com/t/how-to-fix-tl-call-failed-error-when-running-python-code/2357 "2025-02-11T14:47:23Z")

</div>

Hello everyone! I’m new to the software and trying to run my program using Python, but I keep encountering the following error from the start: device = cvb.DeviceFactory.open(cvb.install\_path() + "Drivers/GenICam.vin")…

---

## [Macro in the image](https://forum.commonvisionblox.com/t/macro-in-the-image/2350)

<div class="topic-metadata">

**Author:** [@Paulo](https://forum.commonvisionblox.com/u/Paulo)\
**Replies:** 2\
**Last updated:** [January 23, 2025, 9:36am UTC](https://forum.commonvisionblox.com/t/macro-in-the-image/2350 "2025-01-23T09:36:23Z")

</div>

Hi guys. I’m acquiring images from the camera using python. However, when I capture the frame, the image comes back with the CVB symbol, can this be removed?

---

## [Stream.wait() returns None](https://forum.commonvisionblox.com/t/stream-wait-returns-none/2341)

<div class="topic-metadata">

**Author:** [@sewtsbh](https://forum.commonvisionblox.com/u/sewtsbh)\
**Replies:** 1\
**Last updated:** [January 10, 2025, 8:43am UTC](https://forum.commonvisionblox.com/t/stream-wait-returns-none/2341 "2025-01-10T08:43:29Z")

</div>

I am trying to get an image from the teledyne dalsa linea line camera. I am using TriggerMode off. When I call the stream.wait() it returns \<class ‘NoneType’\> instead of composite. In the GenICam browser with same settin…

---

## [C-API call failed](https://forum.commonvisionblox.com/t/c-api-call-failed/2154)

<div class="topic-metadata">

**Author:** [@shrutarv](https://forum.commonvisionblox.com/u/shrutarv)\
**Replies:** 1\
**Last updated:** [May 6, 2024, 11:54am UTC](https://forum.commonvisionblox.com/t/c-api-call-failed/2154 "2024-05-06T11:54:51Z")

</div>

Hello, I am using Ubuntu 20.04 and python3. My goal is to get data from the camera and publish it to a ROS topic. I have installed cvb and GigE-V-Framework\_x86\_2.20.0.0182 successfully. When executing the command ./Gige…

---

## [Simple python script to poll or update nodes](https://forum.commonvisionblox.com/t/simple-python-script-to-poll-or-update-nodes/2116)

<div class="topic-metadata">

**Author:** [@adam.honeybell](https://forum.commonvisionblox.com/u/adam.honeybell)\
**Replies:** 1\
**Last updated:** [February 14, 2024, 1:29pm UTC](https://forum.commonvisionblox.com/t/simple-python-script-to-poll-or-update-nodes/2116 "2024-02-14T13:29:10Z")

</div>

My company make lighting controllers and support various registers for controlling behaviour. I need a way to periodically read the data, but I don’t seem to be able to do so after the first connection and read. What sho…

---

## [CVBPy slow to pick up license dongle!](https://forum.commonvisionblox.com/t/cvbpy-slow-to-pick-up-license-dongle/2045)

<div class="topic-metadata">

**Author:** [@antonkristensen](https://forum.commonvisionblox.com/u/antonkristensen)\
**Replies:** 8\
**Last updated:** [December 13, 2023, 11:58am UTC](https://forum.commonvisionblox.com/t/cvbpy-slow-to-pick-up-license-dongle/2045 "2023-12-13T11:58:19Z")

</div>

Hi, we are running a system on Ubuntu 22.04 and license dongles, using the Python Bindings, and when we start up our acquisition system it takes a loooooooong time before it acquires the license, is this something that i…

---

## [Stripes on image](https://forum.commonvisionblox.com/t/stripes-on-image/1156)

<div class="topic-metadata">

**Author:** [@pare](https://forum.commonvisionblox.com/u/pare)\
**Replies:** 11\
**Last updated:** [December 12, 2023, 9:55am UTC](https://forum.commonvisionblox.com/t/stripes-on-image/1156 "2023-12-12T09:55:08Z")

</div>

Hello, I’m trying to acquire some images using a DAHUA MV-A7500MG20E camera. The issue I’m facing is that when I take an image, sometimes it has horizontal stripes (I uploaded an image for reference). What am I doing …

---

## [How to set the IP Address of a Camera in CVB](https://forum.commonvisionblox.com/t/how-to-set-the-ip-address-of-a-camera-in-cvb/2029)

<div class="topic-metadata">

**Author:** [@axelprinceton](https://forum.commonvisionblox.com/u/axelprinceton)\
**Replies:** 5\
**Last updated:** [October 9, 2023, 2:01pm UTC](https://forum.commonvisionblox.com/t/how-to-set-the-ip-address-of-a-camera-in-cvb/2029 "2023-10-09T14:01:33Z")

</div>

Hello everyone! I have read through the following Thread: How to set a the IP-Address of GEV-Camera programmatically in CVB - Programming Questions / C++ API - Common Vision Blox User Forum What Andreas coded it’s an …

---

## [🐛 Possible Bug: CVBpy manually injects site-packages into path](https://forum.commonvisionblox.com/t/possible-bug-cvbpy-manually-injects-site-packages-into-path/2036)

<div class="topic-metadata">

**Author:** [@John](https://forum.commonvisionblox.com/u/John)\
**Replies:** 1\
**Last updated:** [September 26, 2023, 7:24am UTC](https://forum.commonvisionblox.com/t/possible-bug-cvbpy-manually-injects-site-packages-into-path/2036 "2023-09-26T07:24:48Z")

</div>

Hi, These lines exist in \_\_init\_\_.py of cbv. What are they doing? # try to add the cvb module path to the PYTHONPATH try: site\_packages = next(p for p in \_sys.path if 'site-packages' in p) importpath = \_os.pat…

---

## [Acquiring images \> 8-bit using CVBpy](https://forum.commonvisionblox.com/t/acquiring-images-8-bit-using-cvbpy/1761)

<div class="topic-metadata">

**Author:** [@JRo85](https://forum.commonvisionblox.com/u/JRo85)\
**Replies:** 19\
**Last updated:** [June 15, 2023, 6:56am UTC](https://forum.commonvisionblox.com/t/acquiring-images-8-bit-using-cvbpy/1761 "2023-06-15T06:56:30Z")

</div>

Hello, I want to acquire images in 10 or 12 bit from a jai Fusion camera. I can acquire 8 bit images without a problem but as soon as I change the PixelFormat.values to “BayerRG10” or “BayerRG12” for the color sensor or…

---

## [Error in CVB Logging GUI while Image Acquisition works as aspected](https://forum.commonvisionblox.com/t/error-in-cvb-logging-gui-while-image-acquisition-works-as-aspected/1948)

<div class="topic-metadata">

**Author:** [@sebwr](https://forum.commonvisionblox.com/u/sebwr)\
**Replies:** 17\
**Last updated:** [May 24, 2023, 10:03am UTC](https://forum.commonvisionblox.com/t/error-in-cvb-logging-gui-while-image-acquisition-works-as-aspected/1948 "2023-05-24T10:03:11Z")

</div>

Hi, I am using the following setup: Ubuntu 22.04 Python 3.11 CVB 14.00.004 When capturing images via Python, each image generates an error log entry in the CVB Logging GUI. But the image capture works perfectly for …

---

## [Jupyter Notebook - Getting started CVBPy](https://forum.commonvisionblox.com/t/jupyter-notebook-getting-started-cvbpy/1932)

<div class="topic-metadata">

**Author:** [@Chris](https://forum.commonvisionblox.com/u/Chris)\
**Replies:** 1\
**Last updated:** [March 29, 2023, 9:26am UTC](https://forum.commonvisionblox.com/t/jupyter-notebook-getting-started-cvbpy/1932 "2023-03-29T09:26:40Z")

</div>

Presentation.zip (878.6 KB) Hi everyone, during our embedded event in Nuremberg I was asked several times if it would be possible to share the presented Jupyter Notebook. So yes, find the presentation attachet to this…

---

## [Can cvbpy effectively read from a multispectral Jai Camera](https://forum.commonvisionblox.com/t/can-cvbpy-effectively-read-from-a-multispectral-jai-camera/1476)

<div class="topic-metadata">

**Author:** [@taha99](https://forum.commonvisionblox.com/u/taha99)\
**Replies:** 1\
**Last updated:** [August 20, 2021, 6:49am UTC](https://forum.commonvisionblox.com/t/can-cvbpy-effectively-read-from-a-multispectral-jai-camera/1476 "2021-08-20T06:49:20Z")

</div>

I will really appreciate if someone can guide me on how to read from a multipectral camera for e.g. this one. , It has an NIR channel and RGB channel, I need to extract images from both of these channels and save it to d…

---

## [CVBpy for Ubuntu 20.04](https://forum.commonvisionblox.com/t/cvbpy-for-ubuntu-20-04/1603)

<div class="topic-metadata">

**Author:** [@keerthitheja](https://forum.commonvisionblox.com/u/keerthitheja)\
**Replies:** 2\
**Last updated:** [February 24, 2022, 1:11pm UTC](https://forum.commonvisionblox.com/t/cvbpy-for-ubuntu-20-04/1603 "2022-02-24T13:11:09Z")

</div>

Hi, We have a SP - series line scanner and area scanner cameras with which we would like to read and save the images using CVBpy for Ubuntu 20.04. How can i install CVBpy in anaconda environment on ubuntu ?

---

## [How to convert raw buffer to raw to rgb manually?](https://forum.commonvisionblox.com/t/how-to-convert-raw-buffer-to-raw-to-rgb-manually/1498)

<div class="topic-metadata">

**Author:** [@redhat](https://forum.commonvisionblox.com/u/redhat)\
**Replies:** 4\
**Last updated:** [September 17, 2021, 6:23am UTC](https://forum.commonvisionblox.com/t/how-to-convert-raw-buffer-to-raw-to-rgb-manually/1498 "2021-09-17T06:23:50Z")

</div>

I am getting raw buffer using the following code. I need to get the RGB image and IR image. How can I convert the raw buffer manually? Thanks in advance. with cvb.DeviceFactory.open( mock\_info.access\_token, cvb.…

---

## [Best way to do time lapse: stream.wait(), or stream.get\_snapshot()](https://forum.commonvisionblox.com/t/best-way-to-do-time-lapse-stream-wait-or-stream-get-snapshot/1446)

<div class="topic-metadata">

**Author:** [@ovinc](https://forum.commonvisionblox.com/u/ovinc)\
**Replies:** 5\
**Last updated:** [July 13, 2021, 7:17am UTC](https://forum.commonvisionblox.com/t/best-way-to-do-time-lapse-stream-wait-or-stream-get-snapshot/1446 "2021-07-13T07:17:58Z")

</div>

Hello, I am running time lapses with typical intervals on the order of seconds to minutes, i.e. much larger than what the camera needs to acquire a single image. I was wondering if there was any difference between the t…

---

## [Watermark in saved images](https://forum.commonvisionblox.com/t/watermark-in-saved-images/913)

<div class="topic-metadata">

**Author:** [@stmoe](https://forum.commonvisionblox.com/u/stmoe)\
**Replies:** 3\
**Last updated:** [October 10, 2019, 2:19pm UTC](https://forum.commonvisionblox.com/t/watermark-in-saved-images/913 "2019-10-10T14:19:55Z")

</div>

Hi We are using Python 3.6 for image acquisation with a jai camera. Now we get some semi-transparent watermarks in our saved images. We got a Camera Suite Licence delivered with our camera and all services seem to run…

---

## [WSL Installation Step by step?](https://forum.commonvisionblox.com/t/wsl-installation-step-by-step/1911)

<div class="topic-metadata">

**Author:** [@Dyna](https://forum.commonvisionblox.com/u/Dyna)\
**Replies:** 2\
**Last updated:** [February 13, 2023, 8:09pm UTC](https://forum.commonvisionblox.com/t/wsl-installation-step-by-step/1911 "2023-02-13T20:09:41Z")

</div>

Hi, I’m trying to run CVB 13.04.005 on WSL (Ubuntu 20.04 x64) using python 3.9, but having some issues: I installed CVB with the following script: #!/bin/bash # Install packages required for CVB sudo apt update --…

---

## [Multi streaming camera acquisition](https://forum.commonvisionblox.com/t/multi-streaming-camera-acquisition/1882)

<div class="topic-metadata">

**Author:** [@lelionce](https://forum.commonvisionblox.com/u/lelionce)\
**Replies:** 2\
**Last updated:** [February 9, 2023, 10:39pm UTC](https://forum.commonvisionblox.com/t/multi-streaming-camera-acquisition/1882 "2023-02-09T22:39:01Z")

</div>

Hello, I would like to understand how to perform two tasks at the same time to both acquire two camera streams and save stereo images useful for the calibration of my cameras. This would allow me to better orient my ima…

---

## [CVBPy find devices by Device Configurator config ini file](https://forum.commonvisionblox.com/t/cvbpy-find-devices-by-device-configurator-config-ini-file/1765)

<div class="topic-metadata">

**Author:** [@augas111](https://forum.commonvisionblox.com/u/augas111)\
**Replies:** 9\
**Last updated:** [February 9, 2023, 10:33am UTC](https://forum.commonvisionblox.com/t/cvbpy-find-devices-by-device-configurator-config-ini-file/1765 "2023-02-09T10:33:23Z")

</div>

Hi, we have encountered some problems after update to 13.04.005. Earlier we were opening cameras using with cvb.DeviceFactory.open(cvb.install\_path() + "/Drivers/GenICam.vin", self.parameters.cvb\_port) as device: self…

---

## [Image Aquisition inside QThreads](https://forum.commonvisionblox.com/t/image-aquisition-inside-qthreads/1898)

<div class="topic-metadata">

**Author:** [@sebwr](https://forum.commonvisionblox.com/u/sebwr)\
**Replies:** 14\
**Last updated:** [January 30, 2023, 3:41pm UTC](https://forum.commonvisionblox.com/t/image-aquisition-inside-qthreads/1898 "2023-01-30T15:41:45Z")

</div>

Hi, I use the camera control code inside a machine that has a PySide6 (QT) UI. To keep the UI from frezzing I need to do all the calculations inside a QThread that runs independently from the main UI thread. Based on t…

---

## [Using Chunk Data in CVB](https://forum.commonvisionblox.com/t/using-chunk-data-in-cvb/1895)

<div class="topic-metadata">

**Author:** [@Simon](https://forum.commonvisionblox.com/u/Simon)\
**Replies:** 2\
**Last updated:** [January 24, 2023, 9:50am UTC](https://forum.commonvisionblox.com/t/using-chunk-data-in-cvb/1895 "2023-01-24T09:50:24Z")

</div>

There are multiple ways to use Chunk Data in CVB. First of all it is depending on the device(s) that you are using and the options they are supporting. In the following example a Teledyne Dalsa Genie Nano GigE Vision ca…

---

## [Issues with software trigger and 12 bits mono image](https://forum.commonvisionblox.com/t/issues-with-software-trigger-and-12-bits-mono-image/1836)

<div class="topic-metadata">

**Author:** [@dave](https://forum.commonvisionblox.com/u/dave)\
**Replies:** 5\
**Last updated:** [January 23, 2023, 8:32am UTC](https://forum.commonvisionblox.com/t/issues-with-software-trigger-and-12-bits-mono-image/1836 "2023-01-23T08:32:04Z")

</div>

Hi, I’m trying to acquire 12 bits mono images via a software triggering over a VC-25M10G-M41I0 camera. I am able to acquire a single image, even though the ring buffer does not increase, but this image is also an 8bits …

---

## [Webstreaming module is missing](https://forum.commonvisionblox.com/t/webstreaming-module-is-missing/1889)

<div class="topic-metadata">

**Author:** [@erik](https://forum.commonvisionblox.com/u/erik)\
**Replies:** 3\
**Last updated:** [January 20, 2023, 3:35pm UTC](https://forum.commonvisionblox.com/t/webstreaming-module-is-missing/1889 "2023-01-20T15:35:28Z")

</div>

Hello, I am unable to find the module cvb.webstreaming in my install of CVBpy. It was installed from cvb-1.4-cp36.cp37.cp38.cp39-abi3-manylinux1\_x86\_64.whl. ModuleNotFoundError: No module named ‘cvb.webstreaming’ It s…

---

## [Python MultiStreamHandler - results out of sync](https://forum.commonvisionblox.com/t/python-multistreamhandler-results-out-of-sync/1820)

<div class="topic-metadata">

**Author:** [@alexm](https://forum.commonvisionblox.com/u/alexm)\
**Replies:** 8\
**Last updated:** [December 12, 2022, 12:10pm UTC](https://forum.commonvisionblox.com/t/python-multistreamhandler-results-out-of-sync/1820 "2022-12-12T12:10:31Z")

</div>

Hi, I’m using 2 GigE cameras to acquire images in CVBpy. I’m utilising a MultiStreamHandler to do so, as in the linked issue: https://forum.commonvisionblox.com/t/cvb-python-multi-camera-acquisition/1781/14 I’ve foll…

---

## [SequencerSetActive and SequencerSetSelector do not increment](https://forum.commonvisionblox.com/t/sequencersetactive-and-sequencersetselector-do-not-increment/1839)

<div class="topic-metadata">

**Author:** [@dave](https://forum.commonvisionblox.com/u/dave)\
**Replies:** 1\
**Last updated:** [December 1, 2022, 4:58pm UTC](https://forum.commonvisionblox.com/t/sequencersetactive-and-sequencersetselector-do-not-increment/1839 "2022-12-01T16:58:11Z")

</div>

Hello All, I am currently struggling with the implementation of a sequencer for my camera using Python. I am able to enable the sequence and get the sequence working, but when I check the exposure time using exposure\_no…

---

## [Watermark appearing when method is called more than once](https://forum.commonvisionblox.com/t/watermark-appearing-when-method-is-called-more-than-once/1841)

<div class="topic-metadata">

**Author:** [@Arnaud](https://forum.commonvisionblox.com/u/Arnaud)\
**Replies:** 1\
**Last updated:** [November 29, 2022, 9:56am UTC](https://forum.commonvisionblox.com/t/watermark-appearing-when-method-is-called-more-than-once/1841 "2022-11-29T09:56:27Z")

</div>

Hi all, I am working on a moving camera setup, every time the camera arrives at a specified location in the plane I call a function save\_images(). There are 3 images to be saved per position, 1 bayered image I want to d…

---

## [CVB Python Multi-Camera Acquisition - Software Trigger](https://forum.commonvisionblox.com/t/cvb-python-multi-camera-acquisition-software-trigger/1782)

<div class="topic-metadata">

**Author:** [@alexm](https://forum.commonvisionblox.com/u/alexm)\
**Replies:** 24\
**Last updated:** [November 14, 2022, 8:37am UTC](https://forum.commonvisionblox.com/t/cvb-python-multi-camera-acquisition-software-trigger/1782 "2022-11-14T08:37:09Z")

</div>

Hi, I’m looking for some help with acquiring images using CVB Python from multiple cameras when using a software trigger. Hardware, 2 USB cameras: Alvium 1800U-158C-CH-C There is no hardware trigger, and I’d like to …

[Next page](https://forum.commonvisionblox.com/c/programming-questions/python-api/19.md?page=1)
