Describe the bug
I'm using Aravis to receive frames from my camera and save them locally to a binary file.
The problem is that the frame's I'm getting look like this

When they suppose to look like this (using eBus).

This is the python code I'm using to do so: (my camera is 265Hz, so I'm basically recording 10 seconds)
import sys
import gi
import time
gi.require_version ('Aravis', '0.8')
from gi.repository import Aravis
try:
if len(sys.argv) > 1:
camera = Aravis.Camera.new (sys.argv[1])
else:
camera = Aravis.Camera.new (None)
except TypeError:
print ("No camera found")
exit ()
camera.gv_set_packet_size(6130)
payload = camera.get_payload ()
[x,y,width,height] = camera.get_region ()
print ("Camera vendor : %s" %(camera.get_vendor_name ()))
print ("Camera model : %s" %(camera.get_model_name ()))
print ("ROI : %dx%d at %d,%d" %(width, height, x, y))
print ("Payload : %d" %(payload))
print ("Pixel format : %s" %(camera.get_pixel_format_as_string ()))
stream = camera.create_stream (None, None)
for i in range(10):
stream.push_buffer (Aravis.Buffer.new_allocate (payload))
camera.start_acquisition()
file = open("rec.Raw", "wb")
t = time.time()
for i in range(0,2650):
image = stream.pop_buffer()
data = image.get_data()
if image:
file.write(data)
stream.push_buffer (image)
print(time.time() - t)
camera.stop_acquisition ()
file.close()
Platform description:
- Aravis version: 8.0.6
- OS: Raspbian latest version
- Hardware: Raspberrypi4 8Gb
Any ideas on what's going on or how to fix it?
Thanks, Shorlaks
Describe the bug
I'm using Aravis to receive frames from my camera and save them locally to a binary file.
The problem is that the frame's I'm getting look like this
When they suppose to look like this (using eBus).
This is the python code I'm using to do so: (my camera is 265Hz, so I'm basically recording 10 seconds)
Platform description:
Any ideas on what's going on or how to fix it?
Thanks, Shorlaks