WO2004093433A1 - コード認識方法及び装置 - Google Patents

コード認識方法及び装置 Download PDF

Info

Publication number
WO2004093433A1
WO2004093433A1 PCT/JP2003/004783 JP0304783W WO2004093433A1 WO 2004093433 A1 WO2004093433 A1 WO 2004093433A1 JP 0304783 W JP0304783 W JP 0304783W WO 2004093433 A1 WO2004093433 A1 WO 2004093433A1
Authority
WO
WIPO (PCT)
Prior art keywords
cell
value
cells
threshold
dimensional code
Prior art date
Application number
PCT/JP2003/004783
Other languages
English (en)
French (fr)
Inventor
Hiroyuki Takakura
Hirotaka Chiba
Nobuyasu Yamaguchi
Tsugio Noda
Original Assignee
Fujitsu Limited
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Limited filed Critical Fujitsu Limited
Priority to PCT/JP2003/004783 priority Critical patent/WO2004093433A1/ja
Priority to AU2003227506A priority patent/AU2003227506A1/en
Priority to EP03717594A priority patent/EP1615420B1/en
Priority to JP2004570880A priority patent/JP4327101B2/ja
Priority to DE60328923T priority patent/DE60328923D1/de
Publication of WO2004093433A1 publication Critical patent/WO2004093433A1/ja
Priority to US11/119,782 priority patent/US7764835B2/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps
    • G06K7/1473Methods for optical code recognition the method including quality enhancement steps error correction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps
    • G06K7/1478Methods for optical code recognition the method including quality enhancement steps adapting the threshold for pixels in a CMOS or CCD pixel sensor for black and white recognition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/403Discrimination between the two tones in the picture signal of a two-tone original

