Hi,
I am using Trial version for RVMedia, i can connect to IP Camera and i want to display video in the TImage (because i use some routines to make facial recognition wich use TImage).
Did the RVMedia comonents have a similar object like TImage ? if not how can i redirect the video to the TImage ?
If i can i do this is it programaticly safe ?
I am open for any suggestion.
An example can be very helpful.
Thank's
Charle
Redirect video to TImage
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Redirect video to TImage
You can use OnGetImage event:
Please be careful, this event is called in a thread context. It looks like this assignment works ok in a thread context, but if you execute other code, it may require a context of the main process. It can be implemented using PostMessage or a timer. Let me know if you need more information.
Code: Select all
uses MRVBitmap;
procedure TfrmMain.RVCamera1GetImage(Sender: TObject; img: TRVMBitmap);
begin
if Image1 <> nil then
Image1.Picture.Bitmap := img.GetBitmap;
end;