WO1999022331A1 - Grade stamp reader for packed products and grade stamp judging method - Google Patents

Grade stamp reader for packed products and grade stamp judging method Download PDF

Info

Publication number
WO1999022331A1
WO1999022331A1 PCT/JP1997/004675 JP9704675W WO9922331A1 WO 1999022331 A1 WO1999022331 A1 WO 1999022331A1 JP 9704675 W JP9704675 W JP 9704675W WO 9922331 A1 WO9922331 A1 WO 9922331A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
grade
class
stamp
packaged product
Prior art date
Application number
PCT/JP1997/004675
Other languages
French (fr)
Japanese (ja)
Inventor
Toshiharu Shinto
Tadashi Motohashi
Shinichi Shiroma
Original Assignee
Japan Tobacco Inc.
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
Priority claimed from JP9292887A external-priority patent/JPH11134431A/en
Priority claimed from JP29288897A external-priority patent/JPH11126509A/en
Priority claimed from JP9292889A external-priority patent/JPH11134508A/en
Application filed by Japan Tobacco Inc. filed Critical Japan Tobacco Inc.
Publication of WO1999022331A1 publication Critical patent/WO1999022331A1/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
    • G06K7/10712Fixed beam scanning
    • G06K7/10722Photodetector array or CCD scanning

