Hi all,
for our machine learning project I’m following the natmod/features2 example to create a C module that can be used with micropython. I would like to pass a frame buffer containing the actual data to a C function:
from cnn import cnn
...
img = sensor.snapshot()
cnn(img)
The C function is:
STATIC mp_obj_t cnn(mp_obj_fun_bc_t *self, size_t n_args, size_t n_kw, mp_obj_t *args) {
...
}
I have to questions:
- Running the code above leads to: “TypeError: function doesn’t take keyword arguments.” There is no keyword argument?
- I know img is not the frame buffer. How can I get it?
Thx in advance!