Créer plusieurs ROI sur vision assistant

Bonjour,
Je suis étudiant et je travail actuellement sur un projet ayant pour but de repérer des défauts sur une dalle carré.
pour le moment j'utilise le vision assistant qui me permet de définir une aire recouvrant la quasi totatilé de la dalle. Mon objectif serait de remplacer cette aire par un maillage de 64 points, ou par plusieurs lignes verticales et horizontales aux coordonnées choisies.
Existe-t-il un moyen de le faire automatiquement avec le vision assistant (en lui envoyer un tableau de coordonnées par exemple) ?
Merci

Hey, Selon ma compréhension, vous souhaitez séparer l'image en enitre à 16x16 groupe de tableau 2d et trouver max et min du tableau à droite? type de la moyenne mobile fenêtre?
si c'est votre souci j'ai un programme vous donnera.
Sasi.
Certified LabVIEW Associate Developer
If you can DREAM it, You can DO it - Walt Disney

Similar Messages

  • Maximum number of Select Images/Vision Assistants

    Hardware:         CVS 1454
    Two cameras:   AVT Guppy F036C
    MAX Settings   
            680x480 Y (Mono 8) 15fps
            Speed: 400MBs
            Packet Size: 680bytes 
            Gamma Off
            Bayer Pattern: BGBG_GRGR
    Connection:      Using two firewire cables directly to the CVS
    Software:          Vision Builder 2010 and Vision Builder 2009
           I recently started to create a Inspection in VB2010. When I press "Run Inspection Once" button, it would lose connection with the CVS.  I watched the free memory in MAX and it went from 32MBs to 3MBs before it would lose connection. I simplified my Inspection to use fewer states, eliminated most of the variables in an attempt to use less memory. I put the camera settings as low as possible in MAX. Eventually I got it to stop losing connection to the CVS.
           Now that I could go through the states after it went through one iteration I saw that one or both of the Acquire Images would fail. Especially if I went into Inspection Interface and back to Configuration Interface. I figured it was a memory limitation since the CVS 1454 only has 128MBs, 96 of which is occupied by VB2010. I got another CVS, formatted it, and installed VB2009 since it had 44MBs of free memory.
           In VB2009 I put all of the test steps into one long state. The program has:
                  two acquire steps in one state
                  two states for creating ROIs(one state for each image) for a total of 2 Select Images
                  a test state which has two Select Image steps, one vision assistant, along with other test steps
           If I add one more select image or one more vision assistant those steps will simply fail to do anything. The inspection manages to finish running but anything involving that final Select Image/Vision Assistant will not work.
    Has anyone else experience a limitation to the number of select images or vision assistant steps they can use? I have a working inspection now but I need to be aware of the limitations as I try to make more robust Inspections.
    Is it a problem with the amount of user space in the CVS 1454 or is there just a limited number of pointers in the VB code that limits the number of references that can be made?

    My bet is you're just too close to the memory limit on that device. A quick test would be to just acquire images from your camera(s) without any Vision Assistant/processing steps and make sure this works for long periods of time without problems. Use the same cameras, and triggering settings to make it as close The Vision Assistant steps make a copy of the image (as well as Threshold). You can use the Select Image step to see which steps create a copy of the image. If you are really dead set on the CVS, you could try replacing the steps that make a copy of the image with a Run LabVIEW VI that does the same same functionality and minimize the copies you do in the Run LV code. This should save you your image size x the number of processing steps you can replace with Run LabVIEW. You're kind of at the edge of what the HW can do, so I wouldn't normally recommend this, but if you're desperate and don't want to upgrade HW, you could try using Run LV to help do several of the steps in VBAI that are making copies of the image.
    Hope this helps,
    Brad

  • Images in Vision Assistant are distorted from a FLIR thermo camera

    I'm trying to view my FLIR A315 in Vision Assistant and MAX (not at the same time), but the images keep coming up distorted.  I can tell there is data being sent, because the histogram shows info and if I mess around with the Attributes I can clear the image up some but it never get as clear as FLIR software.  I'm sure I'm missing something simple but this post seemed a good place to start.  Thanks
    Attachments:
    Image in Vision Assistant.png ‏81 KB

    Hi Recordpro,
    It could be your pixel format settings. Open Measurement and Automation Explorer and select you camera. Then click the Acquisition Attributes tab at the bottom and change your pixel format. If that does not work here are some good documents on GigE cameras.
    Acquiring from GigE Vision Cameras with Vision Acquisition Software - Part I
    http://www.ni.com/white-paper/5651/en
    Acquiring from GigE Vision Cameras with Vision Acquisition Software - Part II
    http://www.ni.com/white-paper/5750/en
    Troubleshooting GigE Vision Cameras
    http://www.ni.com/white-paper/5846/en
    Tim O
    Applications Engineer
    National Instruments

  • Modifying VI - Vision Assistant

    I have images that consist of an area of particles and an aera of no particles. I am trying to fit a circle to the edge, between the regions where there are and are not particles. I want to use the find edge tool, and I want to find the pixel where this transistion takes place for every row of pixels. For example, I want to draw a horizontal line that will give me the location of the edge then move down one row and repeat. I have tried using the find circle edge, but since I am trying to fit a circel to an edge that isn't well defined, I need a lot more data points to average over. I figure there is a way to modify the VI to perform the process I described above. Any help would be much appreciated. I have attached the images to give you a better idea of what I'm trying to do.
    Attachments:
    half circle.JPG ‏554 KB

    Hi Windom,
    If the find circle edge is not working for you, I would suggest thresholding the image. Then you could use the morphology functions (such as Close, Fill Holes, and Erode) to further manipulate the image to get a stronger edge between the areas of particles and not particles.
    You can use a For Loop (initialized to start looking at the top of picture) and have it iterate vertically down the picture with the Edge Detector. You can do that by changing the ROI Descriptor for the line you are detecting edges with, and then you can read the Edge Information out of the VI. These all need to be checked in the "Select Controls" menu, which is found at the bottom right of the Vision Assistant window.
    I hope this helps, let me know if you need any further clarification.
    Best Regards,
    Nathan B
    Applications Engineer
    National Instruments
    Attachments:
    SelectROI.JPG ‏12 KB
    Edge Info.JPG ‏10 KB
    SelectControls.JPG ‏14 KB

  • Vision Assistant 2014 (and DLL inside of LV) repeatedly crashes while reading multiline OCR

    I am working on an OCR application. With certain files (not all) the multiline function just crashes. No questions asked.  I set the ROI area to the targeted text and without fail it causes a crash.
    Is anyone aware of this problem, and if so is there a solution?
    Additional information:  My .abc file is from scratch with default settings and trained characters. Nothing in it should be causing the crash.  Images are simple scanned jpg files.
    Edit: I tested it. Crash still happens without any character set loaded, and no changes to threshold, size, or read options.

    I cut out an offending section of one of the files. It is attached.  To replicate the error:
    1. Load image
    2. Identification -> OCR/OCV
    3. New Character Set File...
    4. Select entire text.
    NI Vision Assistant 2014, 64 bit. 
    Edit: Posted this before I saw your request   On the "Full sized" image, it crashes always - even when it is called from inside of LabVIEW (the DLL crashes then).  It is how I noticed the bug - my program kept crashing.  Tor this image, it seems to only crash for me inside of the training assistant, but is again reliable.
    Attachments:
    crash.png ‏731 KB

  • Vision assistant in a while loop

    Hello gentlemans, i'm quite new to LabView and Vision assistant. My goal is to detect a car plate from a color image. I succesfully find the ROI by using the two blue rectangles at the edge of italian's car plates, and it works. But then I have to OCR the actual plate, I can do it with success but some pictures require a certain Threshold, others another... So I though, i can run the Vision assistant into a while loop to try different thresholds, when I got a 'valid' plate (7 digits) I simply quit the loop. The parameters are defined by clusters, but it looks like is using always the FIRST value, regardless of the changing threshold. index goes from 0 to 20, and my intention is to have the threshold ranging from 0..100, 0..105, 0..110 and so on. Can you spot something wrong in the attached VI image?? Thanks a lot for any help! Mauro Cucco
    Attachments:
    vi_ocr.png ‏31 KB

    Hi Octopus
    I belive that this problem originates in that the Vision Assistant handles the images references.
    In normal LabVIEW programming every time you have a wire branch or a SubVI new copies of the data is created. For images this is not the case because an image often consume a lot of space in the memory. So for an Image LabVIEW edits the image in the  memory instead of creating a copy.
    In this case your algorithm works the first time, but then the second time it will try to do the OCR on the last result of the OCR rather than the original image.
    To avoid this you need to use the function IMAQ copy, to create a copy of the original image before sending it to the OCR function. See below:
    Best Regards
    Anders Rohde
    Applications Engineer
    National Instruments Denmark

  • Intégrer le code généré par NI vision assistant à mon programme codé sous LabWindows CVI

    Bonjour à toutes et à tous,
    Dans la cadre d'un projet je doit faire de la vision par ordinateur via le logiciel National Instrument (NI) "Vision Assistant". Les fonctions de l'assistant dont je veux me servir seront simplement "Histrogramme", "thershold" et "circle detection".
    Mon problème, c'est que j'aimerai intégrer véritablement, l'image donné en direct de ma camera, les outils (boutons) de sélections sur l'image et les résultats obtenus après traitement (que l'Assistant donne) à mon programme déjà existant (sur l'UIR du programme) !
    Je ne comprend pas (j'ai bien lu le tutoriel Vision assistant to cvi sans succès) comment utiliser le code généré par l'assistant dans CVI pour faire apparaitre ce dont j'ai besoin (l'image donnée par ma camera, les boutons de selections de l'assistant et dans mon programme déjà codé.
    De plus si je compile directement le code que l'assistant me genere (seul), il y a des erreurs liées a la bibliothèque <nimachinevision.h> : "redlacaration of variables..." bibliothèque que je doit donc enlever du code généré pour qu'il compile correctement !
    Si l'un d'entre vous est déjà passé par là, son aide me serait très précieuse !
    Merci beaucoup !

    Bonjour Pooty,
    Pourriez vous indiquer de quel tutorial vous-êtes vous inspiré ?
    Merci d'avance.
    Mathieu_T
    Certified LabVIEW Developer
    Certified TestStand Developer
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    LabVIEW Tour
    Journées Techniques dans 10 villes en France, du 4 au 20 novembre 2014

  • Vision assistant - Sequence acquisition

    I just sarted using Vision assistant and when I want to do a sequence acquisition, the sequence acquisition wizard only shows the input of the number of frames only. How do I set the Skip Count?, Line, triggering action, timeout and polarity? I only have that one option of Number of frames and then have to click next and finish. Do I do these settings in Vission assistant?, if so, how? Or I have to set all this in MAX? am using labview 2013. If I get a time-out error do I set it in MAX as well? Could not acquire (ROI) whilst acquiring continous images. do I need to install some drivers or all this I set in MAX?
    Rose 2010

    Unfortunately, in the Acquire Image (1394, GigE, or USB) step, the sequence acquisition feature does not allow you to specify a skip count.
    I filed CAR 488272 to address that request in a future version of the software.
    The step should use the Max configuration, or the attributes you specified in the Attributes tab, as for the trigger configuration.
    That configuration should be used for the sequence acquisition.

  • Vision DevMod: How to create large Gaussian filter kernels with integer values like Vision Assistant uses

    Hello,
    in Vision Assistant it is possible to create filter kernel of arbitrary size, like e.g. a 75x75 Gaussian kernel. These kernels feature integer-only elements. I tried to find a function in the Vision Development Module, but have been unable to find something so far. So I still create a Vision Assistant script with such a kernel and export it to a LabVIEW VI in order to abtain such a kernel. Any ideas on how to create such kernels programmatically?

    -You can generate custom kernels in LabVIEW also, but you need to have either string or numerical of that kernels. Without these two, i am not sure of how to do this.
    -Please check this for building kernels.
    http://zone.ni.com/reference/en-XX/help/370281M-01​/imaqvision/imaq_buildkernel/
    -Let's say you are able to programmatically generate kernel string, it will convert to kernel in double format automatically and connect this to convolute vi.
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13

  • Vision assistant in LabView

    Dear All,
    I am not that familiar with LabView yet, and would really appreciate some help.
    I have attached to this message three documents. the first one represents the block diagram of how I can use a few tools from labview with my thermal camera. All this works fine for this one. The second one, is a tool developped from Vision Assistant, but created as a LabView VI, so same in the block diagram. And in the third one, is the block diagram of the two (the first which corresponds to image and few data from the camera, and the second one the tool developped in Vision assistant) together. Bacsically my question is, could you help me or show me how to link the two, so that I can use the tool developped in Vision Assistant with my image from the thermal camera (file 1). Link file 1 and 2 together basically.
    Many thanks for your time
     reivaxseniab
    Solved!
    Go to Solution.
    Attachments:
    GetImageExample.vi ‏32 KB
    trial 1.vi ‏68 KB
    trial 2.vi ‏94 KB

    Hi Xavier,
    I am not really sure what you mean by it doesn't seem to work, it looks to me like the VISA reference wire is going into the "Close.vi" fine, are you referring to how there is a broken run arrow up the top left of the program, not allowing your program to run?
    If you click on that broken run (or hit ctrl+r) arrow it will automatically give you an error list of items to fix like the first attachment.
    In your case you wont have the errors where subVI's are missing, but you will have the errors of tunnels not being wired together correctly, if you double click on that error it should take you to the area on your block diagram where the error occurs. Your VI's have a couple of tunnels hidden behind each other like the second attachment.
    You may want to move these out from each other so that they are easier to wire into individually, like the third attachment.
    You want to make sure that each of these terminals have data wired in to them in each one of your cases so that they do not appear as an empty shell, but as a solid colour.
    These links are good for understanding case structures and terminals a bit more.
    These are all subjects covered in LabVIEW Core 1, I would suggest Xavier that if you are looking to use LabVIEW more in the future it is often more beneficial to sit down and dedicate three days to learning these principles with exampls and excercises than struggling to piece together code, if you're an academic in the UK training is at a discounted rate. Let me know if you're interested.
    Best regards,
    Mark W
    Applications Engineer
    National Instruments UK & Ireland
    Attachments:
    Error list.PNG ‏33 KB
    Terminals clumped.PNG ‏2 KB
    Terminals neat.PNG ‏2 KB

  • Use a web browser as the source for the vision assistant

    I want to access an ip camera over the internet and then use its video feed to do some processing with the vision assistant. I was wondering if someone could tell me if this is possible and how can it be done. what I have so far is an application that works with local cameras and I also have an example of a web broser in labview. I thought I could use the web browser and use a local variable from the browser in order to get the image, but this can't be wired to the grab or snap, because its not an image, so can someone please tell me how to convert the browser into a video feed, in order for me to use it in my application.

    Crop the image out of the print screen.  I imagine your screen will be a much larger resolution then the camer, and will only take up a portion of your browser window.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Make a Line Fit with Vision Assistant for a polynominal function?!

    Hello
    I do have following problem to solve: I do have a laser spot which draws a line (non linear) to a wall. For this line I need to know the (exact) mathematical
    function. Therefore I can get an image of the line but I do not know how I can extract the mathematical function with a line fit for example. If I could "convert"
    the line into points I would use the line fit function of LabView which should work without problem.
    Is there a way to solve the problem with the vision assistant or..?
    Thanks in advance
    Solved!
    Go to Solution.

    Hello,
    by now I have learned that (almost) anything is possible. You can achieve this using Labview, Matlab, C++, etc... In any case, getting the coordinates of a single laser line (single laser line - you don't need to find correspondences, as opposed to multi-line projection) should be really simple. If you place an apropriate filter in front of the camera, it is even simpler!
    If you want proof it can be done (and the description/procedute I used), check out the link in my signature and search for laser scanner posts (I think there is three of them, if I remember correctly). I have made a really cheap scanner (total cost was around 45 eur). The only problem is that it is not fully calibrated. If you want to make precise distance measurements, you need to calibrate it, for example using a body of known shape. There are quite a few calibration methods - search in papers online.
    Best regards,
    K
    https://decibel.ni.com/content/blogs/kl3m3n
    "Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."

  • Where can I get detailed documentat​ion on the 'IVA' vision vi's created by NI Vision Assistant

    I use the NI Vision Assistant a lot.  Usually I ask it to create a vi automatically from the script.  However, the resulting vi contains several 'IVA' vi's that are completely undocumented (from what I can see).  
    Where can I get more info on these?  Examples of these are  IVA Grayfilters - Nth order.vi and IVA Store Particles Results.vi (two of many such vi's) .  They look like very useful and interesting functions but what exactly they do I can only guess.  
    Any ideas where I can get information on these functions.

    I really appreciate your offer to help, however, it would probably be better for me in the long run if I could get this info from the official help on these functions?
    But as an example, currently I am wondering what does IVA store particle results.vi do?  It is called after IMAQ particle analysis.vi but just seems to be wasting precious processor resources.  When do I need to include this (as is done by default by vision assistant) and when can I cut it out?  It must have some purpose but who knows what this might be?
    Thanks.

  • Labview Vision Assistant Histogramm Problem

    Good Morning,
    i sadly with the Vision Package from Labview. I want to load a picture and interpretation a detail of the picture with black, white and grayvalve. This can i make with the Vision Assistant feature Histogramm. When i build it (the VI with Vision Assistant) comes nothing to the output Histogramm. I have checked the output line Histogramm, but nothing goes out of this.What are my failure?
    Thanks a Lot
    german translation:
    Hallo zusammen,
    ich bin leider noch nicht richtig mit dem Vision Paket vertraut. Ich möchte die Schwarz, Weiß und Grauwerte eines Bildausschnittes auslesen und diese auswerten können. Dank des Vision Assistant, kann ich dies per Mausklicks erzeugen, jedoch erhalte ich am Ende des Vis keine Daten. Selbst wenn ich die Quelle verbinde und ein Anzeigeelement hinzufüge, kommt hinten nichts raus. Was ist mein Fehler?
    Vielen Dank
    -motecpam
    Labview Vision 2011 Servicepack 1
    with Vision Development Modul
    Attachments:
    Screenshot_VI.jpg ‏230 KB
    Screenshot_Vision_Assistant.jpg ‏313 KB

    Hallo Tropper,
    vielen Dank erstmal für die Antwort.
    Leider erhalte ich dennoch keine Ausgabe am Histogramm.
    Das Histogramm wird mir leer angezeigt.
    Ich habe es so erstellt, wie von dir gezeigt.
    Attachments:
    Unbenannt.jpg ‏117 KB

  • I am using Pattern matching using vision assistant . its able to detect the temple which created while configuration

    Hi all , 
             i am using vision assistant to do patten matching . its able to find the pattern with created template in vision assistant .
            if i load some other pattern is not detecting .. 
             i have attached my vi file 
    Attachments:
    PM_light.vi ‏266 KB

    Hi all , 
             i am using vision assistant to do patten matching . its able to find the pattern with created template in vision assistant .
            if i load some other pattern is not detecting .. 
             i have attached my vi file 
    Attachments:
    PM_light.vi ‏266 KB

Maybe you are looking for

  • New itunes fixed nothing for me!

    errors 440-448-236-240 all related to: "An existing connection was forcibly closed by the remote host" i just have to run itunes with bonjour service off... no need for it but this worked fine until last update never ever had an issue for years until

  • Formula column help needed(urgent)

    Hi , I am using the data template for generating XML data. BIP provided functions like SUM(), AVG(), COUNT(), MAX(), etc to use as below <group name="G_DEPT" source="Q1"> <element name="DEPT_NUMBER" value="DEPTNO" /> <element name="DEPTSAL" value="G_

  • How to set a default page setup in P6?

    Hi, Anyone know how to set a default page setup in P6? Thanks, Manuel

  • Moving line objects

    Hi, I am using Keynote 2 and have problems moving objects consiting of thin lines (like a circle) out of an area with many similar objects with the mouse. It is already difficult to mark a specific object with the mouse, but grabbing it without marki

  • Banner Artwork In AI saving as Smaller file than desired.

    I have my file set to 1200ppi and 300ppi raster. File is 33 x 80 inches for print. All artwork is vector, text is outlined....when I save it in AI it is only 8MB. Why? PS PDF saves as 46MB. Checked compression settings....Can someone please explain w