Definitions

  • the packaged product which reads the class grade stamp marked on the packaged product and determines the presence or absence of the stamp is determined.
  • the present invention relates to a first-class stamp reading device and a first-class stamp determining method.
  • a grade table 200 with letters in the boxes is printed, and after packing the boxes, the letters (squares) corresponding to the grade of the agricultural product are displayed.
  • One or several stamps 300 are imprinted on the part. Then, when such boxed products are shipped, etc., they are classified by judging the equivalent class by the stamp position of this stamp.
  • Sorting as described above is performed semi-automatically by a sorting device for cardboard boxes conveyed on a conveyor.
  • the inspector visually reads the stamp marking position in the grade table of the cardboard box being conveyed on the conveyor within a predetermined time, and designates the read result to the sorting device as the judgment result.
  • Input device manually.
  • the present invention improves the grade table and automatically positions the stamp of the grade stamp in the grade table in order to reduce the burden of sorting products using the grade stamp.
  • An object of the present invention is to accurately read and accurately determine the presence / absence of a class stamp in a cell of a class table. Disclosure of the invention
  • the apparatus has been made to solve the above-mentioned problem.
  • the apparatus is a packaged product class stamp reading device, comprising: a class table marked with a color that reflects visible light in a specific wavelength range; A packing product having a class indicator consisting of an identification mark marked in a color different from the table and having a class stamp of a different color from the class table imprinted on the class table. And an illumination means for irradiating the surface of the packaged product on which the equivalent class display section is marked with illumination light of the same color as the equivalent class table.
  • Imaging means for capturing an image of the surface on which the class display section on which the illumination light has been irradiated by the illumination means is marked; and determining the position of the identification mark based on image data captured by the imaging means. Based on the position of the identification mark Determining means for extracting an image of the above-described pump and reading a position of the extracted image of the pump with respect to the equal rank table.
  • the illuminating means irradiates the graded table with illumination light of the same color as the graded table.
  • the identification mark and the rank stamp having a different color from the rank table are emphasized as a darker color than the rank table, so that the identification mark and the rank stamp can be easily extracted from the image data captured by the imaging means.
  • the apparatus for reading the class-grade stamp of the packaged product is provided in a dark room covering a part of the transport path for transporting the packaged product. In the dark room, the surface of the printed product with the grade display on the transport path is imaged, and the position of the stamp image with respect to the grade table is read. Automatic sorting of products can be performed.
  • the lighting means irradiates the illumination light almost parallel to the surface of the packaged product on which the equivalent class display portion is marked, the illumination on the surface of the packaged product can be improved. The influence on the image due to the direct reflected light can be reduced. Further, as described in claim 4, when the illuminating means is constituted by the LED, it is possible to stably irradiate illumination light of the same color as that of the equal rank table.
  • the lighting device for imaging a packaged product according to claim 5 of the present invention is a packaged product imaging device for irradiating illumination light on the flat surface of the packaged product in order to image a chart marked on the flat surface.
  • An illumination device according to claim 1 further comprising a pair of light diffusing surfaces disposed substantially at right angles to the flat surface portion of the packaged product and arranged close to the flat surface portion, wherein the light diffusing surface is A pair of light diffusing members disposed so as to face each other at an interval sandwiching the diagram, and a light emitting surface for emitting the illumination light between the pair of light diffusing surfaces of the light diffusing member in a direction parallel to the plane portion.
  • an illumination light source disposed opposite to the illumination device. The illumination light source irradiates the illumination light from the illumination light source nearly parallel to the plane portion, and diffuses the illumination light on the light diffusion surface. It is characterized by the following.
  • the illumination light from the illumination light source is irradiated almost parallel to the flat portion of the packaged product.
  • the effect of direct reflected light on the image on the image is reduced.
  • the light diffusing surface of the light diffusing member is arranged at a right angle to the flat portion and close to the flat portion, uniform illumination light is applied to the flat portion.
  • Illumination light of the same color as the above-mentioned rank table can be stably radiated.
  • the method for judging the rank of a packaged product according to claim 7 of the present invention has a grade display section comprising a grade table composed of a plurality of squares and an identification mark, A method for judging the presence or absence of a class stamp in the cell of the class table, wherein the class product has a class stamp imprinted therein.
  • An image is captured, the captured entire image is divided into a plurality of partial images, and pixels are divided for each partial image based on an average luminance value of the entire image and an average luminance value of each of the partial images.
  • a threshold value for binarizing the luminance is set.
  • the luminance of the image is binarized based on the threshold value corresponding to the partial image, and the image data of the two-tone image is displayed.
  • the image of the two-tone image Detecting the position of the identification mark, setting an equal-grade frame in the square of the equal-grade table based on the position of the identification mark, and determining the same-grade frame to be determined based on the image data of the two-tone image.
  • the degree of concentration of the stamp on the surrounding class frame is determined, and a threshold value for the area ratio of the same luminance portion in the class frame for the judgment is set according to the concentration level. And determining whether there is a jump in the class frame to be determined based on the set threshold value and the area ratio in the class frame to be determined. .
  • the image including the grade display is divided into partial images, and a threshold is set for each partial image. Therefore, it is possible to obtain a two-tone image in which the influence of uneven illumination during imaging is reduced.
  • a threshold value is set for the area ratio of the same luminance portion in the class frame to be determined in accordance with the degree of concentration of the stamp in consideration of the class frame around the class frame to be determined.
  • the threshold value of the stamp in the Since the presence / absence is determined, it is possible to reduce the influence of the displacement of the stamp on the surrounding class frames.
  • an equivalent class display portion according to claim 8 of the present invention is characterized in that an equivalent class table marked with a color reflecting light in a specific wavelength range and an identification mark marked with a color different from the grade table. Are formed in a packaged product.
  • a stamp of a different color from the grade table is used, and light in a specific wavelength range is used. By simply illuminating with, the image of the identification mark and the sky can be easily and accurately extracted.
  • FIG. 1 is a block diagram of an apparatus for reading a class-grade lamp of a packaged product according to an embodiment of the present invention.
  • FIG. 2 is a front perspective view of an imaging unit in the reader.
  • FIG. 3 is a plan view of the imaging unit.
  • FIG. 4 is a diagram illustrating an example of a class display unit according to the embodiment.
  • FIG. 5 is a flowchart of a main flow of the determination logic in the embodiment.
  • FIG. 6 is a flowchart of the binarization processing of the determination logic in the embodiment.
  • FIG. 7 is a flowchart of the image reference mark detection process of the determination logic in the embodiment.
  • FIG. 8 is a flowchart of the stamp detection process of the determination logic in the embodiment.
  • FIG. 9 is a functional block diagram of the judgment port magic in the embodiment.
  • FIG. 10 illustrates the entire image average luminance calculation processing of the determination logic in the embodiment.
  • FIG. 11 is a diagram illustrating a partial image average luminance value calculation process of the determination logic in the embodiment.
  • FIG. 12 is a diagram showing a partial image binarization threshold value calculation process of the determination logic in the embodiment.
  • FIG. 13 is a diagram illustrating an example of a two-tone image of the determination logic in the embodiment.
  • FIG. 14 is a diagram showing a schedule setting process of the image reference mark detection area of the judgment logic in the embodiment.
  • FIG. 15 is a diagram showing a labeling process of the decision logic in the embodiment.
  • FIG. 16 is a diagram illustrating an image reference mark detection process of the determination logic in the embodiment.
  • FIG. 17 is a diagram illustrating an image reference mark position calculation process of the determination logic in the embodiment.
  • FIG. 18 is a diagram showing a stamp area detection frame calculation process of the determination logic in the embodiment.
  • FIG. 19 is a diagram showing a modification of the image of the rank table, a stamp area detection frame, and a stamp area emphasis frame in the embodiment.
  • FIG. 20 is a diagram showing expansion / compression processing of the determination logic in the embodiment.
  • FIG. 21 is a diagram illustrating an example of an equal rank frame to be determined by the determination logic in the embodiment and an adjacent rank frame.
  • FIG. 22 is a diagram for explaining the degree of concentration of stamps in the embodiment.
  • FIG. 23 is a diagram showing the light emission characteristics of the light emitting diode in the example.
  • FIG. 24 is a diagram showing an example of a conventional rank table. 1
  • FIG. 1 is a block diagram of a device for reading an equal-grade stamp of a packaged product according to an embodiment of the present invention
  • FIG. 2 is a front perspective view of an imaging unit in the reading device
  • FIG. 3 is a plan view of the imaging unit.
  • the reader comprises an imaging system A and a data processing system B.
  • the imaging system A includes a light-shielding dark room 1 that covers a part of the conveyor 20 that transports a cardboard box 10 to be read, a lighting device 2 that is disposed in the light-shielding dark room 1 and that is disposed near the conveyor 20. , And a CCD camera 3 as imaging means disposed on the opposite side of the luminaire 2 from the comparator 20.
  • the image processing system B is also capable of receiving image data from the CCD camera 3 and outputting monochrome digital image data of 256 gradations.
  • the personal computer 12 is configured to determine the stamping position of the equal-grade stamp in the equal-grade table of the cardboard box 10 by taking into account the pre-determined logic. The result of the determination by the personal computer 12 is output to the next step (not shown) (such as a sorter).
  • the illuminating device 2 includes two opposing light diffusion plates 2 2-1, 2 2-as light diffusion members disposed along the conveyor 20 between the base 21 and the top plate 24. 2. Illumination light sources 2 3 arranged between the light diffusing plates 22-1 and 22-2 at both ends of the conveyor 20 of the light diffusing plates 22-1 and 22-2 in the conveying direction. — It has 1, 2 3— 2. The distance between the two light diffusing plates 2 2-1 and 2 2-2 should be such that it covers at least the area that includes at least the rectangular equivalent class display section 4 printed on the side of the cardboard box 10. The opposing surfaces of the light diffusing plates 2 2-1 and 2 2-2 have the property of reflecting and diffusing light. ing.
  • Illumination light sources 23-1, 23-2 have a large number of red light-emitting diodes inside, and each light-emitting surface 23-la, 23-2a has transmission and diffusion properties for light. ing. Also, the light sources 23-1 and 23-2 face the light emitting surfaces 23-1 a and 23-2 a to the space between the light diffusers 22-1 and 22-2. They are arranged facing each other.
  • the CCD camera 3 has the imaging lens 31 facing the gap between the light diffusion plates 22-1, 22-2, and the optical axis of the imaging lens 31 is adjusted to the light diffusion plates 22-1, 22-1, 22. And at a right angle to the conveying direction of the conveyor 20. Thus, the CCD camera 3 captures an image of the side surface of the cardboard box 10 on the conveyor 20 through the gap between the light diffusion plates 22-1, 22-2.
  • the illumination light sources 23-1 and 23-2 diffuse and emit red light on the light-emitting surfaces 23-1a and 23-2a by the radiation of the internal light-emitting diode.
  • the emitted red light is further reflected and diffused by the opposing surfaces of the light diffusing plates 22-1 and 22-2.
  • the side surface 10a of the cardboard box 10 conveyed by the conveyor 20 is uniformly illuminated with red light
  • the side surface 10a of the cardboard box 10 illuminated with the red light is illuminated by the CCD camera 3. It is imaged.
  • the stamp position of the equivalent class stamp on the equivalent class display unit 4 is determined based on the captured image data.
  • the light emitting diodes of the light sources 23-1 and 231-2 have light-emitting characteristics as shown in FIG.
  • the cardboard box is white. Even if the cardboard box is made of paper, its surface may be glossy, and depending on the way of illuminating light, reflected light on the surface may cause extreme brightness unevenness in the captured image. This may affect the determination result.
  • the light source 23-1a's light emitting surface 23-1a and the light source 23-2's light emitting surface 23-2a have a positional relationship parallel to the conveying direction of the conveyor 20.
  • Direction that is, the grade class display part 4 of the cardboard box 10 faces in the direction parallel to the printed side face 10a, so that the direct light from the illumination light sources 2 3-1, 2 Light is incident at a low angle to 0a (the angle between the light beam and the side surface is a small angle).
  • the surface of the cardboard box 10 is glossy, the direct light from the illumination light sources 23-1, 2-3-2 is reflected by the side face 10a when viewed from the position of the CCD camera 3. This makes it possible to obtain image data without extreme brightness unevenness without being seen.
  • a cardboard box 10 is detected by a switch or the like placed near the transport path of the conveyor 20, and the class of the side of the cardboard box 10 is classified.
  • the timing is set so that the display unit 4 is within a predetermined field of view of the CCD camera 3.
  • FIG. 4 is a view showing an example of the equal-grade display section 4 printed on the side face 10a of the cardboard box 10 in the embodiment, and FIG. 4 (A) is a multi-grade display of FIG. 4 (B). It is of a lower class.
  • the equivalent class display section 4 is printed on the side face 10a of the cardboard box 10 and includes a rectangular outer frame 41, squares in the outer frame 41, and circled numbers attached to each square. It is composed of a class table 42, and image reference marks 43 as identification marks located on both sides in the longitudinal direction of the class table 42. Note that the image reference mark 43 has a vertically elongated rectangular shape on the outer periphery and a vertically elongated hollow portion inside.
  • the outer frame 41 and the grade table 42 are printed in red so that the red light of the illumination light sources 23-1, 23-2 is almost reflected.
  • the image reference mark 43 is black.
  • the rank stamps 5 and 5 ′ are stamped with a color (for example, black) having a lower luminance value than the red color, and ideally, as shown in the illustrated rank stamp 5, inside the square of the rank table 42. It is stamped. Also, the stamp may be stamped off the square as in the class stamp 5 ', and even in such a case, the stamp is stamped on any square, that is, on which square. Is determined by a determination logic described later.
  • the cardboard box 10, the lighting device 2, and the CCD camera 3 are in the shading darkroom 1, and the cardboard box 10 is illuminated by the lighting device 2 with only red light.
  • the outer frame 4 1 of the equivalent class display section 4 and the class table 4 The portion 2 has almost the same luminance value as the side surface 10a, and the black image reference mark 43 and the equal-grade stamps 5 and 5 'have remarkable luminance values different from the surroundings. Therefore, by binarizing the luminance value of this image data with a predetermined threshold value, it is possible to extract the shapes of the image reference mark 43 and the equivalent class stamps 5, 5 'and the positions over the image data. it can.
  • the personal computer 12 is a CPU that executes programs, a ROM that stores basic programs (BIOS, etc.) for input / output control, etc., a video memory, etc. RAM, a hard disk that is a large-capacity memory, a floppy disk drive, and the like.
  • a processing program that constitutes the determination logic is input from, for example, a floppy disk drive and is expanded on the RAM or the hard disk. Performed by
  • FIG. 5 to 8 are main routines and subroutine flowcharts showing the flow of processing of the judgment logic in the personal computer 12, and FIG. 9 is a functional block diagram of the judgment logic.
  • the judgment port will be described.
  • the image data can be stored in a working area or the like of the RAM. Therefore, since the position and size of each part in the captured image can be obtained by known image calculation processing and calculation processing, detailed description of such image calculation processing and calculation processing is omitted.
  • FIG. 5 is a flow chart of the main flow showing a large flow of the determination logic.
  • step S1 the image data of the 256-tone image is captured, and in step S2, the binary values in FIG. Then, the image data of the 256-tone image is converted into black or white (0 or 1) 2-tone image data for each pixel.
  • step S3 the image reference mark detection processing of FIG. 7 is performed to obtain the position and area of the image reference mark from the two-tone image, and in step S4, the skip detection processing of FIG. 8 is performed. Then, it is determined whether or not there is a class jump in each cell of the class table.
  • step S21 the average luminance value of the entire image of the 256-tone image (referred to as the "entire image average luminance value”) is obtained.
  • calculate the average luminance value (referred to as “partial image average luminance value”) for each partial image obtained by dividing the whole into multiple regions.
  • step S23 a threshold value for binarizing each partial image based on the average luminance value of the entire image and the average luminance value of the partial images (referred to as “partial image binarization threshold”) ) Is calculated, and in step S24, each pixel is binarized in units of each partial image based on the partial image binarization threshold value, and is converted into image data of a two-tone image. Then, the process returns to the main routine.
  • FIG. 10 shows the whole image average luminance calculation processing (step S 21), and the luminance distribution of the whole image V of the 256-tone image shown in FIG.
  • the distribution of the number of pixels with respect to the luminance value) is, for example, as shown in FIG. 10 (B). Therefore, for example, the sum of the luminance values of each pixel is divided by the total number of pixels. -1
  • Fig. 11 shows the partial image average brightness value calculation processing (step S22).
  • the whole image V is divided into 624 partial images of 13 rows x 48 columns. I do.
  • the average value of the partial images (Ln) is obtained by the same averaging process as the average luminance value of the entire image for all the partial images.
  • the luminance distributions of partial images a, b, and c are as shown in Figs. 11 (B) to (D), and the average luminance values of each partial image (La, Lb, Lc) are indicated by the broken lines.
  • FIG. 12 shows the partial image binarization threshold value calculation processing (step S23).
  • the average luminance value (G ) And the partial image average luminance value (Ln), the partial image binarization threshold (THDn) is obtained by the following equation (1).
  • THDn K l x f (G, L n) (1)
  • n is the index of the partial image
  • K 1 Binarization threshold rate (Default is 0.75)
  • Fig. 12 (A) to (C) For partial images a, b, and c, the average luminance value of the whole image (G), the average luminance value of the partial images (L a, Lb, L c), and the threshold values of the partial image binarization (THD a, THD b, THD c ).
  • Fig. 13 shows an example of a two-tone image obtained in the partial image binarization process (step S24).
  • the partial image binarization threshold (THDn) is used for all partial images n. Then, binarization processing is performed by the following equation (2) to generate a two-tone image. 1; I (x, y) ⁇ THD n
  • step S31 the inspection order (schedule) of the image reference mark detection area is set according to the type of the class display unit 4 printed on the cardboard box 10 described later. Then, in step S32, for each image reference mark detection area, a labeling process of assigning a different label to each block of pixels having a luminance value of "0" (black) in the image is performed. Next, in step S33, an image reference mark is detected based on a plurality of inspection items corresponding to the features of the image reference mark, and an image reference mark detection process for obtaining an area of the image reference mark is performed.
  • step S34 an image reference mark position calculation process is performed to determine the positions (center of gravity, upper end position, lower end position) of the feature points of the image reference mark.
  • FIG. 14 shows the schedule setting processing (step S31) of the image reference mark detection error.
  • the class rank display section 4 in Fig. 4 (A) is for the case where there are many grade evaluation stages.
  • the number of squares in the class scale table 42 is larger than that in Fig. 4 (B).
  • the interval between the reference marks 43 is also wide. Therefore, as shown in FIG.
  • FIG. 15 shows the labeling process (step S32). This figure shows a case where dirt is present above and below the image reference mark 43.
  • the dirt above and below the image reference mark 43 is the part where the pixel luminance value is "0" (black). A cluster of pixels having the same luminance value is formed. Therefore, different labels are defined, for example, label 1, label 2, and lapel 3 in the order of the upper dirt part, the image reference mark part, and the lower dirt part.
  • FIG. 16 shows a plurality of inspection items corresponding to the features of the image reference mark in the image reference mark detection processing (step S33). For each of the above labels, whether or not the block of the image is an image reference mark is determined. In order to determine whether or not each inspection item is calculated from the coordinates of the pixels of the block of the image of each label. Table 1 shows the inspection items and the inspection conditions for satisfying each item.
  • a label that satisfies all the inspection conditions of the above inspection items is defined as an image reference mark.
  • the area of the block corresponding to the label defined as the image reference mark is determined as the image reference mark area (M m).
  • M m is the image reference mark number
  • 1 indicates the left side
  • 2 indicates the right side.
  • Figure 17 shows the positions of the feature points of the image reference mark in the image reference mark position calculation processing (step S34), that is, the center of gravity, the upper end position, and the lower end position.
  • the positions (Pum, P gm, P dm) of these feature points are calculated from the chunk corresponding to the label defined as the image reference mark.
  • Pu indicates the top of the mark
  • Pg indicates the center of gravity of the mark
  • Pd indicates the position of the bottom of the mark
  • m indicates the image reference mark number.
  • step S41 an image of a correctly stamped class stamp is taken from the image reference mark area (Mm) and the actual image reference mark area (known). Calculate the area above (“stamp logic area”).
  • step S42 the position on the image of the cell of the class table (hereinafter referred to as "class class frame") is calculated from the detected position (Pum, Pm, Pdm) of the image reference mark. .
  • the position of the class table on the image can be calculated.
  • step S43 based on the position of the class table on the image, the inscribed frame of the class box of the class table is obtained as a stamp area detection frame, and the stamp area detection frame is obtained.
  • the stamp area detection frame that sets a rectangular sweep area emphasizing frame of the same size as that of the stamp.
  • step S44 in order to remove noise of the image in the stamp area detection frame, the black portion of the image is enlarged by one pixel around and the white portion is reduced to make the image thinner.
  • An expansion / compression process is performed in which the image and the process of making the black portion thinner by enlarging the white portion by one pixel around the image twice each.
  • step S46 the stamp area ratio (R) is calculated by the following equation (4).
  • step S47 it is determined whether or not there is a jump in each cell of the equal rank table based on the stamp presence / absence determination condition.
  • step S43 shows the calculation process of the detection area of the stamp area (step S43).
  • the inscribed frame of the equal-grade frame is stamped from the position of the equal-grade table calculated in step S42.
  • the area detection frame is used, and its position is calculated.
  • a rectangular stamp area emphasizing frame of the same size as the stamp is set inside the stamp area detecting frame by calculation.
  • Fig. 19 (A) shows the case where the surface of the cardboard box on which the class frame is printed is not inclined
  • Fig. 19 (B) shows the cardboard box. This is an example in the case where the surface is inclined.
  • the stamp area which is the inscribed frame of the class
  • the frame and the stamp area emphasis frame are also deformed in the same way, but even with such a deformation, the presence or absence of the stamp is detected by the ratio of the area, so there is no effect.
  • FIG. 20 shows the result of the expansion / compression processing (step S44).
  • the white noise as shown in FIG. That is, white noise in the black part is removed by thickening the black part of the image around, and black noise in the white part is reduced by thinning the white part of the image. Removed.
  • FIG. 21 shows an example of a class frame to be determined in the stamp presence / absence determination process (step S47).
  • the sum of the stamp area ratios (R) of the class Azusa (the shaded area) to be judged and the class class adjacent to the class Judgment to be judged (in this example, the bottom and left and right three) Then, it is determined how many stamps are concentrated based on the total value (“the total value of the adjacent stamp area ratios”), and the threshold value for determining whether or not the stamp is present is determined based on the degree of concentration.
  • the stamp pushed in the surrounding class class frame is determined by this judgment target class.
  • the protruding portion is detected as the stamp area ratio of the equal-grade frame to be determined.
  • the area of such a portion that protrudes into the class frame to be determined depends on how many stamps are stamped on the adjacent class frame. For example, as shown in Fig. 22 (A), when no stamp is stamped on the surrounding class, the area of the protruding part is 0, but as shown in Figs. 22 (B) to (D).
  • the class class to be judged and its surroundings From the total value of the adjacent stamp area ratios by the surrounding class frames, it is first determined how many stamps (concentration degree) have been pressed in the judgment class frame and the surrounding class frames. Based on the degree, the judgment threshold (stamp presence / absence judgment threshold) for the stamp area ratio of the target class frame is determined. Then, the presence / absence of a stamp is determined based on the threshold value for determining the presence / absence of the pump depending on the case.
  • the adjacent class frames are the upper, lower, left, and right class frames. If the class frame to be judged is at both ends, there are two, and the other classes are three. Also, since the total value of the adjacent stamp area ratio is the total value, it may be 100% or more.
  • Table 2 shows an example of the correspondence between the degree of concentration, the threshold value for judging the presence / absence of stamps, and the result of judging the presence / absence of stamps, corresponding to the total value of the area ratios of adjacent lamps.
  • This processing program can be supplied to a computer via various media such as a floppy disk, a hard disk, an MD, a CD-ROM, a magnetic tape, a ROM, and a RAM.
  • the medium is equivalent to the medium of claim 2 of the present invention.
  • the stamp position of the class sorting stamp in the class table can be automatically and accurately read. This can reduce the burden of sorting products using a class-grade lamp.
  • the apparatus for reading a stamp of equal rank of a packaged product According to the apparatus for reading a stamp of equal rank of a packaged product according to the second aspect of the present invention, it is possible to automatically sort a packaged product while reading an image of a stamp with high accuracy.
  • the apparatus for reading a rank stamp of a packaged product according to claim 3 of the present invention, it is possible to reduce the influence on the image due to the direct reflection light on the surface of the packaged product, and the rank stamp in the rank table. It can automatically and accurately read the stamping position of the product, and can reduce the burden of sorting products using a graded stamp.
  • the apparatus for reading a rank of a packaging product according to claim 4 of the present invention it is possible to stably irradiate illumination light of the same color as the rank of the rank, and the rank in the rank of the rank is displayed.
  • the stamping position of the stamp can be automatically read with high accuracy, and the burden of classifying packing products using graded stamps can be reduced.
  • the lighting device for imaging a packaged product according to claim 5 of the present invention.
  • the influence of the direct reflection light on the flat part of the packaged product on the image is reduced, and the flat part can be uniformly illuminated by the light diffusing surface of the light diffusing member.
  • illumination light of the same color as that of the grade table can be stably emitted.
  • the method for judging the rank of a packaged product according to claim 7 of the present invention it is possible to obtain a two-tone image in which the influence of uneven illumination at the time of imaging is reduced and obtain a surrounding graded frame. Can reduce the effects of misalignment of stamps, etc., and can accurately determine the presence or absence of equal-grade stamps in the squares of the equivalent rank table, and sort packaging products using the same-grade stamps The burden on the user can be reduced.
  • a stamp having a different color from the grade table is used, and light of a specific wavelength range is used.
  • the image of the identification mark and the stamp can be easily and accurately extracted, and the presence / absence of an equal-grade stamp in a cell of the equivalent-grade table can be accurately determined. It is possible to reduce the burden of the sorting operation of the packaged products using the wrapper.

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

