Problem using image grabbing in loop

Hi,
We're currently building a machine vision application using 4 cameras at the same time and tried to implement some sort of passthru of all 4 by using a while loop with inside it a sequence to switch channels and grab the images. Somehow this only gives us completely weird images with several black lines through them. It looks like something to do with other system activity because when you move windows or use other programs it gets worse. However, that must be something I'm doing wrong, working on a P4 1.5GHz...
If someone could give me a hint or has any ideas, they would be very welcome.
Thanks

Are you reading the images from a buffer or directly from the device? It's possible you're doing software timed acquisition which is not reliable -- you are at the mercy of Windows and the software speed to properly acquire your images.
Without a small example it's difficult to determine the cause of the problem....
Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect

Similar Messages

  • Flex 4.5 problem using image in Mobile Application (Android)

    I have a problem using flex and mobile application...
    I have an image with path = "/mnt/sdcard/images/20120202172020990.jpg"
    Simply using
         <s:Image id="image" source="/mnt/sdcard/images/20120202172020990.jpg" />
    Get me an empty image on device, still using it on computer (desktop build / debug) it works fine...
    I have enabled every kind of permission in the app.xml
    Why I got this error?

    I actually solved the problem using:
    image.source = File.desktopDirectory.resolvePath(file_name).url;
    using instead this one it will work only under windows...
    image.source = File.desktopDirectory.resolvePath(file_name).nativePath;
    I don't know if it's a bug or whatelse, but I think that the source property of Image passing a filename that start with / (/ is root for unix based OS, android, linux, ios, etc), will take is as a relative path instead of complete path...

  • Problem using images in a button skin

    So, I have a weird problem. I need to be able to see a button in design mode. My button is a custom component (a ButtonBase) with a skin. So, I left is a tiny bit of the default skin so that you can see what it looked like in design mode. Now, the paths to the images that will be used for the various states of the button are binded to strings passed from another subcomponent. There was no other way to get what we needed done, so it stays messy. Anyway, I don't get things to display correctly. Here's the code, and after an image for what I'm getting:
    [CODE]
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
                             xmlns:s="library://ns.adobe.com/flex/spark"
                             xmlns:fb="http://ns.adobe.com/flashbuilder/2009"
                             xmlns:mx="library://ns.adobe.com/flex/mx"
                             minWidth="21" minHeight="21" alpha.disabled="0.5"
                             preinitialize="initImageVars()" creationComplete="init()">
        <!-- host component -->
        <fx:Metadata>
            <![CDATA[
            [HostComponent("customComponents.ToggleButtonCustom")]
            ]]>
        </fx:Metadata>
        <!-- states -->
        <s:states>
            <s:State name="up" />
            <s:State name="down" />
            <s:State name="selected" />
            <s:State name="disabled" />
            <s:State name="over" />
        </s:states>
        <fx:Script>
            <![CDATA[        
                import mx.controls.Alert;
                /* First thing's first: we need to initialize our global and accessable components. */
                [Bindable]
                public var upButtonPath:String = "";
                [Bindable]
                public var downButtonPath:String = "";
                [Bindable]
                public var activeButtonPath:String = "";
                [Bindable]
                public var disabledButtonPath:String = "";
                [Bindable]
                protected var label:String = "";
                private function initImageVars():void
                    upButtonPath = "assets/" + this.hostComponent.upButtonPath;
                    downButtonPath = "assets/" + this.hostComponent.downButtonPath;
                    activeButtonPath = "assets/" + this.hostComponent.activeButtonPath;
                    disabledButtonPath = "assets/" + this.hostComponent.disabledButtonPath;
                private function init():void
                    /* Give values to public variables */
                    //upButtonPath = "Up.png";
                    //downButtonPath = "Down.png";
                    //activeButtonPath = "Active.png";
                    label = this.hostComponent.label;
                /* Define the skin elements that should not be colorized. For button, the graphics are colorized but the label is not. */
                static private const exclusions:Array = ["labelDisplay"];
                override public function get colorizeExclusions():Array {return exclusions;}
                override protected function initializationComplete():void
                    useChromeColor = true;
                    super.initializationComplete();
                private var cornerRadius:Number = 2;
            ]]>       
        </fx:Script>
        <!-- layer 1: fill -->
        <s:Rect id="fill" left="1" right="1" top="1" bottom="1" radiusX="2">
            <s:fill>
                <s:LinearGradient rotation="90">
                    <s:GradientEntry color="0xFFFFFF"
                                                     color.down="0xAAAAAA"
                                                     color.selected="0xBBBDBD"
                                                     alpha="0.85" />
                    <s:GradientEntry color="0xD8D8D8"
                                                     color.down="0x929496"
                                                     color.selected="0x9FA0A1"
                                                     alpha="0.85" />
                </s:LinearGradient>
            </s:fill>
        </s:Rect>
        <mx:ViewStack id="buttonImage" x="0" y="0"
                                    selectedIndex="0" selectedIndex.down="1" selectedIndex.selected="2"    selectedIndex.disabled="3">
            <s:NavigatorContent id="upState">
                <mx:Image source="{upButtonPath}" width="500" height="500" />
            </s:NavigatorContent>
            <s:NavigatorContent id="downState">
                <mx:Image source="{downButtonPath}" />
            </s:NavigatorContent>
            <s:NavigatorContent id="activeSate">
                <mx:Image source="{activeButtonPath}" />
            </s:NavigatorContent>
            <s:NavigatorContent id="disabledState">
                <mx:Image source="{disabledButtonPath}" />
            </s:NavigatorContent>
        </mx:ViewStack>
        <s:Label id="labelDisplay" text="{label}"
                         textAlign="center"
                         verticalAlign="middle"
                         maxDisplayedLines="3"
                         horizontalCenter="0" verticalCenter="1"
                         left="10" right="10" top="2" bottom="2">
        </s:Label>
    </s:SparkSkin>
    [/CODE]
    That gives me this image:
    And if I use the following code to resize it, I get this:
    [CODE]
    /* From the component, called from init(), which is called on creationComplete */
    private function resizeEverything():void
      var dummyImage:Image = new Image();
      var pathToDummy:String = "assets" + upButtonPath;
      dummyImage.source = pathToDummy;
      thisBtn.height = dummyImage.height;
      thisBtn.width = dummyImage.width;
      dummyImage = null;
    [/CODE]
    If you have any idea what to do with this, let me know. I set the buttons to the exact height and width of the images I'm using when I first call them. I don't know how else to manage this. I want the faded white to be an exact mirror of the image, so that designers (not me) can move them around on design mode. Thank you!

    Figured it out. The images I was given had large amounts of padding, and when I tried to auto-resize the buttons, Flash could never grab the image and therefore couldn't size off it, so the size of the component was forced to 0,0. It's all good now.

  • Problem using Image Processor from Bridge

    I have been using the Image Processor to process photos from Bridge for quite some time. However, I recently received an error message when I try to initiate Image Processor from Bridge and I have not been able to find any help topics that address my problem: I select images in Bridge to process, then click "Tools>Photoshop>Image Processor". Photoshop opens and the familiar Image Processor dialog box opens. Item 1 in the dialog box says "Process files from Bridge only" and has the number of files I have selected in parenteses. I select the file type and other settings in #3, and preferences in #4. When I click "Run", I get an error message window that says: "Script Alert. There were no source files that could be opened by Photoshop". The Image Processor works if I open the files in Photoshop first, then run it by selecting "File>Scripts>Image Processor" and tell it to process all open files.
    Would someone be able to help me with this problem?
    Thanks, Larry

    Usually when it worked before and not now, and you have added no new software or hardware I recommend resetting the preferences.  Hold down the Ctrl key and click on the Bridge icon to start.  You should get a reset window with 3 options.

  • Problem using image via URL

    Hi everybody
    I have a problem with loading images via URL into my PDFs.
    I am using LCD ES2 Version 9.0.1....
    I want to create a PDF which loads images from the internet but it does not work.
    So far I have tried to add an image or image field to my PDF in the LCD and populate that image using the Object-->Field-->URL: palett. I put the URL in there like this http://www.adobe.com/imageshome/pdfgift_home.gif , tick the "embed image Data" checkbox (also tried with without that just to be sure) and save as Dynamic PDF (I also tried static) but when I open the PDF in adobe reader 9 or 10 or acrobat  9 there is no image showing. I also put the image in a subform and made that subform flowed, as well as the page itself and made the binding global.
    I have the form properties - default set to "Acrobat and Adobe Reader version 9.0 or higher", Default Language to JavaScript, PDF Render format to Dynamic PDF.
    I also tried using JavaScript events like "form:ready ImageField2.value.#image.href = "http://www.adobe.com/imageshome/pdfgift_home.gif" as discribed here http://partners.adobe.com/public/developer/en/tips/lc_dynamic_images.pdf but that also does not work.
    What am I missing?
    Any help would be great and greatly appreciated!!!
    Thanks and best regards
    Norbert

    As far as I can tell, this use case is not allowed because of cross site references related security concerns. The form can refer to the images stored on the same server from where the PDF is served, but the images cannot come from external servers.

  • Please Help!-Problem using Image[ ] array

    Hi everyone,
    I have this real confusing bug in my code which i am not able to fix.
    Image[] tmpImg = new Image[Img.size()];   /initializing an image array tmpImg
                for(int i=0; i<Img.size(); i++) {          //i require this display the image a number of times
                try{
                       icon = Image.createImage("/Icon.png");
                       im = new ImageItem("Image", icon,ImageItem.LAYOUT_CENTER,"image"); //using a imageItem to display the image in a form
                       form.append(im);
                       icon2 = Image.createImage("/Icon2.png");
                           im2 = new ImageItem("Image2",icon2,ImageItem.LAYOUT_CENTER,"image"); //using another imageItem to display the second image
                      form.append(im2);
                       if (imageValue.elementAt(i) == "availableImage") {
                           tmpImg[i] = icon;  //assigning the value to the image array based on a condition from a String Vector
                      if (imageValue.elementAt(i) == "offlineImage") {
         tmpImg[i] = icon2;   //assigning the value to the image array based on a condition from a String Vector
                      } catch(IOException err) {}
           System.out.println(tmpImg[0]);
           System.out.println(tmpImg[1]);
           System.out.println(tmpImg[2]);
           System.out.println(tmpImg[3]);
           return tmpImg;
       }My problem is that when i try to print tmpImg[0], tmpImg[1] etc all the values are printed null. But the Image is created and being displayed on a ImageItem. but i am not able to assign the image to the image array 'tmpImg' which is within an if condition.
    Can anyone tell me why is this so. I would be grateful
    Thank You

    Thank u deepspace
    I got a lil' frustrated, so completely did not think that way. The code is working now
    Thanx again

  • Mapviewer performance problem using image format FORMAT_RAW_COMPRESSED

    I am using the MapViewer.FORMAT_RAW_COMPRESSED map image in my (java) map application because some features must be clickable and as far as I can work out, this is the only way to achieve this in a Java client. On my local system, running the map server in an oc4j container, this works about as fast as using FORMAT_GIF_URL and loading the image from this url. There also doesn't seem to be much difference in memory and cpu usage.
    When I direct the request to a map server running on a remote Application Server the rendering time grows exponentially. The same maprequest using FORMAT_GIF_URL runs as fast as it does in my local OC4J container. The problem seems to be in "packing time" in RealWorker:
    Remote AS:
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 99ms
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 5560ms
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 142605ms
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 148264ms
    Local OC4J:
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 540ms
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 2490ms
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 120ms
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 3150
    The test server is smaller than my local system and more applications are running on the AS, generating the map takes all the available memory and cpu, but the difference between the time it takes generating a GIF image and generating a Java image of almost a factor 50 is puzzling.
    What could cause this enormous difference? Any idea's about how we can analyze or solve this? What could RealWorker be doing in this packing time? Any hints would be greatly appreciated.
    Many thanks,
    Ida

    Thanks for the replies!
    1. Which AS version are you using? -> 10.1.2
    2. Just as a test, if you restart AS (if possible) do you still get the same values? -> yes, we restarted the AS and the results are the same.
    The server is indeed running low in memory. It is a 512MB machine, just big enough to run the AS. The production server will have some more, but not very much. Could I estimate how much extra memory it will need to keep a good performance when generating maps with live features? And maybe I'm wrong, but shouldn't the extra load for the java image only be on the client, since that's where the image is made? On the server it's just the image data, isn't it?
    I tried removing the basemap, but that reduces the loading time just with a few seconds. The live themes are jdbc themes and result in only some 20 to 30 geofeatures. Removing them from the request so only an empty image with a title is retrieved still takes about 117 seconds. Reducing the device size does reduce the loading time, so it does seem to have something to do with the amount of pixels in the image space, not with the data. Could it be that in the "packing" of the image something happens that takes a lot of memory, related to the amount of pixels?
    In my situation it would be handy if the live features were also returned when the image format is not set to FORMAT_RAW_COMPRESSED, it is also possible to draw shapes onto an existing image and this would bypass the memory problems.
    Thanks for any further help.
    Ida

  • Problem using a GUI, a loop and a different thread for the loop

    Hi everyone!
    First of all sorry if my post is in the wrong forum.
    I'm designing a client-server project to allow users to comunicate with each other, and I have a problem in the client class. I'm using the UDP transport protocol, and I'm not allowed to use TCP. The thing is, each client is allowed to send and receive a message at any time, so by pushing a button the "sending event" triggers and sends it, and in order to receive i've launched a receiving process in another different thread, so the sending procces wouldn't be blocked.
    This is the code of the client class, called Conversacion:
    package mymessenger;
    import javax.swing.*;
    import java.net.*;
    import java.io.*;
    import java.lang.*;
    import java.awt.*;
    import java.util.*;
    public class Conversacion extends javax.swing.JFrame {
        private InetAddress MaquinaServidor;
        private int PuertoServidor;
        private DatagramSocket MiSocket;
        private DatagramPacket PaqueteSalida;
        byte [] BufferEntrada= new byte[1024];
        private DatagramPacket PaqueteEntrada= new DatagramPacket (BufferEntrada,BufferEntrada.length);
        byte [] BufferSalida;
        int ack=0;
        int puerto_contrario;
        String direccion="192.168.1.102";
        String direccion_contraria;
        String destinatario_completo="";
        String nombre_destinatario="";
        String nombre_local="";
        String mensaje_recibido=""; // This is the variable I want to use every time a client receives a message
        boolean salir=false;
        public Conversacion()
            initComponents();
            esperar();
    @SuppressWarnings("unchecked")
    // Here would come the generated code by Netbeans, which is not relevant in this case
    private void enviarActionPerformed(java.awt.event.ActionEvent evt) {                                     
       // This is the sending event that calls a function to send the message to the server, i'll post it in another message
        void enviar (String mens) 
            // Function used to send the message to the server, i'll post it in another message
        void esperar() // Here's the problem (I think)
            new Thread(new Runnable() // I launch it in a new thread, so I don't block "enviar"
                public void run() // At first, the client sends some message to the server, so the server knows some data of the client. Go to the while() command please
                    String respuesta="";
                    try
                        MiSocket= new DatagramSocket();
                        MaquinaServidor= InetAddress.getByName(direccion);
                        PuertoServidor=7777;
                        String comando="ENVIAME LOS DATOS AQUI, A LA CONVERSACION";
                        byte[] na={(byte)(ack%2)};
                        comando= (new String (na))+comando;
                        BufferSalida = comando.getBytes();
                        PaqueteSalida = new DatagramPacket(BufferSalida,BufferSalida.length,MaquinaServidor,PuertoServidor);
                        segsend(PaqueteSalida);
                        ack++;
                        System.out.println("Estoy esperando un mensaje del servidor");
                        segreceive(PaqueteEntrada);
                        String retorno = new String(BufferEntrada, 1,PaqueteEntrada.getLength()-1);
                        int pos= retorno.indexOf("(");
                        int pos2=retorno.indexOf("]");
                        int pos3=retorno.indexOf("Ð");
                        nombre_destinatario=retorno.substring(0,pos-1);
                        destinatario_completo=retorno.substring(0,pos2+1);
                        direccion_contraria=retorno.substring(pos2+1,pos3);
                        nombre_local=retorno.substring(pos3+1);
                        setTitle(destinatario_completo+" - CONVERSACIÓN");
                        segreceive(PaqueteEntrada);
                        respuesta = new String(BufferEntrada, 1,PaqueteEntrada.getLength()-1);
                        puerto_contrario = Integer.parseInt(respuesta);
                        while (!salir) // Here begins the infinite loop I use to receive messages over and over again
                            segreceive(PaqueteEntrada); // I use segreceive that is kind of the same as "receive". No big deal about this
                            mensaje_recibido = new String(BufferEntrada, 1,PaqueteEntrada.getLength()-1); // Every time a client receives a message, I want to store it in the variable "mensaje_recibido"
                            int pos4 = mensaje_recibido.indexOf(":");                     // This next 4 commands are not relevant
                            String auxiliar=mensaje_recibido.substring(pos4+2);
                            if (auxiliar.equals("FINALIZAR CONVERSACION"))
                                setVisible(false);
                            SwingUtilities.invokeLater(new Runnable() // Now I want to asign the value of mensaje_recibido (the message I just received) into texto_total, a Swing text area
                                public void run()
                                    String auxi=texto_total.getText();
                                    if (auxi.equals(""))
                                        texto_total.setText(mensaje_recibido); // if the text area was empty, then then i put into it the message
                                    else
                                        texto_total.setText(auxi+"\n"+mensaje_recibido); // if it's not, then i put the message in the next line of the text area
                            Thread.sleep(1000);
                    catch (Exception e3)
                        System.out.println(e3);
            }).start();
        }The communication starts and one user is able to send all the messages he wants to the other one, but when the other wants to send one to the first user, the first user receives a message with the same character over and over again that looks like an square &#9632;. Again, this problem comes when a user that already sended a message, and wants to receive one for the first time (and next times). I searched in these forums all day and so far I couldn't fix it.
    This problem happens in the receiver client, not in the sender client and not in the server. I already looked into that and those things are doing what they have to. I would be really really grateful if somebody could tell me which is the problem or how to fix this, because I'm becoming nuts.
    Now I'm going to post the function "enviar" which sends the message, and the content of "enviarActionPerformed" which calls "enviar".
    Again, excuse me if this is the wrong forum for this question. and sorry for my English too.

    This is the rest of the code, though I don't think the problem is here, maybe by pushing the sending button it causes the receiving problem:
    private void enviarActionPerformed(java.awt.event.ActionEvent evt) {                                      
            String mensaje=texto.getText();
            mensaje=nombre_local+" dice: "+mensaje;
            texto.setText("");
            String auxiliar=texto_total.getText();
            if (auxiliar.equals(""))
                texto_total.setText(mensaje);
            else
                texto_total.setText(auxiliar+"\n"+mensaje);
            enviar(mensaje);
        void enviar (String mens)
            String respuesta="";
            try
                MiSocket= new DatagramSocket();
                MaquinaServidor= InetAddress.getByName(direccion);
                PuertoServidor=7777;
                BufferedReader Teclado= new BufferedReader(new InputStreamReader(System.in));
                BufferEntrada = new byte[1024];
                PaqueteEntrada = new DatagramPacket (BufferEntrada,BufferEntrada.length);
                BufferSalida=new byte[1024];
                String comando="RETRANSMITIR MENSAJE";
                byte[] na={(byte)(ack%2)};
                comando= (new String (na))+comando;
                BufferSalida = comando.getBytes();
                PaqueteSalida = new DatagramPacket(BufferSalida,BufferSalida.length,MaquinaServidor,PuertoServidor);
                segsend(PaqueteSalida);
                ack++;
                String puerto= Integer.toString(puerto_contrario);
                int pos = mens.indexOf(":");
                String auxiliar=mens.substring(pos+2);
                comando=mens+"-"+direccion_contraria+"*"+puerto;
                byte[] nb={(byte)(ack%2)};
                comando= (new String (nb))+comando;
                BufferSalida = comando.getBytes();
                PaqueteSalida = new DatagramPacket(BufferSalida,BufferSalida.length,MaquinaServidor,PuertoServidor);
                segsend(PaqueteSalida);
                ack++;
                if (auxiliar.equals("FINALIZAR CONVERSACION"))
                    setVisible(false);
            catch(Exception e)
                System.out.println(e);
        }I'm gonna keep working on it, if I manage to fix this I'll let you know. Thanks a lot!

  • Problem using images of CMYK colorspace in PDF file

    I am reading a PDF file that contains an image with CMYK colorspace, I am reading the image data correctly but couldn't convert it to RGB color space, as I need to display this image in my own application so please tell me how can I convert it to RGB color space or how can I display it by remaining in the CMYK colors pace. Any help will be highly appreciated.
    Regards,
    Ali

    Adobe Reader will convert for display, there should be no problem if you use Adobe Reader. Adobe Reader will use the CMYK profile from the PDF, or your default profile, and will convert to your default RGB profile for display.

  • Problems Using Image Processor to Resize Images

              Hello,
    I'm perplexed on this one.
    In the past, I've used scripts in Photoshop to downsize my large Camera RAW images to an appropriate 1920 x 1080 size for subsequent export to Premiere Pro.
    Worked like a charm numerous times.
    Now, when I try to do the exact same thing and check the destination folder AFTER running the Image Processor routine but BEFORE bringing them into Premiere Pro, they are all 1620 x 1080 instead of 1920 x 1080.
    This doesn't work.
    I keep checking around for a little typo in the various stages but cannot find one.  Any thoughts?
    I recently had to reinstall Photoshop and changed one of the settings in Preferences to 32 bit instead of 16 bit.  I don't think that has anything to do with this, but I wanted to mention it just in case.
    Here is a screen shot:
    Thanks!
    Matt Dubuque
    (PS: I know that's a screen shot from a Mac, but I believe this issue is platform independent)

    Thanks so much for your help gentlemen!
    Sorry for the delay in responding.  The deadline for submitting my film is fast approaching and I've had so many different things to do, all of them important.
    Surely these are useful pointers you are giving me.  Cropping has been unsuccessful, as has been using the Image Processor.  Russell Brown was scratching his head about the failure of the Image Processor to work on this and has told me he will work on it after Photoshop World finishes.
    Incidentally, thanks for the video of his on Content Aware Scaling! 
    I was unaware of the Alpha Channel aspect which REALLY makes it an amazing feature.  Alpha Channels are slightly beyond my skill level, but not terrifying.  For some reason paths and alpha channels have been a little harder for me to learn in Photoshop; I've picked up many other things rather quickly.
    JM, I've tried floating a layer by duplicating it.  I called that layer "THIS IS BETTER" (below).  Then I tried to adjust the image canvas size as shown by the screen shot below.  Is this what you were describing?  I tried to change that canvas size to 1020 x 1080.
    I then got a warning message about my image being clipped:
    And that apparently resulted in this "clipped" image below:
    Any thoughts on that particular avenue of inquiry?
    Thanks for your help.
    Matt

  • Problem using image-map in JSP

    hello experts,
    i have a stupid issue which i am not able to sort out. i have a JSP page with a function which returns a bufferedImage. i am using
    <img src="<%=ImageIO.write(displayChart(),"png",response.getOutputStream())%>" usemap="#barmap">to display the image and is working fine and image is getting displayed. but the map is not getting activated .
    please help me out

    Double posted.

  • Problems Using Cue points to Loop Video

    Ok, so I want to use cue points to navigate through video.  I want to start by simply looping the video from the end back to the beginning.  I keep getting an invalid seek error 1003.  Here is my code.  Any help would be much appreciated.  Thanks
    import fl.video.MetadataEvent;
    Movie.addEventListener(MetadataEvent.CUE_POINT, loopFunction);
    function loopFunction(e:MetadataEvent):void
        if (e.info.name == "end1")
            Movie.seekToNavCuePoint("beginning1");
            Movie.play();

    At least you are getting notified even if the seek doesn't work.
    A brief workaround could be to iterate over the cue points you detect in metadata, assigning each cue point name and time in an object. Once you hit the cue point you desire, see if the object has the time value and seek() to the time for that cue point rather than seeking for it by name.
    e.g. (written briefly, you get the idea):
    // object to hold time values
    var cuePointArr:Object = new Object();
    function onMetaData(infoObject:Object):void
        var cueIndex:String;
        for (cueIndex in infoObject.cuePoints)
            trace("Adding cue name[" + infoObject.cuePoints[cueIndex].name + "] at time[" + infoObject.cuePoints[cueIndex].time + "]");
                        // store as name = time
                        cuePointArr[infoObject.cuePoints[cueIndex].name] = infoObject.cuePoints[cueIndex].time;
    function loopFunction(e:MetadataEvent):void
              // correct cue point and has a value in cuePointArr?
        if ((e.info.name == "end1")&&(curPointArr[e.info.name] != null))
                        // seek to time value
            Movie.seek(Number(cuePointArr[e.info.name]));
            Movie.play();
    Moving 900mph here so forgive any typos but turning it into a normal seek based on the time value should work for now.

  • Problem using image.setSource ?

    Hi,
    Can anyone see what I'm doing wrong here ?
    I'm sure it's something obvious but I can't see it.
    1) I have made a directory /images/ with full rw access
    ================================
    ls -la /images/total 52
    drwxrwxrwx 2 root root 1024 Jun 19 14:58 .
    drwxr-xr-x 24 root root 1024 Jun 19 16:37 ..
    -rwxrwxrwx 1 ora816 dba 50000 Jun 19 14:58 test.gif
    2) Create a directory from sql as system
    ===============================
    SQL> create directory IMGDIR as '/images';
    Directory created.
    3) Try to load the "test.gif" file but get a non-existent file or directory failure
    ==================================
    DECLARE
    -- applicaition variables
    Image ORDSYS.ORDImage;
    ctx RAW(4000) :=NULL;
    BEGIN
    DELETE FROM emp WHERE ename = 'John Doe';
    INSERT INTO emp VALUES
    ('John Doe'
    , 24000
    , 'Technical Writer'
    , 123
    , ORDSYS.ORDImage(ORDSYS.ORDSource(empty_blob(), NULL,NULL,NULL,SYSDATE,1),
    NULL,NULL,NULL,NULL,NULL,NULL,NULL)
    , ORDSYS.ORDImage(ORDSYS.ORDSource(empty_blob(), NULL,NULL,NULL,SYSDATE,1),
    NULL,NULL,NULL,NULL,NULL,NULL,NULL));
    -- select the newly inserted row for update
    SELECT photo INTO Image FROM emp
    WHERE ename = 'John Doe' for UPDATE;
    -- This example imports the image file test.gif from the IMGDIR
    -- directory on a local file system.
    Image.setSource('FILE','IMGDIR','test.gif');
    Image.import(ctx);
    --END;
    -- set property attributes for the image data
    Image.setProperties;
    UPDATE emp SET photo = Image WHERE ename = 'John Doe';
    COMMIT;
    -- continue processing
    END;
    SQL> /
    DECLARE
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "ORDSYS.ORDSOURCE", line 183
    ORA-22285: non-existent directory or file for FILEOPEN operation
    ORA-06512: at "ORDSYS.ORDIMG_PKG", line 484
    ORA-06512: at "ORDSYS.ORDIMAGE", line 175
    ORA-06512: at line 26
    null

    This error occured because the user who ran the PL/SQL script did not have the privilege to read the IMGDIR directory.
    You can give the privilege to the user as SYSTEM:
    SQL> grant read on directory IMGDIR to user;
    Then the user should be able to find the IMGDIR directory and run the PL/SQL script without the error.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by niallmcp ():
    Can anyone see what I'm doing wrong here ?
    I'm sure it's something obvious but I can't see it.
    2) Create a directory from sql as system
    ===============================
    SQL> create directory IMGDIR as '/images';
    Directory created.
    SQL> /
    DECLARE
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "ORDSYS.ORDSOURCE", line 183
    ORA-22285: non-existent directory or file for FILEOPEN operation
    ORA-06512: at "ORDSYS.ORDIMG_PKG", line 484
    ORA-06512: at "ORDSYS.ORDIMAGE", line 175
    ORA-06512: at line 26
    <HR></BLOCKQUOTE>
    null

  • Finder not showing camera, Image Grab sees it

    Hey,
    I have a Canon EOS 400D, but when I plug it in via USB it fails to show up in Finder.
    I can grab the images from the camera using Image Grab, so OS X definitely sees it -- just for some reason, it's not showing up on the Desktop or in the Finder sidebar, as other cameras (or flash disks, iPods, etc) do.
    Any thing I can do to make it show up?
    Thanks!
    --Public.

    I don't know about that model specifically, but for a camera to appear in the "Finder", it must be able to function as a "mass storage" device. I get the impression that many Canon cameras do not support this mode...

  • Get newest image when using IMAQdx grab

    Hi everone!
    I have a problem. I use IMAQdx grab.vi to capture image from camera usb. it has 30 fps. I want to get newest image, which camera acquired. but I realize that IMAQdx grab.vi copys sequent image out of buffer. I simulate a moving rectangle. then I use camera to positive object. I alway receive position of object from camera delay 3 frame.I expect it to delay 1 frame. I attached my program. I want to configure camera to grab the newest image.
    Thank in advance!
    Attachments:
    MAIN.vi ‏204 KB

    The cleanest way to accomplish what you are trying to do uses the low-level functions. The Get Image VI will automatically pull the next buffer available, but can also be configured to pull the most recently acquired buffer or any buffer of your choosing. You can see the function's context help for more details.
    Also, if you are unfamiliar with using the low-level functions there is a very good example in the example finder called "Low-Level Grab" in the IMAQdx section.
    Christopher S. | Applications Engineer
    Certified LabVIEW Developer
    "If in doubt... flat out." - Colin McRae

