Jai go 5000 eh? Check the interpacket delay setting on the camera for that one. That’s almost certainly it. Send an email to support@stemmer-imaging.(pickyourcountry) to get help with that.
It’s indeed package loss, and with the JAI go camera you have to set the interpacket delay carefully, otherwise you get black lines like you see in your image.
The jai control tool has an inbuilt calculator for that.
I have encountered another problem, When i take several exposure series in a row, with code similar to the first post, i sometimes get one (sometimes two) images with higher intensity in the beginning of the serie.
i have calculated the mean pixel value of the images and look at the timestamp in order to rule out that it is some memory error in my code. it seems like it is a unique image, but with to long exposure time
Any idea of what can cause this?
image = 10
exposure value micro sec = 200000.0
time since last image = 27463951.0
mean intensity = 169.81691773732504
---------------------
image = 11
exposure value micro sec = 5000.0
time since last image = 21868552.0
mean intensity = 152.64980894724528
---------------------
image = 12
exposure value micro sec = 53750.0
time since last image = 19120265.0
mean intensity = 125.13789710998535
How did u get the jai camera to work with opencv? I know this is an old forum but any help would be appreciated as i have been scouring the internet for days trying to find any indication that this is possible.
as far as I am aware, there is no open cv involved here. This is just plain CVB functionality.
However in the Python wrappers of CVB you have a neat little function “cvb.as_array(CvbImage)” that returns you a numpy array containing the image data.
With this you should also be able to pipe your imagedata that you acquired with Cvb into OpenCv:
import os
import cvb
image = cvb.Image(os.path.join(cvb.install_path(), "tutorial", "Clara.bmp"))
m = cvb.as_array(image, copy=False)
for y in range(len(m)):
for x in range(len(m[0])):
new_value = m[y, x] + 20
if new_value > 255:
new_value= 255
m[y, x] = new_value
image.save("D:/claraTest.bmp")
I know I might be late to the party, but if you are looking for ways to get images from your Jai camera into OpenCV, we usually recommend to take care of the acquisition through the CVB API and then pass over the CVB image to OpenCV. OpenCV has no GenICam interface and won’t interface out of the box to GEV or U3V cameras that expect to be addressed through that protocol.