A grade indication part (4) is printed on a side 10a of a corrugated box (10) in which agricultural products are packed. The color of the frame (41) and grade table (42) of the grade indication part (4) is red. The color of image reference marks (43) is black. The color of grade stamps (5 and 5') is also black. Illuminating light whose color is red which is the color of the grade table (42) is applied to the side (10a) of the corrugated box (10) by an illuminating device and the image of the side (10a) is picked up by a CCD camera. The image of the image reference marks (43) and the image of the grade stamps (5 and 5') are extracted from the image data. The positions of the grade stamps (5 and 5') are judged based on the positions of the image reference marks (43). Thus, the grade stamps can be read with a high precision automatically from the grade table of the corrugated box of agricultural products.

Description

明 細 書 梱包製品の等階級スタンプ読取り装置及び等階級ス夕ンプ判定方法 技術分野  Description Grade stamp reader for packaged products and method for class stamp determination
本発明は、 農産物の箱詰製品などの梱包製品を梱包物の等階級で種別 するために、 該梱包製品に印された等階級ス夕ンプを読み取ってスタン プの有無を判定する梱包製品の等階級スタンプ読取り装置及び等階級ス 夕ンプ判定方法に関する。 背景技術  According to the present invention, in order to classify packaged products such as boxed products of agricultural products by the class of the packaged product, the packaged product which reads the class grade stamp marked on the packaged product and determines the presence or absence of the stamp is determined. The present invention relates to a first-class stamp reading device and a first-class stamp determining method. Background art
従来、 農産物の箱詰製品には、 箱詰めされている農産物の等階級を示 すためにその段ボール箱にスタンプを押捺したものがある。 例えば、 図 Traditionally, some boxed agricultural products have a cardboard box stamped to indicate the grade of the boxed agricultural product. For example, Figure
2 4に示したように、 段ボール箱 1 0 0の側面に、 升目に文字を有する 等階級表 2 0 0が印刷されており、 箱詰めした後にその農産物の等階級 に対応する文字 (升目) の部分に 1〜数個のス夕ンプ 3 0 0が押捺され る。 そして、 このような箱詰製品の出荷時などにこのスタンプの捺印位 置で等階級を判定して種分けされている。 As shown in Fig. 24, on the side of the cardboard box 100, a grade table 200 with letters in the boxes is printed, and after packing the boxes, the letters (squares) corresponding to the grade of the agricultural product are displayed. One or several stamps 300 are imprinted on the part. Then, when such boxed products are shipped, etc., they are classified by judging the equivalent class by the stamp position of this stamp.
上記のような種分けは、 コンベアで搬送される段ボール箱を種分け装 置で半自動的に行われている。 すなわち、 検査員がコンベアで搬送され ている段ボール箱の等階級表内のスタンプ捺印位置を所定の時間内に目 視で読み取り、 その読み取った結果を、 種わけ装置に判定結果を指定す るための入力装置に手動で入力するようにしている。  Sorting as described above is performed semi-automatically by a sorting device for cardboard boxes conveyed on a conveyor. In other words, the inspector visually reads the stamp marking position in the grade table of the cardboard box being conveyed on the conveyor within a predetermined time, and designates the read result to the sorting device as the judgment result. Input device manually.
上記のように、 従来は、 等階級表内のスタンプ捺印位置を検査員が目 視で判定しているので、 作業に負担がかかるばかりか、 読み取り間違い や、 入力間違いなどが生じるという問題がある。 本発明は、 等階級スタンプを用いた梱包製品の種分け作業の負担を軽 減するために、 等階級表を改良するとともに該等階級表内の等階級ス夕 ンプの捺印位置を自動的に精度良く読み取り、 等階級表の升目内の等階 級スタンプの有無を精度良く判定することを課題とする。 発明の開示 As described above, conventionally, the inspector visually determines the stamp stamping position in the grade table, which not only places a burden on the work but also causes problems such as reading errors and input errors. . The present invention improves the grade table and automatically positions the stamp of the grade stamp in the grade table in order to reduce the burden of sorting products using the grade stamp. An object of the present invention is to accurately read and accurately determine the presence / absence of a class stamp in a cell of a class table. Disclosure of the invention
上記の課題を解決するためになした本発明の請求の範囲 1記載の梱包 製品の等階級スタンプ読取り装置は、 特定波長域の可視光を反射する色 で印された等階級表と該等階級表と異なる色で印された識別マークとか らなる等階級表示部を有し、 該等階級表中に該等階級表と異なる色の等 階級スタンプが押捺された梱包製品について、 該等階級スタンプの押捺 箇所を読み取る梱包製品の等階級スタンプ読取り装置であって、 前記梱 包製品の前記等階級表示部が印された面に対して前記等階級表と同色の 照明光を照射する照明手段と、 該照明手段で照明光が照射された前記等 階級表示部が印された面を撮像する撮像手段と、 該撮像手段で撮像され た画像データに基づいて前記識別マークの位置を判定し、 該識別マーク の位置に基づいて前記ス夕ンプの画像を抽出し、 該抽出されたス夕ンプ の画像の前記等階級表に対する位置を読み取る判定手段と、 を備えたこ とを特徴とする。  The present invention has been made to solve the above-mentioned problem. The apparatus according to the first aspect of the present invention is a packaged product class stamp reading device, comprising: a class table marked with a color that reflects visible light in a specific wavelength range; A packing product having a class indicator consisting of an identification mark marked in a color different from the table and having a class stamp of a different color from the class table imprinted on the class table. And an illumination means for irradiating the surface of the packaged product on which the equivalent class display section is marked with illumination light of the same color as the equivalent class table. Imaging means for capturing an image of the surface on which the class display section on which the illumination light has been irradiated by the illumination means is marked; and determining the position of the identification mark based on image data captured by the imaging means. Based on the position of the identification mark Determining means for extracting an image of the above-described pump and reading a position of the extracted image of the pump with respect to the equal rank table.
上記のように構成された請求の範囲 1記載の梱包製品の等階級スタン プ読取り装置によれば、 照明手段が等階級表示部に対して等階級表と同 色の照明光を照射するので、 この等階級表と異なる色の識別マークと等 階級スタンプが等階級表よりも暗色として強調され、 撮像手段で撮像さ れた画像データから識別マークと等階級スタンプを容易に抽出できる。 なお、 請求の範囲 2記載のように、 梱包製品の等階級スタンプ読取り 装置を、 梱包製品を搬送する搬送路の一部を覆う暗室内に配設し、 この 暗室内で、 搬送路で搬送される梱包製品の等階級表示部が印刷された面 を撮像してスタンプの画像の等階級表に対する位置を読み取ると、 ス夕 ンプの画像を精度良く読み取りながら梱包製品の自動種分けなどを行う ことができる。 According to the apparatus for reading a graded stamp of a packaged product according to claim 1 configured as described above, the illuminating means irradiates the graded table with illumination light of the same color as the graded table. The identification mark and the rank stamp having a different color from the rank table are emphasized as a darker color than the rank table, so that the identification mark and the rank stamp can be easily extracted from the image data captured by the imaging means. In addition, as described in claim 2, the apparatus for reading the class-grade stamp of the packaged product is provided in a dark room covering a part of the transport path for transporting the packaged product. In the dark room, the surface of the printed product with the grade display on the transport path is imaged, and the position of the stamp image with respect to the grade table is read. Automatic sorting of products can be performed.
また、 請求の範囲 3記載のように、 照明手段が、 梱包製品の等階級表 示部が印された面に対して、 照明光を平行に近く照射するようにすると 該梱包製品の表面での直接反射光による画像への影響を低減できる。 また、 請求の範囲 4記載のように、 照明手段を L E Dで構成すると、 前記等階級表と同色の照明光を安定して照射するこどができる。  Further, as described in claim 3, when the lighting means irradiates the illumination light almost parallel to the surface of the packaged product on which the equivalent class display portion is marked, the illumination on the surface of the packaged product can be improved. The influence on the image due to the direct reflected light can be reduced. Further, as described in claim 4, when the illuminating means is constituted by the LED, it is possible to stably irradiate illumination light of the same color as that of the equal rank table.
また、 本発明の請求の範囲 5記載の梱包製品撮像用の照明装置は、 梱 包製品の平面部に印された図表を撮像するために該平面部に照明光を照 射する梱包製品撮像用の照明装置であって、 前記梱包製品の前記平面部 に対して略直角をなして該平面部に接近して配置された一対の光拡散面 を有し、 該光拡散面が前記平面部の前記図表を挟む間隔で対向するよう に配設された一対の光拡散部材と、 該光拡散部材の前記一対の光拡散面 の間で前記照明光を発する発光面を前記平面部と平行な方向で対向して 配置された照明光源と、 を備え、 前記照明光源からの照明光を前記平面 部に対して平行に近く照射するとともに、 前記光拡散面で該照明光を拡 散するようにしたことを特徴とする。  Further, the lighting device for imaging a packaged product according to claim 5 of the present invention is a packaged product imaging device for irradiating illumination light on the flat surface of the packaged product in order to image a chart marked on the flat surface. An illumination device according to claim 1, further comprising a pair of light diffusing surfaces disposed substantially at right angles to the flat surface portion of the packaged product and arranged close to the flat surface portion, wherein the light diffusing surface is A pair of light diffusing members disposed so as to face each other at an interval sandwiching the diagram, and a light emitting surface for emitting the illumination light between the pair of light diffusing surfaces of the light diffusing member in a direction parallel to the plane portion. And an illumination light source disposed opposite to the illumination device. The illumination light source irradiates the illumination light from the illumination light source nearly parallel to the plane portion, and diffuses the illumination light on the light diffusion surface. It is characterized by the following.
上記のように構成された請求の範囲 5記載の梱包製品撮像用の照明装 置によれば、 照明光源からの照明光は梱包製品の平面部に対して平行に 近く照射されるので、 この平面部での直接反射光による画像への影響が 低減される。 また、 光拡散部材の光拡散面は、 平面部に対して略直角を なして該平面部に接近して配置されているので、 平面部に対して均一な 照明光か:照射される。  According to the illumination device for imaging a packaged product according to claim 5 configured as described above, the illumination light from the illumination light source is irradiated almost parallel to the flat portion of the packaged product. The effect of direct reflected light on the image on the image is reduced. Further, since the light diffusing surface of the light diffusing member is arranged at a right angle to the flat portion and close to the flat portion, uniform illumination light is applied to the flat portion.
なお、 請求の範囲 6記載のように、 照明手段を L E Dで構成すると、 -As described in claim 6, when the lighting means is configured by an LED, -
4 Four
前記等階級表と同色の照明光を安定して照射することができる。 Illumination light of the same color as the above-mentioned rank table can be stably radiated.
また、 本発明の請求の範囲 7記載の梱包製品の等階級スタンプ判定方 法は、 複数の升目で構成された等階級表と識別マークとからなる等階級 表示部を有し、 該等階級表中に等階級スタンプが押捺された梱包製品に ついて、 該等階級表の前記升目中の等階級スタンプの有無を判定する梱 包製品の等階級スタンプ判定方法であって、 前記等階級表示部の画像を 撮像し、 該撮像された全体画像を複数の部分画像に分割し、 前記全体画 像の平均輝度値と前記部分画像それぞれについての平均輝度値とに基づ いて、 部分画像毎に画素の輝度を 2値化するためのしきい値を設定し、 各部分画像毎に、 該部分画像に対応する前記しきい値に基づいて画像の 輝度を 2値化して 2階調画像の画像デ一夕に変換し、 該 2階調画像の画 像デ一夕における前記識別マークの位置を検出し、 該識別マークの位置 に基づいて前記等階級表の升目内に等階級枠を設定し、 前記 2階調画像 の画像データに基づいて、 判定対象の等階級枠およびその周囲の等階級 枠へのスタンプの集中度を判定し、 判定対象の等階級枠に対して、 等階 級枠内の同輝度部分の面積率に対するしきい値を上記集中度に応じて設 定し、 該設定されたしきい値と判定対象の等階級枠における前記面積率 とに基づいて当該判定対象の等階級枠でのス夕ンプの有無を判定するよ うにしたことを特徴とする。  In addition, the method for judging the rank of a packaged product according to claim 7 of the present invention has a grade display section comprising a grade table composed of a plurality of squares and an identification mark, A method for judging the presence or absence of a class stamp in the cell of the class table, wherein the class product has a class stamp imprinted therein. An image is captured, the captured entire image is divided into a plurality of partial images, and pixels are divided for each partial image based on an average luminance value of the entire image and an average luminance value of each of the partial images. A threshold value for binarizing the luminance is set. For each partial image, the luminance of the image is binarized based on the threshold value corresponding to the partial image, and the image data of the two-tone image is displayed. Converted to the evening, the image of the two-tone image Detecting the position of the identification mark, setting an equal-grade frame in the square of the equal-grade table based on the position of the identification mark, and determining the same-grade frame to be determined based on the image data of the two-tone image. The degree of concentration of the stamp on the surrounding class frame is determined, and a threshold value for the area ratio of the same luminance portion in the class frame for the judgment is set according to the concentration level. And determining whether there is a jump in the class frame to be determined based on the set threshold value and the area ratio in the class frame to be determined. .
上記のように構成された請求の範囲 7記載の梱包製品の等階級スタン プ判定方法によれば、 等階級表示部を含む画像を部分画像に分割して、 部分画像毎にしきい値を設定しているので、 撮像時の照明むら等の影響 を低減した 2階調画像が得られる。  According to the method for judging the rank of a packaged product according to claim 7 configured as described above, the image including the grade display is divided into partial images, and a threshold is set for each partial image. Therefore, it is possible to obtain a two-tone image in which the influence of uneven illumination during imaging is reduced.
また、 判定対象の等階級枠の周囲の等階級枠をも考慮したスタンプの 集中度に応じて、 判定対象の等階級枠内の同輝度部分の面積率に対する しきい値を設定し、 このしきい値で判定対象の等階級枠でのスタンプの 有無を判定するので、 周囲の等階級枠についてのス夕ンプのズレなどの 影響を低減できる。 In addition, a threshold value is set for the area ratio of the same luminance portion in the class frame to be determined in accordance with the degree of concentration of the stamp in consideration of the class frame around the class frame to be determined. The threshold value of the stamp in the Since the presence / absence is determined, it is possible to reduce the influence of the displacement of the stamp on the surrounding class frames.
また、 本発明の請求の範囲 8記載の等階級表示部の形成方法は、 特定 波長域の光を反射する色で印された等階級表と該等階級表と異なる色で 印された識別マークとを梱包製品に形成することを特徴とする。  In addition, the method of forming an equivalent class display portion according to claim 8 of the present invention is characterized in that an equivalent class table marked with a color reflecting light in a specific wavelength range and an identification mark marked with a color different from the grade table. Are formed in a packaged product.
上記のように構成された請求の範囲 8記載の等階級表示部の形成方法 で形成された等階級表示部によれば、 等階級表と異なる色のスタンプを 使用するとともに、 特定波長域の光で照明するだけで、 識別マークとス 夕ンプとの画像を容易にかつ精度良く抽出することができる。 図面の簡単な説明  According to the grade display unit formed by the method for forming a grade display unit according to claim 8 configured as described above, a stamp of a different color from the grade table is used, and light in a specific wavelength range is used. By simply illuminating with, the image of the identification mark and the sky can be easily and accurately extracted. BRIEF DESCRIPTION OF THE FIGURES
図 1は本発明の実施例に係る梱包製品の等階級ス夕ンプ読取り装置の ブロック図である。  FIG. 1 is a block diagram of an apparatus for reading a class-grade lamp of a packaged product according to an embodiment of the present invention.
図 2は同読取り装置における撮像部の正面斜視図である。  FIG. 2 is a front perspective view of an imaging unit in the reader.
図 3は同撮像部の平面図である。  FIG. 3 is a plan view of the imaging unit.
図 4は実施例における等階級表示部の一例を示す図である。  FIG. 4 is a diagram illustrating an example of a class display unit according to the embodiment.
図 5は実施例における判定ロジックのメインフローのフローチャート である。  FIG. 5 is a flowchart of a main flow of the determination logic in the embodiment.
図 6は実施例における判定ロジックの 2値化処理のフローチヤ一卜で ある。  FIG. 6 is a flowchart of the binarization processing of the determination logic in the embodiment.
図 7は実施例における判定ロジックの画像参照マーク検出処理のフロ —チャートである。  FIG. 7 is a flowchart of the image reference mark detection process of the determination logic in the embodiment.
図 8は実施例における判定ロジックのスタンプ検出処理のフローチヤ ートである。  FIG. 8 is a flowchart of the stamp detection process of the determination logic in the embodiment.
図 9は実施例における判定口ジックの機能ブロック図である。  FIG. 9 is a functional block diagram of the judgment port magic in the embodiment.
図 1 0は実施例における判定ロジックの全体画像平均輝度計算処理を 示す図である。 FIG. 10 illustrates the entire image average luminance calculation processing of the determination logic in the embodiment. FIG.
図 1 1は実施例における判定ロジックの部分画像平均輝度値計算処理 を示す図である。  FIG. 11 is a diagram illustrating a partial image average luminance value calculation process of the determination logic in the embodiment.
図 1 2は実施例における判定ロジックの部分画像 2値化しきい値計算 処理を示す図である。  FIG. 12 is a diagram showing a partial image binarization threshold value calculation process of the determination logic in the embodiment.
図 1 3は実施例における判定ロジックの 2階調画像の例を示す図であ る  FIG. 13 is a diagram illustrating an example of a two-tone image of the determination logic in the embodiment.
図 1 4は実施例における判定ロジックの画像参照マーク検出エリァの スケジュール設定処理を示す図である。  FIG. 14 is a diagram showing a schedule setting process of the image reference mark detection area of the judgment logic in the embodiment.
図 1 5は実施例における判定ロジックのラベリ ング処理を示す図であ る。  FIG. 15 is a diagram showing a labeling process of the decision logic in the embodiment.
図 1 6は実施例における判定ロジックの画像参照マーク検出処理を示 す図である。  FIG. 16 is a diagram illustrating an image reference mark detection process of the determination logic in the embodiment.
図 1 7は実施例における判定ロジックの画像参照マーク位置計算処理 を示す図である。  FIG. 17 is a diagram illustrating an image reference mark position calculation process of the determination logic in the embodiment.
図 1 8は実施例における判定ロジックのスタンプ面積検出枠計算処理 を示す図である。  FIG. 18 is a diagram showing a stamp area detection frame calculation process of the determination logic in the embodiment.
図 1 9は実施例における等階級表の画像の変形例とスタンプ面積検出 枠およびスタンプ面積強調枠を示す図である。  FIG. 19 is a diagram showing a modification of the image of the rank table, a stamp area detection frame, and a stamp area emphasis frame in the embodiment.
図 2 0は実施例における判定ロジックの膨張 ·圧縮処理を示す図であ る  FIG. 20 is a diagram showing expansion / compression processing of the determination logic in the embodiment.
図 2 1は実施例における判定ロジックの判定対象の等階級枠と隣接す る等階級枠の例を示す図である。  FIG. 21 is a diagram illustrating an example of an equal rank frame to be determined by the determination logic in the embodiment and an adjacent rank frame.
図 2 2は実施例におけるスタンプの集中度を説明する図である。  FIG. 22 is a diagram for explaining the degree of concentration of stamps in the embodiment.
図 2 3は実施例における発光ダイォードの発光特性を示す図である。 図 2 4は従来の等階級表の例を示す図である。 1 FIG. 23 is a diagram showing the light emission characteristics of the light emitting diode in the example. FIG. 24 is a diagram showing an example of a conventional rank table. 1
発明を実施するための最良の形態 BEST MODE FOR CARRYING OUT THE INVENTION
以下、 本発明の一実施形態について図面を参照して説明する。 図 1は 本発明の実施例に係る梱包製品の等階級スタンプ読取り装置のプロック 図、 図 2は同読取り装置における撮像部の正面斜視図、 図 3は同撮像部 の平面図である。 該読取り装置は、 撮像系 A、 デ一夕処理系 Bで構成さ れている。  Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of a device for reading an equal-grade stamp of a packaged product according to an embodiment of the present invention, FIG. 2 is a front perspective view of an imaging unit in the reading device, and FIG. 3 is a plan view of the imaging unit. The reader comprises an imaging system A and a data processing system B.
撮像系 Aは、 読取り対象となる段ボール箱 1 0を搬送するコンベア 2 0の一部を覆う遮光暗室 1、 この遮光暗室 1内に配設され、 コンベア 2 0の近傍に配置された照明装置 2、 および、 照明装置 2を挟んでコンペ ァ 2 0 と反対側に配置された撮像手段としての C C Dカメラ 3で構成さ れている。 また、 デ一夕処理系 Bは、 C C Dカメラ 3からの画像データ を取り込んでモノクロの 2 5 6階調のデジタル画像データを出力する力 メラアダプタ 1 1、 カメラアダプタ 1 1からの画像デ一夕を取り込んで 、 予めプログラムされた判定ロジックにより段ボール箱 1 0の等階級表 中の等階級ス夕ンプの捺印位置を判定するパーソナルコンビュー夕 1 2 で構成されている。 なお、 このパーソナルコンピュータ 1 2の判定結果 は図示しない次段の工程 (種分け装置等) に出力される。  The imaging system A includes a light-shielding dark room 1 that covers a part of the conveyor 20 that transports a cardboard box 10 to be read, a lighting device 2 that is disposed in the light-shielding dark room 1 and that is disposed near the conveyor 20. , And a CCD camera 3 as imaging means disposed on the opposite side of the luminaire 2 from the comparator 20. The image processing system B is also capable of receiving image data from the CCD camera 3 and outputting monochrome digital image data of 256 gradations. The personal computer 12 is configured to determine the stamping position of the equal-grade stamp in the equal-grade table of the cardboard box 10 by taking into account the pre-determined logic. The result of the determination by the personal computer 12 is output to the next step (not shown) (such as a sorter).
照明装置 2は、 基台 2 1 と天板 2 4 との間で、 コンベア 2 0に沿って 配設された光拡散部材としての 2枚の対向する光拡散板 2 2— 1, 2 2 — 2、 この光拡散板 2 2— 1 , 2 2— 2のコンベア 2 0の搬送方向の両 端部分でこの光拡散板 2 2— 1 , 2 2 - 2の間に配置された照明光源 2 3— 1 , 2 3— 2を備えている。 2枚の光拡散板 2 2— 1 , 2 2— 2の 間隔は、 段ボール箱 1 0の側面に印刷された矩形の等階級表示部 4を少 なく とも含む範囲をカバ一するだけの間隔になっており、 この光拡散板 2 2 - 1 , 2 2— 2の互いに対向する面が光に対して反射拡散性を有し ている。 照明光源 2 3— 1, 2 3 - 2は赤色の多数の発光ダイオードを 内部に備えており、 各々の発光面 2 3— l a, 2 3— 2 aは光に対して 透過拡散性を有している。 また、 照明光源 2 3— 1 , 2 3— 2は、 光拡 散板 2 2— 1 , 2 2— 2で挟まれた空間に発光面 2 3— 1 a, 2 3— 2 aを向けて互いに対向して配置されている。 The illuminating device 2 includes two opposing light diffusion plates 2 2-1, 2 2-as light diffusion members disposed along the conveyor 20 between the base 21 and the top plate 24. 2. Illumination light sources 2 3 arranged between the light diffusing plates 22-1 and 22-2 at both ends of the conveyor 20 of the light diffusing plates 22-1 and 22-2 in the conveying direction. — It has 1, 2 3— 2. The distance between the two light diffusing plates 2 2-1 and 2 2-2 should be such that it covers at least the area that includes at least the rectangular equivalent class display section 4 printed on the side of the cardboard box 10. The opposing surfaces of the light diffusing plates 2 2-1 and 2 2-2 have the property of reflecting and diffusing light. ing. Illumination light sources 23-1, 23-2 have a large number of red light-emitting diodes inside, and each light-emitting surface 23-la, 23-2a has transmission and diffusion properties for light. ing. Also, the light sources 23-1 and 23-2 face the light emitting surfaces 23-1 a and 23-2 a to the space between the light diffusers 22-1 and 22-2. They are arranged facing each other.
C C Dカメラ 3は、 その撮像レンズ 3 1を光拡散板 2 2— 1, 2 2 - 2の間隙に臨ませ、 該撮像レンズ 3 1の光軸が光拡散板 2 2— 1 , 2 2 一 2と平行に、 且つ、 コンベア 2 0の搬送方向と直角となるように配置 されている。 これにより、 C CDカメラ 3は、 光拡散板 2 2— 1, 2 2 — 2の間隙を通してコンベア 2 0上の段ボール箱 1 0の側面を撮像する ο  The CCD camera 3 has the imaging lens 31 facing the gap between the light diffusion plates 22-1, 22-2, and the optical axis of the imaging lens 31 is adjusted to the light diffusion plates 22-1, 22-1, 22. And at a right angle to the conveying direction of the conveyor 20. Thus, the CCD camera 3 captures an image of the side surface of the cardboard box 10 on the conveyor 20 through the gap between the light diffusion plates 22-1, 22-2.
以上の構成により、 照明光源 2 3— 1 , 2 3— 2は内部の発光ダイォ 一ドの放射光により発光面 2 3— 1 a, 2 3 - 2 aで赤色光を拡散発光 し、 この拡散発光された赤色光は光拡散板 2 2— 1 , 2 2— 2の対向面 によってさらに反射拡散される。 これにより、 コンベア 2 0で搬送され る段ボール箱 1 0の側面 1 0 aに均一な赤色光が照射され、 この赤色光 が照射された段ボール箱 1 0の側面 1 0 aが C CDカメラ 3によって撮 像される。 そして、 この撮像した画像デ一夕に基づいて等階級表示部 4 の等階級スタンプの捺印位置を判定する。 なお、 照明光源 2 3— 1 , 2 3一 2の発光ダイォードは図 2 3のような発光特性を持っている。  With the above configuration, the illumination light sources 23-1 and 23-2 diffuse and emit red light on the light-emitting surfaces 23-1a and 23-2a by the radiation of the internal light-emitting diode. The emitted red light is further reflected and diffused by the opposing surfaces of the light diffusing plates 22-1 and 22-2. As a result, the side surface 10a of the cardboard box 10 conveyed by the conveyor 20 is uniformly illuminated with red light, and the side surface 10a of the cardboard box 10 illuminated with the red light is illuminated by the CCD camera 3. It is imaged. Then, the stamp position of the equivalent class stamp on the equivalent class display unit 4 is determined based on the captured image data. The light emitting diodes of the light sources 23-1 and 231-2 have light-emitting characteristics as shown in FIG.
ところで、 この実施例では段ボール箱は白色系である。 また、 段ボ一 ル箱は紙製であってもその表面が光沢面となることがあり、 照明光の当 て方によっては、 表面での反射光により撮像画像に極端な輝度ムラが生 じるので判定結果に影響することがある。  By the way, in this embodiment, the cardboard box is white. Even if the cardboard box is made of paper, its surface may be glossy, and depending on the way of illuminating light, reflected light on the surface may cause extreme brightness unevenness in the captured image. This may affect the determination result.
しか 1、 照明光源 2 3— 1の発光面 2 3— 1 aと照明光源 2 3— 2の 発光面 23 - 2 aとの位置関係は、 コンベア 2 0の搬送方向と平行な方 向、 すなわち段ボール箱 1 0の等階級表示部 4が印刷された側面 1 0 a と平行な方向で対面しているので、 照明光源 2 3— 1 , 2 3— 2からの 直接光は側面 1 0 aに対して低角度 (光線と側面との成す角度が小角度 ) で入射する。 このため、 段ボール箱 1 0の表面が光沢面であっても、 C C Dカメラ 3の位置から見て、 照明光源 2 3— 1, 2 3— 2からの直 接光が側面 1 0 aで反射して見えることなく、 極端な輝度ムラを無く し た画像データが得られる。 1, the light source 23-1a's light emitting surface 23-1a and the light source 23-2's light emitting surface 23-2a have a positional relationship parallel to the conveying direction of the conveyor 20. Direction, that is, the grade class display part 4 of the cardboard box 10 faces in the direction parallel to the printed side face 10a, so that the direct light from the illumination light sources 2 3-1, 2 Light is incident at a low angle to 0a (the angle between the light beam and the side surface is a small angle). For this reason, even if the surface of the cardboard box 10 is glossy, the direct light from the illumination light sources 23-1, 2-3-2 is reflected by the side face 10a when viewed from the position of the CCD camera 3. This makes it possible to obtain image data without extreme brightness unevenness without being seen.
なお、 C C Dカメラ 3で撮像するときは、 例えば、 コンベア 2 0の搬 送路近傍に配置したスィ ツチ等で段ボール箱 1 0を検出して、 その段ボ ール箱 1 0の側面の等階級表示部 4が C C Dカメラ 3の所定の視野内に 入るようにタイ ミングをとる。  When taking an image with the CCD camera 3, for example, a cardboard box 10 is detected by a switch or the like placed near the transport path of the conveyor 20, and the class of the side of the cardboard box 10 is classified. The timing is set so that the display unit 4 is within a predetermined field of view of the CCD camera 3.
図 4は実施例における段ボール箱 1 0の側面 1 0 aに印刷された等階 級表示部 4の一例を示す図であり、 図 4 (A) は多等階級のもの図 4 ( B ) は少等階級のものである。 等階級表示部 4は、 段ボール箱 1 0の側面 1 0 aに印刷され、 長方形の外枠 4 1、 外枠 4 1内で升目と各升目内に付 された丸付き数字とで構成された等階級表 4 2、 および、 等階級表 4 2 の長手方向の両側に位置する識別マークとしての画像参照マーク 4 3で 構成されている。 なお、 画像参照マーク 4 3は、 外周が上下方向に縦長 の長方形で内部に縦長の内抜き部を有している。  FIG. 4 is a view showing an example of the equal-grade display section 4 printed on the side face 10a of the cardboard box 10 in the embodiment, and FIG. 4 (A) is a multi-grade display of FIG. 4 (B). It is of a lower class. The equivalent class display section 4 is printed on the side face 10a of the cardboard box 10 and includes a rectangular outer frame 41, squares in the outer frame 41, and circled numbers attached to each square. It is composed of a class table 42, and image reference marks 43 as identification marks located on both sides in the longitudinal direction of the class table 42. Note that the image reference mark 43 has a vertically elongated rectangular shape on the outer periphery and a vertically elongated hollow portion inside.
この実施例では、 外枠 4 1 と等階級表 4 2は照明光源 2 3— 1, 2 3 - 2の赤色光を殆ど反射するような赤色で印刷され、. 画像参照マーク 4 3は黒色で印刷されている。 そして、 等階級スタンプ 5 , 5 ' は前記赤 色より輝度値の低い色 (例えば黒色) で捺印され、 理想的には図示の等 階級スタンプ 5のように等階級表 4 2の升目の内側に捺印される。 また 、 等階級スタンプ 5 ' のように升目からずれて捺印されることもあり、 このような場合でもどの等階級すなわちどの升目に捺印されたものであ るかを、 後述の判定ロジックにより判定する。 In this embodiment, the outer frame 41 and the grade table 42 are printed in red so that the red light of the illumination light sources 23-1, 23-2 is almost reflected. The image reference mark 43 is black. Printed. Then, the rank stamps 5 and 5 ′ are stamped with a color (for example, black) having a lower luminance value than the red color, and ideally, as shown in the illustrated rank stamp 5, inside the square of the rank table 42. It is stamped. Also, the stamp may be stamped off the square as in the class stamp 5 ', and even in such a case, the stamp is stamped on any square, that is, on which square. Is determined by a determination logic described later.
ここで、 段ボール箱 1 0、 照明装置 2および C C Dカメラ 3は遮光暗 室 1内にあり、 段ボール箱 1 0には照明装置 2によって赤色光だけが照 射される。 このため、 段ボール箱 1 0の側面 1 0 aを C C Dカメラ 3で 撮像したとき、 2 5 6階調の画像データにおいて、 等階級表示部 4のう ち赤色の外枠 4 1 と等階級表 4 2の部分は殆ど側面 1 0 aと同等な輝度 値となり、 黒色の画像参照マーク 4 3 と等階級スタンプ 5 , 5 ' が周り と異なる顕著な輝度値となる。 したがって、 この画像データの輝度値を 所定のしきい値で 2値化することにより、 画像参照マーク 4 3 と等階級 スタンプ 5, 5 ' の形状および画像デ一夕上の位置を抽出することがで きる。 また、 等階級表 4 2 と画像参照マーク 4 3は予め決められた所定 の位置関係にあるので、 この画像参照マーク 4 3の位置 (画像デ一夕上 の位置) から等階級表 4 2の升目の位置も一義的に決めることができる パ一ソナルコンビュ一夕 1 2は、 プログラムを実行する C P U、 入出 力制御などの基本プログラム (B I O S等) を記憶した R O M、 ヮ一キ ングェリァゃビデオメモリなどに用いる R A M、 その他大容量メモリで あるハードディスク、 およびフロッピーディスク ドライブ等を備えてお り、 判定ロジックを構成する処理プログラムは、 例えばフロッピ一ディ スク ドライブから入力され、 R A Mあるいはハードディスクに展開され 、 C P Uによって実行される。  Here, the cardboard box 10, the lighting device 2, and the CCD camera 3 are in the shading darkroom 1, and the cardboard box 10 is illuminated by the lighting device 2 with only red light. For this reason, when the side surface 10a of the cardboard box 10 is imaged by the CCD camera 3, the outer frame 4 1 of the equivalent class display section 4 and the class table 4 The portion 2 has almost the same luminance value as the side surface 10a, and the black image reference mark 43 and the equal-grade stamps 5 and 5 'have remarkable luminance values different from the surroundings. Therefore, by binarizing the luminance value of this image data with a predetermined threshold value, it is possible to extract the shapes of the image reference mark 43 and the equivalent class stamps 5, 5 'and the positions over the image data. it can. In addition, since the rank table 42 and the image reference mark 43 are in a predetermined positional relationship, the position of the image reference mark 43 (the position on the image data) indicates the rank of the rank table 42. The position of the squares can be uniquely determined. The personal computer 12 is a CPU that executes programs, a ROM that stores basic programs (BIOS, etc.) for input / output control, etc., a video memory, etc. RAM, a hard disk that is a large-capacity memory, a floppy disk drive, and the like. A processing program that constitutes the determination logic is input from, for example, a floppy disk drive and is expanded on the RAM or the hard disk. Performed by
図 5〜図 8はパーソナルコンピュータ 1 2における判定ロジックの処 理の流れを示すメィ ンル一チンおよびサブルーチンのフ口一チャート、 図 9は同判定ロジックの機能プロック図であり、 同図に基づいて判定口 ジックについて説明する。 なお、 画像デ一夕は R A Mのワーキングエリ ァ等に記憶することができ、 さらにこの画像デ一夕の画素の位置座標か ら、 撮像した画像中の各部の位置や大きさは、 公知な画像演算処理や計 算処理により求めることができるので、 このような画像演算処理や計算 処理の詳細な説明については省略する。 5 to 8 are main routines and subroutine flowcharts showing the flow of processing of the judgment logic in the personal computer 12, and FIG. 9 is a functional block diagram of the judgment logic. The judgment port will be described. The image data can be stored in a working area or the like of the RAM. Therefore, since the position and size of each part in the captured image can be obtained by known image calculation processing and calculation processing, detailed description of such image calculation processing and calculation processing is omitted.
図 5は判定ロジックの大きな流れを示すメインフローのフローチヤ一 トであり、 先ず、 ステップ S 1で 2 5 6階調画像の画像デ一夕を取り込 み、 ステップ S 2で図 6の 2値化処理を行って、 2 5 6階調画像の画像 データを各画素毎に黒か白 ( 0または 1 ) の 2階調画像の画像データに 変換する。 次に、 ステップ S 3で図 7の画像参照マーク検出処理を行つ て、 2階調画像から画像参照マークの位置や面積等を求め、 ステップ S 4で図 8のス夕ンプ検出処理を行って、 等階級表の各升目中の等階級ス 夕ンプの有無を判定する。  FIG. 5 is a flow chart of the main flow showing a large flow of the determination logic. First, in step S1, the image data of the 256-tone image is captured, and in step S2, the binary values in FIG. Then, the image data of the 256-tone image is converted into black or white (0 or 1) 2-tone image data for each pixel. Next, in step S3, the image reference mark detection processing of FIG. 7 is performed to obtain the position and area of the image reference mark from the two-tone image, and in step S4, the skip detection processing of FIG. 8 is performed. Then, it is determined whether or not there is a class jump in each cell of the class table.
( 2値化処理)  (Binarization processing)
図 6の 2値化処理では、 ステップ S 2 1で、 2 5 6階調画像の画像全 体の平均輝度値 ( 「全体画像平均輝度値」 という。 ) を求め、 ステップ S 2 2で、 画像全体を複数領域に分割した部分画像それぞれについての 平均輝度値 ( 「部分画像平均輝度値」 という。 ) を計算する。 次に、 ス テツプ S 2 3で、 全体画像平均輝度値と部分画像平均輝度値とに基づい て、 部分画像毎に 2値化するためのしきい値 ( 「部分画像 2値化しきい 値」 という。 ) を計算し、 ステップ S 2 4で部分画像 2値化しきい値に 基づいて各部分画像単位で各画素を 2値化して 2階調画像の画像データ に変換する。 そして、 メインルーチンに復帰する。  In the binarization process shown in FIG. 6, in step S21, the average luminance value of the entire image of the 256-tone image (referred to as the "entire image average luminance value") is obtained. Calculate the average luminance value (referred to as “partial image average luminance value”) for each partial image obtained by dividing the whole into multiple regions. Next, in step S23, a threshold value for binarizing each partial image based on the average luminance value of the entire image and the average luminance value of the partial images (referred to as “partial image binarization threshold”) ) Is calculated, and in step S24, each pixel is binarized in units of each partial image based on the partial image binarization threshold value, and is converted into image data of a two-tone image. Then, the process returns to the main routine.
上記ステヅプ S 2 1〜ステップ S 2 4の処理を図 1 0〜図 1 3に基づ いて説明する。 図 1 0は全体画像平均輝度計算処理 (ステップ S 2 1 ) を示しており、 図 1 0 ( A) のような 2 5 6階調画像の全体画像 Vの輝度 分布 ( 2 5 6階調の輝度値に対する画素数の分布) は、 例えば図 1 0 ( B ) のようになる。 そこで、 例えば各画素の輝度値の総和を全画素数で割 - 1 The processing of the above steps S21 to S24 will be described with reference to FIGS. FIG. 10 shows the whole image average luminance calculation processing (step S 21), and the luminance distribution of the whole image V of the 256-tone image shown in FIG. The distribution of the number of pixels with respect to the luminance value) is, for example, as shown in FIG. 10 (B). Therefore, for example, the sum of the luminance values of each pixel is divided by the total number of pixels. -1
12  12
るなどして、 図 10 (B) に破線で示したように全体画像平均輝度値 (G ) 求める。  Then, the average luminance value (G) of the entire image is obtained as shown by the broken line in FIG. 10 (B).
図 1 1は部分画像平均輝度値計算処理 (ステップ S 22) を示してお り、 図 1 1 (A) のように、 全体画像 Vを 13行 X 48列の 624個の部 分画像に分割する。 そして、 全ての部分画像について全体画像平均輝度 値と同様な平均処理により、 部分画像平均値 (Ln) を求める。 例えば 部分画像 a, b, cの各輝度分布は図 1 1 (B) ~(D) のようになり、 破 線で示したように各部分画像平均輝度値 (L a, Lb, L c ) を求める ο  Fig. 11 shows the partial image average brightness value calculation processing (step S22). As shown in Fig. 11 (A), the whole image V is divided into 624 partial images of 13 rows x 48 columns. I do. Then, the average value of the partial images (Ln) is obtained by the same averaging process as the average luminance value of the entire image for all the partial images. For example, the luminance distributions of partial images a, b, and c are as shown in Figs. 11 (B) to (D), and the average luminance values of each partial image (La, Lb, Lc) are indicated by the broken lines. Ask for ο
図 1 2は部分画像 2値化しきい値計算処理 (ステップ S 23 ) を示し ており、 例えば図 1 2(A) 〜(C) のように、 各部分画像について全体画 像平均輝度値 (G) と部分画像平均輝度値 (Ln) から次式 ( 1 ) によ り部分画像 2値化しきい値 (THDn) を求める。  FIG. 12 shows the partial image binarization threshold value calculation processing (step S23). For example, as shown in FIGS. 12 (A) to 12 (C), the average luminance value (G ) And the partial image average luminance value (Ln), the partial image binarization threshold (THDn) is obtained by the following equation (1).
THDn = K l x f (G, L n) ( 1 )  THDn = K l x f (G, L n) (1)
ただし、 n : 部分画像のイ ンデックス  Where n is the index of the partial image
K 1 : 2値化しきい値率 (デフォルトは 0. 7 5) f (X , y) : 評価関数 (デフォルトは (x + y) / 2 ) なお、 図 1 2 (A) 〜(C) は部分画像 a, b, cについて、 全体画像平 均輝度値 (G) 、 部分画像平均輝度値 (L a, Lb, L c ) および部分 画像 2値化しきい値 (THD a, THD b, T H D c ) の関係を示して いる。  K 1: Binarization threshold rate (Default is 0.75) f (X, y): Evaluation function (Default is (x + y) / 2) Note that Fig. 12 (A) to (C) For partial images a, b, and c, the average luminance value of the whole image (G), the average luminance value of the partial images (L a, Lb, L c), and the threshold values of the partial image binarization (THD a, THD b, THD c ).
図 13は部分画像 2値化処理 (ステップ S 24 ) で得られた 2階調画 像の例を示しており、 全ての部分画像 nに対し、 部分画像 2値化しきい 値 (THDn) を用いて次式 ( 2) によ り 2値化処理を行い、 2階調画 像を生成する。 1 ; I (x, y) ≥ THD n Fig. 13 shows an example of a two-tone image obtained in the partial image binarization process (step S24). For all partial images n, the partial image binarization threshold (THDn) is used. Then, binarization processing is performed by the following equation (2) to generate a two-tone image. 1; I (x, y) ≥ THD n
0 (x, y ) ( 2 )  0 (x, y) (2)
0 ; I (x3 ) <THDn ただし、 1 : 256階調画像の輝度値 0; I (x 3 ) <THDn where 1: luminance value of 256 gradation image
0 : 2階調画像の輝度値  0: Luminance value of two-tone image
X , y : 部分画像 n内の座標  X, y: coordinates in partial image n
(画像参照マーク検出処理)  (Image reference mark detection processing)
図 7の画像参照マーク検出処理では、 ステップ S 3 1で、 段ボール箱 1 0に印刷された等階級表示部 4の後述説明する種類に応じて画像参照 マーク検出エリアの検査順序 (スケジュール) を設定し、 ステップ S 3 2で、 各画像参照マーク検出エリアについて、 画像中で輝度値が " 0" (黒色) で連続する画素の塊のそれぞれに異なるラベルを割り当てるラ ベリング処理を行う。 次に、 ステップ S 33で、 画像参照マークの特徴 に対応する複数の検査項目に基づいて画像参照マークを検出するととも に、 この画像参照マークの面積を求める画像参照マーク検出処理を行う 。 そして、 ステップ S 34で、 画像参照マークの特徴点の位置 (重心位 置、 上端位置、 下端位置) を求める画像参照マーク位置計算処理を行う 上記ステヅプ S 3 1〜ステップ S 34の処理を図 1 4〜図 1 7に基づ いて説明する。 図 14は画像参照マーク検出ェリァのスケジュール設定 処理 (ステップ S 3 1 ) を示している。 この実施例では、 等階級表示部 4として前掲の図 4(A) を用いている。 この図 4(A) の等階級表示部 4 は等階級の評価段階が多い場合のもので、 等階級表 42の升目の数が図 4(B) のものより多くなつており、 2つの画像参照マ一ク 43の間隔も 広くなつている。 そこで、 図 14に示したように、 全体画像 Vに対して 左端、 中央、 右端の 3つの画像参照マーク検出エリア E 1, E 2 , E 3 を予め設定してある。 そして、 画像参照マーク検出エリアの検査順序を 、 図 4 (A ) の等階級表示部 4に対しては E 1→Έ 3→Ε 2の順に設定し 、 図 4 ( Β ) の等階級表示部 4に対しては E 1 E 2 Ε 3を順次設定す ο In the image reference mark detection process of FIG. 7, in step S31, the inspection order (schedule) of the image reference mark detection area is set according to the type of the class display unit 4 printed on the cardboard box 10 described later. Then, in step S32, for each image reference mark detection area, a labeling process of assigning a different label to each block of pixels having a luminance value of "0" (black) in the image is performed. Next, in step S33, an image reference mark is detected based on a plurality of inspection items corresponding to the features of the image reference mark, and an image reference mark detection process for obtaining an area of the image reference mark is performed. Then, in step S34, an image reference mark position calculation process is performed to determine the positions (center of gravity, upper end position, lower end position) of the feature points of the image reference mark. The processes of the above steps S31 to S34 are shown in FIG. This will be described with reference to FIGS. FIG. 14 shows the schedule setting processing (step S31) of the image reference mark detection error. In this embodiment, the above-mentioned FIG. The class rank display section 4 in Fig. 4 (A) is for the case where there are many grade evaluation stages.The number of squares in the class scale table 42 is larger than that in Fig. 4 (B). The interval between the reference marks 43 is also wide. Therefore, as shown in FIG. 14, three image reference mark detection areas E 1, E 2, E 3 at the left end, the center, and the right end with respect to the entire image V Is set in advance. Then, the inspection order of the image reference mark detection area is set in the order of E1 → Έ3 → Ε2 for the rank display section 4 of FIG. 4 (A), and the rank order display section of FIG. 4 (() is set. Set E 1 E 2 Ε 3 in order for 4 ο
図 1 5はラベリング処理 (ステップ S 3 2 ) を示している。 この図は 画像参照マーク 4 3の上下に汚れが有る場合を示しており、 上下の汚れ の部分と画像参照マーク 4 3の部分とが、 画素の輝度値が " 0 " (黒色 ) の部分でありこの同じ輝度値を持つ画素の塊を形成している。 そこで 、 例えば上の汚れ部分、 画像参照マークの部分、 下の汚れの部分の順に 、 ラベル 1、 ラベル 2、 ラペル 3のように、 それぞれ異なるラベルを定 める。  FIG. 15 shows the labeling process (step S32). This figure shows a case where dirt is present above and below the image reference mark 43. The dirt above and below the image reference mark 43 is the part where the pixel luminance value is "0" (black). A cluster of pixels having the same luminance value is formed. Therefore, different labels are defined, for example, label 1, label 2, and lapel 3 in the order of the upper dirt part, the image reference mark part, and the lower dirt part.
図 1 6は画像参照マーク検出処理 (ステップ S 3 3 ) における画像参 照マークの特徴に対応する複数の検査項目を示しており、 上記各ラベル についてその画像の塊が画像参照マークであるか否かを判定するために 、 各ラベルの画像の塊の画素の座標から各検査項目の計算を行う。 検査 項目と各項目を満足するための検査条件を次表 1に示す。 FIG. 16 shows a plurality of inspection items corresponding to the features of the image reference mark in the image reference mark detection processing (step S33). For each of the above labels, whether or not the block of the image is an image reference mark is determined. In order to determine whether or not each inspection item is calculated from the coordinates of the pixels of the block of the image of each label. Table 1 shows the inspection items and the inspection conditions for satisfying each item.
画像参照 画像参照マ-ク 画像参照トク検査条件 Image reference Image reference mark Image reference discount inspection conditions
マ-ク 検査 検査内容 (テ、、フォルト)  Mark Inspection Inspection contents (te, fault)
項目  Item
下限値 上限値  Lower limit Upper limit
1 ) 主軸 主軸の長方向距離 1 3 0画素 1) Main shaft Long distance of main shaft 1 30 pixels
長距離 (画像取込範  Long distance (image capture range
囲の高さ)  Height of the enclosure)
2 ) 主軸 主軸の角度(tan 6> 7 5度〜 1 1 5度 長角度 評価) 2) Main shaft Main shaft angle (tan 6> 75 degree ~ 1 15 degree long angle evaluation)
3 ) 主軸 主軸の長方向距離 0 . 5 2 . 0 と副軸の と副軸の長方向距 3) Main axis Longitudinal distance of main axis 0.5 .20.0
長距離比 離との距離比  Long distance ratio Distance ratio
4 ) 主軸 主軸の短方向距離 0 . 5 2 . 0 と副軸の と副軸の短方向距 4) Main shaft Short distance 0.5.22.0 of main shaft, short distance of sub shaft and sub shaft
短距離比 離との距離比  Short distance ratio Distance ratio to separation
5 ) 面積 ラへ、、ル面積とラへ Ίレ内 0 . 5 2 . 0 と穴面積 にある穴面積との 5) Area The area between 0.5 and 2.0 and the hole area in the hole area
比 面積比  Specific area ratio
6 ) 穴数 ラへ Ίレ内にある穴数 1個 表 1 6) Number of holes
上記の検査項目の検査条件を全て満足するラベルを画像参照マークと 定める。 その際、 その画像参照マークと定めたラベルに対応する塊の面 積を画像参照マーク面積 (M m ) を求める。 ただし、 mは画像参照マ一 ク番号であり、 1は左側、 2は右側を示す。  A label that satisfies all the inspection conditions of the above inspection items is defined as an image reference mark. At this time, the area of the block corresponding to the label defined as the image reference mark is determined as the image reference mark area (M m). Here, m is the image reference mark number, 1 indicates the left side, and 2 indicates the right side.
図 1 7は画像参照マーク位置計算処理 (ステップ S 3 4 ) における画 像参照マークの特徴点の位置すなわち重心位置、 上端位置、 下端位置を 示しており、 画像参照マークとして定められたラベルに対応する塊から 、 これらの特徴点の位置 (Pum, P gm, P dm) を計算する。 ただ し、 Puはマーク上端、 P gはマーク重心、 P dはマーク下端の位置を 示し、 mは画像参照マーク番号を示す。 Figure 17 shows the positions of the feature points of the image reference mark in the image reference mark position calculation processing (step S34), that is, the center of gravity, the upper end position, and the lower end position. The positions (Pum, P gm, P dm) of these feature points are calculated from the chunk corresponding to the label defined as the image reference mark. However, Pu indicates the top of the mark, Pg indicates the center of gravity of the mark, Pd indicates the position of the bottom of the mark, and m indicates the image reference mark number.
(スタンプ検出処理)  (Stamp detection processing)
図 8のスタンプ検出処理では、 ステップ S 4 1で、 画像参照マーク面 積 (Mm) と実際の画像参照マークの面積 (既知) から、 正しく捺印さ れた等階級スタンプが撮像された場合の画像上の面積 ( 「スタンプ論理 面積」 ) を計算する。 次に、 ステップ S 42で、 画像参照マークの検出 位置 (Pum, P m, P dm) から、 等階級表の升目 (以後、 「等階 級枠」 という。 ) の画像上の位置を計算する。 なお、 等階級表示部 4に おいて、 画像参照マーク 43と等階級表 42は一定の位置関係にあるの で、 等階級表の画像上の位置を計算できる。  In the stamp detection process shown in Fig. 8, in step S41, an image of a correctly stamped class stamp is taken from the image reference mark area (Mm) and the actual image reference mark area (known). Calculate the area above (“stamp logic area”). Next, in step S42, the position on the image of the cell of the class table (hereinafter referred to as "class class frame") is calculated from the detected position (Pum, Pm, Pdm) of the image reference mark. . In the class display section 4, since the image reference mark 43 and the class table 42 have a fixed positional relationship, the position of the class table on the image can be calculated.
次に、 ステップ S 43で、 等階級表の画像上の位置に基づいて、 この 等階級表の等階級枠の内接枠をスタンプ面積検出枠として求めるととも に、 このス夕ンプ面積検出枠内にス夕ンプと同程度の矩形のス夕ンプ面 積強調枠を設定するスタンプ面積検出枠の計算を行う。  Next, in step S43, based on the position of the class table on the image, the inscribed frame of the class box of the class table is obtained as a stamp area detection frame, and the stamp area detection frame is obtained. Calculate the stamp area detection frame that sets a rectangular sweep area emphasizing frame of the same size as that of the stamp.
次に、 ステップ S 44で、 スタンプ面積検出枠内の画像のノイズを除 去するために、 画像の黒の部分を周囲に 1画素分太らせて白の部分を細 らせた画像とする膨張処理と、 この画像の白の部分を周囲に 1画素分太 らせて黒の部分を細らせた画像とする処理をそれぞれ各 2回ずつ行う膨 張 ·圧縮処理を行う。  Next, in step S44, in order to remove noise of the image in the stamp area detection frame, the black portion of the image is enlarged by one pixel around and the white portion is reduced to make the image thinner. An expansion / compression process is performed in which the image and the process of making the black portion thinner by enlarging the white portion by one pixel around the image twice each.
次に、 ステップ S 45で、 各スタンプ面積検出枠についてのスタンプ 面積 (S) を次式 ( 3) から計算する。 なお、 スタンプ膨張圧縮正規化 係数は、 円形のスタンプに膨張 ·圧縮処理を施すと、 元のサイズに戻ら ない、 この時のデフォルト値はひ = 1. 07である。 S a Next, in step S45, the stamp area (S) for each stamp area detection frame is calculated from the following equation (3). Note that the stamp expansion / compression normalization coefficient does not return to its original size when a circular stamp is subjected to expansion / compression processing. The default value at this time is hi = 1.07. S a
s + S b x ? ( 3 ) a  s + S b x? (3) a
ただし、 S a : ス夕ンプ面積検出枠内の面積  Where S a is the area within the detection area
S b : スタンプ面積強調枠内の面積  S b: Area within the stamp area emphasis frame
: スタンプ膨張圧縮正規化係数 : Stamp expansion / compression normalization coefficient
5 : ス夕ンプ面積強調荷重率  5: Sump area emphasis load factor
次に、 ステップ S 4 6で、 次式 ( 4 ) によりスタンプ面積率 (R) を 計算する。  Next, in step S46, the stamp area ratio (R) is calculated by the following equation (4).
S  S
R ( 4 )  R (4)
S L  S L
ただし、 S : ス夕ンプ面積  Where S is the sump area
S L : ス夕ンプ論理面積  S L: Sump logical area
そして、 ステップ S 4 7で、 スタンプ有無判定条件に基づいて、 等階 級表の各升目内のス夕ンプの有無を判定する。  Then, in step S47, it is determined whether or not there is a jump in each cell of the equal rank table based on the stamp presence / absence determination condition.
上記ステップ S 4 3 , 44およびステップ S 4 7の処理を図 1 8〜図 2 2に基づいて説明する。 図 1 8はス夕ンプ面積検出枠計算処理 (ステ ップ S 4 3 ) を示しており、 ステップ S 4 2で計算で求めた等階級表の 位置から、 等階級枠の内接枠をスタンプ面積検出枠とし、 その位置を計 算で求める。 また、 このスタンプ面積検出枠の内側にスタンプと同程度 の矩形のスタンプ面積強調枠を計算によ り設定する。  The processing of the above steps S43, 44 and step S47 will be described with reference to FIGS. Fig. 18 shows the calculation process of the detection area of the stamp area (step S43). The inscribed frame of the equal-grade frame is stamped from the position of the equal-grade table calculated in step S42. The area detection frame is used, and its position is calculated. In addition, a rectangular stamp area emphasizing frame of the same size as the stamp is set inside the stamp area detecting frame by calculation.
なお、 等階級表の画像は例えば図 1 9のようになり、 図 1 9 (A) は等 階級枠が印刷された段ボール箱の面が傾いていない場合、 図 1 9 (B) は 段ボール箱の面が傾いていた場合の例である。 この図 1 9 (B) のように 等階級表が変形しても、 画像参照マークもそれなりに変形しているので 、 ステップ S 4 2で計算によ り求めた等階級表の位置は、 変形したなり に求められる。 したがって、 等階級枠の内接枠であるスタンプ面積検出 枠およびス夕ンプ面積強調枠も同様に変形したものとなるが、 このよう に変形したものでも、 スタンプの有無は面積の比率で検出するので影響 がない。 Note that the image of the class table is shown in Fig. 19, for example.Fig. 19 (A) shows the case where the surface of the cardboard box on which the class frame is printed is not inclined, and Fig. 19 (B) shows the cardboard box. This is an example in the case where the surface is inclined. Even if the class table is deformed as shown in Fig. 19 (B), the image reference mark is also deformed as such, so the position of the class table calculated in step S42 is transformed. It is required immediately. Therefore, the stamp area, which is the inscribed frame of the class The frame and the stamp area emphasis frame are also deformed in the same way, but even with such a deformation, the presence or absence of the stamp is detected by the ratio of the area, so there is no effect.
図 2 0は膨張 ·圧縮処理 (ステップ S 4 4 ) の結果を示しており、 図 示のようにス夕ンプの画像 Sは図 1 8のような白のノィズが除去されて いる。 すなわち、 画像の黒の部分を周囲に太らせることで黒の部分にあ る白のノイズが除去され、 また、 画像の白の部分を細らせることで、 白 の部分にある黒のノィズが除去される。  FIG. 20 shows the result of the expansion / compression processing (step S44). As shown in the figure, the white noise as shown in FIG. That is, white noise in the black part is removed by thickening the black part of the image around, and black noise in the white part is reduced by thinning the white part of the image. Removed.
図 2 1はスタンプ有無判定処理 (ステップ S 4 7 ) における判定対象 の等階級枠の一例を示している。 判定対象の等階級梓 (斜線部分) 、 お よびこの判定対象の等階級枠に隣接する等階級枠 (この例では、 下およ び左右の 3つ) の各スタンプ面積率 (R ) を合計し、 この合計値 ( 「隣 接スタンプ面積率合計値」 ) からスタンプが幾つ集中しているかを判定 し、 この集中度合からス夕ンプ有無判定しきい値を決定する。  FIG. 21 shows an example of a class frame to be determined in the stamp presence / absence determination process (step S47). The sum of the stamp area ratios (R) of the class Azusa (the shaded area) to be judged and the class class adjacent to the class Judgment to be judged (in this example, the bottom and left and right three) Then, it is determined how many stamps are concentrated based on the total value (“the total value of the adjacent stamp area ratios”), and the threshold value for determining whether or not the stamp is present is determined based on the degree of concentration.
すなわち、 図 2 2に示したように、 判定対象等階級枠 (斜線の部分) にス夕ンプが押されない場合でも、 その周囲の等階級枠に押されたス夕 ンプがこの判定対象等階級枠内にズレている場合があり、 この場合、 そ のはみ出し部分が判定対象等階級枠のスタンプ面積率として検出される ことになる。 また、 このような判定対象等階級枠へのはみ出し部分の面 積は、 隣接する等階級枠に幾つのスタンプが押されるかに関係する。 例えば、 図 2 2 (A) のように、 周囲の等階級枠にスタンプが押されて いない場合は、 はみ出し部分の面積は 0であるが、 図 2 2 ( B ) 〜(D ) の ように、 周囲のスタンプが 1個、 2個、 3個となるにしたがって、 判定 対象等階級枠へのはみ出し部分の面積が多くなる傾向を示す。 すなわち 、 周囲のスタンプの個数が増えるに伴って、 判定対象等階級枠のスタン プ面積率が大きくなる傾向になる。 そこで、 判定対象等階級枠とその周 囲の等階級枠による隣接スタンプ面積率合計値から、 判定対象等階級枠 およびその周囲の等階級枠に何個のス夕ンプが押された場合か (集中度 ) を先ず判定し、 この集中度に基づいて判定対象等階級枠のスタンプ面 積率に対する判定しきい値 (スタンプ有無判定しきい値) を決定する。 そして、 場合に応じたこのス夕ンプ有無判定しきい値によりスタンプ の有無を判定する。 なお、 隣接する等階級枠は、 上下左右の等階級枠で あり、 判定対象の等階級枠が両端の場合は 2つ、 それ以外は 3つとなる 。 また、 隣接スタンプ面積率合計値は合計値であるので 1 0 0 %以上の 値となることもある。 In other words, as shown in Fig. 22, even when the stamp is not pushed in the judgment target class frame (shaded area), the stamp pushed in the surrounding class class frame is determined by this judgment target class. In some cases, there is a deviation within the frame, and in this case, the protruding portion is detected as the stamp area ratio of the equal-grade frame to be determined. Also, the area of such a portion that protrudes into the class frame to be determined depends on how many stamps are stamped on the adjacent class frame. For example, as shown in Fig. 22 (A), when no stamp is stamped on the surrounding class, the area of the protruding part is 0, but as shown in Figs. 22 (B) to (D). However, as the number of surrounding stamps becomes 1, 2, or 3, the area of the part protruding into the judgment target class frame tends to increase. In other words, as the number of surrounding stamps increases, the stamp area ratio of the equal class frame to be determined tends to increase. Therefore, the class class to be judged and its surroundings From the total value of the adjacent stamp area ratios by the surrounding class frames, it is first determined how many stamps (concentration degree) have been pressed in the judgment class frame and the surrounding class frames. Based on the degree, the judgment threshold (stamp presence / absence judgment threshold) for the stamp area ratio of the target class frame is determined. Then, the presence / absence of a stamp is determined based on the threshold value for determining the presence / absence of the pump depending on the case. The adjacent class frames are the upper, lower, left, and right class frames. If the class frame to be judged is at both ends, there are two, and the other classes are three. Also, since the total value of the adjacent stamp area ratio is the total value, it may be 100% or more.
隣接ス夕ンプ面積率合計値に対応する集中度合、 ス夕ンプ有無判定し きい値およびスタンプ有無判定結果の対応関係の一例を次表 2に示す。 Table 2 shows an example of the correspondence between the degree of concentration, the threshold value for judging the presence / absence of stamps, and the result of judging the presence / absence of stamps, corresponding to the total value of the area ratios of adjacent lamps.
隣接スタンフ。面積 スタン: 7°集 スタンフ°有無判定 スタンフ°有無 率合計値 中度合 しきい値 判定結果 下限値 上限値 下限値 上限値 Adjacent stanf. Area Stan: 7 ° collection Stanf ° presence / absence Stanf ° presence / absence ratio Total value Medium threshold value Judgment result Lower limit Upper limit Lower limit Upper limit
50% 0個 50% 0
朱 ί¾  Zhu ί¾
50% 134% 1個 50%未満 50% 134% 1 piece Less than 50%
以上 未 ί¾  No more 未
50%以上 268%未満 有  50% or more and less than 268% Yes
134% 225% 2個 67%未満 134% 225% 2 pieces Less than 67%
以上 朱満  More
67%以上 268%未満 有  67% or more and less than 268% Yes
225% 770% 3 4個 75%未満 225% 770% 3 4 less than 75%
以上 朱^ j  More vermilion ^ j
75 %以上 268%未満 有  75% or more and less than 268% Yes
770% 5個以上 判定不能 以上 表 2 770% 5 or more undecidable or more Table 2
以上の各処理によ り、 照明むらなどの影響を低減した画像データを得 ることができるとともに、 等階級表内の等階級ス夕ンプの捺印位置を自 動的に精度良く読み取れ、 さらに判定対象の等階級枠の周囲のスタンプ のずれなどの影響も低減することができるので、 等階級表の升目内の等 階級スタンプの有無を精度良く判定することができる。 そこで、 この結 果を種分け装置等に利用することにより、 検査官等の目視ゃ目視判定結 果の入力等を必要とせず、 種分け作業の負担を軽減することができる。 以上のように、 図 5〜図 8のフ口一チヤ一トおよび図 9の機能プロッ ク図に示した処理プログラムは、 実施例ではパーソナルコンビュー夕 1 2すなわちコンビュ一夕で実行しており、 これにより上記の効果が得ら れる。 なお、 この処理プログラムは、 フロッピィディスク、 ハードディ スク、 M D、 C D— R O M、 磁気テープ、 R O M、 R A Mなどの各種の 媒体を介してコンピュータに供給することができ、 上記処理プログラム が記録されたこれらの媒体は本発明の請求項 2の媒体に相当するもので あ o 産業上の利用可能性 Through the above processing, it is possible to obtain image data with reduced effects such as uneven lighting, and to automatically and accurately read the stamp position of the equal-grade stamp in the equal-grade table, and further determine Since the influence of the displacement of the stamp around the target class frame can be reduced, the presence or absence of the class stamp in the square of the class table can be determined with high accuracy. Therefore, by using this result for a sorting device or the like, it is not necessary for the inspector or the like to input a visual / visual determination result, and the burden of the sorting operation can be reduced. As described above, the processing program shown in the flowchart of FIG. 5 to FIG. 8 and the function block diagram of FIG. 2 That is, the program is being executed overnight, and the above effects can be obtained. This processing program can be supplied to a computer via various media such as a floppy disk, a hard disk, an MD, a CD-ROM, a magnetic tape, a ROM, and a RAM. The medium is equivalent to the medium of claim 2 of the present invention.o Industrial applicability
以上説明したように、 本発明の請求の範囲 1記載の梱包製品の等階級 ス夕ンプ読取り装置によれば、 等階級表内の等階級ス夕ンプの捺印位置 を自動的に精度良く読み取ることができ、 等階級ス夕ンプを用いた梱包 製品の種分け作業の負担を軽減するこができる。  As described above, according to the packing product equivalent class stamp reading device described in claim 1 of the present invention, the stamp position of the class sorting stamp in the class table can be automatically and accurately read. This can reduce the burden of sorting products using a class-grade lamp.
また、 本発明の請求の範囲 2記載の梱包製品の等階級スタンプ読取り 装置によれば、 ス夕ンプの画像を精度良く読み取りながら梱包製品の自 動種分けなどを行うことができる。  According to the apparatus for reading a stamp of equal rank of a packaged product according to the second aspect of the present invention, it is possible to automatically sort a packaged product while reading an image of a stamp with high accuracy.
また、 本発明の請求の範囲 3記載の梱包製品の等階級スタンプ読取り 装置によれば、 該梱包製品の表面での直接反射光による画像への影響を 低減でき、 等階級表内の等階級スタンプの捺印位置を自動的に精度良く 読み取ることができ、 等階級スタンプを用いた梱包製品の種分け作業の 負担を軽減するこができる。  Further, according to the apparatus for reading a rank stamp of a packaged product according to claim 3 of the present invention, it is possible to reduce the influence on the image due to the direct reflection light on the surface of the packaged product, and the rank stamp in the rank table. It can automatically and accurately read the stamping position of the product, and can reduce the burden of sorting products using a graded stamp.
また、 本発明の請求の範囲 4記載の梱包製品の等階級ス夕ンプ読取り 装置によれば、 等階級表と同色の照明光を安定して照射することができ 、 等階級表内の等階級スタンプの捺印位置を自動的に精度良く読み取る ことができ、 等階級スタンプを用いた梱包製品の種分け作業の負担を軽 減するこができる。  Further, according to the apparatus for reading a rank of a packaging product according to claim 4 of the present invention, it is possible to stably irradiate illumination light of the same color as the rank of the rank, and the rank in the rank of the rank is displayed. The stamping position of the stamp can be automatically read with high accuracy, and the burden of classifying packing products using graded stamps can be reduced.
また、 本発明の請求の範囲 5記載の梱包製品撮像用の照明装置によれ ば、 梱包製品の平面部での直接反射光による画像への影響が低減される とともに、 光拡散部材の光拡散面により平面部に対して均一な照明光を 照射できる。 Further, according to the lighting device for imaging a packaged product according to claim 5 of the present invention. For example, the influence of the direct reflection light on the flat part of the packaged product on the image is reduced, and the flat part can be uniformly illuminated by the light diffusing surface of the light diffusing member.
また、 本発明の請求の範囲 6記載の梱包製品撮像用の照明装置によれ ば、 等階級表と同色の照明光を安定して照射することができる。  Further, according to the illumination device for imaging a packaged product described in claim 6 of the present invention, illumination light of the same color as that of the grade table can be stably emitted.
また、 本発明の請求の範囲 7記載の梱包製品の等階級スタンプ判定方 法によれば、 撮像時の照明むら等の影響を低減した 2階調画像が得られ るとともに、 周囲の等階級枠についてのス夕ンプのズレなどの影響を低 減でき、 等階級表の升目内の等階級ス夕ンプの有無を精度良く判定する ことができ、 等階級スタンプを用いた梱包製品の種分け作業の負担を軽 減するこができる。  According to the method for judging the rank of a packaged product according to claim 7 of the present invention, it is possible to obtain a two-tone image in which the influence of uneven illumination at the time of imaging is reduced and obtain a surrounding graded frame. Can reduce the effects of misalignment of stamps, etc., and can accurately determine the presence or absence of equal-grade stamps in the squares of the equivalent rank table, and sort packaging products using the same-grade stamps The burden on the user can be reduced.
また、 本発明の請求の範囲 8記載の等階級表示部の形成方法で形成さ れた等階級表示部によれば、 等階級表と異なる色のスタンプを使用する とともに、 特定波長域の光で照明するだけで、 識別マークとスタンプと の画像を容易にかつ精度良く抽出することができ、 等階級表の升目内の 等階級スタンプの有無を精度良く判定することができ、 等階級ス夕ンプ を用いた梱包製品の種分け作業の負担を軽減するこができる。  According to the grade display unit formed by the method for forming a grade display according to claim 8 of the present invention, a stamp having a different color from the grade table is used, and light of a specific wavelength range is used. By simply illuminating, the image of the identification mark and the stamp can be easily and accurately extracted, and the presence / absence of an equal-grade stamp in a cell of the equivalent-grade table can be accurately determined. It is possible to reduce the burden of the sorting operation of the packaged products using the wrapper.