Definitions

  • the present invention relates to a two-dimensional code recognition method and a two-dimensional code recognition method for reading and recognizing a two-dimensional code image input from an optical reading device such as a scanner or a CCD camera.
  • a two-dimensional code image input from an optical reader is binarized, and recognition processing is performed using the binarized image (see FIG. (See Figure 1 in Reference 2.) .
  • the recognition process is performed without performing the binarization process, the above problem cannot be solved by using the simple binarization method when determining the cell value. .
  • the time required for the recognition process is generally longer than the time taken to capture one image.
  • the number of images that can be displayed per unit time was reduced, and the function of the user interface was reduced.
  • the image is captured using a still image capturing control method.
  • the sensor sensitivity is artificially improved.
  • Patent Document 2 Japanese Patent Application No. 6-0 425 787 (Japanese Unexamined Patent Application Publication No. 7-254 037)
  • An object of the present invention is to convert a cell value accurately even when the optical resolution is low or a focus shift occurs, and a two-dimensional code that can read a two-dimensional code without reducing recognition accuracy. To provide a code reading method.
  • an object of the present invention is to improve the recognition processing speed per unit time, thereby increasing the number of images that can be displayed, and improving the function of the user interface.
  • Another object of the present invention is to provide a recognition device with improved recognition performance by capturing image data suitable for recognition even in a dark place.
  • a gradation value detection process for obtaining a tone value, a histogram creation process for generating a histogram by calculating the frequency of the color component of the image, a threshold detection process for obtaining a threshold value from the histogram, and a certain distance from the threshold value are obtained.
  • An area range determination process in which the specified area is set to a certain distance from the threshold, a cell selection process in which the gradation value is within the region range, and a cell in which the gradation value is outside the region range A cell value determining step of determining a cell type (white or black) based on a result of comparing a gradation value and a threshold value with respect to a cell selected in the out-of-area cell selecting step.
  • a first cell value determining step of determining a cell type different from that of an adjacent cell and a second cell value determining step of determining a cell type by comparing a cell of interest with a threshold value if all adjacent cells are not the same type.
  • FIG. 1 is a diagram showing processing blocks of a two-dimensional code recognition method according to the present invention.
  • 'FIG. 2 is a diagram for explaining a method of determining a threshold for cell determination.
  • FIG. 3 is a diagram (part 1) for explaining a method of determining a cell type by comparison with four neighboring cells or eight neighboring cells.
  • FIG. 3 is a diagram (part 2) for explaining the method.
  • FIG. 5 is a diagram for explaining 4 neighboring cells and 8 neighboring cells.
  • FIG. 6 is a diagram illustrating a method for determining a cell type according to the embodiment of the present invention.
  • FIG. 7 is a flowchart of a QR code recognition process.
  • FIG. 8 is a diagram showing a flow of the two-dimensional code recognition method according to the embodiment of the present invention.
  • FIG. 9 is a diagram showing a detailed flow of step S203 in FIG.
  • FIG. 10 is a diagram showing a detailed flow of step S304 in FIG.
  • FIG. 11 is a diagram showing a detailed flow of step S307 in FIG.
  • FIG. 12 is a diagram showing a detailed flow of step S308 in FIG.
  • FIG. 13 is a diagram illustrating pre-processing according to the embodiment of the present invention.
  • FIG. 14 is an explanatory diagram of another form of the preprocessing according to the embodiment of the present invention.
  • FIG. 15 is a flowchart showing the flow of the preprocessing.
  • FIG. 16 is a diagram for explaining an exposure time control method at the time of image capturing according to the embodiment of the present invention.
  • FIG. 17 is a diagram (part 1) illustrating a method of separating a two-dimensional code and a background color according to the embodiment of the present invention.
  • FIG. 18 is a diagram (part 2) illustrating a method for separating a two-dimensional code and a background color according to the embodiment of the present invention.
  • FIG. 1 is a diagram showing processing blocks of a two-dimensional code recognition method according to the present invention.
  • an image is read at 101 and the photoelectric conversion unit 1 At 02, photoelectric conversion is performed.
  • the 103 AZD converter converts an analog signal into a digital signal.
  • the two-dimensional code recognition processing unit 104 performs a two-dimensional code recognition process, and the data character output unit 105 outputs data characters obtained from the two-dimensional code recognition result.
  • a mobile terminal such as a mobile phone or a PDA is a target device.
  • This type of device which has a built-in camera for taking pictures, has become widespread. Recently, this camera has been used to read two-dimensional barcodes, capture recognized text data into the device, and send text data to the device. Techniques for simplifying input have been proposed.
  • one cell In a two-dimensional code image read from an optical device, one cell is composed of a plurality of pixels. Therefore, it is necessary to determine which type (white or black) each cell belongs to. First, the coordinate value of the cell of the code image is obtained, and the gradation component of the cell is obtained. The coordinate value is the center of the cell. Next, the type to which the cell belongs is determined by threshold processing of the gradation component of the cell.
  • a threshold value for determining to which type the cell belongs is determined.
  • FIG. 2 is a diagram for explaining a method of determining a threshold value for determining a cell.
  • a fixed threshold value (for example, when all light levels are low, the sensor sensitivity range is low, the gray level range is narrow, etc.) In this case, the threshold value is set to 1 in the middle question.
  • the conversion method cannot accurately convert the cell value. For example, when the light dose is small, the range of the gradation value is reduced to a low level as a whole, and "shading" and "crushing" occur.
  • Many 2D codes are represented by black and white binary values, so the histogram of the input image has two peaks in the bright area and the ⁇ area (see Fig. 2). By setting the center position between the peaks as the threshold, it is possible to perform optimal conversion processing without "blurring” or "crushing".
  • FIG. 3 and FIG. 4 are diagrams for explaining a method of determining a cell type based on comparison with four neighboring cells or eight neighboring cells.
  • the gradation value is pulled by the influence of the adjacent cells, and the threshold value is set.
  • the binarization method used alone cannot convert cell values accurately. For example, a white cell whose periphery is surrounded by black cells is reduced in gradation value due to the influence of the surrounding black cells, and may be erroneously determined as a black cell depending on the threshold value. Therefore, as shown in Fig. 3, the cell of interest is compared with the gradation value of the adjacent cell, and if the difference between the gradation values is equal to or more than a certain value, it is converted to a value different from that of the adjacent cell.
  • neighboring cells have both black and white values (not isolated points), the influence of neighboring cells is small. Only when all neighboring cells have the same value, the conversion process is performed as if it were an isolated point.
  • the tone values of the four adjacent cells around the center cell are 31, 40, 31, and 28, respectively. It is determined to be black. At this time, even if the gradation value of the center cell is equal to or less than the threshold value, if the adjacent cells are all black and the difference between the gradation values of the center cell and the adjacent cell is equal to or more than a certain value, the center cell is White. In the right side of FIG. 3, the tone values of the four neighboring cells are 231, 240, 240, and 228, respectively. If the threshold value is 128, all of the cells are determined to be white. Here, the gradation value of the center cell is 1 If the surrounding cells are all white and the difference between the gradation values of the surrounding cells and the surrounding cells is a certain value or more, the central cell is determined to be black.
  • the center cell is determined to be white.
  • seven of the eight neighboring cells are black and one is white.
  • the gradation value of the central cell is compared with the gradation value of the adjacent cell which is equal to or less than the threshold value. Conversely, when the center cell is surrounded by white, the center cell is similarly set to black.
  • the conversion processing can be performed accurately.
  • FIG. 5 is a diagram for explaining 4 neighboring cells and 8 neighboring cells.
  • four neighboring cells represent four cells horizontally and vertically adjacent to the center cell.
  • the neighboring cells in the vicinity of 8 represent neighboring cells obtained by adding four oblique directions to the vicinity of 4.
  • the cells in the oblique direction near 8 are farther from the center cell than the cells in the vicinity 4, so that the influence on the gradation value of the center cell is small.
  • FIG. 6 is a diagram illustrating a method for determining a cell type according to the embodiment of the present invention.
  • a certain range is set around the threshold value, and it is determined whether or not the gradation value of the cell is within the certain range. Change the method of determining the type.
  • the value of a cell that falls within the area range is determined by comparing it with the value of an adjacent cell as described above. Cells outside a certain area are classified into white and black by comparison with a threshold. Set a certain range of gray zones from the threshold This makes it possible to distinguish between cells that are likely to be affected by neighboring cells and cells that are not affected.
  • Fig. 6 although a certain range of area is set around the threshold value, if many isolated cells or adjacent cells have different values from the cell of interest, the gradation value of the cell of interest will be different Because it is pulled in the direction, the value is around the threshold. By setting an area within a certain range from the threshold value, cells that are affected by neighboring cells and cells that are not affected can be separated.
  • the value of the cell is determined by comparing with the threshold value.
  • the coordinate value of the cell in the image memory space is detected.
  • the tone value of the cell on the detected coordinates is obtained.
  • a histogram of the gradation components of the cells is created, and the threshold is determined.
  • An area with a certain width centered on the threshold is provided, and cells that are affected by adjacent cells and cells that are not affected are separated. Then, the value of the cell in the area is determined by comparing it with the adjacent cell. For cells outside the area, the value of the cell is determined by comparing it with the threshold.
  • the cell values can be accurately converted and the two-dimensional code can be read without lowering the recognition accuracy. It becomes possible.
  • the time required for the recognition process is generally longer than the time taken to capture one image.
  • the number of images that can be displayed per unit time decreases, To solve the problem that the function of the user interface has deteriorated, do the following.
  • Preprocessing means is provided to evaluate the possibility of recognition whether the target image contains a code, and actual recognition processing is performed only when the target can be determined to be a code based on the determination result of the preprocessing means. As a result, the number of recognition trials per unit time is increased, the recognition processing speed per unit time is apparently improved, and the number of images that can be displayed is improved, thereby improving the function of the user interface.
  • the preprocessing means determines the image characteristics of the one-dimensional and two-dimensional code areas, and performs recognition processing of the one-dimensional and two-dimensional codes based on the determination result, thereby automatically switching the recognition processing.
  • the two-dimensional code is characterized in that black and white dots are distributed at a ratio of about 50% and two-dimensionally. Therefore, the pre-processing that evaluates the small area (X, Y) of the image as a two-dimensional code area based on one or more features such as pixel gradation value variance, pixel black pixel ratio, and number of black and white edges (vertical and horizontal) It becomes possible.
  • the one-dimensional code has a feature that a vertical line having a certain length is composed of a plurality of combinations. Therefore, the pre-processing that evaluates the small area (X, Y) of the image as a one-dimensional code area based on one or more features of pixel gradation value variance, number of black and white edges (horizontal), and line correlation is performed. It becomes possible.
  • the image is captured using a still image capture control method.
  • multiple exposures of the images of multiple frames (generally referred to as kiss shirts) were carried out beyond the readout time of the image data of one frame of the sensor, and the images with the gradation were secured. .
  • kiss shirts On the other hand, multiple exposure of multiple frames resulted in images blurred due to movement, resulting in reduced code recognition performance. The following is the answer to this issue.
  • a recognition device with improved recognition performance by limiting the shooting time of the camera to within the data reading time of the camera and shooting image data suitable for recognition even in a large place.
  • the two-dimensional code consisted of white and black cells and N cells of white cells indicating the boundary of the two-dimensional code.
  • N cells of white cells indicating the boundary of the two-dimensional code.
  • it is configured to detect N cells of white cells following the black cell and extract a rectangular part connecting the detected boundaries as a 2D code area.
  • the two-dimensional code is a set of black and white cells that is meaningless to the user, so it was used by printing such as enclosing the border area with colors from the viewpoint of design. If the peaks of both peaks are determined by a simple fixed threshold or a histogram, and the black and white cells of the cell are determined by the determined threshold, the part outside the colored boundary area also becomes a black cell, and the two-dimensional code In some cases, the region could not be extracted. The following is a solution to this problem.
  • the threshold is determined by the black cell level determination process that determines the level range area on the ⁇ side of the mountain.
  • QR code will be described as an example of a two-dimensional code. Similar processing can be performed for other two-dimensional codes.
  • QR code recognition refer to the JIS standard "JISX0510: Two-dimensional code symbol Basic Specifications of One DOE ".
  • FIG. 7 is a flowchart of a QR code recognition process.
  • step S101 black / white cells are recognized.
  • step S102 the format information included in the QR code is decoded.
  • the format information is the type number of the QR code and the type of the mask that are encoded and described at the determined position of the QR code. This is decrypted in step S102.
  • step S103 the model number is determined from the read format information, and in step S104, the mask processing is canceled.
  • Mask processing means that when a QR code that is a two-dimensional code is generated, simply encoding the information will result in a two-dimensional code, where the distribution of black cells and white cells arranged on a two-dimensional surface is white. Side or black side. At this time, one of several predetermined masks is superimposed on the two-dimensional code to make the distribution of black cells and white cells uniform.
  • step S105 data and error correction code words are restored from the two-dimensional code obtained by canceling the mask processing.
  • step S106 it is determined whether or not the restored data has an error by using the error correction codeword. If it is determined in step S106 that there is an error, error correction is performed in step S107. If it is determined that there is no error, the flow proceeds to step S108, discarded.
  • step S108 the data code word is decoded. In step S109, the decoded data code word is output, and the process ends.
  • FIG. 8 is a diagram showing a flow of the two-dimensional code recognition method according to the embodiment of the present invention.
  • step S201 in order to obtain values of cells arranged as a pattern on a two-dimensional matrix from an image input from an optical device, an image Detects coordinate values of cells in memory space. For how to calculate the cell coordinates,
  • step S202 the tone value of the cell on the detected coordinates is determined.
  • step S203 the value of the cell is determined.
  • FIG. 9 is a diagram showing a detailed flow of step S203 in FIG.
  • step S301 the frequency of the gradation component of the cell is obtained, and a histogram is created.
  • a histogram may be created from the gradation components of the pixels included in the code area.
  • a threshold is determined. Scanning is performed from the left side of the histogram (), and the gradation component whose frequency is more than a certain value is detected, and the peak position of the region where the gradation component is low is obtained. Similarly, scanning is performed from the right side (bright), and tone components whose frequency is equal to or more than a certain value are detected, and a peak position in a region having a high tone component is obtained. Then, the midpoint between the two peak positions is determined and used as the threshold (see Fig. 2). In step S303, an area range is set.
  • n is a value not exceeding m.
  • step S304 cells are classified into cells within the area range and cells outside the area range.
  • steps S305 to S309 conversion processing of cells stored in the two-dimensional code is performed. Set the parameters below.
  • the parameter of d) is obtained in step S304.
  • step S305 it is determined whether the conversion process has been performed on all the cells.
  • step S306 the data is classified into two processes according to the value of flag [i]. If flag [i] is 1, the process proceeds to cell determination method 1 in step S307. If flag [i] is 0, the process proceeds to cell determination method 2 in step S308.
  • the cell that has proceeded to step S307 is a cell that is outside the area range on the histogram, and the value of the cell is determined by comparing it with a threshold value.
  • the cell that has proceeded to step S308 is a cell within the area range on the histogram, and the value of the cell is determined by comparing it with the adjacent cell.
  • step S309 the cell number is advanced by one, and the process proceeds to step S305.
  • the conversion process is performed on all the cells, the process ends.
  • FIG. 10 is a diagram showing a detailed flow of step S304 in FIG.
  • step S401 a cell number is initialized.
  • step S402 it is determined whether flag [i] has been obtained for all cells.
  • step S403 the gradation value of the cell is compared to determine whether the cell is inside or outside the area range.
  • step S404 0 is substituted for flag [i] if it is within the area range.
  • step S405 1 is assigned to flag [i] if it is outside the area range.
  • step S406 the cell number is advanced by one, and the process proceeds to the next.
  • FIG. 11 is a diagram showing a detailed flow of step S307 in FIG.
  • the cell on which the processing in FIG. 11 is performed is a cell outside the area range, and the value of the cell is determined by comparing it with a threshold.
  • step S501 the gradation value is compared with the threshold value.
  • step S502 if the gradation value is smaller than the threshold value, the cell value is set to black (0).
  • step S503 if the gradation value is larger than the threshold value, the cell value is set to white (255).
  • FIG. 12 is a diagram showing a detailed flow of step S308 in FIG.
  • the cell in which this processing is performed is a cell in the area range ⁇ , and the value of the cell is determined by comparing it with the adjacent cell.
  • ndata [i] gradation value of adjacent cell
  • rev_thresh If the number of neighboring cells is equal to or greater than this number, determine the type of center cell to a value different from that of neighboring cells.
  • step S601 parameters are initialized.
  • step S602 it is determined whether the values of all adjacent cells have been obtained.
  • step S603 it is determined whether the gradation value (ndataij]) of the adjacent cell exceeds the threshold.
  • the count of black is advanced by one in S604.
  • the count of white is advanced by one in S605.
  • step S606 the reference location of the adjacent cell is advanced by one, and if all the adjacent cells are determined, the process proceeds to the next process.
  • step S607 it is determined whether the number of neighboring cells is equal to or more than the threshold value and black.
  • step S608 if the number of blacks is equal to or greater than the threshold value, the cell of interest is determined to have a white value, and the process ends.
  • step S609 if the number of adjacent cells is equal to or greater than the threshold value, the cell of interest is determined to have a black value, and the process ends.
  • step S611 if the cell does not belong to either of them, the cell of interest is compared with a threshold to determine the value of the cell. If it is less than the threshold, it is black, and if it is more than the threshold, it is white.
  • the cell values can be accurately converted and the two-dimensional code can be read without lowering the recognition accuracy. It becomes possible.
  • FIG. 13 is a diagram illustrating pre-processing according to the embodiment of the present invention.
  • Pre-processing means for evaluating whether or not a target image contains a two-dimensional code should be provided, and actual recognition processing should be performed only when the target can be determined to be a two-dimensional code based on the judgment result of the pre-processing means.
  • increase the number of recognition trials per unit time and increase The recognition processing speed per hit is apparently improved, the number of images that can be displayed is also improved, and the function of the user interface can be improved.
  • step S700 when code recognition is started, an image for recognition is obtained in step S700.
  • step S701 a preview image is created, and the preview is presented to the user.
  • the acquired image is pre-processed in step S702, and in step S703, it is determined whether the image contains a code. If it is determined that the code is not included, an image for recognition is obtained again. If it is determined in step S703 that a code is included, a two-dimensional code recognition process is performed in step S704.
  • step S705 it is determined whether or not decoding has been successful. If it fails, the recognition image is acquired again. If the decoding is successful, in step S706, the decoding result is output and the code recognition ends.
  • the following processing is performed as preprocessing on the captured image, and only when those conditions are satisfied, it is determined that the two-dimensional code exists in the target image, and the recognition processing is performed.
  • the area is a two-dimensional code area. Note that 1, 1, / 32 and ⁇ are experimentally obtained in advance.
  • FIG. 14 is an explanatory diagram of another form of the preprocessing according to the embodiment of the present invention.
  • the same steps as those in FIG. 13 are denoted by the same reference numerals, and description thereof will be omitted.
  • Preprocessing means is provided to evaluate whether the target image contains one-dimensional and two-dimensional codes, and only when the target is determined to be a one-dimensional or two-dimensional code based on the judgment result of the preprocessing means, By performing the recognition processing, the number of recognition trials per unit time is increased, the recognition processing speed per unit time is apparently improved, and the number of images that can be displayed is also increased, and the function of the user interface is improved. Automatic recognition processing for 1D and 2D codes.
  • the following processing is performed as pre-processing on the captured image. Only when these conditions are satisfied, it is determined that the code exists in the target image, and the recognition processing is performed.
  • FIG. 15 is a flowchart showing the flow of the preprocessing.
  • step S800 it is determined whether or not the gradation value variance of the pixel value is out of the range. If it is out of the range, the result is output with no code in step S807, and the preprocessing is terminated.
  • step S 801 the number of horizontal edges is calculated. When the number is outside the range, the process proceeds to step S 807, and when it is within the range, the number of vertical edges is detected in step S 802. If the number of vertical edges is out of the range in step S 802, the process proceeds to step S 804. When the number of vertical edges is within the range, the black pixel ratio is detected in step S803. When the number of vertical edges is out of the range, the process proceeds to step S807. When the number is within the range, step S804 is performed.
  • step S805 the correlation between lines is obtained, and in step S805, it is determined whether or not there is a code. If it is determined in step S805 that there is no code, the process proceeds to step S807. If it is determined in step S805 that there is a code, in step S806, the result of determining whether the code is a one-dimensional code or a two-dimensional code is output, and the process ends.
  • FIG. 16 is a diagram for explaining an exposure time control method at the time of image capturing according to the embodiment of the present invention.
  • FIGS. 17 and 18 are diagrams illustrating a method of separating a two-dimensional code and a background color according to the embodiment of the present invention.
  • the two-dimensional code consisted of white and black cells and N cells of white cells indicating the boundary of the two-dimensional code.
  • N cells of white cells indicating the boundary of the two-dimensional code.
  • it is configured to detect N cells of white cells following the black cell and extract a rectangular part connecting the detected boundaries as a 2D code area.
  • the two-dimensional code is a set of black and white cells that is meaningless to the user, so it was used by printing, such as surrounding the border area with colors, from a design perspective.
  • the peak of the bimodal peak of the gradation value is obtained from the simple fixed threshold or the histogram, and the black and white cell of the cell is determined by the determined threshold. In some cases, the 2D code area could not be extracted at the time of judgment.
  • the threshold is determined by the above-described black cell level determination method (in FIG. 2, the threshold is set to the black cell level), which determines the level range area on the ⁇ side of the mountain.
  • FIG. 18 shows the relationship between the gradation value at the boundary of the two-dimensional code and the recognized cell.
  • the boundary can be correctly determined even when the boundary is not determined in the conventional example.
  • a two-dimensional area can be extracted correctly.
  • the present invention when the optical resolution is low or when the focus shifts, etc. However, it is possible to convert cell values accurately, and to read two-dimensional codes without lowering recognition accuracy.
  • the recognition processing speed per unit time by judging the preprocessing, the number of images that can be displayed is improved, and the function of the user interface is improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

