Thank you Alex!
You made my day. Using your suggestion the video is playing more smoothly.
Better than that, I've managed the C library to get the frame data from
OpenCV in BGRA format in order to be able to use the BlExternalForm, but
now I can use directly BGR and save all those alpha bytes.
Hi Rafael,
Assuming you have your OpenCV camera frame object named image in BGR format
(default for OpenCV)
Here is how you can render it at high fps in Bloc (override *BlElement>>#*
drawOnSpartaCanvas: aCanvas in a subclass)
surface := aSpartaCanvas bitmap
fromBGR: image imageData
extent:
Hello,
I'm experimenting with an integration between OpenCV and Pharo based on
uFFI. My native C library opens a video camera and captures frames for
detecting certain points (aka blobs) of interest for my use case. The data
for these frames are available to Pharo as uchar* inside a C struct.
My