Illegal :UTF-8 character starting at position CFFI/LISP ?
Posted: Fri Oct 18, 2013 12:56 pm
Im refferring to this OpenCV function on this post
I'm tring to get the c functionality where i can access the imageData struct member of IplImage with the below statement (more info here http://docs.opencv.org/modules/core/doc ... i#iplimage)
when i try with this
I get the post title error message. I also get message when i try to setf IMAGE-DATA to another variable or list it .....i get same thing with foreign-slot-value
here is sampling of the more than 6 pages of converted_image->imageData that was cout'ed in C
Code: Select all
IplImage* cvLoadImage(const char* filename, int iscolor=CV_LOAD_IMAGE_COLOR )
Code: Select all
IplImage* converted_image= cvLoadImage("c:\\box_in_scene.png",0):converted_image->imageData
when i try with this
Code: Select all
(dp converted-image (Load-image "/home/w/Documents/opencv-
2.4.6.1/samples/c/box_in_scene.png" 0))
(cffi:with-foreign-slots ((image-data)
converted-image (:struct ipl-image))
(cffi:foreign-string-to-lisp image-data))
here is sampling of the more than 6 pages of converted_image->imageData that was cout'ed in C
Code: Select all
P1']}stqouqwruM/./22330/00+1)/+%+8S~sx{zzx|x~|x~y{~Y(&&''()+,%(%$%! $l~