I try to use computer vision library with racket.<br><br>;; API<br>(define libhighgui (ffi-lib "libhighgui" '("2.1" "4")))<br>(define-cpointer-type _cv-capture)<br><br>;; /* start capturing frames from camera: index = camera_index + domain_offset (CV_CAP_*) */<br>
;; CVAPI(CvCapture*) cvCreateCameraCapture( int index );<br>(define cvCreateCameraCapture <br> (get-ffi-obj "cvCreateCameraCapture" libhighgui (_fun _int -> (_or-null _cv-capture))))<br><br>;; /* stop capturing/reading and free resources */<br>
;; CVAPI(void) cvReleaseCapture( CvCapture** capture );<br>(define cvReleaseCapture <br> (get-ffi-obj "cvReleaseCapture" libhighgui (_fun _pointer -> _void)))<br><br>;;application <br>(define capture (cvCreateCameraCapture 0)<br>
<br>How I can release the capture (how to emulate CvCapture** for cvReleaseCapture)?<br><br>Alex.<br><br><br>