LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I capture an image of an updating ActiveX object on a web page?

I have a camera that has a built-in web server (the Dlink DCS-1000) and I wish to use labview to acquire and save the images from the camera. The camera has a few examples of html code for viewing the image; composed of a javascript and an ActiveX object. This allows for viewing the updated image without reloading the page (near 30 frames per second as opposed to once every 2 seconds.) I wish to be able to save an image every 0.5 seconds or so by capturing the contents of the page/object/window.

I have tried to use the Webbrower2 object and a portion of the example javascript that came with the camera, to load a webpage that shows only the image from the camera. This works great for showing the imag
e to the user. To grab the image, I use an invoke node for the webbrowser2 object and the 'get image' method and save the result as a jpg. Problem is, all I get is a white square flanked by the scroll bars (aka everything but the undating image.)

Currently, I refresh a page that loads a jpeg from the camera every 4 seconds (using the web2brower object) and use the same 'get image' method and it works okay, but has no where near the update rate that I need (plus it causes a drag on my system.)

Thanks for any thoughts!
0 Kudos
Message 1 of 6
(4,352 Views)
Try using a more direct method to get your image. It sounds like you are trying to use an embedded web browser to retrieve the image, which is just communicated to the browser via a more direct, probably TCP/IP based method.

I would suggest first, using the ActiveX object that shipped with the camera to retrieve the image, flatten it to JPEG, and then display it. If that doesn't work, then try communicating directly with the camera. However; it sounds like the ActiveX that shipped with the camera may be the way to go.
0 Kudos
Message 2 of 6
(4,352 Views)
Hi Robert,

Have you been able to solve your problem with the DCS-1000. If not, i can attach my VI that does what you want it to do. I am using a DLink camera (DCS-900 W - 2.4GHz wireless camera). I use the active X to call the camera and display it on my LabView screen. Let me know if you need help.

I have one issue though. I am trying to display the streaming image that i get on my front panel to a remote computer using Internet Browser. I dont get the image on the IE browser. I am using the embedded LabView web server to do this. What am I doing wrong?

Any help is appreciated.

Thanks in advance.
0 Kudos
Message 3 of 6
(4,353 Views)
I'm trying to get some code working with the DCS-900. Could I see your code you have working? Thanks for any help!
0 Kudos
Message 4 of 6
(4,322 Views)

hey, check it guys maybe scrubber

0 Kudos
Message 5 of 6
(3,152 Views)

Hi Polska,

 

is there a reason to advertise some hardware in an 10+ years old thread?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(3,134 Views)