Live video pattern match

Hi,
I have created a program from where you can look at a live video (contious aquisition within a loop) and from that, create a template which you then use pattern match on. The idea is to be able to track movements of the template (in my case components on a PCB) in the live video. Everything works just fine, however, when I try to change the template in the program (I have a button in the GUI where you can either create a new template or load a previously saved template), the program for some reason still uses the "old" template. I'm not succeeding to change the template used in the pattern match part of the vision assistant express vi while I'm running the program.
If I stopp and restart the program I can load a new template however.
I'm beginning to think it has something with the image aqusition and not disposing images correctly, to do but I could need some help.
Is there an example out there that uses live video pattern match where you can load/create templates on the fly?
Thanks!

Thanks Sasi,
I looked at the example but it not really what I looked for. In your example, the match is done on a previously recorded video file. What I would like to do is to do the matching on a live video.
I've managed to do matchpattern the first time I load or create a searchpattern. But if I want to change the match pattern template while running the VI, it continues to use the old one...(I'm aware I have trouble explaing the problem...)
The structure of my VI is as follows:
while (not stopped or stop aquisition of images)
 1. Continously aquire images
 2. Do a search pattern task (a -no pattern match, b -use "old" pattern, c - create new pattern and d -load a previously saved pattern)
 3. Do a pattern match (use vision assistant to do a pattern match on the image aquired in step 1, with the template from step 2.
 4. Overlay the match (if found) to the image aquired from step 1.
 5. Calculate the radial movement between two following frames (the calibrated matches array from vision assistant in step 3.
 6. Save radial movement to file
end
It works, but I have to restart the VI before I can use a new template (otherwise it just keeps showing the first match)
I guess it has something with how I aquire images, to do?
Best regards,
//Jonas

Similar Messages

  • Adobe Flash Reversed to Broadcast Live Video without a Webcam

    This is all true and is happening now.
    I had heard that someone had taken Adobe Flash to new limits, albeit surreptitiously, was able to remotely activate your webcam without indicator lights revealing the clandestine activity. I unashamedly hold an objection to the commercial use of personal and private information to gain revenue via direct marketing or by on selling said information and an even greater objection to government agencies collecting and using personal and private information to build dossiers on the very same citizens that governments are elected to protect and serve for the purpose of political influence, persuasion, terror or torture. The only thing worse than either of these two scenarios is tendered government contracts for the collection of personal and private data or buying directly from a commercial entity that have collected data on individuals.
    When I heard that remote activation of a webcam was possible, I took measures to counter this threat by personally managing the Flash settings in the web browser, ensuring the browser settings always matched the Adobe Flash settings for use in Google Chrome, either by selecting "ask before allowing website to access camera" or outright "deny access to camera" and deleting the "exceptions" for that particular website or all sites. To be absolutely certain of my privacy I added the auld low tech safety net which I was certain could not fail, a strip of gaffer or "duck" tape over the lens of the webcam. Occasionally I would also turn the inbuilt mic off for added piece of mind. I thought myself that perhaps I was being a little paranoid until recently when I began to suspect that I was being observed when I would enter a chat room. A look of surprise or a generous smile from the host would greet me upon my arrival, priding myself in the most basic of social etiquettes, good manners, I would always respond with a nod or returning the gesture in kind. However, this is where I became confused because the hosts were always reluctant to confirm this was happening when asked directly, or made an effort not to acknowledge my presence again, which in my eyes, is an admission of guilt.
    When I put my laptop to sleep by closing the lid evening last, the unusual and rare combination of hardware and software failure occurred activating the log on screen on the external monitor. Secure in the knowledge that the lid of the laptop was closed, a piece of black gaffer tape adhered to the webcam, I knew I would not get a better opportunity to prove my suspicion that Adobe Flash has been re-coded to not only play live video but to capture and broadcast it as well. I entered the chat room and sure enough an acknowledgement from the host was immediately forthcoming. A moment of divine intervention allowed a conversation to evolve where upon I revealed that my webcam had been disabled and my monitor was acting as the only capture device. Having now confirmed my suspicion that my monitor, not the webcam was broadcasting video, I set about collecting additional evidence and to make the case rock solid,  enlisted an independent witness at my end to find on this verdict beyond reasonable doubt.
    My unsupported theory is that, if this technology has indeed been developed legitimately, it has been done so for the purpose of Windows 8, because although this computer is running Win7 Pro it originally came with Windows 8 but as I had ordered the computer with Windows 7 Pro, I sent it back to HP and they returned it with Windows 7 installed.  I have been informed by my I.T guy that Windows 8 has new hardware configurations that are specifically designed for the Win 8 platform.
    Hardware & Software Specifications:
    System 
    Manufacturer
    Hewlett-Packard
    Model
    HP ProBook 4540s
    Total amount of system memory
    8.00 GB RAM
    System type
    64-bit operating system
    Number of processor cores
    2
    External Monitor
    LG E2242T External Monitor
    Monitor Cable
    DDMI - DVI-D
    Storage 
    Total size of hard disk(s)
    699 GB
    Disk partition (C:)
    603 GB Free (699 GB Total)
    Media drive (D:)
    CD/DVD
    Disk partition (E:)
    32 MB Free (100 MB Total)
    Graphics 
    Display adapter type
    Intel(R) HD Graphics 4000
    Total available graphics memory
    1696 MB
          Dedicated graphics memory
    64 MB
          Dedicated system memory
    0 MB
          Shared system memory
    1632 MB
    Display adapter driver version
    10.18.10.3496
    Primary monitor resolution
    1366x768
    DirectX version
    DirectX 10
    Network 
    Network Adapter
    Bluetooth Device (Personal Area Network)
    Network Adapter
    Realtek PCIe GBE Family Controller
    Network Adapter
    Intel(R) Centrino(R) Wireless-N 2230
    Network Adapter
    StrongVPN Adapter
    Network Adapter
    Microsoft Virtual WiFi Miniport Adapter
    Network Adapter
    Microsoft Virtual WiFi Miniport Adapter
    Software
    OS
    Windows 7 Professional
    Adobe Flash Player Version                  
    Adobe Flash Player Plugin
    14.0.0.145
    Q 1.:
                   Is this the way things are going and do I need to contact my mask maker?
    Q 2.:\
                   having now switched back to Mozilla Firefox, will my secrets be safe again once more ?
    Q 3.:
                   Does Adobe condone this technology and if it does, why has there been no information released about it?
    Q 4.:  
                   If we do have to live with the entire world watching, where is the off switch?

    Yeah... I smell a hoax intended to instill fear then.
    Something silly, such as this page:
    Free Software to Convert a Computer Monitor into a Camera
    *NOTE: I'm aware of "drive by" malware and tested the links using Is This Website Safe | Website Security | Norton Safe Web.
    Cheers... Rick

  • Switching video source for live video streaming

    Is it possible to switch the video source from a video
    capture card to a standalone video during live video streaming? We
    are streaming live TV and we want to skip playing any
    advertisements.
    If this is not possible, what is the best way skip playing
    any advertisements? Do we have to do it at the client player level
    i.e. catch an event from the video player and play a predefined
    video when the live video stream is stopped?

    Thanks for reporting your fix. That news could be very important to those who delete events from their hard drive to save space, but may want to reload them later to do some editing.
    It sounds like the key is re-importing with exactly the same name as before.
    Just curious: What kind of camcorder? Was it MiniDV tape? Flash? Hard drive? DVD?
    It strikes me that with tape it might be difficult to reimport an exact match. If you start on a different frame, the pointers could be off. But if that is not the case, it is very good news.

  • Overlay live video feed with flash animation

    I am using a webcam to allow people see themselves on a screen.  I would like to overlay the video with some flash animation (simple graphics of planes, cars etc.) going across the screen.
    How do I achieve this?

    Hi IEC,
    Having just finished an app that has two ROI overlay layers ontop of a
    static image, I might be able to give you some ideas. All of the below
    assumes that you know basic Labview programming.
    - I have not used IMAQ yet, and so am not sure what front panel control
    type will render the live video images. But, I'm not sure that matters.
    - If you can place an XY Graph over your video display on the front panel then we have it made
    - stretch the size of the XY Graph so that the plot area matches the size and placement of your video image panel
    - make the plot area of the XY graph transparent.
    - you can also make the border of the XY graph transparent
    - if you want a scale for your video then use the scale of the XY Graph to show the scale of your video images
    - then it's just a matter of defining the XY points of the ROIs that you want to plot on the XY Graph
    - if you want multiple ROIs then each can be a different color by making them different channels to the XY Graph
    - if you just want a few straight lines, and want to be able to move
    the lines around in realtime then you can get a little fancier:
           - turn on the cursor legend for the XY Graph
           - create two cursors for each line that
    you need (a start point cursor, and an end point cursor)
           - set the color and cursor style as desired
           - in your main loop:
                     - use the XY Graph "crsr list" property to get the XY positions of the various cursors
          - those cursor XY positions become
    points of line segments fed to the XY Graph to plot (draws a line
    between the cursors)
           - In realtime, as you move the cursors, the line segments move accordingly
    In my particular app I had to provide a mechanism for the user to
    create ovals, rectangles, polygons and freehand ROIs. Then I also
    needed mechanisms to rotate, pan or expand/compress the ROIs. This is a
    bit more challenging, but very do-able.
    Hope that helps,
    RMP

  • Pattern matching program

    Hello,
    I am creating a program that does pattern matching on a video. I want the program to be able to open a template to be used for the pattern matching template and to allow the user to select a template from an image in Labview and then use this template as the pattern matching template. I have code that does all of this. The part that allows a user to select a template in Labview is a sample program that comes with Labview. I just do not know how to incorporate it. Thanks.
    Solved!
    Go to Solution.

    Hi frog,
    Here in attached vi, Ckeck it out your problem solved or not. If not, post the video file also. will help you..
    Not to mention: Your vi is so big. You have to really optimize your vi.
    Sasi.
    Certified LabVIEW Associate Developer
    If you can DREAM it, You can DO it - Walt Disney
    Attachments:
    Pattern Tracking 2.vi ‏135 KB

  • Help for image pattern matching

    Hello Everyone
    I am working for my last year project. In my project I will work on the image processing to find a moving object. I will work by JMF. I have finished to grab a frame from the webcam video clips. Now I need a algorithm to find a Image pattern from the grabed image. But I donot know which algorithm is fine for image pattern matching as well as how can I implement in java. Is anyone know please help me very urgently.
    Thank you
    Md. Mainul Hasan

    If you would like to take a look at http://www.exactfutures.com/index01.htm and http://www.exactfutures.com/index02.htm and http://www.codeproject.com/useritems/activity.asp then these pages and links may well be useful to you. It may not be exactly what you are looking for, but it does point to some examples with source for video analytics, and at the very least they illustrate how to capture & handle the data including a fast movement detection algorithm. If you want to find a specific shape then search the internet for information on chamfer distance transforms - one can use JMF or extend these simple examples to apply those techniques.

  • Iterative pattern matching

    Hi, I need to create a pattern matching program. I have successfully created one that matches a template image to a full video. Now, I need a program that updates the template image with each frame. So I would create the template on frame 1. Then on frame 2, when the program finds a spot that matches the template, it saves this image as the new template to compare to the next frame. This would continue for the full video. Does anyone have a program that does this? Or any idea where to start? I am using Labview 2010. Thank you!

    Here is my current program!
    Attachments:
    20120417 Tracking.vi ‏588 KB

  • Gige + pattern matching

     Hi all,
               I am new to Labview image processing . 
               i need to achive pattern match. from that i need to find fiducail location . but here i am facing some problems like .
               1. aquiring image is corrupted like black lines (i am using GigE camera 5MP 2/3" ) . 
               2. here i am doing pattern match by live grab method ( like continous aquring) . so that my CPU uasge is reachs nearlly  90 %
               3. my task is to find fiducail using pattern match from that i need to assign ROI for main pattern  (is it possible to snap image -> pattern match - > result) 
                i have attached my vi code and image .. 
    Attachments:
    6.png ‏75 KB
    PM_TEST.vi ‏121 KB

    Hi please learn basics and then apply over...
    1)What are the black lines in image? you didn't provide any screenshot/corrupted image.
        -Are you getting images properly NI MAX?
        -Did you allow jumbo packets ?
    2)Please understand what is grab and snap by using built-in examples provides. And your cpu usage is not because of continuous acquisition.
       -I cannot comment on the cpu usage now, but sure it's not because of gab.
       -Use producer-consumer pattern to do parallel acquisition and processing.
    3)Once you understand the difference between grab and snap, this you'll understand automatically.
    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

  • Basic requirement for color histogram & pattern matching.

    I will do a student project about video & image(stored in PC) analysis using color histogram & pattern matching. I have LabVIEW6i only. What's the basic requirement for this analysis? vision module? Please suggest a simple and cheap requirement. Thanks all.

    It really depends what is the purpose of your student project. Is it about developing those routines yourself or is it about using ready made routines to research the possibilities and differences on different kind of pictures.
    In the first case you already have everything necessary as you can perfectly well develop those routines in normal LabVIEW. Otherwise you would want to look into the IMAQ Vision Toolkit from National Instruments or the IVision Toolkit from Hytek Automation http://www.hytekautomation.com/Products/IVision.html. You can download the IVision Toolkit free for evaluation it just will regularly show a nag screen to remember you that this is not a licensed version.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Mid 2011 mbp i7 with a SSD has problems, including grey screen/blue screen/beeping/freezing when I stream live video (i.e. watch espn or time warner cable) Help? Ideas?

    Recently my Macbook Pro (June 2011, i7, 8gb RAM, 512gb SSD, AMD Radeon 6750, Mountain Lion - since July - currently 10.8.2) has been presenting me with an array of problems, usually initiated when I am streaming live video. I was streaming Time Warner Cable on 12/9 and it gave me what looked like the blue screen of death.  It started up after about five attempts that time. The other day, after about a week of not using the computer, it wouldn't boot past the grey screen. I (option) started it and it gave me two boot choices, the regular HD and a "10.8 restore" option.  The HD gave me the grey screen and the restore option gave me the dark blue screen. I reset PRAM and that didn't work.  After a force (x) start it worked.  Today, I was using "Watch ESPN" and the screen froze and the computer did some kind of repeating RAM beep or something.  I rebooted and it started up fine.  I'm not watching any videos anymore, but this is a problem since the primary purpose for my mbp is video editing. I'm still under AppleCare but I find more solid answers in the forums or at least better questions for the AppleCare people.
    Anybody have similar experiences, or a solid idea of what the heck has happened to my machine?

    I'm not really sure what method that person was talking about. I just read he had a successful install so I posted it.
    But I'll hazard a guess
    1. copy your entire drive to a backup drive
    2. boot into that drive and test it out - make sure its a flawless backup, it works, and the hard drive has no problems
    3. eject that drive, disconnect it and reboot into the leopard install dvd
    4. erase your main hard drive using disc utilities on the leopard install dvd -- you've made a backup, made sure that backup was good, and disconnected it so it's currently safely disconnected from the leopard install you're about to do. Also, on the hard drive you're erasing and installing leopard on to, many people recommend "Zeroing" it as well as erasing it. That option is part of the erase function in disc utilities on the leopard install disc.
    5. do a clean install of leopard
    6. follow step 4 from that original post exactly as that person described to do.
    7. read the rest of what they said
    That's pretty much it. With the backup/erase/clean install/import/ you pretty much get everything you need exactly the way you want it with very few things missing -- and you've done this over a clean install. Plus that poster did mention that you can select what you want to import from your backup hard drive.
    It sounds like its a "clean install" method that gives you control via "import from machine" option in the installer. Control over what parts of your "old mac" you want to import into your "new leopard mac".
    Hopefully that helps. It sounds more involved, but its actually pretty quick and provides you with a perfectly save backup in case anything goes wrong with the leopard install.

  • How do I set multiple pattern matching Vi's and make overlappin​g pattern matches to count as one?

    Hello! I'm a student and I'm currently making a project using pattern matching.
    My patterns are from chick foot/feet.
    I'm  created multiple pattern matching VI's to detect all the feet because I find it difficult/impossible to match all the feet with a single pattern/template.
    However, when using multiple pattern matching VI's some pattern matches detect the same foot, hence overlapping.
    So how can I make the overlaping pattern matches to be counted as one?
    Thank you in advance

    Thank you for replying Sir Zwired1.
    I'm still a newbie in using LabVIEW so pardon me if I can't understand fully
    The objective of my project is to detect all the feet through pattern matching and count the pattern matches made.
    "Keep a 2D array of counts, initialized to zero and the same size as your array of possible locations, and increment the value every time you get a match. If multiple pattern matching attempts result in a match a given location in your count array might be "3" but all you care about is if the number is greater than zero."
    I'm sorry, but how do you do this? BTW, I'm using vision assistant.

  • Can I connect an external video camera to a mac book pro for viewing live video so I don't have to use the little screen on the camera?

    Can I connect an external video camera to a mac book pro for viewing live video so I don't have to use the little screen on the camera?

    Shadow30 wrote:
    Can I connect an external video camera to a mac book pro for viewing live video so I don't have to use the little screen on the camera?
    • Only if your video camera supports it.  Depending on how your camera works, you may need to add preview software to your Mac to use this feature.
    • Alternatively, your camera may also be able to record directly into your Mac while you are monitoring the Mac's display.
    • If you are using a consumer camcorder that supports HDMI monitoring, a small HDTV might be an simpler solution than your Mac.  For an example of how this is done, see http://youtu.be/GVpSkZD6qE4.
    • The retailer who sold you your video camera may have other suggestions.
    • If you need more professional results, an external preview monitor will offer more capability on compatible cameras.
    Message was edited by: EZ Jim
    Mac OSX 10.9.4

  • Is there a way to use Illustrator to draw over a live video feed coming from my microscope?

    Hi, we use illustrator to draw (trace) over static images of mite specimens taken under a microscope. Although this works, it would be much better to be able to draw directly from the live video feed coming from my microscope. The specimens are dead, so they are not moving around, however, we need to focus down through the specimen in order to see all details. We normally take montage images, but because the specimens are clear there are many artifacts present and we frequently have to consult the specimen under the microscope to double check things. My students and I have hundreds of drawings to complete and are looking for a way to streamline the process. If we could avoid making montage images and draw direct from the video feed, it would revolutionize the way we approach our research. Is there a way to display the video feed and then overlay Illustrator so that we can directly trace over the image (we use a Wacom tablet, but that shouldn't make a difference) so we can focus at different levels and draw the entire organism?
    Thanks for your help
    Ashley 

    Maybe it's possible to have live video in Illustrator, but you would most certainly need to write your own plugin.
    So this community would be suitable:
    http://forums.adobe.com/community/illustrator/illustrator_sdk?view=discussions

  • Hello. I want to use my iphone as a viewing screen for a usb endoscope, (its a small camera on a long cable for inspecting down piping and such) with an app is it possible to attach the usb to my iphone using a adapter to watch the live video feed on th

    Hello. I want to use my iphone as a viewing screen for a usb endoscope, (its a small camera on a long cable for inspecting down piping and such) with your app is it possible to attach the usb to my iphone using a adapter to watch the live video feed on the iphone?
    Thankyou.

    Hello. I want to use my iphone as a viewing screen for a usb endoscope, (its a small camera on a long cable for inspecting down piping and such) with your app is it possible to attach the usb to my iphone using a adapter to watch the live video feed on the iphone?
    Thankyou.

  • LIVE Video Tutorial! How to Upgrade or Replace RAM - HP Expert Day "How-To" Video Series – Today at 12:00pm PST

    Join us at 12:00pm Pacific time for a LIVE video tutorial of how to upgrade or replace RAM! The video features HP experts who work with the products every day!
    I am an HP employee.

    #test

Maybe you are looking for

  • Can you sync from a shared library

    we have multiple ipod, ipad, iphone devices and multiple imac computers but only one itunes account.  kids are not old enough to have their own account.  can i sync their ipad to their mac if it is using a shared library from my imac or do i need to

  • Web Module: Works great, but is it possilble to publish an HTML web gallery that does not use thumbnails, but just displays all photos (one above another)?

    It would be nice if a published web gallery did not require clicking or sliding in order to view a new picture. Is there a template that just puts up every image in the gallery, full-size, one above another? That's how I like my webpages - see, for e

  • BUS6035 - create vendor invoice (without PO)

    Hi Friends, I want create a Vendor invoice (FB60) through BUS6035. Now I have to indicate is it a credit note or an invoice, but I could not find a corresponding field in the  LSMW- target structure. Can someone give me some help on this issue? Thank

  • Can't connect to itunes to sync

    I have just upgraded to IOS612 for my iPad Model 02 14.0 and Itunes to 11.02.26 and now nothing syncs - even my pc does not recognise my iPad. I need help please? Thanks

  • Wrong number or types error

    I am trying to connect to a stored procedure. The arguments are defined as NUMBER, VARCHAR2, and DATE. Here is the call I am making: stmt = con.prepareCall("{ call procedure(?, ?, ?) }");           stmt.registerOutParameter(1, Types.INTEGER);