画像の各セルの階調値から当該セルの色が白か黒かを決定する場合、当該セルの階調値が白あるいは黒に十分偏っている場合には、閾値との比較で決定するが、当該セルの階調値がグレーゾーンにあるときは、当該セルの周囲にあるセルのようすから当該セルの色を決定する。すなわち、当該セルの階調値がグレーで、周囲のセルが全て黒である場合には、当該セルは白であると判断し、周囲のセルが全て白である場合には、当該セルは黒であると判断する。

Description

明細書 コード認識方法及び装置 技術分野
本発明は、 スキャナや C C Dカメラ等の光学読み取り装置から入力した 2次 元コード画像を、 読み取り認識処理する 2次元コード認識方法と認識装置に関 する。 背景技術
従来の 2次元コード読み取り装置では、 光学読み取り装置から入力した 2次 元コード画像を 2値化処理し、 2値化した画像を用いて認識処理を行う (特許 文献 1の図 1 4や、 特許文献 2の図 1参照)。 .
光学機器より読み取った画像データを 2値データに変換した後、 認識処理を 行うには、 ある一定値以上の光学解像度がなければ、 データの歪みによる影響 から認、識精度が低下すると言った問題がある。 例えば、 4方もしくは 8方を種 類の異なるセルに囲まれた孤立セル (2次元コードにおいて、 黒い点や白い点 を構成している 1つの升目のことをセルという) は、 光学解像度が低い場合や ピントのずれ等が発生した場合に、 階調値が隣接セルに引っ張られるため、 異 なる値に変換される。 このような問題点は、 小型カメラを内蔵した携帯端末装 置にて、 内蔵小型カメラを使用して 2次元コードを読み取る場合、 光学装置が 小さいことから、 取り込める光量も少ない故、 顕著な課題となる。
また、 2値化処理を行わずに認識処理を進めたとしても、 セルの値を決定す る際に、 単純 2値化の手法を用いたのでは、 上記の問題を解決することはでき ない。 更に、 認識対象の 2次元コードに対して、 カメラ付きの認識装置を移動させ ながら、画像を撮影し、認識を行う場合、一般に画像 1枚の撮影時間に比較し、 認識処理に要する時間が長く、 その結果、 単位時間当たり表示できる画像の枚 数が低下することで、 ユーザインターフェースの機能が低下していた。 また、 このような場合、 画像の撮影は静止画像の撮影制御方法を用い、 特に、 暗い場 所ではセンサ感度を擬似的に向上させるため、 カメラの 1フレームの画像デー タ読み出し時間を超えて、 複数フレームに渡って画像を多重露光 (ロングシャ ッター) することで、 階調を確保した画像の撮影を行っていた。 一方、 複数フ レームに渡って多重露光することで、 動きに対してはボケた画像が撮影され、 その結果、 認、識性能が低下するという問題があった。
【特許文献 1】
特願平 6— 0 4 2 5 8 7号明細書 (特開平 7— 2 5 4 0 3 7号公報) 【特許文献 2】
特願平 8— 3 4 1 3 5 4号明細書 (特開平 1 0— 1 8 7 8 6 8号公報)
4方向もしくは 8方向を種類の異なるセル (白のセルと黒のセルなど、 階調 値の異なるセル) に囲まれた孤立セルは、 光学解像度が低い場合やピントのず れ等が発生した場合に、 階調値が隣接セルに引っ張られるため、 単純 2値化の 手法を用いただけでは、 セルの値を正確に変換できない問題が生じていた。 発明の開示
本発明の課題は、 光学解像度が低い場合やピントのずれ等が発生したとして も、 セルの値を正確に変換し、 認識精度を落とすことなく、 2次元コードの読 み取りが可能な 2次元コード読み取り方法を提供することである。
更に、 本発明の課題は、 単位時間当たりの認識処理速度を向上することで、 表示できる画像の枚数が向上し、 ユーザインターフェースの機能を向上し、 ま た、 暗い場所でも認識に適した画像データを撮影することで、 認識性能が向上 した認識装置を提供することである。
そして、 これらの課題は、 データをセル化して 2次元に配置した 2次元コー ドの認識において、 2次元マトリックス上のセルの座標値を検出する座標値検 出過程と、 検出した座標上の階調値を求める階調値検出過程と、 画像の色成分 の頻度を求めてヒス トグラムを作成するヒストグラム作成過程と、 ヒストグラ ムから閾値を求める閾値検出過程と、 閾値からある一定の距離を求め、 閾値か ら一定の距離までを指定領域とする領域範囲決定過程と、 階調値が領域範囲の 内に有るセルを選択する領域内セル選択過程と、 階調値が領域範囲の外に有る セルを選択する領域外セル選択過程と、 前記領域外セル選択過程において選択 したセルを、 階調値と閾値とを比較した結果から、 セルの種類 (白または黒) を決定するセル値決定過程と、 前記領域内セル選択過程において選択したセル を、 注目セルに隣接するセルの階調値を検出する隣接セル階調値検出過程と、 隣接するセルがすべて同じ種類で有れば、 注目セルを隣接セルと異なる種類に 決定する第 1のセル値決定過程と、 隣接するセルが全て同じ種類でなければ、 注目セルを閾値と比較してセルの種類を決定する第 2のセル値決定過程とを有 することを特徴とした 2次元コード認識方法により達成される。 図面の簡単な説明
図 1は、 本発明における 2次元コード認識方法の処理ブロックを示す図であ る。 ' 図 2は、 セルの判別のための閾値の決定方法を説明する図である。
図 3は、 4近傍もしくは 8近傍隣接セルとの比較によるセルの種類の決定方 法を説明する図 (その 1 ) である。
図 4は、 4近傍もしくは 8近傍隣接セルとの比較によるセルの種類の決定方 法を説明する図 (その 2 ) である。
図 5は、 4近傍隣接セル及び 8近傍隣接セルを説明する図である。
図 6は、 本発明の実施形態に従ったセルの種類の決定方法を説明する図であ る。
図 7は、 Q Rコードの認識処理フローである。
図 8は、 本発明の実施形態に従った 2次元コード認識方法のフローを示す図 である。
図 9は、 図 8のステップ S 2 0 3の詳細なフローを示す図である。
図 1 0は、 図 9のステップ S 3 0 4の詳細なフローを示す図である。
図 1 1は、 図 9のステップ S 3 0 7の詳細なフローを示す図である。
図 1 2は、 図 9のステップ S 3 0 8の詳細フローを示す図である。
.図 1 3は、 本発明の実施形態に従った前処理について説明する図である。 図 1 4は、 本発明の実施形態に従った前処理の別の形態の説明図である。 図 1 5は、 前処理の流れを示すフローチャートである。
図 1 6は、 本発明の実施形態に従った画像撮影時の露光時間制御方法を説明 する図である。
図 1 7は、 本発明の実施形態に従った 2次元コードと背景色の分離方法を説 明する図 (その 1 ) である。
図 1 8は、 本発明の実施形態に従った 2次元コードと背景色の分離方法を説 明する図 (その 2 ) である。 発明を実施するための最良の形態
図 1は、 本発明における 2次元コ一ド認識方法の処理ブロックを示す図であ る。
同図において、 1 0 1において画像の読み取りを行い、 光電変換部である 1 0 2において、 光電変換を行う。 1 0 3の AZD変換部においては、 アナログ 信号をデジタル信号に変換する。 2次元コード認識処理部である 1 0 4では、 2次元コードの認識処理を行い、 データ文字出力部 1 0 5において、 2次元コ 一ドの認識結果から得られたデータ文字を出力する。
なお、 本実施形態では、 特には、 携帯電話や P D A等の携帯端末を対象装置 とする。 この種の装置では、 写真撮影のためのカメラを内蔵したものが普及し ているが、 昨今、 このカメラを利用して 2次元バーコードを読み取り、 認識し たテキストデータを装置内に取り込み、 テキスト入力を簡易化させる技術が提 唱されている。
光学機器より読み取った 2次元のコード画像において、 1つのセルは複数個 の画素によって構成される。 そのため、 個々のセルが、 どの種類 (白もしくは 黒) に属するかを決定する必要がある。 まず、 コード画像のセルの座標値を求 め、 セルの階調成分を求める。 座標値はセルの中心とする。 次に、 セルの階調 成分の閾値処理等により、 どの種類に属するかを決定する。
次に、 セルがどの種類に属するかを判別するための閾値を決定する。
図 2は、 セルの判別のための閾値の決定方法を説明する図である。
光の照射量が少ない場合や、 センサ感度のレンジが低い場合等 (階調値のレ ンジ幅が狭い場合)、 固定閾値(例えば、全部の階調を 2 5 5個の階調値で表す とした場合、 閾値を中問の 1 2 8に設定する) による変換方式では、 セルの値 を正確に変換することができない。 例えば、 光の照射量の少ない場合には、 階 調値のレンジは全体的に低いレベルに下がり、 "かすれ"や "つぶれ"が発生す る。 2次元コードは白黒 2値で表現されたものが多く、 そのため入力画像のヒ ストグラムは明領域と喑領域に 2つの山が出来る (図 2参照)。その山の間の中 央の位置を閾値とすることで、 "かすれ"や "つぶれ"のない最適な変換処理を 行うことが可能となる。 図 3及ぴ図 4は、 4近傍もしくは 8近傍隣接セルとの比較によるセルの種類 の決定方法を説明する図である。
4方向もしくは 8方向の種類の異なるセルに囲まれた孤立セルは、 光学解像 度が低い場合やピントのずれ等が発生した場合に、 隣接セルの影響により階調 値が引っ張られ、 閾値を用いた 2値化の手法だけでは、 セルの値を正確に変換 できない。 例えば、 周辺を黒セルで囲まれた白セルは、 周辺の黒セルの影響に より階調値が引き下げられ、 閾値の値によっては、 黒セルと誤判別する場合が ある。 そこで図 3に示すように、 注目セルと隣接するセルの階調値との比較を 取り、 階調値の差がある一定以上であれば隣接セルと異なる値に変換する。 隣接セルが白黒両方の値を持つときには(孤立点ではない)、隣接セルの影響 は少ない。 隣接セルがすべて同一の値のときのみ、 孤立点とみなして変換処理 を行う。
8点近傍の隣接セルの影響は、 水平垂直方向の影響が大きく、 斜め方向の影 響は小さレ、。 しかし、 図 4に示すように、 左側の隣接セルのみ白で、 その他は すべて黒の場合には、 注目セルの階調値は黒方向に引き下げられる。 そこで 8 点近傍を用いる場合には、 隣接セルすべてが同じ値ではなくても、 例えば、 8 つの近傍隣接セルの内、 7つが同じ種類である場合には、 孤立点と同様の処理 を行う。
すなわち、 図 3左においては、 中心セルの周囲の 4つの隣接セルの階調値が それぞれ 3 1、 4 0、 3 1、 2 8であるので、 閾値を 1 2 8とした場合、 これ らは黒であると判断される。 このとき、 中心セルの階調値が閾値以下であって も、 隣接セルが全て黒であり、 中心セルと隣接セルの階調値の差がある一定以 上である場合には、 中心セルは白とする。 図 3右においては、 4近傍隣接セル の階調値がそれぞれ、 2 3 1、 2 4 0、 2 4 0、 2 2 8であり、 閾値を 1 2 8 とすると、 全て白と判断される。 ここで、 中心セルの階調値が 1 4 3で閾値よ り大きいとしたとき、 周りのセルが全て白であり、 周りのセルとの階調値の差 が一定値以上であれば、 中心セルは黒であると判断する。
図 4左においては、 8近傍隣接セルが全て黒である場合、 中心セルの階調値 が閾値以下であっても、 隣接セルが全て黒で (閾値以下で)、 かつ、 中心セルと 隣接セルとの階調値の差がある一定値である場合には、 中心セルは白と判断す る。 図 4右においては、 8近傍隣接セルの内、 7つが黒で、 1つが白となって いる。 この場合にも、 中心セルと閾値以下の隣接セルの階調値を比較し、 差が 一定値以上であれば、 中心セルは白とする。 逆に白に中心セルが囲まれた場合 にも、 同様にして、 中心セルを黒とする。
以上、 周囲を異なる種類のセルに囲まれた場合であっても、 正確に変換処理 を行うことが可能である。
図 5は、 4近傍隣接セル及び 8近傍隣接セルを説明する図である。
図 5に示すように、 4近傍の隣接セルは、 中心セルの水平垂直方向に隣接す る 4つのセルを表す。 また、 8近傍の隣接セルは、 4近傍に更に斜め 4方向を 加えた隣接セルを表す。
前述したように、 8近傍の斜め方向のセルは 4近傍のセルと比較し、 中心セ ルからの距離が遠いため、 中心セルの階調値に与える影響は小さレ、。
図 6は、 本発明の実施形態に従ったセルの種類の決定方法を説明する図であ る。
図 6に示すように、 階調値のヒストグラムにおいて、 閾値を中心として、 一 定範囲を設定し、 セルの階調値がこの一定範囲内に入っているか否かを判断す ることによって、 セルの種類の決定の仕方を変える。
図 6に示すように、 領域範囲の中になるセルは、 前述したように、 隣接セル の値と比較してセルの値を決定する。 一定の領域外にあるセルは、 閾値との比 較により白と黒に分別する。 閾値からある一定範囲のグレイゾーンを設定する ことで、 隣接セルの影響を受けていると思われるセルと、 影響を受けていない と思われるセルとに分別することができる。
図 6では、 閾値を中心として、 ある一定範囲の領域を設定しているが、 これ により、孤立セル、もしくは隣接セルの多くが注目セルと異なる値である場合、 注目セルの階調値は異なる方向に引っ張られるため、 閾値周辺の値となる。 閾 値からある一定範囲の領域を設定することで、隣接セルの影響を受けるセルと、 影響を受けないセルとに分別することができる。
そして、 領域範囲の外にあるセルは、 閾値と比較してセルの値を決定する。 隣接セルの影響を受けるセルと受けないセルに分別して処理を行うことで、 誤 りのない正確なセルの値を求めることが可能である。
以上をまとめる。
2次元マトリックス上にパターンとして配置されたセルの値を求めるため、 まず画像メモリ空間上のセルの座標値を検出する。 次に、 検出した座標上のセ ルの階調値を求める。 次に、 セルの階調成分のヒストグラムを作成し、 閾値を 決定する。 閾値を中心としてある一定幅の領域を設け、 隣接セルの影響を受け るセルと、 影響を受けないセルとに分別する。 そして、 領域内のセルは、 隣接 セルと比較してセルの値を決定する。 領域外のセルは、 閾値と比較してセルの 値を決定する。
以上の処理を行うことで、 光学解像度が低い場合やピントのずれ等が発生し た場合であっても、 セルの値を正確に変換処理し、 認識精度を落とすことなく 2次元コードの読み取りが可能となる。
更に、 本発明の実施形態では、 以下のような手段を施す。
認識対象のコードに対し、 カメラ付きの認識装置を移動させながら、 画像を 撮影し認識を行う場合、 一般に画像 1枚の撮影時間に比較し、 認識処理に要す る時間が長く、 その結果、 単位時間当たりに表示できる画像の枚数が低下し、 ユーザインターフェースの機能が低下していたという問題点に対し、 以下のよ うにする。
対象画像にコードが含まれるか認識の可能性を評価する前処理手段を設け、 前処理手段の判定結果で対象がコードと判定できた場合のみ、 実際の認識処理 を実施する。 この結果、 単位時間当たりの認識試行回数を増加させ、 単位時間 当たりの認識処理速度が見かけ上向上し、 更に、 表示できる画像の枚数が向上 することでユーザインターフェースの機能を向上する。
また、従来では、 1次元コードと 2次元コードを対象とする認、識の場合には、 対象のコードをユーザが判断し、 ユーザが認識処理自体を切り替えて実施して いた。 前記前処理手段で 1次元と 2次元コード領域の画像特徴を判定し、 判定 結果により 1次元と 2次元コードの認識処理を実行することで、 認識処理の自 動切り替えを行う。
2次元コードは白黒ドットが 5 0 %前後の比率で、 かつ、 2次元に分布して いる特徴がある。 そこで、 画像の小領域 (X、 Y) に対し、 画素階調値分散、 画素黒画素率、 白黒エッジ数 (縦横) の 1つ以上の特徴から 2次元コード領域 である評価を行う前処理が可能となる。
1次元コードはある長さを持つ縦線が複数の本数組合わさつて構成される特 徴がある。 そこで、 画像の小領域 (X、 Y) に対し、 画素階調値分散、 白黒ェ ッジ数(横)、 ライン相関の 1つ以上の特徴から 1次元コード領域である評価を 行う前処理が可能となる。
認識対象のコードに対し、 カメラ付きの認識装置を移動させながら、 画像を 撮影し、認識を行う場合、画像の撮影は静止画像の撮影制御方法を用い、特に、 暗い場所ではセンサ感度を擬似的に向上させるため、 センサの 1フレームの画 像データの読み出し時間を超えて、 複数フレームの画像を多重露光 (一般に口 ングシャツタと呼ぶ) することで階調性を確保した画像の撮影を行っていた。 —方、 複数フレームを多重露光することで、 動きに対してはぶれた画像が撮影 され、 その結果、 コードの認識性能が低下していた。 この問題に対しては、 以 下の通りとする。
カメラの撮影時間をカメラのデータ読み出し時間以内に限定することで、 喑 い場所でも認識に適した画像データを撮影することで、 認識性能が向上した認 識装置を提供する。
2次元コードは白と黒のセルと、 2次元コードの境界を示す Nセル分の白セ ルをもって構成されていた。 2次元コードの領域を抽出するためには、 黒セル に続く Nセル分の白セルを検出し、 検出した境界を連結した矩形部分を 2次元 コード領域として抽出することが出来るように構成されていた。
一方、 2次元コードはユーザには意味のない白黒のセルの集合のため、 デザ イン上の観点から境界領域の周りを色で囲むなどの印刷を行って使用されてい た。 単純固定閾値やヒストグラムにより双方の山のピークを求め、 決定した閾 値でセルの白黒セルを決定すると、 色の付いた境界領域の外側の部分も黒セル となり、 境界の判定時に 2次元コードの領域を抽出できない場合があった。 こ の問題に対しては、 以下の通りとする。
入力画像のヒス トグラムで喑領域、 明領域、 背景の中間領域と 3つの山が出 来る。 その山の喑側のレベル範囲領域を決定する黒セルレベル決定過程により 閾値を決定する。 決定した閾値でセル値を求め、 黒セルと非黒セルの連続長を 用いて、 コード境界を検出することで、 2次元コードの抽出を正しく行うこと が出来る。
以下、 より具体的に説明する。
ここでは、 2次元コードの例として Q Rコードを例にとって説明する。 他の 2次元コードに関しても、 同様の処理を行うことが出来る。 Q Rコード認識の 詳細は、 J I S規格 " J I S X 0 5 1 0 : 2次元コードシンボル一 Q Rコ 一ドー基本仕様 解説" を参照する。
図 7は、 Q Rコードの認識処理フローである。
ステップ S 1 0 1において、 黒/白セルの認識を行う。 本発明の処理の多く は、 このステップ S 1 0 1の詳細に関わる。 ステップ S 1 0 2においては、 Q Rコードに含まれている形式情報の復号を行う。 形式情報は、 Q Rコードの決 められた位置に符号化されて記述されている Q Rコードの型番号及びマスクの 種類である。これをステップ S 1 0 2では、復号する。ステップ S 1 0 3では、 読み取った形式情報から型番を決定し、 ステップ S 1 0 4においては、 マスク 処理の解除を行う。 マスク処理とは、 2次元コードである Q Rコードを生成す る場合、 情報を単に符号化しただけでは、 2次元コードとした場合、 2次元面 に配置される黒セルと白セルの配分が白側あるいは黒側に偏ってしまう。 この とき、予め定めれた幾つかのマスクの内の 1つを 2次元コードに重畳してやり、 黒セルと白セルの分布が均一になるようにするものである。
ステップ S 1 0 5においては、 マスク処理を解除して得られた 2次元コード からデータ及び誤り訂正コード語の復元を行う。ステップ S 1 0 6においては、 誤り訂正コード語を使用することによって、 復元されたデ一タに誤りがあるか 否かを判断する。 ステップ S 1 0 6において、 誤りがあると判断された場合に は、 ステップ S 1 0 7において、 誤り訂正を行い、 誤りがないと判断された場 合にはそのまま捨て S 1 0 8に進む。 ステップ S 1 0 8においては、 データコ —ド語の復号を行い、 ステップ S 1 0 9において、 復号されたデータコード語 を出力して、 処理を終了する。
図 8は、 本発明の実施形態に従った 2次元コード認識方法のフローを示す図 である。
ステップ S 2 0 1において、 光学機器より入力された画像から、 2次元のマ トリックス上にパターンとして配置されたセルの値を求めるため、 まず画像メ モリ空間上のセルの座標値を検出する。 セルの座標値の計算方法に関しては、
" J I S X 0 5 1 0 : 2次元コードシンボル一 Q Rコード一基本仕様 角? 説" に記載の手法を用いることとする。
ステップ S 2 0 2において、 検出した座標上のセルの階調値を求める。
ステップ S 2 0 3において、 セルの値を決定する。
図 9は、 図 8のステップ S 2 0 3の詳細なフローを示す図である。
ステップ S 3 0 1において、 セルの階調成分の頻度を求め、 ヒス トグラムを 作成する。 コード領域に含まれる画素の階調成分からヒストグラムを作成して も良い。
ステップ S 3 0 2において、 閾値を決定する。 ヒス トグラムの左側 (喑) か ら走査していき、 頻度がある一定値以上となる階調成分を検出し、 階調成分の 低い領域のピーク位置を求める。 同様に右側 (明) から走査していき、 頻度が ある一定値以上となる階調成分を検出し、 階調成分の高い領域のピーク位置を 求める。 そして、 2つのピーク位置の中間を求め、 閾値とする (図 2参照)。 ステップ S 3 0 3において、 領域範囲を設定する。
例えば、 図 2のヒス トグラムにおいて X軸に着目し、 階調値の低い領域にで きたピークと閾値との間を m分割し、 閾値から n Zm離れた位置を求める範囲 とする。 同様にして、 階調値の高い領域においても、 閾値から n Zm離れた位 置を求める範囲とする。 なお、 nは mを超えない値とする。
ステップ S 3 0 4において、 領域範囲内にあるセルと、 領域範囲外にあるセ ノレとに分別する。
次に、 ステップ S 3 0 5〜 S 3 0 9において、 2次元コードに格納されたセ ルの変換処理を行う。 以下にパラメータの設定を行う。
a ) data[i] :セルの階調値
b ) i:セノレ番号 c ) n : セルの総個数
d ) flag[i]:領域内か領域外かの判別 1 :領域外 0 :領域内
d ) のパラメータは、 ステップ S 3 0 4において求める。
ステップ S 3 0 5において、セル全てに対して変換処理を行ったか判別する。 ステップ S 3 0 6において、 flag[i]の値により、 2つの処理に分別する。 flag[i] が 1であれば、 ステップ S 3 0 7のセルの決定方法 1に進む。 flag[i]が 0であ れば、 ステップ S 3 0 8のセルの決定方法 2に進む。
ステップ S 3 0 7に進んだセルは、 ヒストグラム上の領域範囲外に有るセル で、 閾値と比較してセルの値を決定する。 ステップ S 3 0 8に進んだセルは、 ヒストグラム上の領域範囲内にあるセルで、 隣接セルと比較してセルの値を決 定する。
ステップ S 3 0 9において、 セル番号を 1つ進め、 ステップ S 3 0 5に進む。 全てのセルに対して変換処理を行えば、 処理を終了する。
図 1 0は、 図 9のステップ S 3 0 4の詳細なフローを示す図である。
同図のフローでは、 個々のセルが、 領域範囲内にある力領域範囲外にあるか を判別する。 全てのセルに対して判別を行い、 flag[i]の値を設定する。 以下に パラメータの設定を行う。他のパラメータに関しては a )〜 d ) と同様である。 e ) thresh 1 :領域範囲 階調値が低い領域の閾値
f ) thresh2:領域範囲 階調値が高い領域の閾値
ステップ S 4 0 1において、 セル番号を初期化する。
ステップ S 4 0 2において、セルすべてに対して flag[i]を求めたかを判別する。 ステップ S 4 0 3において、 セルの階調値を比較し、 領域範囲の内にあるか外 にあるかを判別する。
ステップ S 4 0 4において、 領域範囲の中に有れば flag[i]に 0を代入する。 ステップ S 4 0 5において、 領域範囲の外に有れば flag[i]に 1を代入する。 ステップ S 4 0 6において、 セル番号を 1つ進め、 次に進む。
全てのセルに対して flag[i]の値を求めれば、 処理を終了する。
図 1 1は、 図 9のステップ S 3 0 7の詳細なフローを示す図である。
図 1 1の処理を行うセルは、 領域範囲外にあるセルであり、 閾値と比較して セルの値を決定する。
ステップ S 5 0 1において、 階調値と閾値の値を比較する。
ステップ S 5 0 2において、階調値が閾値よりも小さければ、セルの値を黒(0 ) とする。
ステップ S 5 0 3において、階調値が閾値よりも大きければ、セルの値を白(2 5 5 ) とする。
セルの値は黒を 0、白を 2 5 5としたが、その他の値を用いてもかまわない。 図 1 2は、 図 9のステップ S 3 0 8の詳細フローを示す図である。
この処理を行うセルは、 領域範囲內にあるセルであり、 隣接セルと比較して セルの値を決定する。
なお、 各パラメータは以下の通りである。
j :隣接セル番号
k :隣接セルの個数
4近傍では k = 4
8近傍では k = 8
count— b :隣接セルの黒の個数
count— w :隣接セルの白の個数
ndata[i]:隣接セルの階調値
rev_thresh:隣接セルがこの個数以上あれば、隣接セルと異なる値に中心セル の種類を決定する。
ステップ S 6 0 1において、 パラメータの初期化を行う。 ステップ S 6 0 2において、 隣接セル全ての値を求めたか判別を行う。
ステップ S 6 0 3において、 隣接セルの階調値 (ndataij]) が閾値を超えてい るかを判別する。
閾値以下であれば、 S 6 0 4において黒のカウントを 1つ進める。
閾値以上であれば、 S 6 0 5において白のカウントを 1つ進める。
ステップ S 6 0 6で隣接セルの参照個所を 1つ進め、 全ての隣接セルを決定す れば次の処理に進む。
ステップ S 6 0 7において、 隣接セルが閾値以上個数黒であるかを判別する。 ステップ S 6 0 8において、 閾値以上個数黒であれば、 注目セルを白の値に決 定し、 処理を終了する。
ステップ S 6 0 9において、 隣接セルが閾値以上個数白であれば注目セルを黒 の値に決定し、 処理を終了する。 ステップ S 6 1 1において、 どちらにも属さ なければ、 注目セルを閾値と比較して、 セルの値を決定する。 閾値以下であれ ば黒とし、 閾値以上であれば白とする。
以上の処理を行うことで、 光学解像度が低い場合やピントのずれ等が発生し た場合であっても、 セルの値を正確に変換処理し、 認識精度を落とすことなく 2次元コードの読み取りが可能となる。
図 1 3は、 本発明の実施形態に従った前処理について説明する図である。 認識対象の 2次元コードに対し、 カメラ付きの認識装置を移動させながら、 画像を撮影し、 認識を行う場合、 一般に、 画像 1枚の撮影時間に比較して認識 処理に要する時間が長く、 その結果、 単位時間当たりに表示できる画像の枚数 が低下することでユーザィンターフェースの機能が低下していた。
対象画像に 2次元コードが含まれるか否かを評価する前処理手段を設け、 前 処理手段の判定結果で対象が 2次元コードと判定できた場合にのみ、 実際の認 識処理を実施することで、 単位時間当たりの認識試行回数を増加させ単位時間 当たりの認識処理速度が見かけ上向上し、 表示できる画像の枚数も向上し、 ュ 一ザインターフェースの機能を向上できる。
図 1 3においては、 コード認識を開始すると、 認識用画像をステップ S 7 0 0において取得する。 ステップ S 7 0 1では、 プレビュー画像を作成し、 プレ ビューをユーザに提示する。 取得された画像は、 ステップ S 7 0 2において、 前処理され、 ステップ S 7 0 3において、 画像にコードが含まれているか否か を判断する。 コードが含まれていないと判断された場合には、 再び、 認識用画 像の取得を行う。 ステップ S 7 0 3でコードが含まれていると判断された場合 には、 ステップ S 7 0 4において、 2次元コード認識処理を行う。 ステップ S 7 0 5では、デコードに成功したか否かを判断する。失敗した場合には、再び、 認識用画像の取得を行う。 デコードに成功した場合には、 ステップ S 7 0 6に おいて、 デコード結果を出力して、 コード認識を終了する。
撮影した画像に対して、 前処理として以下の処理を行い、 それらの条件を満 足した場合のみ、 対象の画像に 2次元コードが存在するものと判断し、 認識処 理を実施する。
前処理:撮影画像の小領域 (X X Y画素) に対し、
•画素の階調値分散 (コントラス ト) 〉 α
- β 1 <画素の黒画素率 < β 2
- 白黒エッジ数 (縦横方向) > Ί
の条件を満足する場合に 2次元コード領域と判定する。 なお、 ひ、 1 , /3 2、 Τは、 予め実験的に求めておく。
図 1 4は、 本発明の実施形態に従った前処理の別の形態の説明図である。 なお、 同図において、 図 1 3と同じステップには同じ符号を付し、 説明を省 略する。
更に、 従来では、 1次元コードと 2次元コードを対象とする場合には、 対象 のコードをユーザが判断し、 ユーザが認識処理を切り替えて実施していた。 対 象画像に 1次元と 2次元コードが含まれるか否かを評価する前処理手段を設け、 前処理手段の判定結果で対象が 1次元、 2次元コードと判定できた場合にのみ、 実際の認識処理を実施することで、単位時間当たりの認識試行回数を増加させ、 単位時間当たりの認識処¾速度が見かけ上向上し、 表示できる画像の枚数も^] 上し、 ユーザインターフェースの機能を向上できるとともに、 1次元と 2次元 コードに対して自動の認識処理が実現できる。
撮影した画像に対し、 前処理として以下の処理を行い、 それらの条件を満足 した場合のみ、 対象の画像にコードが存在するものと判断し、 認識処理を実施 する。
前処理:
撮影画像の小領域 (X X Y画素) に対し、
2次元コード
■画素の階調値分散 (コントラスト) > ひ
· /3 1 <画素の黒画素率 < β 2
• 白黒エッジ数 (縦横共) > Ί
1次元コード
-画素の階調値分散 (コントラスト) > α
■ 白黒エッジ数 (横) 〉 Θ
· ライン相関 =相関ピーク位置がライン間で同一
の場合に 2次元、 1次元コード領域と判定
図 1 3の場合と同様に、 α、 β 1、 β 2 , γ、 0等は、 実験的に最適な値を IX ALし飞 \
図 1 5は、 前処理の流れを示すフローチャートである。
まず、 ステップ S 8 0 0において、 画素値の階調値分散が範囲外か否かを判 断し、 範囲外の場合には、 ステップ S 8 0 7でコード無し結果出力を行い前処 理を終了する。ステップ S 8 0 1では、横エッジ数を計算し、範囲外の時には、 ステップ S 8 0 7へ、 範囲内の時には、 ステップ S 8 0 2において縦エッジ数 を検出する。 ステップ S 8 0 2において、 縦エッジ数が範囲外の場合には、 ス テツプ S 8 0 4に進む。 縦エッジ数が範囲内の時は、 ステップ S 8 0 3におい て、 黒画素率を検出し、 範囲外の時は、 ステップ S 8 0 7に進み、 範囲内の時 は、 ステップ S 8 0 4に進む。 ステップ S 8 0 4では、 ライン間相関を取り、 ステップ S 8 0 5において、 コードがあるか否かを判断する。 ステップ S 8 0 5で、 コード無しと判断された場合には、 ステップ S 8 0 7に進む。 ステップ S 8 0 5で、 コード有りと判断された場合には、 ステップ S 8 0 6において、 1次元コードか 2次元コードかの判定結果を出力し、 処理を終了する。
図 1 6は、 本発明の実施形態に従った画像撮影時の露光時間制御方法を説明 する図である。
従来の場合、 認識対象の 2次元コードに対し、 カメラ付きの認識装置を移動 させながら、 画像を撮影し、 認識を行う場合、 画像の撮影は静止画像の撮影制 御方法を用い、 特に、 暗い場所では、 センサ感度を擬似的に向上させるため、 センサの 1枚の画像データの読み出し時間を超えて、 複数フレームの画像を多 重露光 (ロングシャッター) することで、 階調を確保した画像の撮影を行って いた。 一方、 複数フレームを多重露光することで、 動きによってボケた画像が 撮影され、 その結果、 認識性能が低下していた (図 1 6参照:従来の露光時間 制御)。
本発明の実施形態においては、 カメラの露光時間をカメラの 1フレームの駆 動時間以内に限定することで (図 1 6参照:本発明の露光時間制御)、 暗い場所 でも認識に適した動きに追従出来るボケのない画像データを撮影することで、 認識性能が向上した認識装置を提供する。 図 1 7及び図 1 8は、 本発明の実施形態に従った 2次元コードと背景色の分 離方法を説明する図である。
2次元コードは白と黒のセルと、 2次元コードの境界を示す Nセル分の白セ ルをもって構成されていた。 2次元コードの領域を抽出するためには、 黒セル に続く Nセル分の白セルを検出し、 検出した境界を連結した矩形部分を 2次元 コード領域として抽出する事が出来るように構成されていた。
一方、 2次元コードはユーザには意味のない白黒のセルの集合のため、 デザ イン上の観点から境界領域の周りを色で囲むなどの印刷を行って使用されてい た。単純固定閾値やヒストグラムにより階調値の双峰形状の山のピークを求め、 決定した閾値でセルの白黒セルを決定すると、 色のついた境界領域の外側の部 分も黒セルとなり、 境界の判定時に 2次元コードの領域を抽出できなレ、場合が あった。
図 1 7に示すように、 入力画像のヒストグラムで喑領域、 明領域、 背景の中 間領域と 3つの山が出来る。 そこで、 その山の喑側のレベル範囲領域を決定す る、 前述したような黒セルレベルの決定方法 (図 2において、 閾値を黒セルレ ベルに設定する) により閾値を決定する。 決定した閾値でセル値をもとめ、 黒 セルと非黒セルの連続長を用いてコード境界を検出することで、 2次元コード の抽出を正しく行うことが出来る。
図 1 8では、 2次元コードの境界部分の階調値と認識されたセルの関係を示 している。 従来例では境界と判定されない場合でも、 本発明により、 境界の判 定が正しく行うことが出来る。 検出された境界を連結して、 矩形領域を切り出 すことで、 2次元領域の抽出を正しく行うことが出来る。 産業上の利用可能性
本発明により、 光学解像度が低い場合やピントのずれ等が発生した場合にお いても、 セルの値を正確に変換することが可能であり、 認識精度を落とすこと なく、 2次元コードの読み取りが可能となる。
本発明の認識方法を用いることで、 認識精度の高い 2次元コード読み取り装 置を提供することが可能である。
更に、単位時間当たりの認識処理速度を前処理の判定により向上することで、 表示できる画像の枚数が向上し、 ユーザィンターフェースの機能を向上する。 また、 暗い場所でも認識に適した画像データを撮影することで、 認識性能が向 上した認識装置を提供することが可能である。

