Jump to content

Recommended Posts

Posted

Hi

 

I'm loading a secuence of images on unimage (from a camera ip) , but a molest flicker is produced when loading the image. tested with iexplorer 9, and firefox.

 

in my uniapplication, i have a unitimer (interval=100), that get jpg frame from a remote camera ip, and load it on a unimage, but a molest flicker produced.

same problem using UniImage1.Picture.Assign(JpeGImg) or using uniImage1.url=xxx.

 

¿ any sugestion to remove the molest image flicker ?.

//my code.
Procedure TFramePreviewCore.GetFrame2; 
var url:string;
Begin
   URL:='http://localhost:'+IntToStr(RemoteHttpPort)+'/image.cgi'+'?random='+inttostr(Random(200000));
   UniImage1.Url:=url;
End;

procedure TFramePreviewCore.UniTimer1Timer(Sender: TObject);
begin
   try GetFrame2; except end;
End;

 

 

thanks.

  • Administrators
Posted

It is related to way browser handle images. Some browsers clear the image place holder before loading a new one.

 

Instead of uniImage you can use TUniCanvas to render images. It should resolve flickering.

Posted

It is related to way browser handle images. Some browsers clear the image place holder before loading a new one.

 

Instead of uniImage you can use TUniCanvas to render images. It should resolve flickering.

 

thaks Farshad , but using unicanvas, painting every 100ms, cpu goes 100% and it's too slow. i will try with some html/javascript or ussing an applet and load on uniurlframe.

 

thanks.

  • Administrators
Posted

thaks Farshad , but using unicanvas, painting every 100ms, cpu goes 100% and it's too slow. i will try with some html/javascript or ussing an applet and load on uniurlframe.

 

thanks.

 

If both server and browser are on same PC it can be slow.

  • 2 weeks later...
  • Administrators
Posted

thaks Farshad , but using unicanvas, painting every 100ms, cpu goes 100% and it's too slow. i will try with some html/javascript or ussing an applet and load on uniurlframe.

 

Well, if you need a display rate above 2 FPS you must prefer live image streaming.

  • 4 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...