Electronic device and method for locating marked number in image of object
AssigneesHONG FU JIN PRECISION INDUSTRY (ShenZhen) CO., LTD., Hon Hai Precision Industry Co., Ltd.
InventorsChih-Kuang Chang, Xin-Yuan Wu, Wei-Quan Wu
Life of this patent
Estimating the term…
Abstract
A method for locating marked numbers in a two dimensional (2D) image of an object, a rectangular frame enclosing the 2D image is determined. The method divides a boundary of the rectangular frame into a plurality of segments, assigns an index number to each segment along a horizontal direction and a vertical direction of the rectangular frame. The method further obtains a marked number selected from a preset file, and locates a cursor on a first position of the marked number in the 2D image according to coordinates of the marked number, or locates the cursor on a second position of the marked number according to a horizontal index number and a vertical index number of the marked number.
Claims20
A computerized-implemented method for locating marked numbers in a two dimensional (2D) image of an object using an electronic device comprising a processor, the method being performed by execution of computerized instructions by the processor of the electronic device, the method comprising:
- obtaining the 2D image of the object from a storage device of the electronic device, and displaying the 2D image of the object on a display device of the electronic device;
- determining a rectangular frame enclosing the 2D image, dividing a boundary of the rectangular frame into a plurality of segments, and assigning an index number to each segment along a horizontal direction and a vertical direction of the rectangular frame;
- and
- obtaining a marked number selected from a preset file, and locating a cursor on a first position of the marked number in the 2D image according to coordinates of the marked number, or locating the cursor on a second position of the marked number according to a horizontal index number and a vertical index number of the marked number.
An electronic device, comprising:
- a storage device;
- at least one processor;
- and
- one or more modules that are stored in the storage device and executed by the at least one processor, the one or more modules comprising:
- an image obtaining module that obtains a two dimensional (2D) image of an object from the storage device;
- a rectangular frame creation module that determines a rectangular frame enclosing the 2D image, divides a boundary of the rectangular frame into a plurality of segments, and assigns an index number to each segment along a horizontal direction and a vertical direction of the rectangular frame;
- and
- a cursor locating module that obtains a marked number selected from a preset file, and locates a cursor on a first position of the marked number in the 2D image according to coordinates of the marked number, or locates the cursor on a second position of the marked number according to a horizontal index number and a vertical index number of the marked number.
A non-transitory storage computer-readable storage medium having stored thereon instructions that, when executed by a processor of an electronic device, causes the electronic device to perform a method for locating marked numbers in a two dimensional (2D) image of an object, the method comprising:
- obtaining the 2D image of the object from a storage device of the electronic device;
- determining a rectangular frame enclosing the 2D image, dividing a boundary of the rectangular frame into a plurality of segments, and assigning an index number to each segment along a horizontal direction and a vertical direction of the rectangular frame;
- and
- obtaining a marked number selected from a preset file, and locating a cursor on a first position of the marked number in the 2D image according to coordinates of the marked number, or locating the cursor on a second position of the marked number according to a horizontal index number and a vertical index number of the marked number.
Dependencies are inferred from the claim text.