Problem in the code for detecting the components on the PCB image.

I am working on a code to detect whether all the trained components are present on the PCB or not.
I am using the quantum camera and vision acquisition software in labview to capture the image of the PCB to be tested. Then the image is compared with the original PCB image which is having all components.
I had written the code and it is working only at some instances. I can't understand what the problem really was. Please help to know what the problem was and also help me by specifying the requirements like camera pixel, surrounding effects when the image was being captured, camera options like ZOOM, distance of the object from the camera.
Thank you

Hello,
for starters I suggest reading:
http://zone.ni.com/reference/en-XX/help/372916M-01​/nivisionconcepts/setting_up_your_imaging_system/
And in my opinion, you should (in the future) describe the problem more thoroughly and in detail. There is not enough information in your explanation.
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."

Similar Messages

  • [svn] 4634: First part of glue code for allowing Halo components to use the new Text Layout Framework , in order to get functionality such as bidirectional text.

    Revision: 4634
    Author:   [email protected]
    Date:     2009-01-22 17:38:56 -0800 (Thu, 22 Jan 2009)
    Log Message:
    First part of glue code for allowing Halo components to use the new Text Layout Framework, in order to get functionality such as bidirectional text.
    Background:
    TLF is making this possible by implementing a TLFTextField class. It is a Sprite that uses TLF to implement the same properties and methods as the legacy TextField class in the Player. Thanks to the createInFontContext() bottleneck method in UIComponent, it can be used by a properly-written Halo component (such as those in Flex 3) without any modifications to the component.
    Note: Text should render similarly -- but is unlikely to render identically -- when a component uses TLFTextField vs. TextField. The width and height may be different, affecting layout; text could wrap differently; etc. This is a fact-of-life based on the fact that TLF/FTE and TextField are completely different text engines.
    Whether a Halo component uses TLF or not to render text will be determined in Flex 4 by a new style, textFieldClass. (Gumbo components always use TLF.)
    TLFTextField is currently only partially implemented. It does not yet support scrolling, selection, editing, multiple formats, or htmlText. Therefore it can only be used for simple display text, such as a Button label.
    Details:
    The TextStyles.as bucket 'o text styles now includes a non-inheriting textFieldClass style. It can be set to either mx.core.UITextField or mx.core.UITLFTextField. These are the Flex framework's wrapper classes around the lower-level classes flash.text.TextField (in the Player) and its TLF-based workalike, flashx.textLayout.controls.TLFTextField.
    The global selector in defaults.css currently sets it to mx.core.UITextField using a ClassReference directive. For the time being, all Halo components will continue to use the "real" TextField.
    The new UITLFTextField is a copy of UITextField, except that it extends TLFTextField instead of TextField. This class has been added to FrameworkClasses.as because no classes in framework.swc have a dependency on it. It will get soft-linked into applcations via the textFieldClass style.
    The TLFTextField class currently lives in a fourth TLF SWC, textLayout_textField.swc. This SWC has been added to various build scripts. The external-library-path for building framework.swc now includes all four TLF SWCs, because UITLFTextField can't be compiled and linked without them. However, since they are external they aren't linked into framework.swc.
    Properly-written Halo UIComponents access their text fields only through the IUITextField interface, and they create text fields like this:
    textField = IUITextField(createInFontContext(UITextField));
    (The reason for using createInFontContext() is to support embedded fonts that are embedded in a different SWF.)
    The createInFontContext() method of UIComponent has been modified to use the textFieldClass style to determine whether to create a UITextField or a UITLFTextField.
    With these changes, you can now write code like
    to get two Buttons, the first of which uses UITextField (because this is the value of textFieldClass in the global selector) and the second of which uses UITLFTextField. They look very similar, which is good!
    Currently, both Buttons are being measured by using an offscreen TextField. A subsequent checkin will make components rendering using UITLFTextField measure themselves using an offscreen TLFTextField so that measurement and rendering are consistent.
    QE Notes: None
    Doc Notes: None
    Bugs: None
    Reviewer: Deepa
    Modified Paths:
        flex/sdk/trunk/asdoc/build.xml
        flex/sdk/trunk/build.xml
        flex/sdk/trunk/frameworks/projects/framework/build.xml
        flex/sdk/trunk/frameworks/projects/framework/defaults.css
        flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/TextStyles.as
    Added Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITLFTextField.as

    Many of your points are totally legitimate.
    This one, however, is not:
    …To put it another way, the design of the site seems to be geared much more towards its regular users than those the site is supposedly trying to "help"…
    The design and management of the forums for more than five years have driven literally dozens of the most valuable contributors and "regulars" away from the forums—permanently.
    The only conclusion a prudent, reasonable person can draw from this state of affairs is that Adobe consciously and deliberately want to kill these forums by attrition—without a the PR hit they would otherwise take if they suddenly just shut them down.

  • Problems with the background image in IE

    Hi I've been optimizing some pages for the different browsers in Dreamweaver CS4. They all work fine in Safari, Firefox and Opera, Internet Explorer is, however not showing the background image I have selected. I can't for the life of me see what's going wrong! Any help wopuld be appreciated. here is the code on my index page which I built from a template. I don't know if it's the editable areas that are going wrong!
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>test site</title>
    <!-- InstanceEndEditable -->
    <link href="oneColFixCtrHdr.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    body {
    background-repeat: repeat-x;
    background-image:url(file:///Macintosh HD/Users/me/Documents/websites/face_divorce/test/images/test_back.png);
    .oneColFixCtrHdr #container {
    width: 770px;
    margin: 0 auto;
    border: 0;
    padding: 0;
    .oneColFixCtrHdr #header {
    text-align: centre;
    border: 0;
    padding: 0;
    .oneColFixCtrHdr #header h1 {
    <img src="../images/test_logo.png"
    margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
    padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
    font-size: x-large;
    text-align: right;
    .oneColFixCtrHdr #mainContent {
    padding: 0;
    .oneColFixCtrHdr #footer p {
    margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
    padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    font-family: Verdana, Geneva, sans-serif;
    color: #6699cc;
    font-size: 9px;
    font-style: normal;
    line-height: normal;
    font-weight: lighter;
        text-align: center;
    -->
    </style>
    <!-- InstanceBeginEditable name="head" -->
    <meta name="Description" content="facedivorce.com.com is an online resource tool to help guide you through the various stages of divorce.  Simply click on before, during or after divorce to find everything you could ever need to do with divorce.
    " />
    </head><meta name="keywords" content="test
    " />
    <!-- InstanceEndEditable -->
    <body class="oneColFixCtrHdr">
    <div id="container">
      <div class="oneColFixCtrHdr" id="header">
        <table width="740" border="0" align="center">
          <tr>
            <td  border="0" height="38" ></td>
            <td align="right" valign="bottom"><!-- InstanceBeginEditable name="HeaderLinks" -->
              <p class="TextButtons"><a href="index.html" class="TextButtons">Home</a>   <a href="featuredcompany.html" class="TextButtons">Featured Company</a>   <a href="youngpeople.html" class="TextButtons">Young People</a>    <a href="andmore.html" class="TextButtons">And More</a>    <a href="blog/index.html" class="TextButtons">Blog</a></p>
            <!-- InstanceEndEditable --></td>
          </tr>
          <tr>
            <th height="48" align="left" valign="bottom">
    <h1><a href="index.html" title="test"><img src="images/test_logo.png" alt="test" width="245" height="46" border="0" align="left" /></a></h1>
    </th>
            <td align="right" valign="bottom"><!-- InstanceBeginEditable name="HeaderButtons" --><a href="#"><img src="images/facebook-logo.png" alt="FaceBook Button" width="48" height="48" border="0" align="bottom" /></a> <a href="#"><img src="images/twitter_square.png" alt="Twitter Button" width="48" height="48" border="0" align="bottom" /></a><a href="#"><img src="images/blogbutton.png" alt="Blog Button" width="49" height="47" border="0" align="bottom" /></a>    <!-- InstanceEndEditable --></td>
          </tr>
        </table>
        <!-- end #header -->

    Hi
    The fact you are using a Mac is why both myself and JCellini assumed you where using a pre IE7 version.
    But the code you are using to test in IE will cause a problem with any 'virtual machine' such as crossover, because it cannot reference anything outside its own assigned section of the drive, and referencing the png in the way you are would be for it an invalid reference, it also would not work in any browser when you uploaded the site.
    Change - background-image:url(file:///Macintosh  HD/Users/myname/Documents/websites/test/Test/images/test_back.png);
    To - background-image:url(images/test_back.png);
    But if the region is not editable I would suggest you temporarily make it so, externalize your css to a css file, insert a link to the external css file in your head content, then lock the region once again. This way you will always be able to edit your css without worrying about 'locked regions'.
    PZ
    www.pziecina.com

  • Problem creating T-Code for report(type Form-report)

    Hi all,
    Can T-Code be created for reports which are of type'form report '.
    Here is the problem in detail :-
    I have to use transaction 'CJE3' where four reports got created.These reports are  of type 'form report'.Currently I am not able to create the transaction for the reports in se93 transaction.
    Please advice on how I can create T-Code for these reports.
    Regards,
    Anirban

    Hi Dutta ,
    this report is created by Report painter for this Reports if u want to create tcode please follow the steps.
    se93 ---> take option parameter transaction .
    1.default valuse for transcation is START_REPORT
    2.skip initial Scree =  kich this one
    3.screen = 0.
    4.kich all GUI check boxes
    5.last one , u have to entry values like this
    D_SREPOVARI-REPORTTYPE =  report Type
    D_SREPOVARI-REPORT     = name of the report in the bottom scree.
    Regards
    Prabhu

  • Anyone else having problem getting promo code for $100 gift card??

    This is ridiculous.  I upgraded from an LG chocolate touch to the Thunderbolt and still have NOT gotten my promo code for $100 gift card.  Is this happening to anyone else?  I've called customer service to no avail.  I'm supposed to get a clal back this Sunday to see if the code came through yet.  This is the only reason I upgraded right now.  I am not a happy customer. 

    We upgraded my daughter's LG ENV3 to an Iphone on 08-18-11.  The salesman told us we'd be getting a promo code in 5 days by email or SMS.  Still hadn't seen it by the middle of September so we started calling customer service.  Over several hours, we spoke to five different people and received five different reasons why we either would get the code or wouldn't get the code, ranging from we didn't quality (false) to your email is rejecting the code that we've sent numerous times (also false). We were told that they could give us the code over the phone, but that particular person didn't know how and then we were told that the code could never be given over the phone.  I finally walked into the Verizon store where I bought the Iphone and got the manager on the case.  It took him 2 days talking to multiple people in Verizon, who I as a mere paying customer could not contact on my own, to finally get someone who was willing to send the code again (or was it being sent for the first time?).  That problem solver somewhere in the bowels of Verizon told me on Friday, Sept. 30th that I should be getting the email any minute and to keep checking and he would call me on Monday, Oct 3rd to make sure I received it (Big surprise he never called back on Monday).  On Saturday, Oct 1st I still hadn't received the email to either of the email addresses that he said he was sending it to so I started checking the boards here and realized that I was not alone in my misery. I took somebody's suggestion and sent a PM to on of the customer service people on this forum, explaining in detail my problem and still haven't received a response from her.  Needless to say, Daisy at Verizon won't be receiving any Kudos from me.  FInally, on Monday night I received an SMS with a working code  that was accepted by the trade-in website.  Hopefully, I get my $100 but I won't hold my breath.  I've been with Verizon for years and currently have five phone on my account.  I've had a variety of customer service experiences with them over the years, some very good and some not so good, but this $100 gift card has been a real eye opener in customer service ineptitude. 

  • There was a problem including the file images.asp in your message. Why?

    When I paste web info that includes images I get this message and if I continue the message is sent without the images. This has been going on for several months. Forwarding messages with images gets the same message and the images are not sent. This used to work.
    WLM has no problem with the same data.

    When I paste a page from PCWorld into my write window it is all there. I get the error when I send. The same scenario with WLM works fine. This only started with TB several months ago.
    My TB profile has been around for years thanks to Mozbackup. How could I get my Local Folders backed up then build a new TB from scratch and then import the Local Folders? All the other folders would take care of themselves Since my computers are all using IMAP.

  • Since i upgraded my ipad to 7.0.2 there is a problem with the  photo images are

    can any one help my ipad photographs are now low quality with the a serious problem with the colours, this has all happened since i upgraded to 7.0.2

    Do the filenames contain special characters, like "ä,ü,..." or white space or are the vry long? Is there anything special about the image format? Try to export the edited versions in that case and reimport it with a different, shorter filename.
    For testing, create a new book with only the images you want to check.
    If this does not fix it, try rebuilding. Depress the option and command keys, launch iPhoto and rebuild the library.

  • Problem with the RAW images from Canon 5d Mark III

    hope you are doing good. i need your opinion regarding a phenomena i am observing in the RAW images from Mark iii.
    The following images appear to be absolutely correct in the camera and when viewed through a picture viewer.
    I have tried and tested the following scenarios:
    1. Used a medium speed kingston CF Card (new) and transferred the images through the USB cable supplied with the camera.
    2. Thought the card might be slow OR faulty.. used Sandisk Extreme and Extreme Pro SD Cards but same result.
    3. Transferred SD Card data through the builit in laptop card reader.
    4. Have directly imported the images from SD Card into Lightroom 4.3, copied the data firstly to laptop HDD and then imported, copied the SD card data to an external HDD and then copied. .... same result!!
    5. Have tried the same with both Win7 and Mac OS.
    6. The DPP sw that came with the camera gives the error of 'Decoding Failed' with these images.
    Usually 10-15 images out of 100 give this kinda pattern. so i was hoping if you can guide me what is going wrong here !!!

    The camera and PictureViewer are likely showing you the embedded JPG, while DPP and LR are decoding the raw data which appears to be corrupted.  Assuming you have formatted your SD cards in the camera and the issues are always in the same positions in the same images when you transfer them multiple times from the card to different computers via different methods, then the data is on the card that way.
    If the embedded JPG is ok then the sensor is ok, so something between the sensor-readout and the storage on the card appears to be failing intermittently, and it’s time to talk to Canon, I think.

  • Problems with the background image size in a photobook

    Hi there, I really need help here. When I make a photobook I want to display my images large, taking the whole page. To do that I put the image as a background and it's OK. My problem is that when I do this, iPhoto always crops it. I have to use the move tool to move the image up and down, left or right to chose a best position. I don't want to do this, I want my image to be shown perfectly from end to end. I have to resize the image in many ways, even used the book's native resolution but it still doesn't work. If I choose "fit photo to frame size" I end up with two stripes at the top and the bottom of the page.
    Please help me, what size should I resize my image to, so that iPhoto displays it as it is?
    Thank you

    Hi
    The fact you are using a Mac is why both myself and JCellini assumed you where using a pre IE7 version.
    But the code you are using to test in IE will cause a problem with any 'virtual machine' such as crossover, because it cannot reference anything outside its own assigned section of the drive, and referencing the png in the way you are would be for it an invalid reference, it also would not work in any browser when you uploaded the site.
    Change - background-image:url(file:///Macintosh  HD/Users/myname/Documents/websites/test/Test/images/test_back.png);
    To - background-image:url(images/test_back.png);
    But if the region is not editable I would suggest you temporarily make it so, externalize your css to a css file, insert a link to the external css file in your head content, then lock the region once again. This way you will always be able to edit your css without worrying about 'locked regions'.
    PZ
    www.pziecina.com

  • Problems with html code for video

    Hello
    I followed this instructions to add my video:
    - Upload the files in Muse < Add Files for upload ( These would add the files to your assets )
    - Object > Insert HTML :
    <video width="320" height="240" controls>
    <source src="assets/video.mp4"/>
    </video>"
    My actual code is:
    <video width="720" height="576" controls>
    <source src="assets/Gelo.mp4"/>
    </video>
    And here's the problem when I preview:
    Can someone help? What's wrong?
    Thank you

    Hi
    Please check if the files are correctly added to your site, also the format should be supported by browser so you can check with different video formats.
    Thanks,
    Sanjit

  • Problem with 2 codes for same project

    i need help please, i have two C++ (colser to being C codes) on the same project,but VS does not allows them both to build solution,i asked my teacher and she told me that the VS running them together  and told me to run the separately,someone
    can please tell me how to do so? i need to do that until tomorrow`s night,please answer that ASAP. thanks for any help

    i need help please, i have two C++ (colser to being C codes) on the same project,but VS does not allows them both to build solution,i asked my teacher and she told me that the VS running them together  and told me to run the separately,someone
    can please tell me how to do so? i need to do that until tomorrow`s night,please answer that ASAP. thanks for any help
    A project can only have one main() function. If you have two, then name them (say) main1() and main2(). Then do something like
    int main()
    main1();
    main2();
    return 0;
    Or you can run just one of them by commenting out the call to the other.
    If something like this does not work for you, then you need to explain more about your code.
    David Wilkinson | Visual C++ MVP

  • Problems creating testing code for char[]

    I'm trying to create code to test other code i've written but i keep getting errors..
    This is the code i've written and it all looks ok with no errors
    public class myString
    private char[] a;
    public myString(char[] a){
    public void copy(){
            for (int i = 0; i < a.length-1; i++){
                char[] copy = new char[a.length];
                copy[i] = a;
    }*and this is the tester code*public class myStringTester
    public static void main(String[] args){
    char[] a = {'a', 'r', 'r', 'a', 'y'};
    myString.copy(a);
    }when i run this i get this error
    copy() in myString cannot be applied to (char[])
    help please
    Thanks in advance
    Edited by: Hackzor on Aug 27, 2008 5:02 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Umm, your code doesn't compile.
    You are trying to call a method, a static copy(char[]), which doesn't exist.

  • Ichat problems with -8 code for video and audio

    I'm trying to connect with the test sites you've provided.
    1) Have you done the Quicktime Streaming setting ?
    yes
    1.5mgs
    2) Are you running your Mac with the Firewall On ?
    Yes, ports are set, including 443 because I could only get on with 443, not 5190. Also, I have the ports set up in my modem with static IP to computer
    3) Did you upgrade from Panther ?
    no; bought computer with OS 10.4
    4) How are you connected to the internet ?
    Wireless DSL modem (Qwest)
    a) We need to know device make and Model ?
    Actiontech GT701-WG
    b) We need how you have opened the ports for iChat ?
    * Port Forwarding
    c) We need to know if you know if the device is in Bridge Mode ?
    no
    d) Do you have a router as well ?
    no
    5) Do you have any iChat Add-Ons ?
    no
    7) Does it have anything to do with connecting to a PC ?
    no
    8) List your Connection speed
    1536k

    If not Saving one by opening it with the Details options they are stored in Users/(your account)/Library/Logs/iChatConnectionErrors
    Check the Actiontec for any SPI or DOS setting.
    Also does it Block Anonymous pings from the internet ?
    8:20 PM Tuesday; December 4, 2007

  • Need code for dynamic insertion of a MIME object(image) into WebDynpro View

    Hi experts,
    I am attempting to insert an image into a view at runtime, using lines of code.
    I know that this code must be present in the WDDOMODIFYVIEW method of that particular view.
    However I am not sure about the lines of code which can do this. Can anyone please help me out with this........
    Thanks in advance,
    Adithya.

    Hi.,
    Yes you can add MIME at runtime ., Check this.,
    [MIME at run in WDA |Can mime object be created at run-time?;
    also ., [Display logo at runtime in WDA|Mime logo not displaying;
    hope this helps u.,
    Thanks & Regards
    Kiran

  • Displaying the .png image stored in an byte array

    Hi,
    I have to download an .png image from a server and i have to store it in a byte array and i have to display this byte array in another servlet. I have written the code to get the image from the remote server in a java class. The java class returns the byte array of the image and i have to display that in an servlet.
    If anybody has the code or any refrence to refer please help me..
    Thanks & Regards
    -Sandeep

    I have pasted code for servlet's doGet method which writes image data...
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws
    ServletException, IOException
    HttpSession session = request.getSession(); //taking httpsession
    response.setContentType("image/jpeg");
    ServletOutputStream out = response.getOutputStream(); //taking outputstream of response
    if (rtn.getErrorCode() == 0)
    //this will actually write image file data from where it is being called
    //byte array will contain image data, please load your image into below byte array variable
    byte[] b = new byte[100];
    out.write(b);
    out = null; //making null
    session = null; //making null
    In other servlet, write <img> tag and specify its src attribute to the "name of servlet where u have pasted above code" ..
    Regards,
    Nikhil

Maybe you are looking for

  • Database Performace Report

    Hi We are having many Oracle 10.2.0.3 instances on Unix and Windows . We donot have Enterprise Manager configured and we donot have licence for the diagnostic packs. Requirement : My manager wants a Graphical Report for each database intance showing

  • Making existing text read-only

    Hi    I need to make existing long text read-only in transaction MSC2N. But user should be able to enter new text. I didn’t find any user exits when the user goes to text editor in this transaction. I found a badi but it doest seem to work. Could you

  • Peoplecode compile error(wrong number of parameter)

    i am getting the below error when i click on "MAINTAIN ITEMS" under the navigation "ENTERPRISE LEARNING->CATALOG" in ELM. "PEOPLECODE COMPLIE ERROR(WRONG NUMBER OF PARAMETER(2,16)) FOR PROGRAM LECS.COMPONENTS.CATALOGITEMCOMMON.ONEXECUTE.(2,405). A PE

  • Rotation of a ResultSet - Urgent

    I have a ResultSet with 12 items... I wan�t to post themin a .jsp page in the following way. The first time it shows the first two of the ResultSet, after some time ( 10, 20 seconds) it will show the next two... Is there a way to do this?????

  • ICal 4.04 won't update upgraded MobilMe calendar

    Driving me crazy and the help topics just send you into an infinite loop without answering questions. I am on iCal 4.04 and have upgraded to the latest MobilMe calendar, pre-cursors I have been using for two years. Basically, MobilMe refuses to sync/