SOLVED Python capture does not work with VEYE IMX462
-
Hi, I receive following error message when trying to call D_Capture method from python program on VEYE IMX 462
mmal: mmal_port_connect: port 0x19120a0 is already connected
mmal: mmal_connection_create: connection could not be made
mmal: D_capture: Failed to connect camera video port to encoder input
Segmentation FaultPreview works fine. I have tried several output formats I422, JPEG
Following is my python code :
buffer_array = self._camera.capture(encoding = 'jpeg')
buffer_array.as_array.tofile(filename)
self._camera.release_buffer(buffer_array)
del buffer_array -
Just to add some more informations, is it possible to capture while preview is displaying with the libdmipicam library or do I need to stop preview before capture ?
-
Ok just found the problem, need to stop_preview, make the capture then start_preview, as there is no port split on libdmipicam !
-
@watchever
You are right.