Open jeremy-rutman opened 8 years ago
ok if you wrap the string with bytearray then it won't crash , st=bytearray(img.tostring()) and then matrix.set_buf(st,...) however this method of matrix.set_buf does not give the same results as matrix.set_file() - any clues on how to get usable results from an array passed into set_buf?
I tried the test.py which works ok (after I copy ccv.so to the cwd). Now I would like to try passing an image array to ccv functions so as a first test I try uncommenting the lines in test.py that use matrix.set_buf:
However this runs into the following error:
What am I doing wrong here?