Maybe you are looking for

  • Brand new iPhone 4 - Nearly NO signal

    Hello. I got a BRAND new iPhone 4 yesterday. Had **** much trouble activating it. Could not understand why, but i see now it's because of signal. I got 1 bar in signal here. My 3GS lies beside it with full signal. Also my backup Sony Ericsson C702 go

  • Using Image Capture with HP Officejet Pro 8500 A909g

    The printer/scanner shows up twice under the device list in Image Capture.  Select either and I get an error message, "Scanner Session Fails to Open".  The Officejet Pro works ok as a printer.  It is connected to my Mac Desk Pro and to a MacBook Pro,

  • Extra harecteristics in supplier catalog in CCM .

    hello dear people... we are using CCM 2.0 with SRM 5.0 in the same server. we have a requirement of using few extra charecteristics in CCM catalog. Can we upload the custom charecterictics (which is not provided by OCI i.e. not a part of "/ccm" ) usi

  • Can't drag table to different position on page

    I want to create a small table and have it appear on the same line as text I've typed. But the table automatically goes down to the next line. When I attempt to drag it upwards or to any other location, it snaps back to the same place. A movie of me

  • DataBase Migration from SQL server 2005 to SQL server 2012

    What are the challenges and steps to be taken care for proper migration of the Database. Applications are using the Visual Studio 2012. saikalyan