docjones Posted March 21, 2012 Share Posted March 21, 2012 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. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 21, 2012 Administrators Share Posted March 21, 2012 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. Link to comment Share on other sites More sharing options...
docjones Posted March 22, 2012 Author Share Posted March 22, 2012 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. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 22, 2012 Administrators Share Posted March 22, 2012 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. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 30, 2012 Administrators Share Posted March 30, 2012 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. Link to comment Share on other sites More sharing options...
vlkc Posted July 3, 2016 Share Posted July 3, 2016 I have the same problem. How can I do live image streaming directly from camera? Link to comment Share on other sites More sharing options...
WildFrag Posted July 4, 2016 Share Posted July 4, 2016 may be iframe from camera url? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now