Claims

請求の範囲
1 . データをセル化して 2次元に配置した 2次元コードの認識において、 注目セル上の座標を検出する座標検出過程と、
検出した座標の階調値を求める階調値検出過程と、
検出した階調値から注目セルの値を決定するセル値決定過程と、
を有することを特徴とする 2次元コード認識方法。
2 . データをセル化して 2次元に配置した 2次元コードの認識において、 注目セルの階調値を求める階調値検出過程と、
画像の階調値の頻度を求めてヒストグラムを作成するヒストグラム作成過程 と、
ヒストグラムの中で、 ある一定値以上かつ最も明側に有る階調値を求める第 1の階調値検出過程と、
ヒス トグラムの中で、 ある一定値以上かつ最も暗側にある階調値を求める第 2の階調値検出過程と、
前記第 1及び第 2の階調値検出過程で求めた階調値の中央を所定の閾値とす る閾値検出過程と、
注目セルの階調値と前記閾値とを比較し、 注目セルの種類を決定すること、 を特徴とする 2次元コード認、識方法。
3 . 注目セルと隣接セルの階調値とを比較する階調値比較過程と、
階調値比較過程結果に基づいて注目セルの値を決定するセル値決定過程と、 を有することを特徴とする 2次元コード認識方法。
4 . 注目セルと隣接セルの階調値とを比較する階調値比較過程と、
隣接セルと閾値とを比較する隣接セル閾値比較過程と、
階調値比較過程かつノまたは隣接セル閾値比較過程により、 隣接セルの種類 を決定する隣接セル決定過程と、
隣接するセルがすべて同じ種類、 または、 ある一定個数以上同じ種類であれ ば、 注目セルを隣接セルと異なる種類に決定すること、
を特徴とする 2次元コード認識方法。
5 . 前記隣接セルは、
X方向かつ y方向に 4つのセルを選択すること、
を特徴とする請求項 3または 4に記載の 2次元コード認識方法。
6 . 前記隣接セルは、
X方向かつ y方向に 8つのセルを選択すること、
を特徴とする請求項 3または 4に記載の 2次元コード認識方法。
7 . セル値決定過程は、
前記一定の領域範囲に対して階調値が範囲内にあるセルのみに作用させるこ とを特徴とする請求項 3または 4に記載の 2次元コード認識方法。
8 . セル値決定過程は、
前記ヒストグラム作成過程及び前記閾値検出過程において検出した閾値に対 し、
閾値を含み、 かつ、 明側と喑側の所定の閾値まで一定の領域範囲にあるセル のみに作用させることを特徴とする請求項 3または 4に記載の 2次元コード認 識方法。
9 . セル値決定過程は、
前記一定の領域範囲に対して階調値が範囲外にあるセルを選択し、 選択したセルを閾値と比較してセル値を決定すること、
を特徴とする 2次元コード認識方法。
1 0 . データをセル化して 2次元に配置した 2次元コードの認識において、 セルの座標値を検出する座標値検出過程と、
検出した座標上の階調値を求める階調値検出過程と、
画像の階調値の頻度を求めてヒストグラムを作成するヒストグラム作成過程 と、
ヒストグラムから閾値を求める閾値検出過程と、
閾値からある一定の距離を求め、 閾値から一定の距離までを指定領域とする 領域範囲決定過程と、
階調値が領域範囲の内に有るセルを選択する領域内セル選択過程と、 階調値が領域範囲の外にあるセルを選択する領域外セル選択過程と、 前記領域外セル選択過程において選択したセルを、 階調値と閾値とを比較し た結果から、 セルの種類を決定するセル値決定過程と、
前記領域内セル選択過程において選択したセルを、 注目セルに隣接するセル の階調値を検出する隣接セル階調値検出過程と、
隣接するセルが全て同じ種類で有れば、 注目セルを隣接セルと異なる種類に 決定する第 1のセル値決定過程と、
隣接するセルがすべて同じ種類でなければ、 注目セルを閾値と比較して競る の種類を決定する第 2のセノレ値決定過程と、 を有することを特徴とする 2次元コード認識方法。
1 1 . カメラから画像を入力し、 コードの認識を行う認識装置において、 コードらしさを判定する複数手段を有する前処理手段を設け、
前記前処理手段の判定結果が否である場合に入力画像の更新処理を即時実行 すること、
を特徴とするコード認識装置。
1 2 . 前記前処理手段は、
1次元と 2次元コ一ド領域の画像特徴を判定し、 判定結果により 1次元と 2 次元コードの認識処理を実行すること、
を特徴とするコード認識装置。
1 3 . 前記前処理手段は、
画像の小領域に対し、 画素階調値分散、 画素黒画素率、 白黒エッジ数の 1つ 以上の結果に基づいて 2次元コードであるか否かを判定すること、
を特徴とする 2次元コード認識装置。
1 4 . 前記前処理手段は、
画像の小領域に対し、 画素階調値分散、 白黒エッジ数、 ライン相関の 1っ以 上の結果に基づいて 1次元コードであるか否かを判定すること、
を特徴とするコード認識装置。
1 5 . カメラから画像を入力し、 コード認識を行う認識装置において、 該カメラの露出時間が該カメラの 1フレームの周期を超えないこと、 を特徴とするコード認識装置。
1 6 . 画像の階調値の頻度を求めてヒストグラムを作成するヒストグラム作成 過程と、
前記ヒストグラム作成過程の結果を用いて喑側のレベル範囲領域を決定する 黒セルレベル決定過程とを有し、
前記黒セルレベル決定過程で求めた黒セルと非黒セルの連続長を用いてコ一 ド境界を検出すること、
を特徴とする 2次元コード認、識方法。
PCT/JP2003/004783 2003-04-15 2003-04-15 コード認識方法及び装置 WO2004093433A1 (ja)

