A few days ago, I went back to the OpenCV3-red code I wrote more than 10 years ago at the start of Red's development. A pleasant surprise: the code is still operational. The only thing I had to change was the definition of a pointer:
#define p-buffer! [struct! [buffer [c-string!]] which conflicted with the structure defined in call.reds:
p-buffer!: alias struct! [ ;-- Data buffer struct, pointer and bytes count
count [integer!]
buffer [byte-ptr!]
]
Then you can carry on playing with this code, which gives access to over 600 OpenCV functions!
The code is here: https://github.com/ldci/OpenCV3-red
Aucun commentaire:
Enregistrer un commentaire