# Programming Questions

**URL:** https://forum.commonvisionblox.com/c/programming-questions/6.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

---

## [How to get CVB cameras in gstreamer](https://forum.commonvisionblox.com/t/how-to-get-cvb-cameras-in-gstreamer/2344)

<div class="topic-metadata">

**Author:** [@e-sensiaOB](https://forum.commonvisionblox.com/u/e-sensiaOB)\
**Replies:** 1\
**Last updated:** [January 14, 2025, 1:22pm UTC](https://forum.commonvisionblox.com/t/how-to-get-cvb-cameras-in-gstreamer/2344 "2025-01-14T13:22:25Z")

</div>

Hello, I would like to know if there is any way to get CVB handled cameras into gstreamer-1.0 as it would be great to have the camera stream to the gstreamer pipeline. Best regards

---

## [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…

---

## [Problem with Discover when started as a system-service on Linux](https://forum.commonvisionblox.com/t/problem-with-discover-when-started-as-a-system-service-on-linux/2290)

<div class="topic-metadata">

**Author:** [@IngFra](https://forum.commonvisionblox.com/u/IngFra)\
**Replies:** 4\
**Last updated:** [December 10, 2024, 11:53am UTC](https://forum.commonvisionblox.com/t/problem-with-discover-when-started-as-a-system-service-on-linux/2290 "2024-12-10T11:53:22Z")

</div>

Hi! We are trying to start our camera-application as a automatic system-service on Linux (Ubuntu 20.04) at boot-time but the Discover fails to find any cameras! Starting the camera-application as a logged in user is wo…

---

## [Problem when discovering cameras](https://forum.commonvisionblox.com/t/problem-when-discovering-cameras/2284)

<div class="topic-metadata">

**Author:** [@AxelDosSantosDoAlto](https://forum.commonvisionblox.com/u/AxelDosSantosDoAlto)\
**Replies:** 5\
**Last updated:** [December 6, 2024, 11:48am UTC](https://forum.commonvisionblox.com/t/problem-when-discovering-cameras/2284 "2024-12-06T11:48:05Z")

</div>

Hello everyone, I used the DeviceFactory Discover method to get a list of all the camera connected to the computer, so that we can dynamically choose the camera that we want to use when our software is setup on a new Wi…

---

## [Best camera and network board parameters set up](https://forum.commonvisionblox.com/t/best-camera-and-network-board-parameters-set-up/2285)

<div class="topic-metadata">

**Author:** [@AxelDosSantosDoAlto](https://forum.commonvisionblox.com/u/AxelDosSantosDoAlto)\
**Replies:** 2\
**Last updated:** [December 6, 2024, 9:00am UTC](https://forum.commonvisionblox.com/t/best-camera-and-network-board-parameters-set-up/2285 "2024-12-06T09:00:43Z")

</div>

Hi all, Hope you are doing well. Since now more than one year did I change my way to acquire camera from an old way to do this with CVB to the stack 3. I use the new cpp codes with at least 10 differents cameras, from…

---

## [ATC6 get line status time](https://forum.commonvisionblox.com/t/atc6-get-line-status-time/1986)

<div class="topic-metadata">

**Author:** [@AxelDosSantosDoAlto](https://forum.commonvisionblox.com/u/AxelDosSantosDoAlto)\
**Replies:** 28\
**Last updated:** [December 4, 2024, 1:27pm UTC](https://forum.commonvisionblox.com/t/atc6-get-line-status-time/1986 "2024-12-04T13:27:13Z")

</div>

Hello guys, I have a acquisition loop for take C6 range image, and during this loop I try to read the value of input 1 and input 2. I use this code to acces to the information : bool CCameraCvbGenicamATC6::GetLineStatu…

---

## [Camera Crash with Trigger settings](https://forum.commonvisionblox.com/t/camera-crash-with-trigger-settings/2270)

<div class="topic-metadata">

**Author:** [@iwein](https://forum.commonvisionblox.com/u/iwein)\
**Replies:** 3\
**Last updated:** [November 26, 2024, 9:23am UTC](https://forum.commonvisionblox.com/t/camera-crash-with-trigger-settings/2270 "2024-11-26T09:23:48Z")

</div>

I have a strange problem: (the aquisition of) my specim 17e camera crashes when I execute the following code. This is always the case, regardless of the setTrigger argument. auto setTrigger(bool enable\_trigger) const { …

---

## [Problem connecting to teledyne dalsa linea line scan camera](https://forum.commonvisionblox.com/t/problem-connecting-to-teledyne-dalsa-linea-line-scan-camera/2255)

<div class="topic-metadata">

**Author:** [@JDP](https://forum.commonvisionblox.com/u/JDP)\
**Replies:** 3\
**Last updated:** [November 5, 2024, 7:36am UTC](https://forum.commonvisionblox.com/t/problem-connecting-to-teledyne-dalsa-linea-line-scan-camera/2255 "2024-11-05T07:36:21Z")

</div>

I have a linea camera, model# LA\_HM\_16K07A\_00\_R, with a frame grabber card Xtium-CLHS PX8 board, model number OR-Y8S0-XPX70. Using sapera CamExpert version 8.73.00.2253. I can acquire an image from cam expert so I know …

---

## [Line Scan Camera Support](https://forum.commonvisionblox.com/t/line-scan-camera-support/2135)

<div class="topic-metadata">

**Author:** [@StevePSS](https://forum.commonvisionblox.com/u/StevePSS)\
**Replies:** 1\
**Last updated:** [March 22, 2024, 6:24am UTC](https://forum.commonvisionblox.com/t/line-scan-camera-support/2135 "2024-03-22T06:24:17Z")

</div>

In latest cvcdriver dll documentation it states that the ILineScan interface is: “Deprecated since Common Vision Blox 13.01.000 because most drivers do not support the ILineScan interface any more.” But, if my Line Sca…

---

## [AT C6 timestamp](https://forum.commonvisionblox.com/t/at-c6-timestamp/2248)

<div class="topic-metadata">

**Author:** [@Mikael](https://forum.commonvisionblox.com/u/Mikael)\
**Replies:** 2\
**Last updated:** [October 24, 2024, 4:02pm UTC](https://forum.commonvisionblox.com/t/at-c6-timestamp/2248 "2024-10-24T16:02:46Z")

</div>

Hello, I am using AT C5 and AT C6 for a few years. actually, it is possible to consult live the encoder counter value (ant it is even possible to reset it). Later, if an image is trigged, the image arrives with encoder…

---

## [3rd Generation Stack Simple Grabbing Program](https://forum.commonvisionblox.com/t/3rd-generation-stack-simple-grabbing-program/2197)

<div class="topic-metadata">

**Author:** [@Danv](https://forum.commonvisionblox.com/u/Danv)\
**Replies:** 4\
**Last updated:** [July 19, 2024, 11:11am UTC](https://forum.commonvisionblox.com/t/3rd-generation-stack-simple-grabbing-program/2197 "2024-07-19T11:11:45Z")

</div>

I have a Genicam camera capturing Mono16 images 366X640 pixels. I am trying to build a simple class/program using the 3rd Generation Stack that continuously grabs images and copies the image’s raw data into a buffer (by…

---

## [How to get the Device-version from DISCOVERY](https://forum.commonvisionblox.com/t/how-to-get-the-device-version-from-discovery/2161)

<div class="topic-metadata">

**Author:** [@IngFra](https://forum.commonvisionblox.com/u/IngFra)\
**Replies:** 3\
**Last updated:** [October 7, 2024, 6:45am UTC](https://forum.commonvisionblox.com/t/how-to-get-the-device-version-from-discovery/2161 "2024-10-07T06:45:21Z")

</div>

In the DISCOVERY-ACK there is a Device-version returned: but it is not accessible from CVB… How can it be read without Open then camera?

---

## [Very slow DISCOVERY](https://forum.commonvisionblox.com/t/very-slow-discovery/2234)

<div class="topic-metadata">

**Author:** [@IngFra](https://forum.commonvisionblox.com/u/IngFra)\
**Replies:** 14\
**Last updated:** [October 16, 2024, 1:44pm UTC](https://forum.commonvisionblox.com/t/very-slow-discovery/2234 "2024-10-16T13:44:03Z")

</div>

I am trying to detect GEV-cameras on the network but on some machines it is very slow (\>20s) but on “normal” machine it is 2s. Tested with different flags, eg: Cvb::DiscoverFlags flags = Cvb::DiscoverFlags::UpToLev…

---

## [Check for corrupt frames](https://forum.commonvisionblox.com/t/check-for-corrupt-frames/2233)

<div class="topic-metadata">

**Author:** [@IngFra](https://forum.commonvisionblox.com/u/IngFra)\
**Replies:** 11\
**Last updated:** [October 16, 2024, 8:34am UTC](https://forum.commonvisionblox.com/t/check-for-corrupt-frames/2233 "2024-10-16T08:34:34Z")

</div>

I am trying to check for corrupt frames with IsIncomplete: auto isIncomplete = false; if (auto vinBuffer = enumerator\["VinBuffer"\]) { if (auto node = vinBuffer-\>Node\<Cvb::BooleanN…

---

## [Crop Image C++ using Rect() Map()](https://forum.commonvisionblox.com/t/crop-image-c-using-rect-map/2239)

<div class="topic-metadata">

**Author:** [@Emma](https://forum.commonvisionblox.com/u/Emma)\
**Replies:** 3\
**Last updated:** [October 16, 2024, 7:27am UTC](https://forum.commonvisionblox.com/t/crop-image-c-using-rect-map/2239 "2024-10-16T07:27:02Z")

</div>

Hi Everyone! I hope someone can help me with an issue I’m facing when cropping an image. I’m using the Rect() function to define a rectangle for cropping and the Map() function to crop the image. When I use Rect(0, 0, …

---

## [Multi ROI acquisition with AT C6](https://forum.commonvisionblox.com/t/multi-roi-acquisition-with-at-c6/2240)

<div class="topic-metadata">

**Author:** [@fisherman6v6](https://forum.commonvisionblox.com/u/fisherman6v6)\
**Replies:** 0\
**Last updated:** [October 15, 2024, 6:55pm UTC](https://forum.commonvisionblox.com/t/multi-roi-acquisition-with-at-c6/2240 "2024-10-15T18:55:10Z")

</div>

Hello everyone, I’m able to acquire two ROIs from an AT C6 in form of rangemaps. The two ROIs are one over the other with the same width (4096). Now, what is the correct way of converting them to pointcloud and merging …

---

## [3rdGeneration and Visual Studio 2022 version 17.11.4 c++ CRASH : msvcp140.dll mutex](https://forum.commonvisionblox.com/t/3rdgeneration-and-visual-studio-2022-version-17-11-4-c-crash-msvcp140-dll-mutex/2229)

<div class="topic-metadata">

**Author:** [@Mikael](https://forum.commonvisionblox.com/u/Mikael)\
**Replies:** 1\
**Last updated:** [October 7, 2024, 10:51am UTC](https://forum.commonvisionblox.com/t/3rdgeneration-and-visual-studio-2022-version-17-11-4-c-crash-msvcp140-dll-mutex/2229 "2024-10-07T10:51:14Z")

</div>

Hello, I’ve recently upgraded my visual studiot to its the lastest version (6 month I’ve not did it). Surprise : my DLL built with this version crashes (x64 release, windows) in Open method whereas it did not crash wit…

---

## [Bit depth detection changed in 14.01](https://forum.commonvisionblox.com/t/bit-depth-detection-changed-in-14-01/2184)

<div class="topic-metadata">

**Author:** [@whisper](https://forum.commonvisionblox.com/u/whisper)\
**Replies:** 9\
**Last updated:** [October 7, 2024, 1:17pm UTC](https://forum.commonvisionblox.com/t/bit-depth-detection-changed-in-14-01/2184 "2024-10-07T13:17:23Z")

</div>

Hello, our software uses the CVB parameters DataType and BitsPerPixel to determine the pixel format of the camera. It seems the CVB behaviour has changed from 14.0 (and before) to 14.1. PixelFormat in-camera CVB 1…

---

## [GenTL provider stream.start() changes AcquisitionMode](https://forum.commonvisionblox.com/t/gentl-provider-stream-start-changes-acquisitionmode/2224)

<div class="topic-metadata">

**Author:** [@John](https://forum.commonvisionblox.com/u/John)\
**Replies:** 7\
**Last updated:** [September 17, 2024, 8:57pm UTC](https://forum.commonvisionblox.com/t/gentl-provider-stream-start-changes-acquisitionmode/2224 "2024-09-17T20:57:55Z")

</div>

After upgrading to the recommended acquisition stack, we noticed that AcquisitionMode property changes when calling stream.start(). This does not happen via GenieCam. We checked cvb13 and cvb14 and the issue is present…

---

## [stream.Wait() Exception](https://forum.commonvisionblox.com/t/stream-wait-exception/2201)

<div class="topic-metadata">

**Author:** [@Danv](https://forum.commonvisionblox.com/u/Danv)\
**Replies:** 5\
**Last updated:** [September 2, 2024, 11:29am UTC](https://forum.commonvisionblox.com/t/stream-wait-exception/2201 "2024-09-02T11:29:26Z")

</div>

Hi, I am experiencing an issue with my GenICam camera. I encountered the following exception: “Native handle is not an IImageVPA type.” This error occurs on the line where I attempt to acquire an image using the stream…

---

## [Spectral::Transpose is gone?](https://forum.commonvisionblox.com/t/spectral-transpose-is-gone/2215)

<div class="topic-metadata">

**Author:** [@iwein](https://forum.commonvisionblox.com/u/iwein)\
**Replies:** 1\
**Last updated:** [August 29, 2024, 2:16pm UTC](https://forum.commonvisionblox.com/t/spectral-transpose-is-gone/2215 "2024-08-29T14:16:52Z")

</div>

In the latest release of CVB, the Transpose() function in Cube.hpp is onmitted. This implies, in turn, that the following code does not compile anymore const auto cube = Cvb::Cube::FromImages(imgVec, Cvb::Spectral::Cu…

---

## [AT C6 Scan Moving object and get ZMap](https://forum.commonvisionblox.com/t/at-c6-scan-moving-object-and-get-zmap/2202)

<div class="topic-metadata">

**Author:** [@BBad](https://forum.commonvisionblox.com/u/BBad)\
**Replies:** 3\
**Last updated:** [August 7, 2024, 11:10am UTC](https://forum.commonvisionblox.com/t/at-c6-scan-moving-object-and-get-zmap/2202 "2024-08-07T11:10:47Z")

</div>

I need some guidance for the following use case: I have a C6 sensor, and an object on an x,y stage. I want to scan the moving object, and as an output to produce a text file containing a 2D matrix representing the Z co…

---

## [Cvb++ Nodemap event callback challenges](https://forum.commonvisionblox.com/t/cvb-nodemap-event-callback-challenges/2195)

<div class="topic-metadata">

**Author:** [@cpj\_ge](https://forum.commonvisionblox.com/u/cpj_ge)\
**Replies:** 7\
**Last updated:** [July 25, 2024, 12:20pm UTC](https://forum.commonvisionblox.com/t/cvb-nodemap-event-callback-challenges/2195 "2024-07-25T12:20:55Z")

</div>

Hi I am using Cvb++ (14.1) and am in the process of registering callback functions for all possible events. So far I have succesfully retrieved all the relevant IntegerNodePtr’s from the device nodemap (for example Std…

---

## [Minimal run-time installation on Linux](https://forum.commonvisionblox.com/t/minimal-run-time-installation-on-linux/2162)

<div class="topic-metadata">

**Author:** [@IngFra](https://forum.commonvisionblox.com/u/IngFra)\
**Replies:** 8\
**Last updated:** [June 13, 2024, 11:45am UTC](https://forum.commonvisionblox.com/t/minimal-run-time-installation-on-linux/2162 "2024-06-13T11:45:50Z")

</div>

From the CVB-zip: codemeter\_7.21.4611.501\_amd64.deb cvb-camerasuite-14.00.010-ubu2004-x86\_64.deb cvb-camerasuite-dev-14.00.010-ubu2004-x86\_64.deb cvb-foundation-14.00.010-ubu2004-x86\_64.deb cvb-foundation-dev-14.00.…

---

## [GVCP port-range for cameras on the same subnet](https://forum.commonvisionblox.com/t/gvcp-port-range-for-cameras-on-the-same-subnet/2167)

<div class="topic-metadata">

**Author:** [@IngFra](https://forum.commonvisionblox.com/u/IngFra)\
**Replies:** 3\
**Last updated:** [May 24, 2024, 8:00am UTC](https://forum.commonvisionblox.com/t/gvcp-port-range-for-cameras-on-the-same-subnet/2167 "2024-05-24T08:00:16Z")

</div>

We are using 2-3 GEV-cameras connected to the same network-switch (ie using the same subnet) but opened by different processes on Linux and the used GVCP port-range needs to be different to avoid mix-up of the image-data…

---

## [Is DiscoveryInformation intentionally not copyable?](https://forum.commonvisionblox.com/t/is-discoveryinformation-intentionally-not-copyable/2166)

<div class="topic-metadata">

**Author:** [@t.weigt](https://forum.commonvisionblox.com/u/t.weigt)\
**Replies:** 1\
**Last updated:** [May 23, 2024, 9:39am UTC](https://forum.commonvisionblox.com/t/is-discoveryinformation-intentionally-not-copyable/2166 "2024-05-23T09:39:13Z")

</div>

I have a question about the C++ API of :cvb:. I am using the latest version (14.00.010) of :cvb: at this time. The class Cvb::DiscoveryInformation defines a move constructor and declares a defaulted move assignment ope…

---

## [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…

---

## [Running Ebus SDK on jetson nano](https://forum.commonvisionblox.com/t/running-ebus-sdk-on-jetson-nano/1643)

<div class="topic-metadata">

**Author:** [@Embeddediot](https://forum.commonvisionblox.com/u/Embeddediot)\
**Replies:** 5\
**Last updated:** [April 19, 2024, 10:18am UTC](https://forum.commonvisionblox.com/t/running-ebus-sdk-on-jetson-nano/1643 "2024-04-19T10:18:12Z")

</div>

I am currently making my bachelor thesis where i am working on the jetson nano with a jai GO-5000C-PGE camera. I have installed the specific sdk for the jetson nano (https://www.jai.com/support-software/jetson-ubuntu/). …

---

## [Can not readable visualization image of ShapeFinder2](https://forum.commonvisionblox.com/t/can-not-readable-visualization-image-of-shapefinder2/2146)

<div class="topic-metadata">

**Author:** [@sbphsho](https://forum.commonvisionblox.com/u/sbphsho)\
**Replies:** 5\
**Last updated:** [April 11, 2024, 11:13am UTC](https://forum.commonvisionblox.com/t/can-not-readable-visualization-image-of-shapefinder2/2146 "2024-04-11T11:13:23Z")

</div>

here is my shape finder test project and img test result WindowsFormsApp1.zip (15.2 KB)

---

## [Wrong value when casting SmartRectangle to Rect](https://forum.commonvisionblox.com/t/wrong-value-when-casting-smartrectangle-to-rect/2141)

<div class="topic-metadata">

**Author:** [@sbphsho](https://forum.commonvisionblox.com/u/sbphsho)\
**Replies:** 6\
**Last updated:** [April 3, 2024, 8:55am UTC](https://forum.commonvisionblox.com/t/wrong-value-when-casting-smartrectangle-to-rect/2141 "2024-04-03T08:55:03Z")

</div>

I am trying convert SmartRectangle to System.Drawing.Rectangle but I get the height = 1 always. I think the implicit operator Rect is use wrong verties index of SmartRectangle. I am testing the ShapeFinder2 , but th…

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

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