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

asked Feb 17 '0

Linces gravatar image

updated Oct 24 '0

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?

Preview: (hide)

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 (Feb 17 '0)edit

off topic?

Linces gravatar imageLinces (Feb 17 '0)edit

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

crackwitz gravatar imagecrackwitz (Feb 19 '0)edit