Claims

請 求 の 範 囲 The scope of the claims
1 . 特定波長域の光を反射する色で印された等階級表と該等階級表と異 なる色で印された識別マークとからなる等階級表示部を有し、 該等階級 表中に該等階級表と異なる色の等階級スタンプが押捺された梱包製品に ついて、 該等階級スタンプの押捺箇所を読み取る梱包製品の等階級ス夕 ンプ読取り装置であって、 1. It has a grade table that is composed of a grade table that is marked with a color that reflects light in a specific wavelength range and an identification mark that is marked with a color different from the grade table. An apparatus for reading a packaging product on which a packaging grade stamped with a classification stamp having a color different from that of the packaging grade table, wherein the packaging product reads the location of the packaging stamp of the packaging grade stamp,
前記梱包製品の前記等階級表示部が印された面に対して前記等階級表 と同色の照明光を照射する照明手段と、  Illuminating means for irradiating illumination light of the same color as the grade table to a surface of the packaged product on which the grade display section is marked;
該照明手段で照明光が照射された前記等階級表示部が印された面を撮 像する撮像手段と、  Imaging means for imaging the surface on which the equal-grade display section irradiated with illumination light by the illumination means is marked;
該撮像手段で撮像された画像データに基づいて前記識別マークの位置 を判定し、 該識別マークの位置に基づいて前記ス夕ンプの画像を抽出し 、 該抽出されたス夕ンプの画像の前記等階級表に対する位置を読み取る 判定手段と、  Determining the position of the identification mark based on the image data imaged by the imaging means; extracting the image of the scan based on the position of the identification mark; Determining means for reading a position with respect to the rank table;
を備えたことを特徴とする梱包製品の等階級スタンプ読取り装置。 An apparatus for reading a rank stamp of a packaged product, comprising:
2 . 前記梱包製品を搬送する搬送路の一部を覆う暗室内に配設され、 前記搬送路で搬送される梱包製品の前記等階級表示部が印刷された面 を撮像して前記ス夕ンプの画像の前記等階級表に対する位置を読み取る ことを特徴とする請求の範囲 1記載の梱包製品の等階級スタンプ読取り  2. The package is arranged in a dark room that covers a part of a transport path for transporting the packaged product, and captures an image of a surface of the packaged product transported on the transport path on which the equivalent class display section is printed, and performs the scan. Reading the position stamp of the packaged product according to claim 1, wherein the position of the image is read with respect to the position table.
3 . 前記照明手段は、 前記梱包製品の前記等階級表示部が印された面に 対して、 前記照明光を平行に近く照射することを特徴とする請求の範囲 1または 2記載の梱包製品の等階級スタンプ読取り装置。 3. The packaged product according to claim 1 or 2, wherein the illuminating means irradiates the illumination light nearly parallel to a surface of the packaged product on which the equivalent class display portion is marked. Grade stamp reader.
4 . 前記照明手段が L E Dであることを特徴とする請求の範囲 1 または 2または 3記載の梱包製品の等階級スタンプ読取り装置。 4. The apparatus according to claim 1, 2, 3 or 4, wherein the lighting means is an LED.
5 . 梱包製品の平面部に印された図表を撮像するために該平面部に照明 光を照射する梱包製品撮像用の照明装置であって、 5. An illumination device for imaging a packaged product, which irradiates illumination light onto the flat surface to image a chart marked on the flat surface of the packaged product,
前記梱包製品の前記平面部に対して略直角をなして該平面部に接近し て配置された一対の光拡散面を有し、 該光拡散面が前記平面部の前記図 表を挟む間隔で対向するように配設された一対の光拡散部材と、  The packaged product has a pair of light diffusing surfaces arranged at a right angle to the flat surface portion and close to the flat surface portion, and the light diffusing surfaces are arranged at an interval sandwiching the diagram of the flat surface portion. A pair of light diffusing members disposed to face each other,
該光拡散部材の前記一対の光拡散面の間で前記照明光を発する発光面 を前記平面部と平行な方向で対向して配置された照明光源と、  An illumination light source disposed between the pair of light diffusion surfaces of the light diffusion member and a light emitting surface that emits the illumination light in a direction parallel to the plane portion;
を備え、 With
前記照明光源からの照明光を前記平面部に対して平行に近く照射する とともに、 前記光拡散面で該照明光を拡散するようにしたことを特徴と する梱包製品撮像用の照明装置。  An illumination device for imaging a packaged product, characterized in that illumination light from the illumination light source is radiated almost parallel to the plane portion, and the illumination light is diffused on the light diffusion surface.
6 . 前記照明手段が L E Dであることを特徴とする請求の範囲 5記載の 梱包製品撮像用の照明装置。  6. The illumination device for imaging a packaged product according to claim 5, wherein the illumination means is an LED.
7 . 複数の升目で構成された等階級表と識別マークとからなる等階級表 示部を有し、 該等階級表中に等階級ス夕ンプが押捺された梱包製品につ いて、 該等階級表の前記升目中の等階級スタンプの有無を判定する梱包 製品の等階級スタンプ判定方法であって、  7. A packaged product that has a class rank display section consisting of a class scale table composed of a plurality of squares and an identification mark, and that has a class rank stamp stamped on the class rank table. A packaging method for determining the presence or absence of a rank stamp in the square of the rank table,
前記等階級表示部の画像を撮像し、  Take an image of the class display,
該撮像された全体画像を複数の部分画像に分割し、  Dividing the captured whole image into a plurality of partial images,
前記全体画像の平均輝度値と前記部分画像それぞれについての平均輝 度値とに基づいて、 部分画像毎に画素の輝度を 2値化するためのしきい 値を設定し、  Setting a threshold value for binarizing the luminance of the pixel for each partial image based on the average luminance value of the entire image and the average luminance value of each of the partial images;
各部分画像毎に、 該部分画像に対応する前記しきい値に基づいて画像 の輝度を 2値化して 2階調画像の画像データに変換し、  For each of the partial images, the brightness of the image is binarized based on the threshold value corresponding to the partial image and converted into image data of a two-tone image,
該 2階調画像の画像デ一夕における前記識別マークの位置を検出し、 該識別マークの位置に基づいて前記等階級表の升目内に等階級枠を設 定し、 The position of the identification mark in the image of the two-tone image is detected, and an equal-grade frame is set in a cell of the equal-grade table based on the position of the identification mark. ,
前記 2階調画像の画像データに基づいて、 判定対象の等階級枠および その周囲の等階級枠へのス夕ンプの集中度を判定し、  Based on the image data of the two-tone image, the degree of concentration of the jump on the class frame to be determined and the surrounding class frame is determined,
判定対象の等階級枠に対して、 等階級枠内の同輝度部分の面積率に対 するしきい値を上記集中度に応じて設定し、  A threshold value for the area ratio of the same luminance portion in the equal-grade frame is set in accordance with the above-mentioned concentration level for the equal-grade frame to be determined.
該設定されたしきい値と判定対象の等階級枠における前記面積率とに 基づいて当該判定対象の等階級枠でのス夕ンプの有無を判定するように したことを特徴とする梱包製品の等階級ス夕ンプ判定方法。  A packaged product characterized in that the presence or absence of a jump in the class frame to be determined is determined based on the set threshold value and the area ratio in the class frame to be determined. A method for determining the rank of a class.
8 . 特定波長域の光を反射する色で印された等階級表と該等階級表と異 なる色で印された識別マークとを梱包製品に形成することを特徴とする 等階級表示部の形成方法。 8. A grade table marked with a color that reflects light in a specific wavelength range and an identification mark marked with a color different from the grade table are formed on a packaged product. Forming method.
PCT/JP1997/004675 1997-10-24 1997-12-18 Grade stamp reader for packed products and grade stamp judging method WO1999022331A1 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
JP9/292889 1997-10-24
JP9292887A JPH11134431A (en) 1997-10-24 1997-10-24 Device for reading equal grade stamp of packed product
JP29288897A JPH11126509A (en) 1997-10-24 1997-10-24 Lighting system for imaging package product
JP9/292887 1997-10-24
JP9292889A JPH11134508A (en) 1997-10-24 1997-10-24 Equal grade stamp descrimination method for packaged product and medium for recording program
JP9/292888 1997-10-24

