Hello, first of all thank you for aravis. So far everything is running and I would now like to continue working with python and opencv. Unfortunately I just don’t understand it. How can I convert an image or stream buffer for opencv? The pixel format is bayerRG8.
...
stream.push_buffer (Aravis.Buffer.new_allocate (payload))
print ("Start acquisition")
camera.start_acquisition()
while True:
try:
print ("Acquisition")
raw_image = stream.pop_buffer()
print (raw_image)
if raw_image:
stream.push_buffer (raw_image)
#raw_image = raw_image.get_data()
#rgb_image = raw_image.convert("RGB")
#numpy_image = rgb_image.get_numpy_array()
#pimg = cv2.cvtColor(numpy.asarray(numpy_image),cv2.COLOR_BGR2RGB)
except Exception as e:
print(e)
break
except KeyboardInterrupt:
break
print ("Stop acquisition")
camera.stop_acquisition ()
I would be very grateful for an example ! Iam using Opencv 4.8.1 and Python 3.8
Best regards Martin