OCR labview code-character bounding rectangle

NI didn't leak the codes and examples fully for Vision Assistant so I have to use the assistant whenever I train some characters.
I want to add the simple training routine to my main program.
As a start point, I would like to detect the character bounding rectangle of OCR object (like a red box of attachment) before reading a character set.
Is there any related vi for this work?
labmaster.
*)NI Read LCD/LED.vi didn't operate for my purpose. gave up after investing time and various camera.
Solved!
Go to Solution.
Attachments:
yahoo.png ‏9 KB

NI labview provided the code in OCR panel.

Similar Messages

  • How can i convert .gif/.bmp/.jpeg file to labview code(vi)?

    Hi,
    I am having a .gif file which consists of vi code. I want to convert that .gif file into vi & complile it. I am using LV 6.1 & 7 express. Is is possible?
    Reverse is surely possible like we can convert the vi diagram into .gif/.bmp file? But above i dont know?
    Your help will really appreciated.
    Best Regards,
    Nirmal

    If I understand your desire, it's to be able to convert a graphical image (bit map or screen photo, for example) into a functional block of LabView code, with all of the wire work done, etc. This is a task approximately equivalent to performing optical character recognition.
    In the case of a non-system subvi, unless that subvi is loaded, so that it's graphical representation can be recognized by comparing the bit-map image for the subvi on the photo with the available vi's.
    Another difficult problem to solve is when the bit-map has been scaled up or down, such that there's a pixel count mismatch between the VI iconic bitmap and the photographic bitmap you wish to import into your code diagram.
    And if you try to do recognition on objects that have h
    ad their RGB color representations changed, as can happen when JPG compression or other compression forms are used that reduce to total number of colors saved, that challenges the object recognition further.
    Also, what you're interested in having is only of value to Labview programmers, so there's not a very large market for such a tool to be sold to - unlike bitmaps of scanned text to ASCII or wordprocessor applications - traditional OCR software.
    All this ins't to say it can't be done, but that it's difficult, and for the person or company that undertakes it, the sales potential is limited.
    Regards,
    Bob Donnell

  • Incorrect bounding rectangle height after styling

    I am experiencing with incorrect bounding rectangle height when I set the background color for text in RichEditableText field. I have actually custom styled the RET field with following:
    lineHeight: 49;
    baselineShift: 11;
    firstBaselineOffset: lineHeight;
    verticalAlign: top;
    When I try to change the background color for certain range of text it doesn't cover the entire line height, although the selection covers the entire line height. Is there any way to increase the height of bounding rectangle or any other workaround to this please?

    1. I am able to return the TextFlowLine for each line in para but I have seen that some TextLine are marked as INVALID due to which I am unable to get their atom locations. I have tried to force the validity of TextLine to recreate the line but that doesn't work for some lines. Is there any work around to this?
    When the contents of the TextBlock are modified, the Flash runtime marks affected text lines, the previous line, and all following lines as INVALID. So I think you may want to get the lines
    [When you try to override TLF source code] after ContainerController.updateCompositionShapes 
    [When you just take advantage of offical TLF library] in the event handler of UpdateCompleteEvent.UPDATE_COMPLETE.
    2. The highlighter rectangle which I have created, have tried to placed it as a child element of TextLine. Due to this, the highlighter rectangle appear infront of the TextLine. I have tried to positioned it at 0 location using addChildAt but that doesn't seems to work. Is there any work around to this also please?
    In TLF code, we creat Shape as the child of the container to draw the selection, because TextLine is transparent.

  • Drawing character inside rectangle

    Hi!
    I have the following problem. I have a string and my task is to be able to draw every character of the string in every rectangle. For example I have a string:
    String = ("GCATCGCAGAGAGT");
    So now I will have 14 characters inside 14 rectangles. My question is how to do that? Please help me to solve it.

    This is my code. There's still error in it. It can not show the rectangle and also the characters. Could you fix my code? I am still a beginner in this field
    I am sorry if my code is not formatted as well, because I am a new comer in this forum. So please help me to solve my problem, I expecting a lot from you.
    /** Here is my code **/
    package brute_force;
    import javax.swing.*;
    import javax.swing.border.Border;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Container;
    import java.awt.Font;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    * BorderLayoutDemo.java
    public class BruteForceAnimation4 extends JPanel{
              /** Variable for drawing character inside rectangle **/
              private String[] mSourceString = {"G","C","A","T","C","G","C","A","G","A","G","A","G","T"};
              private String[] mPatternString = {"G","C","A","G","A","G","A","G"};
              /** This is variables to draw the rectangle **/
              private int xPosSource = 40;
              private int yPosSource = 100;
              private int xPosPattern = 80;
              private int yPosPattern = 80;
         /** constants for predefined colors */
         private static final Color lightBlue = new Color(153, 204, 255);
         public BruteForceAnimation4()
         super();
         public static void addComponentsToPane(Container pane) {
         JLabel lblTitle = new JLabel("Brute Force String Searching
    Algorithm", SwingConstants.CENTER);
         String bruteForceCode[] = {
         "int count = 0", //0
         "int m = mPattern.length();", //1
         "int n = mSource .length();", //2
         "outer:", //3
         " for (int i = 0; i <= n - m; ++i) {", //4
         " for (int k = 0; k < m; ++k) {", //5
         " if (mPattern.charAt(k) != mSource.charAt(i + k)) {", //6
         " continue outer;", //7
         " }", //8
         " }", //9
         " ++count;", //10
         " }", //11
         " return count;", //12
         "}" //13
         JList list = new JList(bruteForceCode); // a container for pseud code
         JButton cmdRun = new JButton("Run");
         JButton cmdStep = new JButton("Step");
         //Set the title of the applet
         lblTitle.setFont(new Font("Serif", Font.BOLD, 18));
         JPanel buttons = new JPanel();
         buttons.add(cmdRun);
         buttons.add(cmdStep);
         buttons.setBackground(lightBlue);
         //Set the size and border of list (JList component)
         Border etch = BorderFactory.createEtchedBorder();
         list.setBorder(BorderFactory.createTitledBorder(etch, "Brute Force
    Code"));
         JPanel listPanel = new JPanel();
         listPanel.add(list);
         listPanel.setBackground(lightBlue);
         list.setBackground(lightBlue);
         BruteForceAnimation4 border = new BruteForceAnimation4();
              pane.add(lblTitle, BorderLayout.NORTH);
         pane.add(border, BorderLayout.CENTER);
         pane.add(listPanel, BorderLayout.EAST);
         pane.add(buttons, BorderLayout.SOUTH);
         pane.setBackground(lightBlue);
         public void paintComponent(Graphics g)
         super.paintComponent(g);
         Graphics2D g2 = (Graphics2D) g;
         setBackground(lightBlue);
         drawSourceString(g2, mSourceString);          
    /** this is the method to draw character inside rectangles **/
    /** but it still wrong **/
         public void drawSourceString(Graphics2D g2,String[] mSource)
              if (mSource == null)
                   return;
              for (int i=0; i < mSource.length; i++)
                   g2.drawRect(xPosSource, yPosSource, 60, 40);
                   g2.drawString(mSource,40,40);                              
                   xPosSource += 30;
    //This is to count the length of the the Source
                   System.out.println("Your length" +mSource.length);
         public static void main(String[] args) {
         //Create and set up the window.
         JFrame frame = new JFrame("Brute Force Algorithm");
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         //Set up the content pane.
         addComponentsToPane(frame.getContentPane());
         //Use the content pane's default BorderLayout. No need for
         //setLayout(new BorderLayout());
         //Display the window.
         frame.pack();
              frame.setSize(800, 600);
         frame.setVisible(true);

  • How to integrate RFSG driver with sampling theorem labview code

    hi all, 
    I got the labview code of sampling theorem from labview-> find examples. How can I integrate this code with PXI system? How can I integrate the RFSG driver with labview code?

    Hi Nieman,
    LabVIEW 2014 should be compatible with the 9068 and the cRIO 2.1 drivers.  I verified it should work as expected earlier today.  Please make sure you are using the example cRIO PN-IO Device when you are moving the module over to the new target.  If you are already accessing that, please navigate to this folder:
    <Program Files>\National Instruments\LabVIEW 2014\Targets\NI\FPGA\cRIO\other
    Please let me know if you see a CS_cRIO-PNAD folder. This folder provides all the files necessary to discover and use the module in the project.  If we do not have that folder there, we will be unable to locate the module.  If that is indeed the case, then it may be the driver did not install correctly.  
    If after finding this folder and it is still not working, please send me screenshots of the error that you are seeing and a MAX Technical Report.  Thanks!
    Matt S.
    Industrial Communications Product Support Engineer
    National Instruments

  • I am trying to have some LabVIEW code called in a New thread exit when the testStand sequence terminates

    I have a Sequence that launches a sequence in a New Thread that happens to launch some LabVIEW code.  The problem is when the LabVIEW code finishes, it will not close even when the TestStand sequence terminates. Is there a way to tell this LabVIEW code to Exit, I've tried the Quit LabVIEW function, but that causes a C++ RunTime Error.  The LabVIEW code does end though, and it is set in the VI properties to:
    Checked - Show Front Panel When Called
    Checked - Close Afterwardds if originally closed
    The sequence call that the LabVIEW code is launched from has the following options:
    - New Thread
    Unchecked - Automatically wait for the thread to complete at the end of the current sequence
    Unchecked - Initially Suspended
    Unchecked - Use single threaded apartment
    Any clues on this would be appreciated.

    Hi ADL,
    Everything should close correctly if you check the checkbox "Automatically wait for the thread to complete at the end of the current sequence" in the thread settings.
    With it unchecked, I am seeing the behavior you are. 
    Gavin Fox
    Systems Software
    National Instruments

  • GPIB: I am having some problem in running Labview code properly.

    Hello,
    I have written a labview code to drvie my stepper motor (using GPIB function). This code is supposed to move
    the stepper motors and keep updating the current position of motors. I am having an unique problem. This code runs fine for trial no.1st, 3rd, 5th and so on. While it fails to update for trial no 2nd , 4th, 6th and so on.
    The main code is "motion_update_Final_Newport.vi". It will work for labview 7 as well as 7.1.
    You may not be able to run this code. However, you may be able to understand my error easily as I have figured out where is the error. The update is based on a function, which returns (string) 0 for motion not done and 1 for motion done. This value is diaplayed in "output 1" and works fine. However, "check 2" which is an indicator does not work for trial no 2nd , 4th, 6th and so on.
    If you go where I have "output 1", there is a while loop and "check 2" is an indicator for check. It remains on for trial no 2nd , 4th, 6th and so on.
    I am attaching the code and this is for ESP 300 motion controller Newport co. I am certain that some of you would be able to figure out the error without running the code.
    Thanx in advance,
    DushyantMessage Edited by Dushyant on 04-18-2005 04:43 PM
    Attachments:
    modified_Motion_Update_Final_7.zip ‏228 KB

    Thanks a lot for trying to help me.
    I am sure that I am not moving any subvi.
    Steps that I am trying to accomplish:
    (i) I am moving the stepper motors for a relative distance.
    (ii) Then I am trying to get the motor position after delay (ms) [defined in front panel].
    Now, how I am trying to accomplish:
    First outer stacked sequence:
    seq 0 of outer: This sets GPIB as controller in command (without this I was having trouble when I was combining this with photodiode code). Please avoid this seq.
    seq 1 of outer: The motor moves to certain relative distance. (I do not think that there is anything wrong here).
    seq 2 of sequence: This part does updates the motor coordinate after delay (ms). Inside this, there is a case structure to choose whether I want the update.
    If I want the update, then following steps take place inside the case structure:
    Inner stacked sequence:
    seq 0 of inner: [This is where I think that error is taking place] Inside this, There is a while loop which terminates when the "Motion Done?"
    function returns "1", else "0". Inside the flat sequence structure, first sequence "updates" the motor coordinate while second check
    whether the motion is done .
    Seq 1 of inner: Controller wait till motor stops.
    seq 2 of inner: The motor coordnate is updated for the last time.
    seq 3 of outer: It clears the GPIB.Message Edited by Dushyant on 04-19-2005 10:22 PM
    Attachments:
    Wait_Till_Motor_Stops.vi ‏13 KB

  • How to send data to labview code at run time while using with (or executing the sequence)the teststand

    Hello
    I am new to the Teststand.
    I am using labview8.0 with teststand 3.1
    I have developed some labview codemodules as vi's without using the teststand utility library pallete
    Now i have to run them in teststand.
    While executing them(as a sequence) in teststand,i need to enter the data to the labview code at run time.For this labview front panel should appear as GUI or popup (while executing).Is it possible to do this without using teststand pallete.
    or i need to change the code with teststand pallete(i think it is difficult now to change the code)
    Plz provide a solution to this problem
    Also one more,how and where to use the 'pass by reference' option
    Thanks and Regards
      Mudigondla

    Hi,
    see your other post http://forums.ni.com/ni/board/message?board.id=330&message.id=13914
    Also, you can, specify to display the front panel of your VI when you specify your VI in your sequence file.
    There are examples, for dialog panel using LabVIEW, in the examples folder of TestStand and on the NI Web Site.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • NI Motion Assistant LabVIEW Code Generation Error

    Hello, the following is my current setup:
    NI PCI-7334 motion control board
    NI UMI 7774 splitter board
    3 x NI P70530 Drives
    3 x NI CTP12ELF10MAA00 Stepper Motors
    3 x Power supply units for drives
    LabVIEW 2010
    NI Motion Assistant 2.6
    Motion and Automation Explorer 4.7
    I have built a three axis motion system that I am trying to configure with labview. After verifying that everything was set up correctly, I opened MAX, updated the firmware to my motion control board, and intitialized the controller. Since then, I have created many basic programs using the Motion Assistant Software to test the movement of my device. Everything works fine while using the Motion Assistant software (I have three axis movement, multidirectional control, and can perform various straight line and arc moves). My problems begin when I try to use the code generation feature.
    When trying to use the code generation feature to output a labview diagram, I run into a problem where a dialog box pops up and says "Find the vi named ...."
    Some examples of the names that come up are: Configure Vector Space.flx, Vector Space To Control.flx, Motion Error Handler.flx.
    To be clear the program in Motion Assistant that I am trying to export to LabVIEW code is composed of two individual steps. One that tells X,Y, and Z motors to move forward 25 revolutions, and one step that tells them to move backwards 25 revolutions.
    I have made many other programs in Motion Assistant that run fine, but I always receive similar errors when trying to use the code generation feature to export to LabVIEW. Is there something that I can do to solve my problem?
    Thank you for your help.

    Hi Joe,
    I am using Ni-Motion Assistant 2.6, Ni-Motion 8.1, and Motion and Automated Explorer version 4.7.
    The code I posted is supposed to tell Axis 1 to move 40 revolutions at 400 rpm. It works fine in Ni-Motion Assistant but when I try to generate a LabVIEW diagram I receive the following error, "Find the VI named 'Motion Error Handler.flx'". I have had it search my directory, as well as the disk that I installed both LabVIEW and Ni-Motion but no luck. Thanks for your help.
    Attachments:
    1111.vi ‏9 KB
    1 axis movement.zip ‏8 KB

  • Is there a tool to clean a directory structure of unused LabVIEW code?

    I could write this from scratch as follows:
    Load all of my LabVIEW code including dynamically-called VIs into memory, then list all these VIs.
    List all VIs in the directory structure I want to clean.
    For each VI in the directory structure that's not in memory, delete it. If this leaves that VI's parent directory empty, delete that parent directory.
    There is probably already a tool or VI that does this, but I can't find it. Does such a thing exist?

    bmihura,
    I to have had the need/desire to do this.  At my previous employer I wrote a tool that assisted with that function.  Unfortunately I no longer have access to that tool.  If you have a very big program you may have memory and speed related issues when you load "all the VI's into memory".  
    Good Luck
    WW
    Wire Warrior
    Behold the power of LabVIEW as my army of Roomba minions streaks across the floor!

  • Visual C/C++ code/Labview code for interfacing NI Hardware

    Hi,
     i need Visual C/C++ code/Labview code for interfacing NI Hardware and sample project example.

    Duplicate - http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Visual-C-C-code-Labview-code-for-interfacing-...
    You are just spamming now.

  • How i can generat VHDL or Verilog code from labview code

    how i can generat VHDL or Verilog code from labview code ( i have a labview code and i want to convert it to VHDL or Verilog code how i can do that )

    Mouath,
    There is no feature in LabVIEW to export your VIs as VHDL files. You are able to include your own HDL in your LabVIEW VI (using the HDL node). I encourage you to provide your feedback related to this issue at ni.com/contact. The product suggestion submitted are taken seriously and reviewed by National Instruments.
    Cheers,
    Jonah
    Applications Engineer
    National Instruments
    Jonah Paul
    Marketing Manager, Embedded Software
    Evaluate the LabVIEW RIO Platform! - ni.com/rioeval

  • How to use LabVIEW code in a Thesis?

    Hello,
    If I write some code, for example, in MATLAB or C++, that I want to include in my thesis as part of a discussion or in the Appendix, it's a fairly straightforward process: copy/paste
    However, this isn't really an option for LabVIEW code. Even a screen cap wouldn't work very well - especially for situations with case structures or nested SubVIs.
    I was wondering if anybody has any thoughts as to a good way to show / convey some of the work done in LabVIEW in a situation like this?

    Robber_Tom wrote:
    Hello,
    I was wondering if anybody has any thoughts as to a good way to show / convey some of the work done in LabVIEW in a situation like this?
    A former co worker of mine had a 50 page thesis, with 30 pages of print screen source code.  In my opinion LabVIEW source shouldn't be in a thesis, and for that reason I didn't have any in mine.
    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.

  • Hello sir,i need labview code for a code which is written in matlab,latter one is attached with this message.

    hello sir,i need labview code for a code which is written in matlab...
    clc;
    close all;
    clear all;
    Ez= zeros(1,200);
    Hy=zeros(1,200);
    Ca=1;
    Cb=.4519;
    n=1;
    while(n<1500)
    for k = 2:200
    Ez(k)=Ez(k) + Cb*(Hy(k)-Hy(k-1));
    end
    Ez(1)=1;
    for k=1:199
    Hy(k)=Hy(k)+Cb*(Ez(k+1)-Ez(k));
    end
    plot(Ez,'b')
    hold on
    plot(Hy,'r')
    hold off
    pause(0.001);
    n=n+1;
    end
    thanku

    Well, this code is quite trivial and if you have to learn LabVIEW anyway, you might as well try to implement it.
    A few things to remember:
    The first array element in LabVIEW has index #0, while in matlab it has index #1, so everything dealing with array indices needs to be adjusted slightly.
    The zeroes function equivalent is "initialize array".
    Keep the array in a shift register as you update elements.
    use FOR loops.
    Use one of the graphs to display the data.
    LabVIEW Champion . Do more with less code and in less time .

  • Labview code for closing the command window

    Hi,
    This is naveen.Actually we are using 3rd paty test software for our mobile hardware testing which creates an DOS or Command window after execution.We have automated to execute this software using labview.the problem we facing is that we couldn't run the test software unless we close or kill the dos window opened in the previous run.So i like to know whether you have any labview code for closing or killing the DOS window ,i request you help me in this regard.
    regards,
    Naveen 

    Use the System Exec VI Owning Palette: Libraries & Executables VIs and Functions.
    And take a look here http://www.tech-recipes.com/rx/446/xp_kill_windows_process_command_line_taskkill/
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

Maybe you are looking for

  • How to burn more than one file on the same dvd?

    I would like to burn more than one file in to the same dvd. It seems to me that using Finder I can burn only a file. There is some alternative command? Thank's

  • Upgrading 2 machines to SL - 1 of them has an external HD with Time Machine

    hello all. my setup and configuration are as follows: machine 1 (home computer): Mac mini with external HD (not partitioned) used by Time Machine for automatic backups. No Boot Camp partition. WinXP on Parallels 5 beta for occasional use. machine 2 (

  • Time Machine  Read Only Error

    My time Machine started throwing an error today: Files cannot be copied onto the backup disc because the drive appears to be read-only. I've found some info on this forum where people suggest to delete the sparsebundle, but when I go in FInder to Tim

  • Help! Need advice on how to upgrade to Windows 7 from Windows 7 Evaluation Copy: Build 7100

    I am on an HP Pavillion Media Center m8200m PC.  The computer came with Vista on it and did not come with any Vista operating system installation discs when I bought it.  I did make a set of two system recovery discs from this original Vista operatin

  • How do I combine scanned files?

         Unfortunately I am scanning hundreds of pages that are one file.  Often it pulls in more than one page meaning I have to rescan and it starts a new file.  I'd like to combine these pages in order but haven't determined how to do that yet.  Hopef