Priority Applications (6)

Application Number Priority Date Filing Date Title
PCT/JP2003/004783 WO2004093433A1 (ja) 2003-04-15 2003-04-15 コード認識方法及び装置
AU2003227506A AU2003227506A1 (en) 2003-04-15 2003-04-15 Code recognizing method and device
EP03717594A EP1615420B1 (en) 2003-04-15 2003-04-15 Code recognizing method and device
JP2004570880A JP4327101B2 (ja) 2003-04-15 2003-04-15 コード認識方法及び装置
DE60328923T DE60328923D1 (de) 2003-04-15 2003-04-15 Codeerkennungsverfahren und einrichtung
US11/119,782 US7764835B2 (en) 2003-04-15 2005-05-03 Method and apparatus for recognizing code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2003/004783 WO2004093433A1 (ja) 2003-04-15 2003-04-15 コード認識方法及び装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US11/119,782 Continuation US7764835B2 (en) 2003-04-15 2005-05-03 Method and apparatus for recognizing code

Publications (1)

Publication Number Publication Date
WO2004093433A1 true WO2004093433A1 (ja) 2004-10-28

Family

ID=33193231

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2003/004783 WO2004093433A1 (ja) 2003-04-15 2003-04-15 コード認識方法及び装置

Country Status (6)

