Now I try to use CVB to connect with a Gocator camera. The image captured by Gocator can be shown in GenICamBrowser very well. However, when I tried to show the image through a python script, the captured image is black, the maximum pixel value is 0.
with cvb.DeviceFactory.open(cvb.install_path() + "/drivers/GenICam.vin") as vin_device: # asuming that the vin driver configures 3 buffers by default. #vin_device.stream.ring_buffer.change_count(5, cvb.DeviceUpdateMode.UpdateDeviceImage) # Get the device node map, which groups all settings for your camera (device) device_node_map = vin_device.node_maps["Device"] # access the camera feature stream = vin_device.stream # start the stream stream.start() # Wait for new image image, status = stream.wait_for(60000) print(cvb.as_array(image, copy=False).max()) if status == cvb.WaitStatus.Ok: print("Buffer: " + str(image.buffer_index)) array_image = cvb.as_array(image, copy=False) print(array_image.flags['OWNDATA']) np_array_3D = np.asarray(array_image) print("max value", np_array_3D.max())
Model: Gocator 2340
Can anyone help me?
Thanks in advance.