# Python API

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

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

**Page:** 2

---

## [Cross hairs on streaming image](https://forum.commonvisionblox.com/t/cross-hairs-on-streaming-image/1823)

<div class="topic-metadata">

**Author:** [@Mark](https://forum.commonvisionblox.com/u/Mark)\
**Replies:** 2\
**Last updated:** [November 7, 2022, 8:59am UTC](https://forum.commonvisionblox.com/t/cross-hairs-on-streaming-image/1823 "2022-11-07T08:59:02Z")

</div>

Hi , Is it possible to put crosshairs in the centre of the live streaming image window ? Mark

---

## [MultiStreamHandler can't handle cvb.ImageStreams from Multispectral Camera](https://forum.commonvisionblox.com/t/multistreamhandler-cant-handle-cvb-imagestreams-from-multispectral-camera/1719)

<div class="topic-metadata">

**Author:** [@JRo85](https://forum.commonvisionblox.com/u/JRo85)\
**Replies:** 13\
**Last updated:** [October 24, 2022, 1:55pm UTC](https://forum.commonvisionblox.com/t/multistreamhandler-cant-handle-cvb-imagestreams-from-multispectral-camera/1719 "2022-10-24T13:55:35Z")

</div>

Hi, I’m trying to follow the QmlStreamDisplay Example (https://help.commonvisionblox.com/NextGen/14.0/cvbpy/da/d26/cvb\_2\_qml\_stream\_display-example.html) to get a stream from an Multispectral Camera (jai Fusion with 3 S…

---

## [Correct approach for overlays using CVBpy](https://forum.commonvisionblox.com/t/correct-approach-for-overlays-using-cvbpy/1802)

<div class="topic-metadata">

**Author:** [@drbsg](https://forum.commonvisionblox.com/u/drbsg)\
**Replies:** 3\
**Last updated:** [October 6, 2022, 12:44pm UTC](https://forum.commonvisionblox.com/t/correct-approach-for-overlays-using-cvbpy/1802 "2022-10-06T12:44:31Z")

</div>

I am porting an application from using the CVImage, CVDisplay and CVGrabber ActiveX controls to CVBpy. We make use of several of the overlay plugins for plain and rotatable rectangles, and cross-hairs, and I would like t…

---

## [Can't open devices for port \> 0](https://forum.commonvisionblox.com/t/cant-open-devices-for-port-0/1669)

<div class="topic-metadata">

**Author:** [@j.wilhelm](https://forum.commonvisionblox.com/u/j.wilhelm)\
**Replies:** 7\
**Last updated:** [September 21, 2022, 9:18am UTC](https://forum.commonvisionblox.com/t/cant-open-devices-for-port-0/1669 "2022-09-21T09:18:59Z")

</div>

Greetings, I tried to upgrade from version 13.04.002 to 13.04.005 yesterday, but when I try to open any device not on port 0 (we have seven cameras connected to the system) by calling cvb.DeviceFactory.open\_port(vin\_dri…

---

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

<div class="topic-metadata">

**Author:** [@alexm](https://forum.commonvisionblox.com/u/alexm)\
**Replies:** 14\
**Last updated:** [September 21, 2022, 10:29am UTC](https://forum.commonvisionblox.com/t/cvb-python-multi-camera-acquisition/1781 "2022-09-21T10:29:24Z")

</div>

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

---

## [CVBPY, Open by IP](https://forum.commonvisionblox.com/t/cvbpy-open-by-ip/1771)

<div class="topic-metadata">

**Author:** [@Fatemeh](https://forum.commonvisionblox.com/u/Fatemeh)\
**Replies:** 2\
**Last updated:** [August 31, 2022, 9:20am UTC](https://forum.commonvisionblox.com/t/cvbpy-open-by-ip/1771 "2022-08-31T09:20:02Z")

</div>

I am developing by CVBPY on Ubuntu and I wonder if it is possible to connect and interact with the cameras using IP-Address of camera? The reason is I need to use my code in Docker or WSL and in both case I am not able …

---

## [Error when opening DeviceFactory: RuntimeError C-API call failed, LoadImageFileW](https://forum.commonvisionblox.com/t/error-when-opening-devicefactory-runtimeerror-c-api-call-failed-loadimagefilew/796)

<div class="topic-metadata">

**Author:** [@Tom](https://forum.commonvisionblox.com/u/Tom)\
**Replies:** 22\
**Last updated:** [August 17, 2022, 12:48pm UTC](https://forum.commonvisionblox.com/t/error-when-opening-devicefactory-runtimeerror-c-api-call-failed-loadimagefilew/796 "2022-08-17T12:48:25Z")

</div>

Hello, I am trying to connect a camera via the CVB Python wrapper. When I start with the following simple Python code… import cvb GenICamDevice = cvb.DeviceFactory.open(cvb.install\_path()+"/Drivers/GenICam.vin") , I …

---

## [Turning off Acquisition Mode with Python doesn't work](https://forum.commonvisionblox.com/t/turning-off-acquisition-mode-with-python-doesnt-work/1760)

<div class="topic-metadata">

**Author:** [@Oguz](https://forum.commonvisionblox.com/u/Oguz)\
**Replies:** 1\
**Last updated:** [July 25, 2022, 7:42am UTC](https://forum.commonvisionblox.com/t/turning-off-acquisition-mode-with-python-doesnt-work/1760 "2022-07-25T07:42:27Z")

</div>

I want to have a fixed exposure value to get images with the same brightness whenever I turn on the cameras. In order to achieve this I set device.node\_maps\["Device"\].AcquisitionControl.nodes\[18\].value = "Off" and device…

---

## [Create a cvb.Image object from a numpy array](https://forum.commonvisionblox.com/t/create-a-cvb-image-object-from-a-numpy-array/1733)

<div class="topic-metadata">

**Author:** [@JRo85](https://forum.commonvisionblox.com/u/JRo85)\
**Replies:** 1\
**Last updated:** [June 29, 2022, 11:22am UTC](https://forum.commonvisionblox.com/t/create-a-cvb-image-object-from-a-numpy-array/1733 "2022-06-29T11:22:43Z")

</div>

Hello, is it possible to convert a numpy array to a cvb.Image object? I didn’t find any function to do this. Just found this https://ftp.commonvisionblox.com/webdavs/forum/documents/CVBInterop%201.1.0.pdf, which is unfo…

---

## [Rotating camera images breaks Snapshot-Method](https://forum.commonvisionblox.com/t/rotating-camera-images-breaks-snapshot-method/1668)

<div class="topic-metadata">

**Author:** [@j.wilhelm](https://forum.commonvisionblox.com/u/j.wilhelm)\
**Replies:** 8\
**Last updated:** [April 6, 2022, 2:34pm UTC](https://forum.commonvisionblox.com/t/rotating-camera-images-breaks-snapshot-method/1668 "2022-04-06T14:34:29Z")

</div>

Greetings, I’ve been using the stream.get\_snapshot() method to acquire single images. This works fine until the camera image rotation is set to 90° or 270° in the driver via the CVB Management Console. Setting it to 180…

---

## [Acquire exposure serie, Distorsions in image](https://forum.commonvisionblox.com/t/acquire-exposure-serie-distorsions-in-image/480)

<div class="topic-metadata">

**Author:** [@Beccau](https://forum.commonvisionblox.com/u/Beccau)\
**Replies:** 10\
**Last updated:** [March 16, 2022, 4:39pm UTC](https://forum.commonvisionblox.com/t/acquire-exposure-serie-distorsions-in-image/480 "2022-03-16T16:39:17Z")

</div>

Hello, I have some problems when taking a exposure serie of images. It allmost always result in some distortion in the image. I dont know if its a camera problem or a poorly managed acquisition? The camera i use is a …

---

## [Setting Node Map parameters](https://forum.commonvisionblox.com/t/setting-node-map-parameters/1646)

<div class="topic-metadata">

**Author:** [@keerthitheja](https://forum.commonvisionblox.com/u/keerthitheja)\
**Replies:** 2\
**Last updated:** [March 14, 2022, 9:01am UTC](https://forum.commonvisionblox.com/t/setting-node-map-parameters/1646 "2022-03-14T09:01:48Z")

</div>

Hi all, So, I have a SP series area scanner with which I am trying to acquire images. I can read the images from the camera and change few configuration parameters via Node Map. By doing this, I am currently seeing a i…

---

## [Python Setup Guide with Anaconda (by Christopher)](https://forum.commonvisionblox.com/t/python-setup-guide-with-anaconda-by-christopher/580)

<div class="topic-metadata">

**Author:** [@c.hartmann](https://forum.commonvisionblox.com/u/c.hartmann)\
**Replies:** 17\
**Last updated:** [February 18, 2022, 3:19pm UTC](https://forum.commonvisionblox.com/t/python-setup-guide-with-anaconda-by-christopher/580 "2022-02-18T15:19:38Z")

</div>

Hi, this is a minimalistic setup (Windows) for CVBpy with Anaconda: Download Anaconda: https://www.anaconda.com/download/ Install Anaconda (installing Visual Studio Code is also nice) (Download the new CVB Wrappers, …

---

## [Can't stop acquisition: try\_stop() freezes python process](https://forum.commonvisionblox.com/t/cant-stop-acquisition-try-stop-freezes-python-process/1586)

<div class="topic-metadata">

**Author:** [@Swaab](https://forum.commonvisionblox.com/u/Swaab)\
**Replies:** 5\
**Last updated:** [January 25, 2022, 9:18am UTC](https://forum.commonvisionblox.com/t/cant-stop-acquisition-try-stop-freezes-python-process/1586 "2022-01-25T09:18:53Z")

</div>

Hi! This is partially related to Acquisition stuck when terminating early We have a system in which we make many small captures in quick succession of each other. The captures are split because they require different s…

---

## [Port out of range](https://forum.commonvisionblox.com/t/port-out-of-range/1542)

<div class="topic-metadata">

**Author:** [@ruben](https://forum.commonvisionblox.com/u/ruben)\
**Replies:** 3\
**Last updated:** [November 10, 2021, 9:18am UTC](https://forum.commonvisionblox.com/t/port-out-of-range/1542 "2021-11-10T09:18:34Z")

</div>

Hi, I am trying to read images from two different cameras. I can read from the camera at port 0. When attempting to read from the camera on port 1 I get port out of range. I am running under Ubuntu 20.04.3 LTS 64 bit…

---

## [Get\_snapshot stops working after first acquisition](https://forum.commonvisionblox.com/t/get-snapshot-stops-working-after-first-acquisition/1537)

<div class="topic-metadata">

**Author:** [@Oguz](https://forum.commonvisionblox.com/u/Oguz)\
**Replies:** 11\
**Last updated:** [November 9, 2021, 1:14pm UTC](https://forum.commonvisionblox.com/t/get-snapshot-stops-working-after-first-acquisition/1537 "2021-11-09T13:14:03Z")

</div>

I am trying to acquire images from 2 GigE cameras with the get\_snapshot() Python function. The first round of acquisition works (I get one image from each camera), but at the second round get\_snapshot doesn’t return anyt…

---

## [Impossible to get stream methods to work in recent installation of CVBpy](https://forum.commonvisionblox.com/t/impossible-to-get-stream-methods-to-work-in-recent-installation-of-cvbpy/1535)

<div class="topic-metadata">

**Author:** [@ovinc](https://forum.commonvisionblox.com/u/ovinc)\
**Replies:** 7\
**Last updated:** [November 8, 2021, 8:38am UTC](https://forum.commonvisionblox.com/t/impossible-to-get-stream-methods-to-work-in-recent-installation-of-cvbpy/1535 "2021-11-08T08:38:00Z")

</div>

Hello, I have been using CVBpy on another computer since last summer without any problem. I have tried to replicate the setup on a new computer for a new project and it seems that the stream object does not have its usu…

---

## [Data access Multi stream case](https://forum.commonvisionblox.com/t/data-access-multi-stream-case/1490)

<div class="topic-metadata">

**Author:** [@redhat](https://forum.commonvisionblox.com/u/redhat)\
**Replies:** 1\
**Last updated:** [September 8, 2021, 2:34am UTC](https://forum.commonvisionblox.com/t/data-access-multi-stream-case/1490 "2021-09-08T02:34:05Z")

</div>

Hi, I found the source code for C++ of accessing data from multi stream camera. (https://help.commonvisionblox.com/NextGen/14.0/md\_theory\_of\_operation\_image\_manager\_\_migration\_guide\_\_acquisition\_stack.html). I am workin…

---

## [Image capturing with CVB and GiGE camera](https://forum.commonvisionblox.com/t/image-capturing-with-cvb-and-gige-camera/1479)

<div class="topic-metadata">

**Author:** [@jakia.aus](https://forum.commonvisionblox.com/u/jakia.aus)\
**Replies:** 5\
**Last updated:** [August 25, 2021, 6:13am UTC](https://forum.commonvisionblox.com/t/image-capturing-with-cvb-and-gige-camera/1479 "2021-08-25T06:13:49Z")

</div>

Hi, I have JAI-FS-3200D camera (GigE version) and I want to save images from the camera using CVB. I am using the following code: 2 # 3 # 1. Open the GenICam.vin driver. 4 # 2. Acquire images. 5 # …

---

## [Acquiring 10/12 bit RGB images from a JAI AP-3200T-PGE](https://forum.commonvisionblox.com/t/acquiring-10-12-bit-rgb-images-from-a-jai-ap-3200t-pge/1430)

<div class="topic-metadata">

**Author:** [@jesperstald](https://forum.commonvisionblox.com/u/jesperstald)\
**Replies:** 8\
**Last updated:** [July 12, 2021, 5:36am UTC](https://forum.commonvisionblox.com/t/acquiring-10-12-bit-rgb-images-from-a-jai-ap-3200t-pge/1430 "2021-07-12T05:36:49Z")

</div>

Hi, I am trying to acquire images from a JAI AP-3200T-PGE over GiGe. I am able to do this (both in genicambrowser, using CVBPy AND using harvester and the CVB .cti file), but only for 8-bit RGB images. For 10/12 bit, th…

---

## [MultistreamHandler Python, segmentation fault](https://forum.commonvisionblox.com/t/multistreamhandler-python-segmentation-fault/1425)

<div class="topic-metadata">

**Author:** [@basirsedighi](https://forum.commonvisionblox.com/u/basirsedighi)\
**Replies:** 10\
**Last updated:** [June 28, 2021, 12:27pm UTC](https://forum.commonvisionblox.com/t/multistreamhandler-python-segmentation-fault/1425 "2021-06-28T12:27:35Z")

</div>

I’m trying to use the multistream handler, i want to clarify that my streams are synced liked mentioned in the documentation. Currently I manged to acquire the images with costume code, using multiprocessing and threding…

---

## [FrameRate CVMock.vin vs FrameRate in emu File](https://forum.commonvisionblox.com/t/framerate-cvmock-vin-vs-framerate-in-emu-file/1433)

<div class="topic-metadata">

**Author:** [@ASchmitt](https://forum.commonvisionblox.com/u/ASchmitt)\
**Replies:** 2\
**Last updated:** [June 28, 2021, 10:24am UTC](https://forum.commonvisionblox.com/t/framerate-cvmock-vin-vs-framerate-in-emu-file/1433 "2021-06-28T10:24:00Z")

</div>

When using CVMock.vin you have the option to set the frame rate, but this can also be set in the emu file. According to the description, the frame rate stored in CVMock.vin is preferred and overwrites that of the emu fil…

---

## [Acquisition stuck when terminating process early](https://forum.commonvisionblox.com/t/acquisition-stuck-when-terminating-process-early/1390)

<div class="topic-metadata">

**Author:** [@Swaab](https://forum.commonvisionblox.com/u/Swaab)\
**Replies:** 13\
**Last updated:** [June 8, 2021, 5:13am UTC](https://forum.commonvisionblox.com/t/acquisition-stuck-when-terminating-process-early/1390 "2021-06-08T05:13:37Z")

</div>

Hi all! I found that the camera sometimes get’s stuck in acquistion mode, if not aborted correctly. I added two scripts below that can be used to reproduce the problem (one for the basic acquisition, one for parallel).…

---

## [Grabbed snapshots are not the last image](https://forum.commonvisionblox.com/t/grabbed-snapshots-are-not-the-last-image/1415)

<div class="topic-metadata">

**Author:** [@obrousse](https://forum.commonvisionblox.com/u/obrousse)\
**Replies:** 4\
**Last updated:** [May 20, 2021, 2:40pm UTC](https://forum.commonvisionblox.com/t/grabbed-snapshots-are-not-the-last-image/1415 "2021-05-20T14:40:21Z")

</div>

Dear CVB team, I’m facing a problem with images acquired sparsely in time on a CVB connected camera. To be precise the application handles TCP requests. For each request it grabs one image from the camera and tags it wi…

---

## [cvb.Image.from\_images() not giving expected output](https://forum.commonvisionblox.com/t/cvb-image-from-images-not-giving-expected-output/1414)

<div class="topic-metadata">

**Author:** [@Swaab](https://forum.commonvisionblox.com/u/Swaab)\
**Replies:** 2\
**Last updated:** [May 19, 2021, 12:15pm UTC](https://forum.commonvisionblox.com/t/cvb-image-from-images-not-giving-expected-output/1414 "2021-05-19T12:15:19Z")

</div>

Hi there! I found the from\_images() function in the cvbpy documentation and tried a simple implementation of it, but i can’t get it to work. It just returns the first image from the list. Additionally I’m wondering if …

---

## [Using Chunk Mode Data with CVBpy](https://forum.commonvisionblox.com/t/using-chunk-mode-data-with-cvbpy/1379)

<div class="topic-metadata">

**Author:** [@DIllam\_Diaz27](https://forum.commonvisionblox.com/u/DIllam_Diaz27)\
**Replies:** 3\
**Last updated:** [March 30, 2021, 12:33pm UTC](https://forum.commonvisionblox.com/t/using-chunk-mode-data-with-cvbpy/1379 "2021-03-30T12:33:22Z")

</div>

HI, I am running a C5-2090 camera in chunk data mode. when, I try to collecting the chunk data in pyton by translating the Chunk mode with CVB.net to CVBpy. I tried to adapt the code on https://forum.commonvisionblox.co…

---

## [Auto-Brightness, Exposure Time and Long Time Exposure \[ too bright and blurry images\]](https://forum.commonvisionblox.com/t/auto-brightness-exposure-time-and-long-time-exposure-too-bright-and-blurry-images/1368)

<div class="topic-metadata">

**Author:** [@aftab](https://forum.commonvisionblox.com/u/aftab)\
**Replies:** 8\
**Last updated:** [March 25, 2021, 12:49pm UTC](https://forum.commonvisionblox.com/t/auto-brightness-exposure-time-and-long-time-exposure-too-bright-and-blurry-images/1368 "2021-03-25T12:49:40Z")

</div>

Hey Once again, I have some specific questions related as you could expect from the heading of this post. So, I have a Teledyne Dalsa Nano c1930 camera. I am trying to acquire the images with 30 fps having image resolu…

---

## [TIFF compression not working?](https://forum.commonvisionblox.com/t/tiff-compression-not-working/1373)

<div class="topic-metadata">

**Author:** [@h.lenz](https://forum.commonvisionblox.com/u/h.lenz)\
**Replies:** 3\
**Last updated:** [March 23, 2021, 9:27am UTC](https://forum.commonvisionblox.com/t/tiff-compression-not-working/1373 "2021-03-23T09:27:14Z")

</div>

I’m a complete Python and CVB beginner, so please be kind :slight\_smile: I just installed the current version of CVB (13.03.002 \[x64\]), Python 3.8.8 and the wheels package from the aforementioned CVB package (cvb-1.2-cp…

---

## [Incorrect Colors with Dalsa Genie nano C4900](https://forum.commonvisionblox.com/t/incorrect-colors-with-dalsa-genie-nano-c4900/1345)

<div class="topic-metadata">

**Author:** [@ofilipejorge](https://forum.commonvisionblox.com/u/ofilipejorge)\
**Replies:** 12\
**Last updated:** [March 2, 2021, 8:44pm UTC](https://forum.commonvisionblox.com/t/incorrect-colors-with-dalsa-genie-nano-c4900/1345 "2021-03-02T20:44:30Z")

</div>

Hello! I have been trying to get images from the Genie nano C4900 using python with cvb, but they show up with muted colors when compared to the capture taken from Sapera own viewer: At first i thought it was a situa…

---

## [GEV Server Multicast Setup](https://forum.commonvisionblox.com/t/gev-server-multicast-setup/1357)

<div class="topic-metadata">

**Author:** [@njenningsQQ](https://forum.commonvisionblox.com/u/njenningsQQ)\
**Replies:** 2\
**Last updated:** [March 1, 2021, 10:10am UTC](https://forum.commonvisionblox.com/t/gev-server-multicast-setup/1357 "2021-03-01T10:10:02Z")

</div>

I am trying to get a GEVServer up and running What I’m trying to do is: Connect to a camera using Common Vision Blox (in python) I want to have one ‘control’ client (control of the camera) and multiple ‘display’ clien…

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

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