Country Link
US (1) US7764835B2 (ja)
EP (1) EP1615420B1 (ja)
JP (1) JP4327101B2 (ja)
AU (1) AU2003227506A1 (ja)
DE (1) DE60328923D1 (ja)
WO (1) WO2004093433A1 (ja)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100394266C (zh) * 2005-03-24 2008-06-11 爱普生映像元器件有限公司 图像显示装置和电子设备
JP2008533546A (ja) * 2004-12-03 2008-08-21 シンボル テクノロジーズ, インコーポレイテッド バーコードスキャナ復号
JP2008535058A (ja) * 2005-03-23 2008-08-28 マイクロスキャン・システムズ・インコーポレーテッド 高密度光学シンボルの2段階デコーディングのための装置とプロセス
WO2010090159A1 (ja) * 2009-02-05 2010-08-12 株式会社オプトエレクトロニクス 光学的情報読取装置及び光学的情報読取方法
JP2012160183A (ja) * 2011-01-31 2012-08-23 Hand Held Products Inc フリッカー修正エィマおよび交流照明を有する端末
JP2013206347A (ja) * 2012-03-29 2013-10-07 Denso Wave Inc 情報コード読取装置
JP2014533398A (ja) * 2011-11-15 2014-12-11 シクパ ホルディング ソシエテ アノニムSicpa Holding Sa 表面上の数値情報項目をコード化するためのパターン、ならびにマーキング方法および読取方法
WO2015022872A1 (ja) * 2013-08-11 2015-02-19 株式会社偽物識別技術研究所 印刷のミクロ的輪郭形状を識別子とする個別物品の自動真贋判定方法
CN110287752A (zh) * 2019-06-25 2019-09-27 北京慧眼智行科技有限公司 一种点阵码检测方法及装置
CN110647879A (zh) * 2019-08-06 2020-01-03 安徽学云教育科技有限公司 一种答题卡客观题识别方法
CN112085030A (zh) * 2020-09-09 2020-12-15 重庆广播电视大学重庆工商职业学院 相似图像确定方法及装置

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7367514B2 (en) * 2003-07-03 2008-05-06 Hand Held Products, Inc. Reprogramming system including reprogramming symbol
JP4180497B2 (ja) 2003-12-05 2008-11-12 富士通株式会社 コード種類判別方法、およびコード境界検出方法
WO2006100720A1 (ja) * 2005-03-18 2006-09-28 Fujitsu Limited コード画像処理方法
US7775428B2 (en) * 2005-05-06 2010-08-17 Berkun Kenneth A Systems and methods for generating, reading and transferring identifiers
US7909256B2 (en) * 2005-12-31 2011-03-22 Motorola Mobility, Inc. Method and system for automatically focusing a camera
KR20100015447A (ko) * 2007-03-08 2010-02-12 마이크로스캔 시스템즈 인코포레이티드 2차원 코드의 검출 및 분할
JP5152203B2 (ja) * 2008-01-24 2013-02-27 富士通株式会社 画像処理装置、画像処理方法、画像処理プログラムおよび画像補正装置
JP5148375B2 (ja) * 2008-06-10 2013-02-20 株式会社東芝 被対象認識装置および被対象認識方法
JP5541672B2 (ja) * 2009-02-10 2014-07-09 キヤノン株式会社 装置、方法、プログラム
TWI484815B (zh) * 2009-07-23 2015-05-11 Hon Hai Prec Ind Co Ltd 具有定焦鏡頭的手機
US8910870B2 (en) * 2010-08-06 2014-12-16 Hand Held Products, Inc. System and method for document processing
US9396421B2 (en) 2010-08-14 2016-07-19 Rujan Entwicklung Und Forschung Gmbh Producing, capturing and using visual identification tags for moving objects
US8755570B2 (en) * 2011-04-27 2014-06-17 Steve Gomas Apparatus and method for estimation of livestock weight
JP5362058B2 (ja) * 2011-05-17 2013-12-11 東芝テック株式会社 コード読取装置及びプログラム
US8854413B2 (en) 2012-06-01 2014-10-07 Cisco Technology, Inc. Communicating with an endpoint using matrix barcodes
US8798380B1 (en) 2012-08-08 2014-08-05 Google Inc. Techniques for generating customized two-dimensional barcodes
GB2518443A (en) * 2013-09-24 2015-03-25 Ibm Method for detecting phishing of a matrix barcode
EP3144857B1 (en) * 2014-05-14 2021-10-13 Kyodo Printing Co., Ltd. Two-dimensional code, two-dimensional-code analysis system, and two-dimensional-code generation system
DE102015118755A1 (de) * 2015-11-02 2017-05-04 Martin Voigt Verfahren zur Bereitstellung von Informationen in maschinenlesbarer Form
US10936837B1 (en) * 2018-05-23 2021-03-02 Amazon Technologies, Inc. 2D barcode overlays
CN110263595B (zh) * 2019-06-25 2023-02-17 北京慧眼智行科技有限公司 一种二维码检测方法及装置
CN112001469B (zh) * 2020-08-12 2024-01-30 北京太和互邦科技有限公司 一种二维码编码方法、解码方法和二维码

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0336881A (ja) * 1989-06-26 1991-02-18 Eastman Kodak Co 走査された画素情報のためのしきい値処理システム
JPH03128574A (ja) * 1989-02-16 1991-05-31 Ricoh Co Ltd 疑似中間調処理装置
JP2001245139A (ja) * 2000-02-28 2001-09-07 Sony Corp ディジタル画像記録装置および方法、並びに伝送方法
JP2001312721A (ja) * 2000-04-26 2001-11-09 Internatl Business Mach Corp <Ibm> 画像処理方法、相対濃度の検出方法、および画像処理装置

