ArduCAM / ArduCAM_USB_Camera_Shield

This is the repository for ArduCAM USB Camera Shield
126 stars 69 forks source link

MT9J001 save raw data as numpy array #161

Closed Oliverhiggins93 closed 3 years ago

Oliverhiggins93 commented 3 years ago

Hi, What's the easiest way to save the raw data as a Numpy array? I can see in the Arducam_py_demo example that there is an option to save the raw data, but whenever I change this to add the 'data' object to a numpy array my instance crashes.

Is there any easier way to get the data into a numpy array so it can be stored?

Thanks

Oliverhiggins93 commented 3 years ago

Apologies, I should have mentioned, I specifically want this to be in the RAW 12bit monochrome format, and I am using config MT9J001_MONO_12b_3664x2748_2fps.cfg

Oliverhiggins93 commented 3 years ago

Nevermind, I have actually worked out how to do this - for some reason my Spyder interpreter was crashing everytime I tried to assign the data variable to a numpy array. In the end I opened the script outside of Spyder and it works in this context.