Publications (1)

Publication Number Publication Date
WO1999022331A1 true WO1999022331A1 (en) 1999-05-06

Family

ID=27337772

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP1997/004675 WO1999022331A1 (en) 1997-10-24 1997-12-18 Grade stamp reader for packed products and grade stamp judging method

Country Status (2)

Country Link
TW (1) TW411429B (en)
WO (1) WO1999022331A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS635487A (en) * 1986-06-25 1988-01-11 Kanebo Ltd Identificating method for cloth
JPH09106432A (en) * 1995-10-12 1997-04-22 Toppan Printing Co Ltd Article sorting system and recognition code for journalizing article

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS635487A (en) * 1986-06-25 1988-01-11 Kanebo Ltd Identificating method for cloth
JPH09106432A (en) * 1995-10-12 1997-04-22 Toppan Printing Co Ltd Article sorting system and recognition code for journalizing article

Also Published As

Publication number Publication date
TW411429B (en) 2000-11-11

Similar Documents

Publication Publication Date Title
US7105848B2 (en) Dual level out-of-focus light source for amplification of defects on a surface
US8253793B2 (en) Lumber inspection method, device and program
JP5085860B2 (en) Wood inspection method, apparatus and program
KR20080009720A (en) Wood knot detecting method, device, and program
CN109313133B (en) Surface inspection system and surface inspection method
JP2009115613A (en) Foreign matter inspecting apparatus
JP5670915B2 (en) Appearance inspection device
JP2009293999A (en) Wood defect detector
US20180018530A1 (en) System and method for reading direct part marking (dpm) codes on objects
JP3345586B2 (en) Step detecting device and processing device using the same
JP3344995B2 (en) Tablet surface inspection device
JP4708904B2 (en) Wood inspection method, apparatus and program
US6888954B2 (en) Device and method for recording images
US20100182420A1 (en) Image Acquisition System for Identifying Signs on Mailpieces
WO1999022331A1 (en) Grade stamp reader for packed products and grade stamp judging method
JP7087687B2 (en) Grain gloss measuring device
KR20230139166A (en) Inspection Method for Wood Product
US20230222641A1 (en) Method and apparatus for identifying characteristics of trading cards
JP2000171403A (en) Surface inspection apparatus
JPH11134431A (en) Device for reading equal grade stamp of packed product
JPH11134508A (en) Equal grade stamp descrimination method for packaged product and medium for recording program
JP2003208593A (en) Corrugated fiberboard sheet number checking device
KR100240956B1 (en) Apparatus and method for visual inspecting of solder joint
US11699051B2 (en) Inspection method and inspection device for inspecting security markings
JPH11126509A (en) Lighting system for imaging package product

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): KR US

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH DE DK ES FI FR GB GR IE IT LU MC NL PT SE

121 Ep: the epo has been informed by wipo that ep was designated in this application
122 Ep: pct application non-entry in european phase