Family Cites Families (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61103372A (ja) 1984-10-27 1986-05-21 Oki Electric Ind Co Ltd 画像2値化方法
JPH02253484A (ja) 1989-03-28 1990-10-12 Toppan Printing Co Ltd 二値化のための閾値自動設定方法及びその閾値自動設定装置
US5399852A (en) * 1993-02-19 1995-03-21 United Parcel Service Of America, Inc. Method and apparatus for illumination and imaging of a surface employing cross polarization
JP2938338B2 (ja) 1994-03-14 1999-08-23 株式会社デンソー 二次元コード
US5726435A (en) * 1994-03-14 1998-03-10 Nippondenso Co., Ltd. Optically readable two-dimensional code and method and apparatus using the same
JP3142108B2 (ja) 1994-11-07 2001-03-07 株式会社東芝 画像処理装置および画像処理方法
US5969325A (en) * 1996-06-03 1999-10-19 Accu-Sort Systems, Inc. High speed image acquisition system and method of processing and decoding barcode symbol
US5811779A (en) * 1996-08-22 1998-09-22 General Electric Company Laser bar code reader system for a fuel rod in a boiling water nuclear reactor
JP3209108B2 (ja) * 1996-08-23 2001-09-17 松下電器産業株式会社 2次元コード読み取り装置
JPH1091717A (ja) * 1996-09-18 1998-04-10 Toshiba Corp バーコード認識装置
JP3627416B2 (ja) 1996-12-20 2005-03-09 株式会社デンソー 2次元コード読取装置および記憶媒体
US6000614A (en) * 1996-12-20 1999-12-14 Denso Corporation Two-dimensional code reading apparatus
JP3128574B2 (ja) 1997-08-27 2001-01-29 岩手大学長 パーフロロ基含有トリアジンチオール誘導体、その製造方法及び利用
TW514876B (en) * 2000-01-31 2002-12-21 Sony Corp Digital picture signal processing apparatus, method thereof, digital picture recording apparatus, method thereof, transmitting method thereof, and data record medium thereof
JP2001251507A (ja) 2000-03-03 2001-09-14 Fujitsu Ltd 画像処理装置
JP4419269B2 (ja) * 2000-04-18 2010-02-24 富士通株式会社 二次元コード抽出方法
US6891570B2 (en) * 2001-01-31 2005-05-10 Itt Manufacturing Enterprises Inc. Method and adaptively deriving exposure time and frame rate from image motion
JP2003046833A (ja) * 2001-07-30 2003-02-14 Fuji Photo Film Co Ltd 画像撮影装置及び画像撮影注文方法
TWI278782B (en) * 2001-08-24 2007-04-11 Toshiba Corp Personal recognition apparatus
JP2004054529A (ja) * 2002-07-18 2004-02-19 Sharp Corp 2次元コード読み取り方法,2次元コード読み取りプログラム,該2次元コード読み取りプログラムの記録媒体及び2次元コード読み取り装置
JP3923866B2 (ja) * 2002-07-19 2007-06-06 株式会社キーエンス 二次元コード読取装置設定方法、二次元コード読取設定装置、二次元コード読取装置設定プログラムおよびコンピュータ読取可能な記録媒体

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03128574A (ja) * 1989-02-16 1991-05-31 Ricoh Co Ltd 疑似中間調処理装置
JPH0336881A (ja) * 1989-06-26 1991-02-18 Eastman Kodak Co 走査された画素情報のためのしきい値処理システム
JP2001245139A (ja) * 2000-02-28 2001-09-07 Sony Corp ディジタル画像記録装置および方法、並びに伝送方法
JP2001312721A (ja) * 2000-04-26 2001-11-09 Internatl Business Mach Corp <Ibm> 画像処理方法、相対濃度の検出方法、および画像処理装置

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008533546A (ja) * 2004-12-03 2008-08-21 シンボル テクノロジーズ, インコーポレイテッド バーコードスキャナ復号
JP4707718B2 (ja) * 2004-12-03 2011-06-22 シンボル テクノロジーズ, インコーポレイテッド バーコードスキャナ復号
JP2008535058A (ja) * 2005-03-23 2008-08-28 マイクロスキャン・システムズ・インコーポレーテッド 高密度光学シンボルの2段階デコーディングのための装置とプロセス
CN100394266C (zh) * 2005-03-24 2008-06-11 爱普生映像元器件有限公司 图像显示装置和电子设备
WO2010090159A1 (ja) * 2009-02-05 2010-08-12 株式会社オプトエレクトロニクス 光学的情報読取装置及び光学的情報読取方法
JP5349504B2 (ja) * 2009-02-05 2013-11-20 株式会社オプトエレクトロニクス 光学的情報読取装置及び光学的情報読取方法
US9418270B2 (en) 2011-01-31 2016-08-16 Hand Held Products, Inc. Terminal with flicker-corrected aimer and alternating illumination
JP2012160183A (ja) * 2011-01-31 2012-08-23 Hand Held Products Inc フリッカー修正エィマおよび交流照明を有する端末
US9659199B2 (en) 2011-01-31 2017-05-23 Hand Held Products, Inc. Terminal with flicker-corrected aimer and alternating illumination
JP2014533398A (ja) * 2011-11-15 2014-12-11 シクパ ホルディング ソシエテ アノニムSicpa Holding Sa 表面上の数値情報項目をコード化するためのパターン、ならびにマーキング方法および読取方法
JP2013206347A (ja) * 2012-03-29 2013-10-07 Denso Wave Inc 情報コード読取装置
WO2015022872A1 (ja) * 2013-08-11 2015-02-19 株式会社偽物識別技術研究所 印刷のミクロ的輪郭形状を識別子とする個別物品の自動真贋判定方法
CN110287752A (zh) * 2019-06-25 2019-09-27 北京慧眼智行科技有限公司 一种点阵码检测方法及装置
CN110287752B (zh) * 2019-06-25 2023-04-14 北京慧眼智行科技有限公司 一种点阵码检测方法及装置
CN110647879A (zh) * 2019-08-06 2020-01-03 安徽学云教育科技有限公司 一种答题卡客观题识别方法
CN110647879B (zh) * 2019-08-06 2023-04-07 安徽学云教育科技有限公司 一种答题卡客观题识别方法
CN112085030A (zh) * 2020-09-09 2020-12-15 重庆广播电视大学重庆工商职业学院 相似图像确定方法及装置

Also Published As

Publication number Publication date
JP4327101B2 (ja) 2009-09-09
EP1615420A4 (en) 2007-10-17
JPWO2004093433A1 (ja) 2006-07-13
AU2003227506A1 (en) 2004-11-04
DE60328923D1 (de) 2009-10-01
US7764835B2 (en) 2010-07-27
EP1615420B1 (en) 2009-08-19
US20050194445A1 (en) 2005-09-08
EP1615420A1 (en) 2006-01-11

Similar Documents

Publication Publication Date Title
WO2004093433A1 (ja) コード認識方法及び装置
JP4137890B2 (ja) 画像処理装置、画像形成装置、画像読取処理装置、画像処理方法、画像処理プログラムおよびコンピュータ読み取り可能な記録媒体
JP4180497B2 (ja) コード種類判別方法、およびコード境界検出方法
Chen et al. PiCode: A new picture-embedding 2D barcode
JP2005316755A (ja) 2次元矩形コードシンボル読み取り装置及び2次元矩形コードシンボル読み取り方法
US7077323B2 (en) Bar code recognizing method and decoding apparatus for bar code recognition
JP4115999B2 (ja) 画像処理装置、画像形成装置、画像読取処理装置、画像処理方法、画像処理プログラムおよびコンピュータ読み取り可能な記録媒体
JP2006203701A (ja) 画像処理装置、画像形成装置、画像読取処理装置、画像処理方法、画像処理プログラムおよびコンピュータ読み取り可能な記録媒体
JP4140519B2 (ja) 画像処理装置、プログラムおよび記録媒体
JP5145833B2 (ja) 2次元コード読み取り装置、2次元コード読み取り方法、2次元コード読み取りプログラム及び記録媒体
EP0949801A2 (en) Image process apparatus, image process method and storage medium
JP5121685B2 (ja) バーコード読取装置、バーコード読取プログラム、バーコード読取方法
JP4398498B2 (ja) コード境界検出方法
KR100716692B1 (ko) 코드 인식 방법 및 장치
JP4728297B2 (ja) 2次元コード読取装置及びその方法
JP2003203198A (ja) 撮像装置、撮像方法、コンピュータ読み取り可能な記憶媒体及びコンピュータプログラム
JP5127687B2 (ja) バーコード読取装置、バーコード読取プログラム、バーコード読取方法
JP2007257360A (ja) 2次元コード、2次元コード読み取り装置、及び、2次元コード読み取り用プログラム
JP2874592B2 (ja) 文字・写真・網点領域を判別する画像処理装置
JP3636050B2 (ja) 光学的情報読取装置
JP2007243330A (ja) 画像処理装置、および網点文字の情報出力方法
JP3545227B2 (ja) 画像処理方法及び装置、光学式文字読取装置
JP2002290719A (ja) 網点領域検出装置
JP2021144526A (ja) 画像処理装置、画像読取装置、判定方法、プログラム及び記録媒体
JP4174466B2 (ja) カラーカメラの色調整システム、方法及びこのシステムを用いた文字・図形認識方法

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NI NO NZ OM PH PL PT RO RU SC SD SE SG SK SL TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 2004570880

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 2003717594

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 1020057006867

Country of ref document: KR

WWE Wipo information: entry into national phase

Ref document number: 11119782

Country of ref document: US

WWP Wipo information: published in national office

Ref document number: 1020057006867

Country of ref document: KR

WWP Wipo information: published in national office

Ref document number: 2003717594

Country of ref document: EP