LabView and Axis network camera

Hello,
I am using LabView 7 to display/save images from two network cameras
(AXIS PTZ 2130). I use the ActiveX controls provided by Axis.
It works, but the development is painful because the Methods and
ActiveX controls are not well documented by Axis.
Does anyone have some experience in it ?
I am currently using the IAxisCameraControl class to control the camera motion,
but I am also interested in managing the events
("OnNewImage"...) provided by the CamImageEvents class.
Thanks!

IAxisCameraControl Class?
I found just IAxisMediaControl class...
How can i have CameraControlClass? or is it the same?
Kolos 

Similar Messages

  • Axis Network Camera Jpeg mess

    I am trying to read the MJPGs from an Axis camera. I can get each image as a bufferedimage, but I need to also get them as a byte[] buffer. I need to pass on that byte[] buffer to other listeners. I am having a fun time trying to convert the image to a byte buffer. I have tried several examples found here and elsewhere and nothing seems to work when I try to convert the byte[] buffer back to an image via           thepic = tk.createImage(myBytebuff[]);
    any assistance is appreciated!
    Greg

    When you talk about turning an image into a byte[] buffer you need to be specific about how data is formatted
    in that buffer -- there are plenty of ways to do it.
    Nevertheless, here is a demo where I create a series of buffered images:
    1. The source image, as read.
    2. intImage, which holds its data in an int[],
    3. byteImage, which holds its data in a byte[]
    Then I extract a byte array from byteImage and demonstrate that I can recover the image by creating
    4. recovered, which is created from a databank byte[].
    You should take your image and convert it to have a byte[] databank, if needed, then see if that byte[]
    is the correct format for your needs.
    import java.awt.*;
    import java.awt.color.*;
    import java.awt.image.*;
    import java.io.*;
    import java.net.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class BufferedImageToByteArray {
        public static void main(String[] args) throws IOException {
            URL url = new URL("http://today.java.net/jag/bio/JagHeadshot-small.jpg");
            BufferedImage source = ImageIO.read(url);
            BufferedImage intImage = convertType(source, BufferedImage.TYPE_INT_RGB);
            BufferedImage byteImage = convertType(source, BufferedImage.TYPE_3BYTE_BGR);
            byte[] data = getData(byteImage);
            BufferedImage recovered = toImage(data, source.getWidth(), source.getHeight());
            JPanel cp = new JPanel(new GridLayout(2,2));
            addImage(cp, source, "Source Image");
            addImage(cp, intImage, "TYPE_INT_RGB Image");
            addImage(cp, byteImage, "TYPE_3BYTE_BGR Image");
            addImage(cp, recovered, "Recovered Image");
            JFrame f = new JFrame("BufferedImageToByteArray");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setContentPane(cp);
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
        static void addImage(Container cp, BufferedImage im, String title) {
            JLabel label = new JLabel(new ImageIcon(im));
            label.setBorder(BorderFactory.createTitledBorder(title));
            cp.add(label);
        public static BufferedImage convertType(BufferedImage source, int type) {
            if (source.getType() == type)
                return source;
            BufferedImage result = new BufferedImage(source.getWidth(), source.getHeight(), type);
            Graphics2D g = result.createGraphics();
            g.drawRenderedImage(source, null);
            g.dispose();
            return result;
        public static byte[] getData(BufferedImage image) {
            return ((DataBufferByte)(image.getRaster().getDataBuffer())).getData();
        public static BufferedImage toImage(byte[] data, int w, int h) {
            DataBuffer db = new DataBufferByte(data, data.length);
            WritableRaster raster = Raster.createInterleavedRaster(db,
                w, h, 3*w, 3, new int[]{2,1,0}, null);
            ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_sRGB);
            ColorModel cm = new ComponentColorModel(cs,
                false, false, Transparency.OPAQUE, DataBuffer.TYPE_BYTE);
            return new BufferedImage(cm, raster, false, null);

  • AXIS 213 Camera

    I have looked at several posts on the board regarding capturing an image from a webcam using labview and activex.  I am trying to do the same with an AXIS 213 PTZ Network Camera.  I am not having any luck so far as I do not have any experience in building dlls to hold the activex object, and I am not sure where to find the activex object to put into the dll.  If anyone has any experience with doing this especially if it was with an AXIS Network Camera then I would greatly appreciate any help or possibly an example vi if possible.
    Cheers!
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

    Hello,
    I have downloaded the driver software and am looking over ActiveX examples but am still not clear on how to actually put a vi together that will call activeX methods that will allow me to interact with my device.  Am I correct that I need to have, in this case, the AXIS Video Capture Driver installed on my machine and know what methods the driver users in order to call these same methods within LabVIEW?  If this is true then I have to somehow create a dll that will point towards the AXIS Video Capture Driver to use its activeX methods?  As I mentioned this is new territory for me so I apologize if my questions are nonsense.  Any help will be appreciated!
    Cheers!
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

  • Communicating with an Axis 205 network camera

    Need to create a simple application so that I can contact my network camera. I have the API provided by Axis Communications. The camera supports HTTP 1.0, and the specific syntax for requesting an image is : "http://myserver/jpg/image.jpg". Need to request the image from Java, storing it before converting it to RGB.
    Any ideas?

    You'll need to install the Java Media Framework (JMF) and register a custom plugin to handle the HTTP-based MJPEG stream from these cameras. I've written a library that uses the Axis API v1.1, but I'm not sure if it will work with your specific camera since you don't list a model number.
    Check it out here:
    http://jipcam.sourceforge.net
    jipCam provides a Java Media Framework based datasource to read from different Internet Protocol based video cameras. A computer with Java, and the Java Media Framework, can install jipCam as a JMF protocol handler to allow an IP-based camera's video to become available for processing in JMF. This library is intended for use by developers seeking to build applications using IP-based video cameras on a Java platform.
    You guys can use this library to integrate the MJPEG stream from the Axis camera with JMF to get the camera images as Buffer objects in JMF. There are numerous examples in the source code.
    best luck,
    Jason Thrasher

  • Can I use a camera for application in Labview and VBAI at the same time ?

    Dear all,
    I'm trying to save an AVI file with Labview and make an image process with VBAI at the same time, in one machine.
    The error : "Camera already in use" displayed.
    My Camera is a GIGE and I work with Imaqdx. I've test the multicast mode but it only operate with several machines.
    How can I do this ?
    Thank's to help me,
    Yoann B

    I'm not necessarily saying that.  It's been a while since I've used VBAI, so I don't remember all of the capabilities, but if VBAI can do the inspection and recording at the same time, you should be fine.
    The trick is that only one program can access the camera at the same time.  That application reserves the camera, thus making it unavailable to others.
    Chris
    Certified LabVIEW Architect
    Certified TestStand Architect

  • My ipod 4 when i plug it to my pc Windows 7 had worked fine for 8 months then one day i plug it in and a message came USB device not recognized, i tried reset network settings and nothing called apple they did not know any help out there TX

    My ipod 4 when i plug it to my pc Windows 7 had worked fine for 8 months then one day i plug it in and a message came USB device not recognized, i tried reset network settings and nothing i did not install any software before this happend i called apple they did not know, any help out there TX

    Start here:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows

  • Network camera access via airport extreme ie: i need to assign a port and a

    please help me i have a cabin in the mountains that is off the grid... and i use solar power... i have my internet access via wifi and an antenna... it goes to a d-link router in my electric room then from there via a cat 5 cable to a apple airport extreme base station... and i would like to plug the camera into the base station via a cat 5 cable....
    i am trying to set up a network camera to via a airport extreme base station.... the tech support on the camera end (airlink 101 skyIP cam500 model aicn500) said to enable port 80 and to assign a IP address (which i have)... apple support has been unable to help me after almost 1 hour with tech support.... here is what the camera tech support page suggests....
    You will now need to forward the Second HTTP Port through your router to the IP address of the camera. If you have an AirLink101 router, we have instructions in our knowledge base for port forwarding. If you have a router from another company, you will need to contact them for instructions on port forwarding.
    When accessing the camera from a remote location you will need to open a browser and type in the internet IP address of your network (not the ip address of the camera) and the port into a web browser. The address and port will need to be typed in like this:
    http://x.x.x.x:port
    x.x.x.x = Internet IP address
    port = Second HTTP Port
    Here is an example of what it would look like: http://123.123.123.123:81
    can anyone please help me?

    i can not thank you enough for taking the time time to help me!!! i really appreciate it.... i have done the set up with the d link router and am now trying to access the camera from the web.... but i am having trouble logging in and finding it? i am not sure what ip address to enter into my web browser? i think that i need to add the ip addresss folllowed by a forward slash and then the port # 80.... but what ip address should i add? in the device info part of the d link router i have found a number of ip address's... but none of them seem to work? what am i doing wrong? or not doing? my apple base station is set up in the bridge mode with a password to protect it...
    thanks again...
    josh

  • Axis 2100 Network Camera

    It has dealt no with network camera Axis 2100?
    I am complicated with activex.

    If I understand you correctly, you would like to acquire IMAQ Images from a network camera that has an ActiveX control. This is possible if the control outputs images as 2D arrays. If so, you can use the IMAQ ArrayToImage.vi to convert these 2D arrays into IMAQ Images. From there you can take advantage of our IMAQ Vision functions.
    Kyle V
    Applications Engineer
    National Instruments

  • How to use LABVIEW to collect wireless network camera (with video server) video.

    How to use LABVIEW to collect wireless network camera (with video server) video.I would like to use LABVIEW for a wireless network camera (IP Camera comes with the video server module)the client program.Will the ability to achieve?If feasible, how to do, there are examples, thank you.

    I believe NI Vision is what you are looking for. 

  • Labview and THz camera

    Hi,
    I want to communicate with THz ThruVision TS4 camera using LabView.
    http://www.thruvision.com/Products/TS4_Sub_Pages/TS4_Product_Page.htm
    The problem is that this camera is not a Gige Camera. How to connect this camera with labview, how to get images?
    regards,
    M.
    Solved!
    Go to Solution.

    Hi bikekowal,
    I was trying to gather some information on the THz TS4 camera, but with no success. I am not even sure it is a "regular" IP camera. Do you maybe have access to a manual in a PDF form?
    I would also advise you to contact the ThruVision support team as my resources are very limited at this point (in the specification file they are writing about an SDK for TS4 but do not give any further details). The documentation on the product website is scarce and I have no access to this hardware.
    Using an IP camera is very easy in LabVIEW, and involves very little effort - if you see one camera, but don't see the second it might mean that the fault is on the cameras side.
    Best regards,
    Mateusz Stokłosa
    Applications Engineer
    National Instruments

  • I have airport extreme and just purchased a D-Link DCS-932L home network camera.  D-Link says I need UpNp but the extreme doesn't support this.  Can I use port mapping?  if so anyone know how to set that up?  thanks

    I have airport extreme and just purchased a D-Link DCS-932L home network camera.  D-Link says I need UpNp but the extreme doesn't support this.  Can I use port mapping?  if so anyone know how to set that up?  thanks

    Since the D-Link DCS-932L is accessible on the local network via a web browser, you should be able to access this camera from the Internet if your router has a publically accessible Public IP address. If your ISP provides you with a dynamic Public IP address, you may want to use a DDNS service to make it easier for you to locate your camera whenever your ISP changes your IP address.
    Start the AirPort Utility > Select the 802.11n AirPort Extreme Base Station (AEBSn).
    Select Manual Setup.
    Verify that Connection Sharing = Share a public IP address is selected on the Internet > Internet Connection tab.
    Select Advanced, and then, select the Port Mapping tab.
    Click the plus sign to add a new port mapping.
    For Service, leave the default; this will change to "Custom" once you start entering port values.
    In the Public UDP Port(s) and Public TCP Port(s) boxes, type in a 4-digit port number (e.g., 8888) that you choose. In the Private IP Address box, type the internal IP address of your camera. In the Private UDP Port(s) and Private TCP Port(s) boxes, enter the appropriate port values that should have been provided to you by the camera manufacturer. Click Continue.
    In the Description box, type a descriptive name like "Internet Camera Access," and then, click Done.
    Click on Update.
    To connect to the shared Camera from a remote location using a Mac or PC:
    Start your favorite web browser.
    Enter either your Public IP address or DDNS-provided Domain Name, followed by a colon and the Public port number that you choose in step 7 of the previous procedure. For example: http://123.123.123.123:8888 or http://www.mydtdnsdomainname.com:8888

  • I tried to use the iPhone hot spot feature for the first time to use my kindle outside. I followed the directions n I saw the network came up I used my password and I could not connect. What am I'm doing wrong. Please help

    I tried to use the iPhone hot spot feature for the first time to use my kindle outside. I followed the directions n I saw the network came up I used my password and I could not connect. What am I'm doing wrong. Please help

    I tried to use the iPhone hot spot feature for the first time to use my kindle outside. I followed the directions n I saw the network came up I used my password and I could not connect. What am I'm doing wrong. Please help

  • Is there anyone who can recommend a network Camera that works with OS X10.9

    I just upgraded to Mavericks and love the OS.  I just updated my printer to an HP that is compatible with Macericks and it works wonderfully!  Now I am looking to add a network camera that allows multi camera viewing and can be viewed on my Iphone or Ipad or Macbook, etc.  Anyone have any thoughts or suggestions on what to try.  All the major brands that have high ratings are compatible with 10.6 or 10.7, but I see no mention of 10.9 - any suggestions would be great!

    For what it's worth, I purchased the Axis 207W. Indeed it worked with Safari via Bonjour.
    The setup took a while to figure out, but wasn't any more difficult than setting up a wireless router.
    With things set properly I can view the camera from anywhere on the Internet and get e-mails sent when motion is detected by the camera.
    All this and it works well with my Apple set up (laptops and Airports).

  • Network Camera

    Hello all -
    Was wondering if I could get some advice.
    I would like to make a network camera, that is currently connected to my LAN, available to the www.
    I have a static IP address from my broadband supplier - and have set up a domain name with an external ISP that points to my static IP.
    I am running DNS on my OS X Server and have made an entry so that the same domain name points to the fixed (internal) IP of my network camera (which is 10.0.1.5)
    Portforwarding is set up on my airport express (which sits between my ADSL Modem (in bridge mode) and my server, to redirect all requests on port 80 / 8080 to my OS X Server (which is at 10.0.1.2)
    Of course - as I imagine you have realised - this doesn't work from outside of my LAN. Requests get forwarded to my server - but stop there - and don't get passed onto the network camera.
    I have tried embedding the image from the webcam in a webpage hosted on the server. Again, this works from inside the LAN, but from outside - the local address of the network camera does not get inside my LAN.
    I have tried a redirect - but get the same issue.
    I could setup a specific port - but want to keep the URL simple - without the user having to add a port number to the end.
    Am I best off asking my broadband supplier for a second static IP address ? Happy to do that but keen to see if there is a better way first.
    Any help much appreciated.
    Thanks,
    Andrew

    Thanks Camelot
    Really appreciate your help.
    I did try the 'wrapper' solution - and it didn't work from outside the LAN (fine from inside the LAN, or outside with a VPN). Seems as if the remote users browser / machine is still looking for a private IP address - obviously without success. This surprised me as I thought it would work. I used an HTML page from the camera manufacturers website. Pasted below : (my camera IP is 10.0.1.5)
    Don't think I'm brave enough to get under the hood of Apache - will check to see how much a 2nd Static IP address will cost.
    Thanks again,
    Andrew
    <html>
    <head>
    <title>Title</title>
    </head>
    <body>
    <center>
    <!-- Cut from here to the end of image display comment -->
    <!-- Note: If you do not see a JavaScript below in the view source window you must -->
    <!-- first save the html file from your browser, then open the saved -->
    <!-- file in a text editor, for instance Notepad.-->
    <SCRIPT LANGUAGE="JavaScript">// Set the BaseURL to the url of your camera
    // Example: var BaseURL = "http://172.21.1.122/";
    // Since this file is located inside the unit itself, no base url is specified here
    var BaseURL = "http://10.0.1.5/";
    // DisplayWidth & DisplayHeight specifies the displayed width & Height of the image.
    // You may change these numbers, the effect will be a stretch or a shrink of the image
    var DisplayWidth = "320";
    var DisplayHeight = "240";
    // This is the filepath to the image generating file inside the camera itself
    var File = "axis-cgi/mjpg/video.cgi?resolution=320x240";
    // No changes required below this point
    var output = "";
    if ((navigator.appName == "Microsoft Internet Explorer") &&
    (navigator.platform != "MacPPC") && (navigator.platform != "Mac68k"))
    // If Internet Explorer for Windows then use ActiveX
    output = '<OBJECT ID="Player" width='
    output += DisplayWidth;
    output += ' height=';
    output += DisplayHeight;
    output += ' CLASSID="CLSID:745395C8-D0E1-4227-8586-624CA9A10A8D" ';
    output += 'CODEBASE="';
    output += BaseURL;
    output += 'activex/AMC.cab#version=2,0,21,0">';
    output += '<PARAM NAME="MediaURL" VALUE="';
    output += BaseURL;
    output += File + '">';
    output += '<param name="MediaType" value="mjpeg-unicast">';
    output += '<param name="ShowStatusBar" value="0">';
    output += '<param name="ShowToolbar" value="0">';
    output += '<param name="AutoStart" value="1">';
    output += '<param name="StretchToFit" value="1">';
    output += '<BR><B>Axis Media Control</B><BR>';
    output += 'The AXIS Media Control, which enables you ';
    output += 'to view live image streams in Microsoft Internet';
    output += ' Explorer, could not be registered on your computer.';
    output += '<BR></OBJECT>';
    } else {
    // If not IE for Windows use the browser itself to display
    theDate = new Date();
    output = '<IMG SRC="';
    output += BaseURL;
    output += File;
    output += '&dummy=' + theDate.getTime().toString(10);
    output += '" HEIGHT="';
    output += DisplayHeight;
    output += '" WIDTH="';
    output += DisplayWidth;
    output += '" ALT="Camera Image">';
    document.write(output);
    document.Player.ToolbarConfiguration = "play,snapshot,fullscreen"
    // document.Player.UIMode = "MDConfig";
    // document.Player.MotionConfigURL = "/axis-cgi/operator/param.cgi?ImageSource=0"
    // document.Player.MotionDataURL = "/axis-cgi/motion/motiondata.cgi";
    </SCRIPT>
    <!-- End of image display part -->
    </body>
    </html>

  • How do I grab an image (Jpeg) of a Network camera?

    There was a question 3 years ago, which remained unanswered: How do I
    grab an image(JPEG) from the Web(http://) using the datasocket in
    LabView?(http://forums.ni.com/ni/board/message?boa​rd.id=200&message.id=847)
    I have the same problem. I would like to capture the image of an AXIS
    2006 wireless Network Cam with Labview, for further processing. A
    sample image with such a cam is available at:
    http://stareat.it.helsinki.fi/jpg/image.jpg

    If you just want a URL, you can use this example, which someone posted a while back.
    Try to take over the world!
    Attachments:
    Image from web.llb ‏78 KB

Maybe you are looking for

  • Rezound no longer connecting to PC

    Computer no longer recognizes Rezound I have had my Rezound since it first came out and up until Nov had no problem. Now when I try to connect to PC via USB, my computer does not see it. Have rebooted, pulled sim card, reloaded HTC sync to pc, reset

  • How to install custom XMP Get Info Panels in Adobe Bridge CC

    Adobe changed their way they store the custom XMP Get Info Panels in Adobe Bridge CC. Check out this blog to see how you can install the XMP Get Info Panels that you used in Adobe Bridge CS6 in Adobe Bridge CC: http://www.databasepublish.com/blog/ins

  • HT1677 My web pages are not refreshing properly - works on my pc with windows?

    When I change accounts in my bank, the same info appears for each account.  It worked properly until the iOS upgrade to 6. It works fine with my PC, running windows and using explorer. Any idea what is causing this problem?

  • Panels (windows) in gnome

    In KDE you can select an option for the number of screens available 1, 4 ,6, etc. is there a similar option in gnome and how do I find it.

  • Updating CC 14 wil be a new account

    I am already having CC . Can I install CC 14 in same payment plan or it will treated a new ?