In python, suing capture_raw, the program abort on the statement:
frame.as_array.tofile(f'{filename}.raw'.format(self.fmt[0],self.fmt[1]))
with error:
return np.ctypeslib.as_array(self.buffer_ptr[0].data, shape=(self.length,)) ValueError: NULL pointer access
This null pointer problem often occur.
The camera is the imx298 21MP, the Raspberry Pi model is Pi 4.
In python, suing capture_raw, the program abort on the statement:
frame.as_array.tofile(f'{filename}.raw'.format(self.fmt[0],self.fmt[1]))
with error:
return np.ctypeslib.as_array(self.buffer_ptr[0].data, shape=(self.length,)) ValueError: NULL pointer access
This null pointer problem often occur.The camera is the imx298 21MP, the Raspberry Pi model is Pi 4.