I&#39;m looking to put some Racket wrappers around bits of the OpenCV C api, but I&#39;m having a hard getting started. I&#39;ve looked through the ffi/unsafe documentation several times, but something isn&#39;t clicking-- I think I need to peer at some examples. If anyone has a good example or two of calling C code from Racket, I&#39;d be much obliged.<div>

<br></div><div>In detail, what I imagine is going to happen is that I will be accessing some (shared?) object files, created as part of the OpenCV build, by calling (define function-name (get-ffi-obj function-name (ffi-lib lib-name) format)...)</div>

<div>I&#39;m not clear, however, on what the particular object files I&#39;m looking up with ffi-lib. I also am unclear about the convention for the function-name parameter to get-ffi-obj. Is it as simple as a string of the the name that the C api is exposing?</div>

<div><br></div><div>I hope I&#39;ve revealed my ignorance appropriately-- if you noticed any other misconceptions or egregious gaps, please do let me know!</div><div><br></div><div>ben</div>