Problem with Pattern Matching

Hello,  I am using Vision Development Module 8.5 with VB6.   I need immediate help on coming up with a solution for an auto warranty return for incomplete "Fog Lamp" indicator symbol.  I use a match score minumum of 900, but the match score returns a 932.  I don't see how a score > 900 is returned for so much missing from this symbol.  I use this test in a high production line and am very concerned.  I attached a Vision Assistant 8.5 script and actual image from auto warranty return.  The *.png template used for comparison is also in zip file.
Thanks
Attachments:
PatternMatchScrpt-FogLamp.scr ‏2 KB
Images.zip ‏137 KB

Golden Template does exist in 8.5, and that was my first idea too, however, after trying it, it might not be the best algorithm for it.
Golden Template compare the contour of objects, and they don't produce very good result in the specific image because the symbols are relatively small and not contrasted enough once we look at the luminance plane (i.e. we can't perform a great contour extraction).
What I tried and works decently is the looking at the identification score of the classification algorithm.
The only drawback of this method is that the object needs to be whole (i.e you might need to do a little morphology to close the objects). But the identification score will be quite different on the partial fog lamp.
Another tactic, which is similar to the previous one is to (mis)use the OCR algorithm to train the object and use the character verification function (i.e. define a perfect fog lamp image (character) as the reference character when you train the OCR engine.
The algorithm will them return a verification score which will tell you how far or close the pattern under inspection is from the reference one defined in the OCR file. OCR is based on classification.
After trying that on your image, the verification score is different enough and you could use that for making a decision, but the difference is not as marked as with using the identification score of the classification algorithm.
Both algorithms are based on thresholding the image. One advantage of using the OCR is that you can tweak the min character spacing parameter to adjust the segmentation so that the symbol is considered one full object (as opposed to having to perform morphology to do it if you use the classification algorithm).
As I mentioned, classification seems to give you a better differentiation between the scores.
Both methods allow you to define a Classification file or Character Set File that allow you to test multiple symbols.
I am attaching a couple inspections and files I used to do this quick test.
Hope this helps.
Best regards,
Christophe
Attachments:
Fog Lamp Inspection.zip ‏156 KB

Similar Messages

  • Problems with pattern matching Regular expression

    String emailRegEx = "(\\w+)@(\\w+\\.)(\\w+)(\\.\\w+)*";
    String test = "[email protected]";
    if(test.matches(emailRegEx)) {
    }throws an exception
    java.util.regex.PatternSyntaxException: Illegal repetition near index 5.

    It works fine for me.

  • Download Problems with iTunes Match

    I'm having problems with iTunes Match, upload the songs are done and had great difficulty with the freezing of steps.
    I'm not able to make the songs appear in iTunes: http://pqp.me/7qr
    and when I get the songs come I can not download:http://pqp.me/7qq
    Can you help me?

    Vinny Bastos wrote:
    I'm not able to make the songs appear in iTunes: http://pqp.me/7qr
    I don't know what you mean by this. Do you mean you can't figure out how to get off that screen? Click the "done" button.
    This is just to say that I managed to sync with iTunes Match, in my other notebook I can not do the songs appear.
    Vinny Bastos wrote:
    and when I get the songs come I can not download:http://pqp.me/7qq
    You're connection the iTunes Match servers is offline. That's why the songs are greyed out and the cloud icon has the horozontal lines in it. Quit iTunes, wait a few seconds, re-launch the application and wait until the tracks are no longer greyed out and you will be able to download them.
    That part you answered, thanks.
    How often iTunes Match is off? Sometimes?

  • Problem with iTunes Match and the song "This will be (an everlasting love)" from Natalie Cole

    Hello,
    I'd like to report a problem with iTunes Match and Natalie Cole's song "This will be (an everlasting love)".
    When I stream it or download it on another device I don't get Natalie Cole's song but another one from Maxine Nightingale (Right back where we started from).
    Please tell me if you have the same problem or how I can report this problem to apple.
    Thank you.

    Hi,
    This is a user to user forum - not Apple. Contact them http://www.apple.com/support/itunes/contact/
    Alternatively if the song was purchased from iTunes, you may be able to report the problem by signing into you iTunes account on your computer. Report an problem with an item you bought from the iTunes Store, App Store, Mac App Store, or iBooks Store
    JIm

  • OLAP universe filter with pattern matching.

    Hi,
    I tried to create both a qaaws and a webi report which contained a filter with pattern matching on an olap universe .  When I ran this it took too long to be usable. I found note 1500666 which says that pattern matching is not supported in MDX and to use BEX query variables instead.
    I have created a bex query with a variable which has "Variable Represents" set to "Selection Option". I can run this query and using the search option I can do a pattern match search. I have built a universe based on this query but the filter that gets created automatically in the universe uses a "Between" operator.
    Does anyone know if it is possible to change the definition of the filter in the  universe so that it does a pattern match search and if so how?
    The end result is that I would like to be able to do a pattern match search on the text description of a BW employee object.
    Thanks
    Quentin.

    It would be better if you post the Filter definition here...
    And why don't you do Pattern matching at BO query panel level??
    Where you can find Matches pattern operator to do same stuff.
    Thank You!!

  • Problem in pattern matching

    I am trying to validate a string having a proper user's name as:
    santosh tripathi
    rahul shekh
    tarun bhatnagar
    I have used this code snippet:
       public void validateName(String name)throws ValidatorException{
            Pattern isString = Pattern.compile("[a-zA-Z]"); 
            Matcher m = isString.matcher(name);
            if (name != null) {           
              if (name.length() < 3) {              
                    throw new ValidatorException("Name should be at least 3 characters long.");
              else{                            
                  if(m.matches()== false){                 
                     throw new ValidatorException("Please enter you name properly");  
            } else {
                throw new ValidatorException("Please enter Name.");
        }   but this is not working properly. The expression m.matches() always return a false value whatever name is entered.
    I think, there is problem with the pattern compiled at first line.
    what would be the correct pattern for the names I have given above?

    san_4u wrote:
    the valid name must be like
    tim robert
    bob relsmeth
    sofia sankari
    ..........What about "Josef Müller"?
    Or "&#1601;&#1610;&#1602; &#1588;&#1575;&#1605;&#1610;"?
    Or "James Tiberius Kirk"?
    Or "Q"?
    Are they valid names?

  • I have a problem with iTunes Match...

    ...and not like an 'oh man, this bolt's too big for this hole' problem, more of a 'hey man, if you don't stop doing that then you and me gona have a problem' problem.
    For starters, I found that enabling the iTunes Match service means that I can't manually synch any files or playlists to my device.  So when I travel to an area without wifi or phone signal, which happens more than Apple obviously thinks, I can't listen to any of my music. Whose bright idea was that??!
    Secondly, when I do enable iTunes Match, I often find that changes I make on my computer (shuffling the order of songs on playlists, adding new files to my library etc.) don't always correlate with the Match service, for instance I made a playlist on my computer but it doesn't appear on my phone, or I set a playlist on iTunes to order itself by the date the files were added, but on my phone they appear in whatever order they **** well please.  It unfortunately doesn't 'just work'.
    And thirdly, although this isn't really connected to the Match service but rather just a chance for me to vent as I'm already doing it, when I heard they were bringing 'wifi synching' to iOS I was really excited. Then I found out it would only synch while your iDevices were plugged in and charging.  THEN I found out that every time I plugged my phone in it would automatically try to synch, waking up my laptop if it wasn't already awake. So every night I would plug my phone in by my bed, turn over to go to sleep, then have to get up 20 seconds later to re-sleep my machine; this could happen at random points during the night.
    I'm not expecting Apple to change their products over the dissatisfaction of one disgruntled user, I'm just wondering if anyone else is experiencing the same problems and has found any ways around them.  Also I must say as annoying as certain aspects of iTunes Match are, it's still a fantastic service (in theory...).

    peanutismint wrote:
    I hope they manage to fix the playlists issue, hopefully by the next couple of updates.  I figured the syncing/waking thing would be what it was meant to do.  I wonder if there's a command line or something I can tweak in settings to stop my Mac waking on LAN/Bluetooth etc....
    In System Prefs > Energy Saver > Power Adapter unselect the option for "wake for network access." Although this may have the effect of preventing wireless syncing. I'm not sure.
    peanutismint wrote:
    The downloading of songs is pretty much useless as a feature in my situation, as by the time you're out of signal and can't stream music, neither can you download it (and if I were expected to download it first in case of signal loss then doesn't that negate the need for a streaming music service anyway?!)
    iTunes Match doesn't stream to iOS devices, all songs are downloaded. If you have not done so, you can enable "use cellular data" to download music by going to Settings > Store and setting the option to ON. To answer your question, though, yes, pre-downloading of tracks is the "best practice" for using an iDevice with iTunes Match enabled.

  • Problems with iTunes match

    I'm having problems with my iTunes account in my Macbook. None of the music I have in the cloud is accessable to me. A few days ago I tried to update music on my iPod and instead of adding music it erased almost everything on it. After that much of my music collection was grey. I tried all sorts of things, such a reinstalling iTunes and nothing helped. I asked today in the Apple store and an employee there suggested I de-authorize and then re-authorize the computer. The sum result now being that none of my music in the cloud is visible. Strangely enough, I can still see and play the music from my iPad and iPhone. Any suggestions?
    Thanks,
    Karl

    I had a similar problem in the first 2 days after IOS 7 was released. iTunes Match would not update, and previously matched tunes showed "waiting". After many attempts to resolve the problem... Re authorizing my computer, numerous forced updates iTunes Match... the problem has resolved itself. As of Sept. 22, all functions have returned to normal. Playlists and artwork for 110G working, and access able from all my devices.

  • Problems with color matching when printing...

         Hi, I work for a small family business in the P.O.P. industry.  We currently have myself and one other designer, we both take illustrator files that have come from the graphic design firm that we contract with and get them ready to print on our Vutek QS3200.  However ever since acquiring the printer we have begun to run into problems with the colors when printing.  When the files are exported off of my computer, I use either .tif or .pdf files, they print as they should, the colors seem to match the proof and everything goes smoothly.  However when the other designer exports a file, he tends to do mainly pdfs, the colors tend to be extremely different from where we want them.  Also we will get very strange results, such as yesterday he kept getting a faint yellow 1/2" border around his prints.  After I believe 3+ hours of him trying, I was given the original CD and instructed to try.  After 15-20 minutes of making the changes that we needed to make (adding a new price point) and ripping, mine printed perfectly. 
         We both use Macs, both have CS3 Design standard, only differences between the computers are mine is newer and a bit faster, and I'm running OS 10.5.6 and he has 10.4.  He has also at some point loaded various color profiles, whereas my CS package is just whatever the default is when I loaded it.  When we were being trained he grabbed the color profile off of the Colorburst RIP server and loaded onto his computer, plus I believe he has a couple for freelancing purposes on there as well.  My thought is that these profiles are somehow corrupting the files that are going through that computer, but I honestly am lost with it at the moment.  He believes the problem lies within the fact that he does not have the newer OS, I honestly cannot see that as having any effect on this at all.  I was wondering if anyone has run into any similar problems, or if anyone might have any advice on this issue?  I would really like to be able to solve this, as I was hired to do mainly structural design for the P.O.P. and I'm having to put in a lot of overtime to get my work done along with the additional work that I'm having to do.
    Thanks for your time

    I've got a few years experience calibrating large format printers.  First, the Yellow sounds like a file problem.  I used to work with two workstations, one PC ( RIP station ), and one Mac ( file prep station ).  I tend to agree with you in that the OS is probably not the problem.  But, any Colorburst profiles should remain in the RIP, not in the originator application.  My workflow consisted of creating EPS files that were based on established color settings in their given applications ( i.e., Illustrator, Photoshop ) which were interpreted by the RIP which had it's own calibrated profile ( perhaps more than one based on how many different substrates were being used ).  Your partner may be complicating things by incorporating a RIP profile prematurely.  If there are deviations big enough to be noticed, there has to be something in the application color settings that is causing some type of corruption.  This could lead back to the operating system, but I would think it lies somewhere in Bridge or the application color settings.  Start there.  You should seriously consider implementing a calibration system if you do not have one already.  Another slight possibility is the driver's ability to interpret files coming out of Leopard vs. files coming out of Tiger.  It may benefit you both to be in the same operating system dynamics, using the same driver versions and RIP profiles.  At the very least, match everything that is currently working successfully and put them on both machines.  If there is still a noticeable problem in color matching, then something is seriously wrong and you should call in a prepress profiling expert.  Hope this helps.

  • HT204406 Problem with iTunes match cutting off a song on my iPhone, not Mac or PC

    I have purchased the Katy Perry album "Prism" outside of iTunes and matched it with iTunes match. When I try to play the first song "Roar" on my iPhone, it plays only part of it and then cuts off and plays the second song.  This only happens on my iPhone, when I use iTunes match to play the song on either my mac or PC using iTunes, the song plays fine without any issues.
    I've tried turning off iTunes match, and then starting it again, no luck.  I powered off, then on my iPhone, no luck.  I've downloaded the song out of the cloud and still has the same problem... anybody have this problem too or can help?

    Some additional observations:
    When I look at the album, the song "Roar" has a length of "2:05", but once I play the song by pressing it, the song begins playing and the slider shows a length of 3:39 (close to the correct length).  However, once it hits 2:03, it stops and starts playing the next song.
    Interestingly, using iTunes on my mac, the song in the album view shows "2:04" but once I double-click the song, the length changes to "3:43", but plays the complete song without any problems.

  • Problem with pattern numeric field

    Hi All.
    I tryed to format numeric field with patterns num{zzzzzzzzzzzzzzzzzzz9} or num{99999999999999999999}. But when I enter 20 numeric characters like 12345678901234567890 as a result I got 12345678901234567000. How fix that problem?
    Thanks.

    The result you're getting is correct, because you pattern only allows a period to separate the decimal places.
    Try the following edit pattern:
    num{zzzzzzzzzzz9,99}|num{zzzzzzzzzzz9.99}
    and this display pattern:
    num{zzz.zzz.zzz.zz9,99}

  • Problems with iTunes Match since 5.1 iPhone update?

    Since the most recent iPhone update I've had nothing but problems with my iPhone 4's music player, which I presume are being caused by iTunes Match.  The service really was not ready for primetime and has been mostly a headache, but the 5.1 update made it exponentially worse. 
    I've had the following problems:  iTunes on iPhone 4 frequently will not play the songs I select.  The track remains at 0:00 and I often have to force quit iTunes to play anything else.  The phone frequently skips songs at random and goes on to the next track or another track.  Selected songs play as other songs off an album or playlist and do not match up with their cover art.  The phone rarely plays more than two songs in a row without encountering some problem.  
    I've tried restoring the phone, turning iTunes match off and on, and completely disabiling it.  When I did that, the phone wouldn't play ANYTHING!
    Do you guys have any solutions?  I've tried to go to genius bar but there's always a huge line even with appointments and I doubt they'll be helpful. 
    Thanks!

    I am having the exact same problems.  Most songs not playing, some skipping to the next song, song indexing out of order.  Match is becoming a miserable experience..

  • Numerous problems with iTunes Match and synching.

    I've been having problem after problem after problem in the wake of subscribing to iTunes Match.
    1) iTunes unable to accurately determine how much space is being used on iPod harddrive (says harddrive is overcapacity by ridiculous amount of gigabites).
    2) Multiple matched songs unable to load to iPod. I count 27 songs that are faulty. I've had to delete songs in iTunes and re-download them.
    3) Songs showing up multiple times on iPod. Even some albums are showing up twice.
    This is seriously the most faulty Apple service / software upgrade I have ever had the misfortune of testing. I've deleted my iPod once thinking maybe it was just a faulty backup. No, it's just something inherent in the latest iTunes/iPod software upgrade or maybe it's something wrong with iTunes Match.
    Bottom line: things aren't working as smoothly as they are supposed to.

    I agree! I simply made a short playlist on my iPad, and a few minutes later, it had been duplicated 16,000 times on iPhone, iPad, and desktop Mac. It took a trip to apple store to correct. I had to turn itunes match off and then on again on each device. However it is recurring now just a few days later without me even making a new playlist.
    I too have had trouble with being unable to play MANY songs that have matched on my devices. Artwork that is present on the computer isnt going to other devices. Random crashes on iDevices.
    This product REALLY isnt ready for prime time. As an Apple fan-boy, I'm embarassed. C'mon Apple.
    Peter Lundquist

  • Problem with non-matching records

    I have 3 tables - TBL1 is a list of Conditions; TBL2 contains collected data; and TBL3 contains referenced details on the data in TBL2.
    TBL2 contains some matching values from TBL1.
    Ex.
    TBL1
    Condition
    01 Test A
    02 Test B
    03 Test C
    TBL2
    Name, Condition, Value
    Host101, 01 Test A, Yes
    Host101, 02 Test B, No
    Host101, 03 Test C, Yes
    Host102, 01 Test A, No
    Host102, 03 Test C, Yes
    I have them linked TBL1 Left Outer to TBL2 and TBL2 Left Outer to TBL3.
    My desire is to get the complete list of Conditions in TBL1 for each record in TBL2, even where there is no matching TBL1 value in TBL2 - so the report results of the above table data would be:
    Host101
    01 Test A     Yes
    02 Test B      No
    03 Test C      Yes
    Host102
    01 Test A     No
    02 Test B
    03 Test C      Yes
    So even though there is no data returned in TBL2 for Host102, 02 Test B, the record for that entry in TBL1 is still returned in the report.
    Currently I have the report structured as follows -
    {TBL2 Name}
    TBL1 Condition     TBL2 Value
    Seems quite simple, but I must be missing something somewhere, as I am only able to get the data where the records match, so, in the example above, I am getting only -
    Host102
    01 Test A     No
    03 Test C      Yes
    Any assistance would be much appreciated.  Thanks!
    Also, I tried doing a simple new report using just TBL1 & TBL2 and still get the same results (also tried a Full Outer join as well).
    Frustrating .......
    Edited by: Dragon77 on May 17, 2010 2:05 PM

    As I said, I have even tried removing TBL3 to make things even simpler - TBL1 & TBL2 Left Outer joined on the common field.
    I have tried every combination that I can think of.  We're talking on 4 fields in the report -
    Group Header 1 = {TBL2 Name}
    Group 2 = {TBL2 Unique Field}
    Detail = TBL1 Condition     TBL2 Value
    Group Header 1 = {TBL2 Name}
    Group 2 = {TBL2 Unique Field}
    Group 3 = {TBL1 Condition}     {TBL2 Value}
    Detail Suppressed
    No matter what I try, I only get matching records.
    I've gone so far as to just have the minimal 3 fields
    Group Header 1 = {TBL2 Name}
    Group 2 = {TBL2 Unique Field}
    Detail = TBL1 Condition
    Group Header 1 = {TBL2 Name}
    Group 2 = {TBL2 Unique Field}
    Group 3 = {TBL1 Condition}
    Detail Suppressed
    The tables only have the 1 field in comon {TBL1, TBL2 - Condition)
    This just doesn't make sense.  {TBL1 Condition} should have ALL of its entries returned along with any matching records from {TBL2 Condition} - not just where they are equal.

  • RegEx, need help with pattern matching

    im going thru a list of Strings...and id like to match some input to it..but the tutorial for regex wont let me find a smaller string within a bigger one if it exists
    for example i have a String "java.sun.com" and i want to find "sun" or "java" or "com" or "jav" or ".co"
    i think the only way regex will work is if i group the entire thing into
    any ideas on how i can manipulate the string into a proper regex pattern so that itll find any of those "searches"
    thanks

    No, that is not correct. A regex can be constructed to return a match on anything you want. A single character, a newline character, a numeric character and any combination of them. There are limitless possibilities for pattern matching.
    See here:
    http://java.sun.com/j2se/1.4.1/docs/api/java/util/regex/Pattern.html
    Any of the patterns may be compiled into a regex for searching using the matcher.
    An alternative is to use the indexOf method of the string class to find what you are looking for.
    Example:
    String myString = "java.sun.com";
    String matchThis = "n.co";
    int patternFoundAtThisIndexPosition = myString.indexof(matchThis);patternFoundAtThisIndexPosition will be 7;
    or simply:
    int index = myString.indexof("sun");index will be 5;

Maybe you are looking for

  • Ipod nano compatibility with Nike+

    Hi there, I want to verify if the ipod Nano below will be compatible with the Nike+ sport package Thanks guys Joe Refurbished iPod nano, 4GB - GreenHolds up to 1,000 songs Up to 24 hours of music playback 1.41 ounces 3.5 x 1.6 x 0.26 inches Apple Ear

  • I restored my ipod touch now it wants to be connected to itunes but when I do it doesnt show up in itunes, what do I do?

    I just bought an ipod touch 1st gen, the battery was totally dead, when it was charged enough to turn on I did a total restore. Now there is a picture of the usb cord with the itunes symbol above it. I assume the means it wants me to connect it to it

  • Prevent internal hard drive from being unmounted?

    I have an XServe with two internal hard drives. The second hard drive is just for data storage. I have a work colleague who needs to get on this server periodically, using Apple Remote Desktop, to connect via afp to a second server in order to copy d

  • Pass variable to subreport

    I'm using SQL Server 2014 and Reporting Services and I've got a report containing a number of linked subreports. The main report I have will be different for each customer I produce the report for and will contain different text, but I need to pass a

  • Having problem with typing chinese in OS X Lion

    After installing OS X Lion, I am having problem with typing traditional chinese in my own account. Everytime I switch to traditional chinese the computer become extremely slow and the finally freezed. However, when I am using visitor account, I can t