docjones Posted March 21, 2012 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. Quote
Administrators Farshad Mohajeri Posted March 21, 2012 Administrators 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. Quote
docjones Posted March 22, 2012 Author 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. Quote
Administrators Farshad Mohajeri Posted March 22, 2012 Administrators 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. Quote
Administrators Farshad Mohajeri Posted March 30, 2012 Administrators 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. Quote
vlkc Posted July 3, 2016 Posted July 3, 2016 I have the same problem. How can I do live image streaming directly from camera? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.