ArduCAM / MIPI_Camera

223 stars 107 forks source link

arducam_mipicamera.py line 269 NULL pointer access #155

Open ruihaiW opened 2 years ago

ruihaiW commented 2 years ago

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.