Way to a capture/convert ocvFFMpegIPCamSource stream to a bitmap? Delphi-opencv [closed]

asked 2020-02-16 20:38:50 -0600

Linces gravatar image

updated 2020-10-24 14:52:37 -0600

There is a way to a capture/convert ocvFFMpegIPCamSource stream to a bitmap?

First I try to do this:

FrameBitmap := TBitmap.Create;
FrameBitmap.PixelFormat := pf24bit;

Image5.Picture.Graphic := IplImage2Bitmap(ocvView1.Image, FrameBitmap);

// Image5 is my bitmap.

Obviously is geting a error, because "ocvView1.Image" is of type "IocvImage" and the first parameter of the function IplImage2Bitmap needs a type "pIpIImage"

I missed something in the middle of the process..

Second i try using "cvImage2Bitmap":

FrameBitmap := TBitmap.Create;
FrameBitmap.PixelFormat := pf24bit;

Image5.Picture.Graphic := cvImage2Bitmap(ocvView1.Image, FrameBitmap);

Again, needs a type "pIpIImage" and i am trying to pass a "IocvImage"

I cannot see what is missing.

There is a way to make this conversion?

I need to do this directly from ocvFFMpegIPCamSource component, or from ocvView component?

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by LBerger
close date 2020-02-17 02:04:29.858695

Comments

delphi ocvFFMpegIPCamSource, IplImage2Bitmap pIpIImage off topic

LBerger gravatar imageLBerger ( 2020-02-16 20:51:39 -0600 )edit

off topic?

Linces gravatar imageLinces ( 2020-02-16 21:25:07 -0600 )edit

determine who made the pascal/delphi binding you use and ask them about help.

crackwitz gravatar imagecrackwitz ( 2020-02-19 09:22:23 -0600 )edit