WO2022091445A1 - コード読取装置およびコードリーダ調整支援システム - Google Patents

コード読取装置およびコードリーダ調整支援システム Download PDF

Info

Publication number
WO2022091445A1
WO2022091445A1 PCT/JP2021/009190 JP2021009190W WO2022091445A1 WO 2022091445 A1 WO2022091445 A1 WO 2022091445A1 JP 2021009190 W JP2021009190 W JP 2021009190W WO 2022091445 A1 WO2022091445 A1 WO 2022091445A1
Authority
WO
WIPO (PCT)
Prior art keywords
code
unit
reading
image
score
Prior art date
Application number
PCT/JP2021/009190
Other languages
English (en)
French (fr)
Inventor
正寛 藤川
Original Assignee
オムロン株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by オムロン株式会社 filed Critical オムロン株式会社
Publication of WO2022091445A1 publication Critical patent/WO2022091445A1/ja

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light

Definitions

  • This disclosure relates to a code reader and a code reader adjustment support system.
  • code reading device that can stably read the code without being influenced by the code itself or the printing object (workpiece) on which the code is printed. (So-called "code reader”) is required.
  • Patent Document 1 discloses a technique for simultaneously displaying a captured image of a code, success / failure of decoding, and a reading margin on a display.
  • the read margin is an index indicating the stability or reliability of reading, and the larger the value, the higher the stability or reliability of reading.
  • the user performs the reading condition of the code reader by trial and error while checking the reading margin and the like displayed on the display.
  • the mounting position and mounting angle of the cord reader body, the position of the work, the inclination of the printed surface, etc. had to be adjusted.
  • the reading margin is poor, the number of trials and errors increases because it is not known what is causing the deterioration. Therefore, it takes time to adjust the reading conditions of the code reader.
  • An object of the present disclosure is to provide a code reader that can be easily adjusted to read conditions that allow stable reading, and a code reader adjustment support system that can easily adjust the code reader to read conditions that allow stable reading. To provide.
  • the code reading device is a code reading device that reads the code printed on the object to be printed.
  • the code reading device includes a camera that captures the code, a reading unit that reads the code from the image of the code captured by the camera, and an adjustment support unit that assists the user in adjusting the reading conditions of the reading unit.
  • the reading unit is an image generation unit that generates an image of the code to be processed by the reading unit, a decoding unit that decodes the code from the image of the code generated by the image generation unit, and an image of the code generated by the image generation unit.
  • it includes a calculation unit for calculating the score of each of a plurality of evaluation items for evaluating the print state of the code.
  • the adjustment support unit determines the adjustment policy for the reading condition by the user based on the scores for each of the plurality of evaluation items calculated by the calculation unit, and the adjustment policy determined by the adjustment policy determination unit for the user. It includes an output unit that outputs to the output unit and an adjustment unit that adjusts the reading condition based on the user's operation.
  • the user can easily adjust the code reading device to reading conditions capable of stable reading.
  • the image generation unit has an image pickup condition setting unit that sets the image pickup condition of the camera and a preprocessing unit that performs image processing on the image of the code, and the image pickup condition set by the image pickup condition setting unit.
  • the image of the code captured in 1 is subjected to image processing in the preprocessing unit to generate an image of the code to be processed in the reading unit.
  • the imaging condition when the imaging condition is adjusted, the image of the code captured under the adjusted imaging condition is subjected to image processing and the score is output, so that the user can use the adjusted score. Can be confirmed.
  • the code reader is connected to a reader and further comprises an illumination that illuminates the code when the camera captures the code.
  • the imaging condition setting unit further sets the illumination conditions of the illumination.
  • the adjusted lighting conditions can be set in the code reader.
  • the adjustment policy determination unit switches a plurality of evaluation items for calculating the score according to the evaluation method selected by the user.
  • the evaluation method if the evaluation method is selected, a plurality of evaluation items are set, so that the setting burden by the user is reduced.
  • the adjustment policy includes information on which evaluation item the score should be improved from.
  • the user can recognize how to adjust the reading condition of the reading unit.
  • the adjustment policy includes information suggesting how to adjust the reading conditions for each evaluation item for which the score should be improved.
  • the user can recognize how to adjust the reading condition of the reading unit.
  • the suggestive information includes at least one of the first policy regarding image processing for the image of the code captured by the camera and the second policy regarding the imaging of the code.
  • the user can recognize how to adjust the reading condition of the reading unit.
  • the output unit further outputs information indicating the scores for each of the plurality of evaluation items calculated by the calculation unit to the user.
  • the user can recognize which evaluation item has a bad score.
  • the information indicating the score includes comparative information comparing the score and the threshold value.
  • the comparison information includes information that distinguishes between the evaluation items having a score below the threshold value and the evaluation items having a score above the threshold value.
  • the user can recognize the evaluation item whose score is less than the threshold value and the evaluation item whose score is higher than the threshold value.
  • the comparative information further includes information indicating the deviation between the score and the threshold value for each evaluation item.
  • the user can recognize the discrepancy between the score and the threshold value for each evaluation item.
  • the output unit stops the output of at least a part of the information indicating the score for the evaluation items not subject to evaluation selected by the user.
  • the score of evaluation items not subject to evaluation is not taken into consideration when the adjustment policy is decided by the adjustment policy decision department.
  • the information that the user does not need is not output, so that the user can pay attention only to the information that the user needs. Further, when the adjustment policy is determined, the score of the evaluation item not to be evaluated selected by the user is not taken into consideration, so that the adjustment policy of the direction desired by the user can be easily determined.
  • the code is composed of multiple elements.
  • the output unit superimposes and displays an image showing the position of an element whose score is less than the threshold value on the image of the code.
  • the user can recognize the position of the element whose score is less than the threshold value.
  • the code reader adjustment support system includes a code reading device that reads the code printed on the object to be printed, and an adjustment support device that assists the user in adjusting the reading conditions of the code reading device.
  • the code reader includes a camera that captures the code and a reading unit that reads the code from the image of the code captured by the camera.
  • the reading unit is an image generation unit that generates an image of the code to be processed by the reading unit, a decoding unit that decodes the code from the image of the code generated by the image generation unit, and an image of the code generated by the image generation unit.
  • it has a calculation unit for calculating the score of each of a plurality of evaluation items for evaluating the print state of the code.
  • the adjustment support device uses the adjustment policy determination unit that determines the adjustment policy of the reading condition by the user and the adjustment policy determined by the adjustment policy determination unit based on the scores for each of the plurality of evaluation items calculated by the calculation unit. It includes an output unit that outputs to the output unit and an adjustment unit that adjusts the reading condition based on the user's operation.
  • the user can easily adjust the code reading device to reading conditions capable of stable reading.
  • a code reader that can be easily adjusted to a reading condition that enables stable reading, and a code reader adjustment support system that can easily adjust the code reading device to a reading condition that allows stable reading are provided. Can be provided.
  • the scene to which the present invention is applied is a scene where the user adjusts the reading conditions of the code reading device 100.
  • the code reading device 100 includes a reading function for reading the code 1 printed on the work 2 and an adjustment support function for assisting the user in adjusting the conditions for reading the code 1 (reading conditions for the reading unit 30).
  • Reading the code 1 by the code reading device 100 is to capture the code 1 and perform image processing (filter processing) on the captured image to decode the code 1, which is realized by the reading unit 30. Therefore, in order to stabilize the reading by the code reading device 100, the user is required to appropriately adjust the reading conditions of the reading unit 30.
  • the reading conditions of the reading unit 30 can be classified into two, one is a condition related to imaging of the code 1, and the other is a condition related to image processing for the image of the code 1 captured by the camera. ..
  • the conditions related to the imaging of the code 1 include the imaging conditions of the camera (for example, the exposure time of the camera, the gain of the camera, the aperture of the camera, the angle of the camera, etc.) and the lighting conditions of the lighting (for example, the brightness of the lighting, the lighting). Tilt, whether to use one-sided lighting or full-scale lighting, etc.) are included.
  • the conditions relating to the image processing for the image of the code 1 captured by the camera include, for example, the type of the filter to be used, the size of the filter, the number of times the filter processing is performed, and the like.
  • the code reading device 100 in the present invention provides the user with a policy for adjusting the reading conditions of the reading unit 30. Specifically, the code reading device 100 captures the code 1 and determines an adjustment policy necessary for stabilizing the reading based on the captured image of the code 1. Then, the code reading device 100 outputs the determined adjustment policy to the user. Further, when the code reading device 100 receives the adjustment operation of the reading condition by the user, the code reading device 100 sets the reading condition corresponding to the accepted operation.
  • the user can stabilize the reading of the code reading device 100 only by adjusting the reading conditions of the reading unit 30 according to the output adjustment policy. Therefore, the burden of adjusting the reading conditions of the reading unit 30 by the user is reduced.
  • FIG. 1 is a diagram for explaining the outline of the code reading device 100.
  • the code reading device 100 captures the code 1 printed on the work 2 and performs image processing on the captured image to decode the code 1.
  • the one-dimensional symbol is a symbol in which bars and spaces are arranged in a straight line direction, and is, for example, code 39, code 128, or the like.
  • Two-dimensional symbols include multi-row symbols in which one-dimensional symbols are stacked in multiple stages and matrix symbols in which cells are arranged in the X / Y direction.
  • the matrix symbol is, for example, a QR code (registered trademark), DataMatrix (registered trademark), or the like.
  • a synthetic symbol is a symbol that is a combination of a one-dimensional symbol and a two-dimensional symbol.
  • Work 2 corresponds to the "printed object".
  • material of the work 2 metal, resin, ceramic, wood, paper, glass, rubber or the like is adopted.
  • the code reading device 100 supports the user to adjust the conditions for reading the code 1 (reading conditions of the reading unit 30 shown in FIG. 2). Specifically, the code reading device 100 captures the code 1 and determines an adjustment policy necessary for stabilizing the reading based on the captured image of the code 1.
  • the code reading device 100 is connected to the output device 200, and causes the output device 200 to output the determined adjustment policy.
  • the output device 200 is a display, but the output device 200 may be any device as long as it is used for outputting information to the user, and may be a speaker, for example.
  • the code reading device 100 is also connected to the input device 300.
  • the input device 300 is used for input operations by the user.
  • the input device 300 includes a keyboard 301 and a mouse 302, but in addition to or in place of these, a touch panel display integrated with an output device may be included.
  • the user performs an input operation for adjusting the reading condition of the reading unit 30 using the input device 300, the reading condition corresponding to the input operation is set in the code reading device 100.
  • FIG. 2 is a block diagram showing a code reading device 100 and its peripheral devices.
  • the code reading device 100 includes a camera 10, an illumination 20, a reading unit 30, and an adjustment support unit 40.
  • the camera 10 is connected to the reading unit 30, specifically, the image pickup condition setting unit 311 described later, and the image pickup conditions set by the image pickup condition setting unit 311 (for example, the exposure time of the camera 10 and the gain of the camera 10). , The aperture of the camera 10, the angle of the camera 10, etc.), and the code 1 printed on the work 2 is imaged. Further, the camera 10 is connected to a reading unit 30, specifically, a preprocessing unit 312 described later, and transmits the image data of the captured code 1 to the preprocessing unit 312.
  • the illumination 20 is connected to the reading unit 30, specifically, the image pickup condition setting unit 311 described later, and the illumination conditions set by the image pickup condition setting unit 311 (for example, the brightness of the illumination 20 and the inclination of the illumination 20). , Which of the one-sided illumination and the full-face illumination, etc.), the code 1 is illuminated when the camera 10 captures the code 1.
  • the reading unit 30 reads (decodes) the code 1 from the image of the code 1 captured by the camera 10.
  • the reading unit 30 includes an image generation unit 31, a decoding unit 32, and a calculation unit 33.
  • the image generation unit 31 further includes an image pickup condition setting unit 311 and a preprocessing unit 312.
  • the adjustment support unit 40 supports the user to adjust the reading conditions of the reading unit 30.
  • the adjustment support unit 40 includes an adjustment policy determination unit 41, an output unit 42, and an adjustment unit 43.
  • the image pickup condition setting unit 311 is connected to the camera 10, the illumination 20, and the adjustment unit 43.
  • the image pickup condition setting unit 311 sets the received image pickup condition to the camera 10
  • the illumination condition of the illumination 20 is received from the adjustment unit 43
  • the image pickup condition setting unit 311 sets the received image pickup condition to the camera 10.
  • the received lighting condition is set to lighting 20.
  • the preprocessing unit 312 is connected to the camera 10, the decoding unit 32, the calculation unit 33, and the adjustment unit 43.
  • the preprocessing unit 312 receives from the adjustment unit 43 conditions related to image processing (for example, the type of filter to be used, the size of the filter, the number of times the filter processing is performed, and the like). Further, the preprocessing unit 312 receives the image of the code 1 from the camera 10.
  • the pre-processing unit 312 performs image processing on the received image of the code 1 according to the conditions related to the received image processing, and generates an image of the code 1 to be processed by the reading unit 30.
  • the preprocessing unit 312 transmits the generated image of the code 1 to the decoding unit 32.
  • the decoding unit 32 is connected to the preprocessing unit 312 and the calculation unit 33.
  • the decoding unit 32 finds the code 1 in the image based on the data of the image of the code 1 received from the preprocessing unit 312, and decodes the code 1.
  • the decoding unit 32 transmits the image data of the code 1 including the decoding result (for example, the center coordinates of the cell) to the calculation unit 33.
  • the decoding unit 32 may or may not transmit the image data of the code 1 including the decoding result to the calculation unit 33 at the reading (production) stage of the code 1.
  • the calculation unit 33 is connected to the decoding unit 32, the adjustment policy determination unit 41, and the output unit 42.
  • the calculation unit 33 calculates the scores (0 to 100) of each of the plurality of evaluation items for the image of the code 1 received from the decoding unit 32 based on the decoding result, and determines the adjustment policy based on the calculated scores. It is transmitted to the unit 41 and the output unit 42.
  • the calculation unit 33 sets a plurality of evaluation items based on the decoding result for the image of the code 1 captured by the camera 10 (that is, the image that has not been subjected to image processing). Each score may be calculated.
  • the details of the evaluation items will be described later, but the evaluation items are ISO (International Organization for Standardization), IEC (International Electrotechnical Commission), or JISC (Japanese Industrial Standards Committee) as an index for evaluating the printing state of Code 1. ) Etc. are defined.
  • the plurality of evaluation items for which the score is calculated by the calculation unit 33 are determined by the adjustment policy determination unit 41 according to an algorithm stored in advance in the storage device included in the code reading device 100.
  • the algorithm is a procedure for determining an evaluation item to be improved and an order to be improved in order to stabilize the reading. For example, an evaluation to be improved along the process of reading the code 1 with the code reading device 100. Procedures for determining items and the order of improvement can be considered. The following three prerequisites exist when formulating an algorithm.
  • the reading process according to the type of code 1 is composed of a plurality of steps, and the order thereof is determined. For example, when reading a two-dimensional symbol, the process of reading the code 1 is performed in the order of "search”, “grid estimation”, “cell binarization”, and “decoding". The “search” is to detect where the code 1 is in the image captured by the camera 10. "Grid estimation” is to identify the position of a cell. “Cell binarization” is to classify the identified cell positions into either white or black. “Decoding” is to decode the code 1.
  • the evaluation items of the evaluation method selected in the column 503 (see FIG. 5) described later can be associated with each step of the reading process. For example, when performing a "search", the fixed pattern of the code 1 is focused on, so that the relationship with the FPD (Fixed Pattern Damage) is deepened.
  • FPD Fixed Pattern Damage
  • each step is executed in a predetermined order, so if the process fails in a certain step, the process does not proceed to the subsequent stage and the read fails.
  • the evaluation items closely related to each step are improved along the execution order of each step, the processing in each step succeeds in sequence and the reading processing becomes stable.
  • the algorithm used in the code reader 100 for determining the evaluation items to be improved and the order to be improved is formulated based on such preconditions.
  • the code reading device 100 uses an algorithm that determines an evaluation item to be improved and an order to be improved based on the processing content in each step of the reading process and the execution order of the step.
  • the above-mentioned storage device stores the algorithm for each type of code 1, and the adjustment policy determining unit 41 determines the evaluation items to be improved and the order to be improved according to the algorithm.
  • the adjustment policy determination unit 41 is connected to the calculation unit 33, the output unit 42, and the input device 300.
  • the adjustment policy determination unit 41 determines an adjustment policy (hereinafter, also referred to as “adjustment policy”) to be performed by the user in order to stabilize the reading of the code reading device 100, and transmits the determined adjustment policy to the output unit 42. ..
  • the adjustment policy suggests information on which evaluation item the score should be improved from among the plurality of evaluation items and how the reading condition of the reading unit 30 should be adjusted for each evaluation item for which the score should be improved. At least one of the information is included. Further, the suggestion information includes at least one of a first policy regarding image processing for the image of the code 1 captured by the camera 10 and a second policy regarding the imaging of the code 1.
  • the adjustment policy determination unit 41 determines the adjustment policy as follows. First, the adjustment policy determination unit 41 determines a plurality of evaluation items according to the above algorithm, and instructs the calculation unit 33 to calculate a score for the determined plurality of evaluation items.
  • the adjustment policy determination unit 41 determines from which evaluation item the score should be improved according to the above algorithm.
  • the adjustment policy determination unit 41 receives the scores for the determined plurality of evaluation items from the calculation unit 33, and compares the received scores for each of the plurality of evaluation items with the threshold values set in advance for each evaluation item.
  • the evaluation item whose score is less than the threshold value is determined as the evaluation item whose score should be improved (hereinafter, also referred to as "evaluation item to be improved").
  • the adjustment policy determination unit 41 extracts the adjustment items corresponding to the evaluation items to be improved from the adjustment items stored in the code reading device 100 in advance.
  • Adjustment items Items to be adjusted for each evaluation item (“adjustment items”) are stored in advance in the storage device included in the code reader 100, and the adjustment policy determination unit 41 makes adjustments corresponding to the evaluation items to be improved. Extract items.
  • SC Symbol Contrast
  • the SC Symbol Contrast evaluation item
  • MOD Modulation
  • a smoothing filter and an expansion / contraction filter are stored in association with each other as adjustment items.
  • adjustment items related to the imaging conditions of the camera 10 for example, camera exposure time, camera gain, camera aperture, camera angle, etc.
  • adjustment items related to the lighting conditions of the lighting 20 for example, of lighting.
  • image processing for the image of code 1 captured by the camera 10 for example, the type of filter to be used, the filter. Size, number of times of filtering, etc.) are stored in association with each evaluation item.
  • the adjustment items extracted for each evaluation item to be improved are an example of information suggesting how to adjust the reading conditions of the reading unit 30 for each evaluation item for which the score should be improved.
  • the adjusted conditions are set in the code reading device 100 as the reading conditions of the reading unit 30.
  • the adjustment items may be stored in the storage device according to the degree of deviation between the score and the threshold value in addition to the evaluation items, and the adjustment policy determination unit 41 includes the evaluation items to be improved and the scores of the evaluation items. Adjustment items corresponding to the evaluation items to be improved may be extracted based on the degree of deviation from the threshold value. Further, in the storage device, in addition to the adjustment items, information such as what value the adjustment items should be adjusted to may be stored for each evaluation item.
  • the adjustment policy determination unit 41 may determine the first policy and the second policy at the same time, or may determine the first policy and the second policy step by step. As an example of the case of making a step-by-step decision, the adjustment policy determination unit 41 first determines only the first policy, and even though the adjustment based on the first policy has been performed a predetermined number of times or more, the evaluation items to be improved If the score does not improve, the content of the second policy may be decided.
  • the adjustment policy determination unit 41 may accept input of evaluation items that are not subject to evaluation from the input device 300.
  • the evaluation item not subject to evaluation is an evaluation item in which the score calculated by the calculation unit 33 is not taken into consideration when determining the adjustment policy.
  • the adjustment policy determination unit 41 determines the adjustment policy after excluding the score of the evaluation item, and shows the score of the evaluation item. Instruct the output unit 42 to stop the output of information. This makes it easier to determine the direction adjustment policy desired by the user. In addition, since the information that the user does not need is not output, the user can pay attention only to the information that the user needs.
  • the adjustment policy determination unit 41 When the adjustment policy determination unit 41 receives the input of the evaluation item not to be evaluated from the input device 300, the output of the comparison information among the information indicating the score of the evaluation item is stopped, but the calculation unit 33 calculates.
  • the score obtained may be output.
  • the comparison information is information comparing the score calculated by the calculation unit 33 with the threshold value set in advance for each evaluation item.
  • the output unit 42 is connected to the calculation unit 33, the adjustment policy determination unit 41, and the output device 200.
  • the output unit 42 outputs to the user the information indicating the score for each of the plurality of evaluation items received from the calculation unit 33 and the adjustment policy received from the adjustment policy determination unit 41. More specifically, the output unit 42 outputs evaluation items and scores in a manner in which the user can recognize the order to be improved determined by the adjustment policy determination unit 41. Further, the output unit 42 outputs the adjustment items extracted by the adjustment policy determination unit 41 in a manner that the user can recognize for each evaluation item.
  • the output unit 42 stops the output of the information indicating the score of the evaluation item for the evaluation item instructed by the adjustment policy determination unit 41 to stop the output.
  • the output unit 42 displays the score received from the calculation unit 33 and the adjustment policy received from the adjustment policy determination unit 41 on the display.
  • the output unit 42 causes the speaker to output the score received from the calculation unit 33 and the adjustment policy received from the adjustment policy determination unit 41 by voice.
  • the user can adjust the code reading device 100 to reading conditions capable of stable reading by adjusting the adjustment items corresponding to the evaluation items in the order in which the evaluation items are output.
  • the adjustment unit 43 is connected to the image pickup condition setting unit 311, the preprocessing unit 312, and the input device 300.
  • the adjusting unit 43 adjusts the reading conditions of the reading unit 30 based on the user's operation. Specifically, when the user performs an operation for adjusting the adjustment item related to the image pickup condition of the camera 10 or the adjustment item related to the lighting condition of the illumination 20 by using the input device 300, the adjustment unit 43 performs an operation for adjusting the adjustment item related to the imaging condition of the camera 10. The conditions corresponding to the operation are transmitted to the imaging condition setting unit 311. Further, when the user performs an operation for adjusting the adjustment item related to the image processing by using the input device 300, the adjustment unit 43 transmits the condition corresponding to the operation to the preprocessing unit 312. In the camera 10 and the illumination 20, the imaging condition setting unit 311 performs imaging and lighting of the code 1 according to the conditions received from the adjusting unit 43, and the preprocessing unit 312 performs image processing according to the conditions received from the adjusting unit 43. ..
  • the camera 10 and the illumination 20 may be provided in a housing different from the housing in which the reading unit 30 and the adjustment support unit 40 are provided, or the same as the housing in which the reading unit 30 and the adjustment support unit 40 are provided. It may be provided in the housing.
  • calculation unit 33 may be provided in the adjustment support unit 40 instead of the reading unit 30.
  • FIG. 3 is a diagram showing an example of evaluation items used in the code reading device 100.
  • the code reader 100 uses an index defined by ISO, IEC, JISC, or the like as an evaluation item in order to evaluate the print state of the code 1.
  • the code reader 100 includes SC (Symbol Contrast), CC (Cell Contrast), MOD (Modulation), CM (Cell Modulation), RM (Reflectance Margin), FPD (Fixed Pattern Damage), DEC (Decode), and the like.
  • Indicators such as UEC (Unused Error Correction), GN (Grid Nonuniformity), and AN (Axial Nonuniformity) are used as evaluation items.
  • SC, CC, MOD, CM, RM, and FPD are indicators for evaluating the ease of binarization. More specifically, SC and CC are indicators for evaluating contrast. MOD, RM, and CM are indexes for evaluating the margin of binarization in the area where data is stored. The FPD is an index for evaluating the margin of binarization in the region of the fixed pattern.
  • the evaluation targets of SC and CC are the same, but the evaluation methods (calculation methods) are different. Similarly, MOD and CM have the same evaluation target, but different evaluation methods (calculation methods).
  • DEC and UEC are indicators for evaluating the validity of the binarization result. More specifically, DEC is an index for evaluating whether or not decoding is possible, and UEC is an index for evaluating whether or not binarization can be performed accurately.
  • GN and AN are indexes for evaluating the strain of the lattice. More specifically, GN is an index for evaluating the amount of lattice deviation, and AN is an index for evaluating the aspect ratio in the X / Y direction.
  • SC, MOD, RM, FPD, DEC, UEC, GN, and AN are defined in ISO / IEC15415, and CC, CM, FPD, DEC, UEC, GN, and AN are defined in ISO / IEC TR29158. ..
  • the evaluation items defined by ISO / IEC15415 are suitable for evaluating the printing state of two-dimensional symbols printed on label paper, while the evaluation items defined by ISO / IEC TR29158 are parts such as metal. It is said that it is suitable for evaluating the printing state of two-dimensional symbols printed directly on the paper. If the selection of the evaluation items is not appropriate, a situation may occur in which the evaluation result deviates from the actual printing state of the code 1.
  • the code reading device 100 provides the user with an interface for selecting an evaluation method, and switches a plurality of evaluation items for calculating a score according to the evaluation method selected by the user.
  • the output unit 42 causes the output device 200 to output a screen for selecting an evaluation method (see FIG. 5 described later).
  • the adjustment policy determination unit 41 calculates the score from SC, MOD, RM, FPD, DEC, UEC, GN, and AN according to the above algorithm.
  • the score is calculated from CC, CM, FPD, DEC, UEC, GN, and AN according to the above algorithm. Set multiple evaluation items to be calculated.
  • a manufacturer-specific evaluation method may be devised using an index defined by ISO, IEC, JISC, or the like, and an evaluation method devised as a user-selectable evaluation method may be included.
  • the evaluation items may include an index unique to the manufacturer in addition to the index defined by ISO, IEC, JISC, or the like.
  • FIG. 4 is a flowchart showing an example of processing performed by the code reading device 100.
  • the processing shown in FIG. 4 is realized by the CPU (Central Processing Unit) executing a predetermined program.
  • the predetermined program is stored in a storage device included in the code reading device 100.
  • the CPU selects a target program from the programs stored in the storage device, expands the selected program into a RAM (Random Access Memory), and executes the selected program.
  • RAM Random Access Memory
  • step S405 the CPU determines whether or not it has been instructed to start the read test. When the CPU is instructed to start the read test (YES in step S405), the process proceeds to step S410, and when the start of the read test is not instructed (NO in step S405), the CPU performs the process. The process proceeds to step S475.
  • step S410 the CPU sets the reading conditions of the reading unit 30 (imaging conditions of the camera 10, illumination conditions of the illumination 20, and conditions related to image processing by the preprocessing unit 312). Specifically, when the CPU receives the input of the reading condition of the reading unit 30 from the user, the CPU sets the accepted condition as the condition for the initial imaging and image processing of the reading test, and inputs the reading condition from the user. If the above is not accepted, the initial value registered in advance in the code reading device 100 is set as a condition for the initial imaging and image processing of the reading test.
  • step S415 the CPU determines a plurality of evaluation items.
  • the process in step S415 is realized by the adjustment policy determination unit 41.
  • FIG. 5 is a diagram showing an example of a screen for selecting an evaluation method.
  • the screen 501 is an example of a screen for selecting an evaluation method.
  • the screen 501 is displayed on the output device 200 by the output unit 42.
  • the screen 501 includes a field 502 for selecting the type of code 1, a field 503 for selecting an evaluation method, and a button 504 for instructing the start of measurement (score calculation) of the print state of the code 1.
  • the adjustment policy determination unit 41 evaluates the selection in the column 503. From the evaluation items corresponding to the method, a plurality of evaluation items are determined according to the above algorithm, and an instruction is given to the calculation unit 33 to calculate a score for the determined plurality of evaluation items.
  • the adjustment policy determination unit 41 is described above from among SC, MOD, RM, FPD, DEC, UEC, GN, and AN. SC, MOD, FPD, DEC, UEC, GN, and AN are determined as evaluation items for calculating the score according to the algorithm of.
  • step S420 the CPU captures the code 1. Specifically, the illumination 20 illuminates the code 1 and the camera 10 images the code 1 based on the instruction from the CPU. As for the imaging condition of the camera 10 and the illumination condition of the illumination 20, the conditions set in step S410 are used in the first imaging after the start of the reading test is instructed, and after the start of the reading test is instructed. In the second and subsequent imaging, the conditions set based on the adjustment operation by the user are used.
  • step S425 the CPU performs image processing on the image of the code 1 captured by the camera 10 to generate an image of the code 1 to be processed by the reading unit 30, and decodes the code 1 from the generated image of the code 1. do.
  • the image process is realized by the pre-processing unit 312, and the decoding process is realized by the decoding unit 32.
  • the conditions related to image processing the conditions set in step S410 are used in the first image generation after the start of the reading test is instructed, and the second and subsequent image generations after the start of the reading test is instructed are used. In, the conditions set by the adjustment operation by the user are used.
  • step S430 the CPU calculates the score of each of the plurality of evaluation items determined in step S415 based on the decoding result for the image of code 1 generated in step S425.
  • the process in step S430 is realized by the calculation unit 33.
  • step S435 the CPU determines a policy for adjusting reading conditions by the user based on the scores for each of the plurality of evaluation items calculated in step S430.
  • the process in step S435 is realized by the adjustment policy determination unit 41.
  • step S440 the CPU outputs to the user information indicating the scores for each of the plurality of evaluation items calculated in step S430 and the adjustment policy determined in step S435.
  • the output device 200 is a display
  • the CPU causes the display to display information indicating the scores for each of the plurality of evaluation items calculated in step S430 and the adjustment policy determined in step S435.
  • the output device 200 is a speaker
  • the CPU causes the speaker to output the information indicating the score for each of the plurality of evaluation items calculated in step S430 and the adjustment policy determined in step S435 by voice.
  • step S445 the CPU determines whether or not an operation for adjusting the image processing condition among the reading conditions has been accepted.
  • the CPU accepts the operation of adjusting the condition related to image processing (YES in step S445)
  • the CPU shifts the process to step S450, and when it does not accept the operation of adjusting the condition related to image processing (step S445). NO)
  • the process proceeds to step S460.
  • step S450 the CPU adjusts the conditions related to image processing based on the received operation. Specifically, when the user performs an operation for adjusting the conditions related to image processing using the input device 300, the CPU transmits the conditions corresponding to the operation to the preprocessing unit 312. The process in step S450 is realized by the adjusting unit 43. The conditions transmitted to the preprocessing unit 312 are stored as adjusted conditions by the preprocessing unit 312. Then, when the remeasurement described later is instructed, the preprocessing unit 312 performs image processing under the adjusted conditions.
  • step S455 the CPU determines whether or not the remeasurement is instructed.
  • the remeasurement is to calculate the score again under the adjusted condition when the reading condition of the reading unit 30 is adjusted. If the CPU is instructed to remeasure (YES in step S455), the process returns to step S425, and if the remeasurement is not instructed (NO in step S455), the CPU shifts the process to step S460. .. In this way, when the remeasurement is instructed, the processing is returned to step S425. Therefore, the image of the code 1 already captured in step S420 is subjected to image processing under the adjusted conditions, and the score is again obtained. Will be calculated.
  • step S460 the CPU determines whether or not the operation of adjusting the conditions related to imaging among the reading conditions has been accepted.
  • the process shifts to step S465, and when it does not accept the operation for adjusting the conditions related to imaging (NO in step S460). ), The process proceeds to step S470.
  • step S465 the CPU adjusts the conditions related to imaging based on the received operation. Specifically, when the user performs an operation for adjusting the conditions related to imaging by using the input device 300, the CPU transmits the conditions corresponding to the operation to the imaging condition setting unit 311. The process in step S465 is realized by the adjusting unit 43. The conditions transmitted to the image pickup condition setting unit 311 are stored as adjusted conditions by the image pickup condition setting unit 311. Then, when the remeasurement is instructed, the adjusted condition is transmitted to the camera 10 and the illumination 20 by the image pickup condition setting unit 311, and the code 1 is imaged by the camera 10 and the illumination 20 under the adjusted condition.
  • step S470 the CPU determines whether or not the remeasurement is instructed. If the CPU is instructed to remeasure (YES in step S470), the process returns to step S420, and if the remeasurement is not instructed (NO in step S470), the CPU shifts the process to step S475. .. In this way, when the remeasurement is instructed, the processing is returned to step S420, so that the imaging and image processing of the code 1 are performed under the adjusted conditions, and the score is calculated again.
  • the conditions related to image processing are not adjusted among the reading conditions and only the conditions related to imaging are adjusted and remeasurement is instructed (NO in step S445, YES in step S460, and step S470). YES), the image of the code 1 is performed under the adjusted conditions, the image processing is performed under the same conditions as at the time of the latest image processing, and the score is calculated again.
  • step S475 the CPU determines whether or not the reading (production) of the code 1 is instructed.
  • the CPU determines whether or not the reading (production) of the code 1 is instructed.
  • the CPU shifts the process to step S480, and when it is not instructed to read the code 1 (actual) (step S475). NO), the series of processes shown in FIG. 4 is completed.
  • step S480 the CPU sets the reading conditions of the reading unit 30 (imaging conditions of the camera 10, illumination conditions of the illumination 20, and conditions related to image processing by the preprocessing unit 312). Specifically, when the reading (production) of the code 1 is instructed through the reading test, the CPU sets the adjusted condition adjusted in the reading test as the reading condition for reading (production). On the other hand, when the user is instructed to read the code 1 (actual) without going through the reading test and the user accepts the input of the reading conditions of the reading unit 30, the CPU reads the accepted conditions ( Set as the reading condition for production). Further, if the user is instructed to read the code 1 (actual) without passing through the reading test and the user does not accept the input of the reading conditions of the reading unit 30, the code reading device 100 is registered in advance. The default value is set as the reading condition for reading (production).
  • step S485 the CPU captures the code 1 under the conditions set in step S480. Specifically, the illumination 20 illuminates the code 1 and the camera 10 images the code 1 based on the instruction from the CPU.
  • step S490 the CPU performs image processing on the image of the code 1 captured by the camera 10 under the conditions set in step S480, and processes it by the reading unit 30 (more specifically, the decoding unit 32). Generate an image of code 1 to do.
  • the processing in step S490 is realized by the preprocessing unit 312.
  • step S495 the CPU decodes code 1 from the image of code 1 generated in step S490.
  • the process in step S495 is realized by the decoding unit 32.
  • step S495 the CPU ends a series of processes shown in FIG.
  • FIG. 6 is a diagram showing an example of a screen displayed during a reading test.
  • the screen 601 is an example of the screen displayed in step S440 during the reading test.
  • the screen 601 is displayed on the display (output device 200) by the output unit 42.
  • the screen 601 includes columns 610, 620, 630, 640, 650, 660, tabs 673, 674, and various buttons 671, 672, 675, 676.
  • Information indicating the score calculated in step S430 is displayed in the column 610.
  • the column 610 has two tabs (tab 611, tab 612), and the user can switch the information displayed in the column 610 by selecting the tab. Specifically, when the user selects tab 611, information (overhead information) in which the print state of the code 1 captured in step S420 is comprehensively evaluated based on a plurality of evaluation items determined in step S415. ) Is displayed in column 610. On the other hand, when the user selects the tab 612, the information (detailed information) in which the print state of the code 1 captured in step S420 is evaluated for a specific evaluation item among the plurality of evaluation items determined in step S415 is provided. It is displayed in column 610.
  • the bird's-eye view information and detailed information include information indicating the scores for each of the plurality of evaluation items calculated in step S430, and the information indicating the scores includes the score calculated in step S430 and preset for each evaluation item. Includes comparative information comparing with the thresholds that have been set.
  • columns 620 and 630 information suggesting how to adjust the reading conditions for each evaluation item for which the score should be improved is displayed.
  • the information is determined by the coordination policy determination unit 41.
  • all evaluation items for which the score should be improved are displayed in a pull-down menu.
  • information suggesting adjustment of the adjustment item extracted by the adjustment policy determination unit 41 is displayed.
  • the adjustment item corresponding to the selected evaluation item is displayed in the column 630.
  • column 630 displays information suggesting the use of a density correction filter and information suggesting adjustment of the camera exposure time and aperture.
  • the information suggesting the use of the density correction filter is an example of the "first policy".
  • the information suggesting adjustment between the exposure time of the camera and the aperture is an example of the "second policy”.
  • column 630 displays information suggesting the use of smoothing filters and expansion / contraction filters.
  • Information suggesting the use of smoothing filters and expansion / contraction filters is an example of a "first policy”.
  • the image G of the code 1 generated in step S425 is displayed in the column 640.
  • the image P indicating the position of the element having a problem in the printing state is superimposed and displayed on the image G of the code 1.
  • image P shows the position of an element whose score is below the threshold.
  • the element corresponds to a bar or a space when the code 1 is a one-dimensional symbol, and corresponds to a cell when the code 1 is a two-dimensional symbol.
  • Code 1 is composed of a plurality of elements.
  • the image P may show only the positions of the elements for the evaluation item selected in the column 620 among the elements whose scores are less than the threshold value, or may show the positions of all the elements whose scores are less than the threshold value. Further, the image P may show the positions of the elements whose scores are less than the threshold value for each evaluation item. As an example, the image P may show the position of the element whose score is less than the threshold value in different colors for each evaluation item.
  • the image P may indicate the position of the element that has been misrecognized.
  • the evaluation item is an evaluation item related to the luminance value (for example, MOD, FPD, etc.)
  • the image P is the position (singular point) of the element whose luminance value is a peculiar value as compared with other elements. May be shown.
  • the image P allows the user to recognize the position of the element having a problem in the printing state.
  • the reading test flow is displayed in column 650.
  • column 660 an image used for adjusting the reading conditions is displayed.
  • image input the image used for adjusting the image pickup condition among the reading conditions is displayed in column 660.
  • pre-processing the image used for adjusting the image processing condition among the reading conditions is displayed in column 660.
  • read the screen 501 shown in FIG. 5 is displayed in column 660, and the user can set conditions related to the reading process.
  • the column 650 may be provided with a plurality of "reading” columns according to the type of code 1 and the size of code 1.
  • a "reading 1" column for a QR code of 18 x 18 size and a "reading 2" column for a QR code of 20 x 20 size may be provided.
  • the user can set the conditions related to the reading process according to the type of the code 1 and the size of the code 1.
  • Tab 673 and tab 674 are tabs, and the user can switch the buttons displayed under tabs 673 and 674 by selecting tabs 673 and 674.
  • Tab 673 is selected by the user when he / she wants to adjust the reading condition using the image of the code 1 stored in the device (for example, a PC or a USB memory).
  • the device for example, a PC or a USB memory.
  • buttons 671, 672, 675 are displayed below tabs 673 and 674.
  • An example of the operation of the buttons 671, 672, 675 by the user is as follows.
  • the display of the columns 610, 620, 630, and 640 is updated. If the image is saved in the same folder, the user presses the " ⁇ " of the button 672 to measure the image of the previous code 1 and presses the ">>” of the button 672. The image of the next code 1 can be measured with.
  • the user can adjust not only the conditions related to image processing but also the conditions related to image capture of code 1. However, even if the user adjusts the conditions for imaging the code 1, the image of the code 1 is not performed, and the image of the code 1 stored in the device (for example, a PC or a USB memory) is set under the set conditions. Image processing is performed.
  • the device for example, a PC or a USB memory
  • Tab 674 is selected by the user when he / she wants to capture the code 1 in real time using the camera 10 and adjust the reading conditions using the image of the code 1 captured by the camera 10.
  • tab 674 only the button “Measure” is displayed under tabs 673 and 674 instead of buttons 671,672,675.
  • the code 1 is imaged by the camera 10, and the captured image of the code 1 is measured.
  • the display of columns 610, 620, 630, and 640 is updated. The image of the captured code 1 is displayed in the column 640.
  • Button 676 is selected by the user when he / she wants to finish the reading test and move to reading (production).
  • columns 610, 620, 630, 640, 650, and 660 may be configured to be expandable or contractible according to the operation by the user.
  • FIG. 7 is a diagram showing an example of bird's-eye view information.
  • the bird's-eye view information is information in which the print state of the code 1 captured in step S420 is comprehensively evaluated based on a plurality of evaluation items determined in step S415.
  • the bird's-eye view information is displayed in column 610 when the user selects tab 611.
  • the bird's-eye view information is displayed in column 610 in a format that satisfies the following six requirements.
  • the first requirement is that the user can recognize a plurality of evaluation items determined in step S415.
  • the second requirement is that the user can recognize the evaluation item having a bad score and the evaluation item having a good score from the plurality of evaluation items determined in step S415.
  • the third requirement is that the user can recognize from which evaluation item the score should be improved.
  • the fourth requirement is that the user can recognize the difference between the score and the threshold value for each evaluation item.
  • the fifth requirement is that the user can set and cancel evaluation items that are not subject to evaluation.
  • the sixth requirement is that the user can recognize the adjustment phase.
  • Fig. 7 shows a radar chart as an example of a format that satisfies the above six requirements.
  • a plurality of evaluation items (icons 701 to 707) determined in step S415 are arranged clockwise in the order in which the score should be improved.
  • the order in which the score should be improved is determined by the adjustment policy determination unit 41 according to the above algorithm.
  • the user can recognize the plurality of evaluation items determined in step S415 and can recognize from which evaluation item the score should be improved (first requirement, third requirement).
  • the score calculated in step S430 is shown by a solid line (solid line 708), and the threshold value preset for each evaluation item is shown by a dotted line (dotted line 709).
  • the information shown by the solid line 708 is an example of the information showing the scores for each of the plurality of evaluation items calculated in step S430.
  • the information shown by the solid line 708 and the dotted line 709 is an example of "comparison information", and more specifically, it is an example of information indicating the deviation between the score and the threshold value for each evaluation item.
  • the user can recognize the evaluation item having a bad score and the evaluation item having a good score from the plurality of evaluation items determined in step S415 (second requirement).
  • the user can recognize the discrepancy between the score and the threshold value for each evaluation item (fourth requirement).
  • the evaluation items placed on the radar chart are displayed in different display colors depending on the evaluation item whose score is less than the threshold value and the evaluation item whose score is higher than the threshold value.
  • the evaluation items with a score below the threshold and the evaluation items with a score above the threshold, which are displayed in different display colors, are examples of "comparison information", and more specifically, the evaluation items with a score below the threshold. This is an example of information that distinguishes from evaluation items whose score is equal to or higher than the threshold value.
  • the user can recognize the evaluation item having a bad score and the evaluation item having a good score from the plurality of evaluation items determined in step S415 (second requirement).
  • the icons 701 to 707 can be operated (clicked, touched, etc.) by the user, and are used for switching between setting and canceling the evaluation items of the evaluation items corresponding to the icons.
  • the user can set and cancel the evaluation items that are not evaluated (fifth requirement).
  • the evaluation items set as the evaluation target are displayed in a state that the user can see them, while the evaluation items set outside the evaluation target are grayed out so that the user cannot see or see them. Has been done.
  • the user operates the icons 701 to 707 that are not grayed out the evaluation item corresponding to the operated icon is set out of the evaluation target, and the information indicating the score of the evaluation item is grayed out and cannot be visually recognized or visually recognized.
  • the score of the evaluation item set out of the evaluation target is not taken into consideration when deciding the adjustment policy.
  • the setting of the evaluation item not to be evaluated corresponding to the operated icon is canceled, and the information indicating the score of the evaluation item can be visually recognized. It becomes a state.
  • the score of the evaluation item for which the setting of non-evaluation target is canceled will be taken into consideration when deciding the adjustment policy.
  • the output of the comparison information is stopped, but the score calculated by the calculation unit 33 may be output.
  • the score calculated by the calculation unit 33 may be output.
  • information that compares the score calculated by the calculation unit 33 with the threshold value preset for each evaluation item is grayed out, and only each score calculated by the calculation unit 33 is next to the icons 701 to 707. It may be displayed in.
  • a message (display 710) is displayed so that the user can recognize the adjustment phase. More specifically, in the phase in which there is at least one evaluation item whose score is less than the threshold value among the evaluation items to be evaluated, the score is improved by improving the scores of the evaluation items displayed in the column 610 in the clockwise order. A message indicating that the overall level of the evaluation is required is displayed (for example, "Overall level increase is required"), and it is specified in the phase where all the evaluation items to be evaluated are above the threshold value. A message (for example, "For example,” FPD / MOD can be further improved ”) is displayed indicating that the evaluation item of is in the phase where further improvement of the score can be expected. This allows the user to recognize the adjustment phase (sixth requirement).
  • the bird's-eye view information is displayed in the radar chart format, but it may be displayed in the bar graph format.
  • a bar-shaped image showing the score for each evaluation item may be arranged in the order of evaluation items for which the score should be improved, and the threshold value for each evaluation item may be superimposed and displayed on the bar graph.
  • the plurality of evaluation items (icons 701 to 707) determined in step S415 are arranged clockwise in the order in which the score should be improved, but the plurality of evaluation items (icons) determined in step S415 are arranged.
  • 701 to 707) may be arranged clockwise in the order in which they are likely to affect the printing state of the code 1 (in order of importance).
  • the evaluation items to be arranged are displayed in different display colors depending on the evaluation items having a score less than the threshold value and the evaluation items having a score equal to or higher than the threshold value.
  • the evaluation items below the threshold value and the evaluation items whose score is above the threshold value may be displayed in a distinguishable state, and the icons 701 to 707 may be displayed in different sizes, or the types of icons 701 to 707 may be displayed. It may be displayed differently.
  • both the score for each of the plurality of evaluation items calculated in step S430 and the threshold value set in advance for each evaluation item are displayed, but the threshold value is not displayed and is calculated in step S430.
  • the score for each of the plurality of evaluation items performed and the information for distinguishing the evaluation item having a score less than the threshold value and the evaluation item having a score equal to or higher than the threshold value may be displayed.
  • the detailed information displayed in the column 610 will be described with reference to FIGS. 1 to 4, 6, 8 and 9. Detailed information is displayed in column 610 when the user selects tab 612.
  • the detailed information is information in which the print state of the code 1 captured in step S420 is evaluated for a specific evaluation item among a plurality of evaluation items determined in step S415, and information indicating a score for the specific evaluation item. Alternatively, it is information other than the score for a specific evaluation item.
  • FIG. 8 is a diagram showing an example of information showing a score for a specific evaluation item among the detailed information.
  • Information indicating the score for a specific evaluation item is output to the user when a plurality of images of code 1 are captured in step S420.
  • the case where a plurality of images of the code 1 are captured in step S420 is a case where a plurality of codes 1 are captured, a case where one code 1 is captured a plurality of times, and the like.
  • information indicating a score for a specific evaluation item is displayed in the form of a graph as shown in FIG.
  • the graph shown in FIG. 8 is a plot of only the scores of specific evaluation items among the scores calculated for each image.
  • the vertical axis shows the score of a specific evaluation item
  • the horizontal axis shows the number of codes 1 (count number).
  • the horizontal axis may indicate the imaging time of the code 1.
  • the user can switch a specific evaluation item by operating the column 620.
  • the graph shown in FIG. 8 is an example of information showing the scores for each of the plurality of evaluation items calculated in step S430. With such a graph, the user can recognize the score calculated from a plurality of images in a cross-sectional manner for each evaluation item.
  • a line (line 801) indicating the threshold value of the evaluation item selected in the column 620 may be drawn on the graph.
  • the graph shown in FIG. 8 in which the line 801 is drawn is an example of "comparison information", and more specifically, it is an example of information showing the deviation between the score and the threshold value for each evaluation item. With such a graph, the user can recognize the dissociation between the score calculated from a plurality of images and the threshold value preset for each evaluation item in a cross-sectional manner for each evaluation item.
  • the display in the column 640 may be configured to switch to the image G of the code 1 corresponding to the measurement point.
  • the user can display a desired image from the plurality of images in the column 640, and can grasp the position of the element having a poor score for the desired image.
  • FIG. 9 is a diagram showing an example of information other than the score for a specific evaluation item among the detailed information.
  • the evaluation item is an evaluation item related to luminance (for example, SC, FPD, MOD, etc.)
  • information other than the score may be displayed.
  • information indicating the distribution of luminance values is displayed in the form of a histogram as shown in FIG.
  • the luminance value is shown on the horizontal axis
  • the frequency of the luminance value is shown on the vertical axis.
  • the luminance value histogram may show the distribution of the luminance values in the entire symbol region of the code 1, or may show the distribution of the luminance values only in the center coordinates of the cell of the code 1.
  • the user can recognize the print state of the code 1 from information other than the score for a specific evaluation item.
  • the histogram of the luminance value is useful when the user confirms the effect of the adjustment (the effect of the applied filter) when the conditions related to the image processing are adjusted.
  • FIG. 10 is a diagram showing a modified example of the image of the code 1.
  • the image P is superimposed on the image G of the code 1 shown in FIG. 6, but in the example shown in FIG. 10, the image P is superimposed on the image G of the code 1.
  • the image Q showing the grid are superimposed and displayed in the column 640.
  • the image Q may be displayed whenever the image G of the code 1 is displayed in the column 640, or may be displayed only when the score of the evaluation item (for example, GN, AN, etc.) relating to the grid distortion is poor. good.
  • the image Q allows the user to recognize the distortion of the grid.
  • FIG. 11 is a diagram showing an example of an image used for adjusting reading conditions.
  • FIG. 11A shows a state before adjustment
  • FIG. 11B shows a state after adjustment.
  • Column 660 includes a column 111 indicating an item to be adjusted by the user and a column 112 displaying an image used for adjusting the adjustment item.
  • the item to be adjusted by the user is the above-mentioned "adjustment item" determined by the adjustment policy determination unit 41 and suggested to be adjusted in column 630.
  • an image 113 imitating a pinch which can be slid to the left or right according to a user's operation, is displayed.
  • the column 112 further includes a column 114 in which reading conditions corresponding to the position of the image 113 are displayed.
  • the user can change the reading conditions simply by moving the image 113 so that the desired reading conditions are displayed in the column 114.
  • the adjustment unit 43 transmits the reading condition corresponding to the stop position of the image 113 to the reading unit 30. More specifically, when the adjustment item to which the user moves the image 113 is the adjustment item related to the image pickup condition of the code 1, the adjustment unit 43 sets the reading condition corresponding to the stop position of the image 113 as the image pickup condition. It is transmitted to the setting unit 311.
  • the image pickup condition setting unit 311 sets the image pickup condition of the camera 10 among the received reading conditions to the camera 10, and sets the illumination condition of the illumination 20 to the illumination 20.
  • the adjustment unit 43 transmits the reading condition corresponding to the stop position of the image 113 to the preprocessing unit 312.
  • the pre-processing unit 312 performs image processing under the received reading conditions.
  • the user can adjust the reading conditions simply by moving the image 113. Further, the adjustment items to be adjusted are displayed in column 630. Therefore, the user can adjust the reading condition only by sliding the image 113 left and right according to the display of the column 630, so that the burden of adjusting the reading condition by the user is reduced.
  • the code reading device 100 has an adjustment support function that assists the user in adjusting the conditions related to reading the code 1 (reading conditions of the reading unit 30), and adjusts the reading conditions of the reading unit 30. Output the policy of to the user. As a result, the user can stabilize the reading of the code reading device 100 only by adjusting the reading conditions of the reading unit 30 according to the output adjustment policy, so that the burden of adjusting the reading conditions of the reading unit 30 by the user is reduced. Will be done.
  • the code reading device 100 according to the first embodiment has an adjustment support function that assists the user in adjusting the conditions for reading the code 1 (reading conditions of the reading unit 30).
  • the code reading device according to the second embodiment does not have an adjustment support function.
  • the code reader according to the second embodiment can be connected to an adjustment support device having an adjustment support function, and forms a code reader adjustment support system together with the adjustment support device.
  • the code reader adjustment support system will be described. The same components and processes as in the first embodiment are designated by the same reference numerals, and the description thereof will not be repeated.
  • FIG. 12 is a block diagram showing a code reader adjustment support system 500.
  • the code reader adjustment support system 500 includes a code reading device 100A and an adjustment support device 40A.
  • the code reading device 100A and the adjustment support device 40A are connected via the network 600.
  • the code reading device 100A is different from the code reading device 100 in the first embodiment in that it includes a first communication unit 34A that communicates information with the adjustment support device 40A, but is different from the code reading device 100 in other respects. The same is true.
  • the adjustment support device 40A is different from the adjustment support unit 40 in the first embodiment in that it includes a second communication unit 44A that communicates information with the code reading device 100A, but is different from the adjustment support unit 40 in other respects. The same is true.
  • the first communication unit 34A receives the score from the calculation unit 33 and transmits the received score to the adjustment support device 40A.
  • the second communication unit 44A receives the score from the code reading device 100A, and transmits the received score to the adjustment policy determination unit 41 and the output unit 42.
  • the adjustment policy determination unit 41 determines the adjustment policy based on the received score.
  • the output unit 42 outputs information indicating the received score to the user.
  • the second communication unit 44A receives the reading condition from the adjusting unit 43 and transmits the received reading condition to the code reading device 100A.
  • the first communication unit 34A receives the reading condition sent from the adjustment support device 40A, and transmits the received reading condition to the image generation unit 31. Specifically, the first communication unit 34A receives the conditions related to the image pickup sent from the adjustment support device 40A, and transmits the received conditions to the image pickup condition setting unit 311. Further, the first communication unit 34A receives the image processing conditions sent from the adjustment support device 40A, and transmits the received conditions to the pre-processing unit 312.
  • the image pickup condition setting unit 311 sets the image pickup condition of the camera 10 among the received conditions to the camera 10, and sets the illumination condition of the illumination 20 to the illumination 20.
  • the pre-processing unit 312 performs image processing under the received conditions.
  • the camera 10 and the illumination 20 may be provided in a housing different from the housing in which the reading unit 30A is provided, or may be provided in the same housing as the housing in which the reading unit 30A is provided.
  • calculation unit 33 may be provided in the adjustment support device 40A instead of the code reading device 100A.
  • the code reading device 100A in the second embodiment is connected to the adjustment support device 40A having the adjustment support function to form the code reader adjustment support system 500, and the conditions for reading the code 1 (reading conditions of the reading unit 30A). ) Is output to the user.
  • the user can stabilize the reading of the code reading device 100A only by adjusting the reading conditions of the reading unit 30A according to the output adjustment policy, so that the burden of adjusting the reading conditions of the reading unit 30A by the user is reduced. Will be done.
  • the code reading device 100 and the code reader adjustment support system 500 output to the user the policy of adjusting the conditions for reading the code 1 (reading conditions of the reading units 30 and 30A).
  • the user can stabilize the reading of the code reading devices 100 and 100A only by adjusting the reading conditions of the reading units 30 and 30A according to the output adjustment policy, so that the user can read the reading units 30 and 30A.
  • the burden of adjusting conditions is reduced.
  • the reading unit (30) is provided with an adjustment support unit (40) that assists the user in adjusting the reading conditions.
  • the reading unit (30) An image generation unit (31) that generates an image of the code (1) to be processed by the reading unit (30), A decoding unit (32) that decodes the code (1) from the image of the code (1) generated by the image generation unit (31).
  • a calculation unit (33) for calculating the score of each of a plurality of evaluation items for evaluating the print state of the code (1).
  • An adjustment policy determination unit (41) that determines an adjustment policy for the reading conditions by the user based on the scores for each of the plurality of evaluation items calculated by the calculation unit (33).
  • An output unit (42) that outputs the adjustment policy determined by the adjustment policy determination unit (41) to the user.
  • a code reading device including an adjusting unit (43) that adjusts the reading conditions based on the user's operation.
  • the image generation unit (31) An imaging condition setting unit (311) for setting imaging conditions of the camera (10), and It has a pre-processing unit (312) that performs image processing on the image of the code (1).
  • the image of the code (1) captured under the imaging conditions set by the imaging condition setting unit (311) is subjected to image processing by the preprocessing unit (312) and processed by the reading unit (30).
  • the output unit (42) further outputs information indicating the score for each of the plurality of evaluation items calculated by the calculation unit (33) to the user, according to any one of the items 1 to 7.
  • the information indicating the score includes comparative information comparing the score with the threshold value.
  • the output unit (42) stops the output of at least a part of the information indicating the score for the evaluation item that is not the evaluation target selected by the user.
  • the code reading device according to any one of configurations 8 to 10, wherein the score of the evaluation item that is not subject to evaluation is not taken into consideration in the determination of the adjustment policy by the adjustment policy determination unit (41).
  • the code (1) is composed of a plurality of elements.
  • a code reader (100A) that reads the code (1) printed on the object to be printed (2), and A code reader adjustment support system (500) including an adjustment support device (40A) that assists the user in adjusting the reading conditions of the code reading device (100A).
  • the code reader (100A) is The camera (10) that captures the code (1) and A reading unit (30A) for reading the code (1) from the image of the code (1) captured by the camera (10) is included.
  • the reading unit (30A) is An image generation unit (31) that generates an image of the code (1) processed by the reading unit (30A), and an image generation unit (31).
  • a decoding unit (32) that decodes the code (1) from the image of the code (1) generated by the image generation unit (31).
  • the adjustment support device (40A) is An adjustment policy determination unit (41) that determines an adjustment policy for the reading conditions by the user based on the scores for each of the plurality of evaluation items calculated by the calculation unit (33).
  • An output unit (42) that outputs the adjustment policy determined by the adjustment policy determination unit (41) to the user.
  • a code reader adjustment support system including an adjustment unit (43) that adjusts the reading conditions based on the user's operation.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

コード読取装置(100)は、カメラ(10)と、カメラ(10)で撮像されたコードの画像からコードを読み取る読取部(30)と、読取条件のユーザによる調整を支援する調整支援部(40)とを備える。読取部(30)は、コードの画像を生成する画像生成部(31)と、コードを復号する復号部(32)と、画像生成部(31)で生成されたコードの画像に対してスコアを算出する算出部(33)とを含む。調整支援部(40)は、算出されたスコアに基づいて読取条件の調整方針を決定する調整方針決定部(41)と、調整方針を出力する出力部(42)と、ユーザ操作に基づいて読取条件を調整する調整部(43)とを含む。

Description

コード読取装置およびコードリーダ調整支援システム
 本開示は、コード読取装置およびコードリーダ調整支援システムに関する。
 トレーサビリティの拡がりにより、様々な部品にコードが印字される近年において、コードそのものやコードが印字される印字対象物(ワーク)に左右されることなく、安定してコードを読み取ることのできるコード読取装置(いわゆる、「コードリーダ」)が求められている。
 特許第5956941号公報(特許文献1)は、コードの撮像画像、デコードの成否、および読取余裕度をディスプレイに同時に表示する技術を開示する。読取余裕度は読み取りの安定性または信頼性を示す指標であり、値が大きいほど読み取りの安定性または信頼性が高くなる。
特許第5956941号公報
 特許第5956941号公報に開示の技術によれば、ユーザはコードリーダによるコードの読み取りを安定させるために、ディスプレイに表示される読取余裕度等を確認しつつ試行錯誤しながらコードリーダの読取条件(例えば、コードリーダ本体の取付位置や設置角度、ワークの位置や印字面の傾き等)を調整しなければならなかった。さらに、読取余裕度が悪いとき、何が原因で悪くなっているのか分からないため、試行錯誤の数が増えてしまう。そのため、コードリーダの読取条件の調整には時間がかかっていた。
 本開示の目的は、安定した読み取りが可能な読取条件に容易に調整可能なコード読取装置、および、コード読取装置を安定した読み取りが可能な読取条件に容易に調整可能なコードリーダ調整支援システムを提供することである。
 この開示にかかるコード読取装置は、印字対象物に印字されたコードを読み取るコード読取装置である。当該コード読取装置は、コードを撮像するカメラと、カメラで撮像されたコードの画像からコードを読み取る読取部と、読取部の読取条件のユーザによる調整を支援する調整支援部と、を備える。読取部は、読取部で処理するコードの画像を生成する画像生成部と、画像生成部で生成されたコードの画像からコードを復号する復号部と、画像生成部で生成されたコードの画像に対して、当該コードの印字状態を評価する複数の評価項目の各々のスコアを算出する算出部と、を含む。調整支援部は、算出部で算出された複数の評価項目毎のスコアに基づいて、ユーザによる読取条件の調整方針を決定する調整方針決定部と、調整方針決定部で決定された調整方針をユーザに対し出力する出力部と、ユーザの操作に基づいて読取条件を調整する調整部と、を含む。
 上述の開示によれば、ユーザはコード読取装置を安定した読み取りが可能な読取条件に容易に調整することができる。
 上述の開示において、画像生成部は、カメラの撮像条件を設定する撮像条件設定部と、コードの画像に対し画像処理を施す前処理部と、を有し、撮像条件設定部で設定した撮像条件で撮像されたコードの画像に対して、前処理部で画像処理を施して読取部で処理するコードの画像を生成する。
 上述の開示によれば、撮像条件が調整された場合には、調整後の撮像条件で撮像されたコードの画像に対し画像処理が施されてスコアが出力されるので、ユーザは調整後のスコアを確認することができる。
 上述の開示において、コード読取装置は、読取部と接続され、カメラがコードを撮像する場合にコードを照らす照明をさらに備える。撮像条件設定部は、照明の照明条件をさらに設定する。
 上述の開示によれば、照明条件が調整された場合には、調整後の照明条件をコード読取装置に設定することができる。
 上述の開示において、調整方針決定部は、ユーザが選択した評価方式に応じてスコアを算出する複数の評価項目を切り替える。
 上述の開示によれば、評価方式を選択すれば複数の評価項目が設定されるので、ユーザによる設定負担が軽減される。
 上述の開示において、調整方針は、いずれの評価項目からスコアを改善すべきかという情報を含む。
 上述の開示によれば、ユーザは読取部の読取条件をどのように調整すればよいかを認識することができる。
 上述の開示において、調整方針は、スコアを改善すべき評価項目毎に読取条件をどのように調整すべきかを示唆する情報を含む。
 上述の開示によれば、ユーザは読取部の読取条件をどのように調整すればよいかを認識することができる。
 上述の開示において、示唆する情報は、カメラで撮像されたコードの画像に対する画像処理に関する第1方針と、コードの撮像に関する第2方針とのうち少なくとも一方の方針を含む。
 上述の開示によれば、ユーザは読取部の読取条件をどのように調整すればよいかを認識することができる。
 上述の開示において、出力部は、算出部で算出された複数の評価項目毎のスコアを示す情報をユーザに対しさらに出力する。
 上述の開示によれば、ユーザはいずれの評価項目のスコアが悪いのかを認識することができる。
 上述の開示において、スコアを示す情報は、スコアと閾値とを比較した比較情報を含む。比較情報は、スコアが閾値未満の評価項目と、スコアが閾値以上の評価項目とを区別した情報を含む。
 上述の開示によれば、ユーザはスコアが閾値未満の評価項目と、スコアが閾値以上の評価項目とを認識することができる。
 上述の開示において、比較情報は、評価項目毎の、スコアと閾値との乖離を示す情報をさらに含む。
 上述の開示によれば、ユーザはスコアと閾値との乖離を評価項目毎に認識することができる。
 上述の開示において、出力部は、ユーザが選択した評価対象外の評価項目に対してスコアを示す情報のうち少なくとも一部の情報の出力を停止する。調整方針決定部による調整方針の決定には、評価対象外の評価項目のスコアは考慮されない。
 上述の開示によれば、ユーザが必要としていない情報が出力されなくなるので、ユーザをユーザが必要とする情報だけに注目させることができる。また、調整方針の決定の際には、ユーザが選択した評価対象外の評価項目のスコアは考慮されないので、ユーザが所望する方向性の調整方針が決定されやすくなる。
 上述の開示において、コードは複数のエレメントで構成される。出力部は、コードの画像にスコアが閾値未満のエレメントの位置を示す画像を重ね合わせて表示する。
 上述の開示によれば、ユーザはスコアが閾値未満のエレメントの位置を認識することができる。
 この開示にかかる、コードリーダ調整支援システムは、印字対象物に印字されたコードを読み取るコード読取装置と、コード読取装置の読取条件のユーザによる調整を支援する調整支援装置と、を備える。コード読取装置は、コードを撮像するカメラと、カメラで撮像されたコードの画像からコードを読み取る読取部と、を含む。読取部は、読取部で処理するコードの画像を生成する画像生成部と、画像生成部で生成されたコードの画像からコードを復号する復号部と、画像生成部で生成されたコードの画像に対して、当該コードの印字状態を評価する複数の評価項目の各々のスコアを算出する算出部と、を有する。調整支援装置は、算出部で算出された複数の評価項目毎のスコアに基づいて、ユーザによる読取条件の調整方針を決定する調整方針決定部と、調整方針決定部で決定された調整方針をユーザに対し出力する出力部と、ユーザの操作に基づいて読取条件を調整する調整部と、を含む。
 上述の開示によれば、ユーザはコード読取装置を安定した読み取りが可能な読取条件に容易に調整することができる。
 本開示によれば、安定した読み取りが可能な読取条件に容易に調整可能なコード読取装置、および、コード読取装置を安定した読み取りが可能な読取条件に容易に調整可能なコードリーダ調整支援システムを提供することができる。
コード読取装置の概略を説明するための図である。 コード読取装置とその周辺機器とを示すブロック図である。 コード読取装置において用いられる評価項目の一例を示す図である。 コード読取装置で行われる処理の一例を示すフローチャートである。 評価方式を選択するための画面の一例を示す図である。 読み取りテストの際に表示される画面の一例を示す図である。 俯瞰情報の一例を示す図である。 詳細情報のうち、特定の評価項目についてのスコアを示す情報の一例を示す図である。 詳細情報のうち、特定の評価項目についてのスコア以外の情報の一例を示す図である。 コードの画像の変形例を示す図である。 読取条件の調整に供される画像の一例を示す図である。 コードリーダ調整支援システムを示すブロック図である。
 以下、本発明の実施の形態について、図面を参照しながら詳細に説明する。なお、図中の同一または相当部分については、同一符号を付してその説明は繰り返さない。以下で説明される実施の形態および変形例は、適宜選択的に組み合わされてもよい。
 [適用例]
 まず、図1および図2を参照して、本発明が適用される場面の一例について説明する。本発明が適用される場面は、ユーザがコード読取装置100の読取条件を調整する場面である。コード読取装置100は、ワーク2に印字されたコード1を読み取る読取機能と、コード1の読み取りに関する条件(読取部30の読取条件)のユーザによる調整を支援する調整支援機能とを備える。
 コード読取装置100によるコード1の読み取りとは、コード1を撮像し、撮像した画像に画像処理(フィルタ処理)を施してコード1を復号することであり、読取部30によって実現される。したがって、コード読取装置100による読み取りを安定させるためには、ユーザは読取部30の読取条件を適切に調整することが求められる。
 読取部30の読取条件は2つに分類することができ、1つは、コード1の撮像に関する条件であり、もう1つは、カメラで撮像されたコード1の画像に対する画像処理に関する条件である。コード1の撮像に関する条件には、カメラの撮像条件(例えば、カメラの露光時間、カメラのゲイン、カメラの絞り、カメラのアングル等)と、照明の照明条件(例えば、照明の明るさ、照明の傾き、片側照明と全面照明とのいずれにするか等)とが含まれる。カメラで撮像されたコード1の画像に対する画像処理に関する条件には、例えば、使用するフィルタの種類、フィルタのサイズ、フィルタ処理を行う回数等が含まれる。
 このように、読取部30の読取条件には様々な条件が含まれることから、これらの条件を適切に調整することはユーザにとって容易なことではない。そこで、本発明におけるコード読取装置100は、読取部30の読取条件の調整方針をユーザに提供する。具体的には、コード読取装置100は、コード1を撮像し、撮像したコード1の画像を基に読み取りを安定させるために必要な調整の方針を決定する。そして、コード読取装置100は、決定した調整方針をユーザに対し出力する。さらに、コード読取装置100は、ユーザによる読取条件の調整操作を受け付けると、受け付けた操作に対応する読取条件を設定する。
 したがって、ユーザは出力された調整方針に従って読取部30の読取条件を調整するだけで、コード読取装置100の読み取りを安定させることができる。ゆえに、ユーザによる読取部30の読取条件の調整負担が軽減される。
 以下、実施の形態のより具体的な応用例について説明する。
 [実施の形態1]
 (コード読取装置の概略)
 図1は、コード読取装置100の概略を説明するための図である。コード読取装置100は、ワーク2に印字されたコード1を撮像し、撮像した画像に画像処理を施してコード1を復号する。
 コード1には、一次元シンボル、二次元シンボル、合成シンボルといった3つの種類がある。一次元シンボルはバーおよびスペースを直線方向に配置したシンボルであり、例えば、code39やcode128等である。二次元シンボルには、一次元シンボルが多段に積み上げられたマルチローシンボルと、セルがX/Y方向に配置されたマトリックスシンボルとがある。マトリックスシンボルは、例えば、QRコード(登録商標)やDataMatrix(登録商標)等である。合成シンボルは、一次元シンボルと二次元シンボルとが組み合わされたシンボルである。
 ワーク2は「印字対象物」に相当する。ワーク2の材質には、金属、樹脂、セラミック、木材、紙、ガラス、またはゴム等が採用される。
 さらに、コード読取装置100は、コード1の読み取りに関する条件(図2に示す読取部30の読取条件)のユーザによる調整を支援する。具体的には、コード読取装置100は、コード1を撮像し、撮像したコード1の画像を基に読み取りを安定させるために必要な調整の方針を決定する。コード読取装置100は、出力装置200と接続されており、決定した調整方針を出力装置200に出力させる。この例では、出力装置200はディスプレイであるが、出力装置200はユーザに対する情報の出力に供されるものであればよく、例えば、スピーカーでもよい。
 コード読取装置100は、入力装置300とも接続されている。入力装置300は、ユーザによる入力操作に供される。この例では、入力装置300は、キーボード301とマウス302とを含むが、これらに加えてまたはこれらに替えて、出力装置と一体となったタッチパネル式のディスプレイを含んでいてもよい。ユーザが入力装置300を用いて読取部30の読取条件を調整するための入力操作を行うと、その入力操作に対応する読取条件がコード読取装置100に設定される。
 (コード読取装置の構成)
 図1および図2を参照して、コード読取装置100の構成について説明する。図2は、コード読取装置100とその周辺機器とを示すブロック図である。コード読取装置100は、カメラ10と、照明20と、読取部30と、調整支援部40とを備える。
 カメラ10は、読取部30、具体的には、後述の撮像条件設定部311と接続されており、撮像条件設定部311によって設定された撮像条件(例えば、カメラ10の露光時間、カメラ10のゲイン、カメラ10の絞り、カメラ10のアングル等)に従ってワーク2に印字されたコード1を撮像する。また、カメラ10は、読取部30、具体的には、後述の前処理部312と接続されており、撮像したコード1の画像のデータを前処理部312へ送信する。
 照明20は、読取部30、具体的には、後述の撮像条件設定部311と接続されており、撮像条件設定部311によって設定された照明条件(例えば、照明20の明るさ、照明20の傾き、片側照明と全面照明とのいずれにするか等)に従って、カメラ10がコード1を撮像する場合にコード1を照らす。
 読取部30は、カメラ10で撮像されたコード1の画像からコード1を読み取る(復号する)。読取部30は、画像生成部31と、復号部32と、算出部33とを含む。画像生成部31は、さらに、撮像条件設定部311と、前処理部312とを有する。また、調整支援部40は、読取部30の読取条件のユーザによる調整を支援する。調整支援部40は、調整方針決定部41と、出力部42と、調整部43とを含む。
 撮像条件設定部311は、カメラ10、照明20、および調整部43と接続されている。撮像条件設定部311は、調整部43からカメラ10の撮像条件を受信した場合には、受信した撮像条件をカメラ10に設定し、調整部43から照明20の照明条件を受信した場合には、受信した照明条件を照明20に設定する。
 前処理部312は、カメラ10、復号部32、算出部33、および調整部43と接続されている。前処理部312は、調整部43から画像処理に関する条件(例えば、使用するフィルタの種類、フィルタのサイズ、フィルタ処理を行う回数等)を受信する。また、前処理部312は、カメラ10からコード1の画像を受信する。前処理部312は、受信したコード1の画像に対し、受信した画像処理に関する条件に従って画像処理を施して、読取部30で処理するコード1の画像を生成する。前処理部312は、生成したコード1の画像を復号部32へ送信する。
 復号部32は、前処理部312および算出部33と接続されている。復号部32は、前処理部312から受信したコード1の画像のデータを基に、画像内からコード1を見つけ、当該コード1を復号する。復号部32は、読取条件の調整段階(読み取りテストの段階)においては、復号の結果(例えば、セルの中心座標)を含むコード1の画像のデータを算出部33へ送信する。なお、復号部32は、コード1の読み取り(本番)段階においては、復号の結果を含むコード1の画像のデータを算出部33へ送信してもよいし、送信しなくてもよい。
 算出部33は、復号部32、調整方針決定部41、および出力部42と接続されている。算出部33は、復号部32から受信したコード1の画像に対して、復号の結果を基に、複数の評価項目の各々のスコア(0~100)を算出し、算出したスコアを調整方針決定部41および出力部42へ送信する。
 なお、後述の評価方式によっては、カメラ10で撮像されたコード1の画像に対し画像処理が施されないような場合があってもよい。そのような場合には、算出部33は、カメラ10で撮像されたコード1の画像(すなわち、画像処理が施されていない画像)に対して、復号の結果を基に、複数の評価項目の各々のスコアを算出してもよい。
 当該評価項目の詳細は後述するが、当該評価項目は、コード1の印字状態を評価するための指標として、ISO(International Organization for Standardization)、IEC(International Electrotechnical Commission)、またはJISC(Japanese Industrial Standards Committee)等で定義されている。算出部33によってスコアが算出される複数の評価項目は、コード読取装置100が備える記憶装置に予め記憶されているアルゴリズムに従って調整方針決定部41によって決定される。
 ここで、アルゴリズムとは、読み取りを安定させるために改善すべき評価項目および改善すべき順番を決定するための手続きであり、例えばコード読取装置100でコード1を読み取る処理に沿って改善すべき評価項目および改善すべき順番を決定する手続きが考えられる。アルゴリズムを策定する際には、以下の3つの前提条件が存在する。
 (1)後述する欄502(図5参照)で選択されるコード1の種類に応じて、複数ある復号処理の中から1つが選択されるため、コード1の種類ごとにアルゴリズムを策定する必要がある。
 (2)コード1の種類に応じた読み取り処理は、複数のステップから構成されており、その順序が決められている。例えば、二次元シンボルを読み取る場合、コード1を読み取る処理は、「サーチ」、「グリッドの推定」、「セルの2値化」、および「デコード」の順で行われる。なお、「サーチ」とは、カメラ10で撮像された画像内のどこにコード1があるかを検出することである。「グリッドの推定」とは、セルの位置を特定することである。「セルの2値化」とは、特定されたセルの位置を白と黒とのいずれかに分類することである。「デコード」とは、コード1を復号することである。
 (3)後述する欄503(図5参照)で選択される評価方式の評価項目は、読み取り処理のステップごとに関連付けることができる。例えば、「サーチ」を行う場合は、コード1の固定パターンに着目するため、FPD(Fixed Pattern Damage)との関連が深くなる。
 このように、読み取り処理では、各ステップが決められた順序に沿って実行されるため、あるステップで処理が失敗すると後段に処理が進まず読み取りに失敗する。一方で、各ステップに関連が深い評価項目が各ステップの実行順序に沿って改善されていけば、各ステップにおける処理が順次成功して、読み取り処理が安定する。
 改善すべき評価項目および改善すべき順番を決定するためにコード読取装置100で用いられるアルゴリズムは、このような前提条件を基に策定されている。具体的には、コード読取装置100では、改善すべき評価項目および改善すべき順序を読み取り処理の各ステップにおける処理内容と当該ステップの実行順序とに基づいて決定するというアルゴリズムが用いられる。
 コード読取装置100では、上述の記憶装置が当該アルゴリズムをコード1の種類別に記憶しており、調整方針決定部41が当該アルゴリズムに従って改善すべき評価項目および改善すべき順序を決定する。
 調整方針決定部41は、算出部33、出力部42、および入力装置300と接続されている。調整方針決定部41は、コード読取装置100の読み取りを安定させるために、ユーザが行うべき調整の方針(以下「調整方針」とも称する)を決定し、決定した調整方針を出力部42へ送信する。調整方針には、複数の評価項目のうちいずれの評価項目からスコアを改善すべきかという情報と、スコアを改善すべき評価項目毎に読取部30の読取条件をどのように調整すべきかを示唆する情報とのうち少なくとも一方の情報が含まれる。さらに、当該示唆する情報には、カメラ10で撮像されたコード1の画像に対する画像処理に関する第1方針と、コード1の撮像に関する第2方針とのうち少なくとも一方の方針が含まれる。
 調整方針決定部41は、調整方針を以下のようにして決定する。まず、調整方針決定部41は、上記アルゴリズムに従って、複数の評価項目を決定し、決定した複数の評価項目についてスコアを算出するように算出部33へ指示を出す。
 次いで、調整方針決定部41は、上記アルゴリズムに従って、いずれの評価項目からスコアを改善すべきかを決定する。
 次いで、調整方針決定部41は、決定した複数の評価項目についてのスコアを算出部33から受信し、受信した複数の評価項目毎のスコアを評価項目毎に予め設定されている閾値と比較してスコアが閾値未満の評価項目をスコアを改善すべき評価項目(以下、「改善対象の評価項目」とも称す)に決定する。
 次いで、調整方針決定部41は、予めコード読取装置100に記憶されている調整項目の中から改善対象の評価項目に対応する調整項目を抽出する。
 コード読取装置100が備える記憶装置には、評価項目別に調整すべき項目(「調整項目」)が予め記憶されており、調整方針決定部41は、その中から改善対象の評価項目に対応する調整項目を抽出する。評価項目別に記憶されている調整項目の一例として、後述のSC(Symbol Contrast)という評価項目には、調整項目として、濃度補正フィルタと、カメラ10の露光時間と、カメラ10の絞りとが対応付けて記憶されている。また、後述のMOD(Modulation)という評価項目には、調整項目として、平滑化フィルタと、膨張/収縮フィルタとが対応付けて記憶されている。これら以外にも、カメラ10の撮像条件に関わる調整項目(例えば、カメラの露光時間、カメラのゲイン、カメラの絞り、カメラのアングル等)、照明20の照明条件に関わる調整項目(例えば、照明の明るさ、照明の傾き、片側照明と全面照明とのいずれにするか等)、および、カメラ10で撮像されたコード1の画像に対する画像処理に関わる調整項目(例えば、使用するフィルタの種類、フィルタのサイズ、フィルタ処理を行う回数等)が各々の評価項目と対応付けて記憶されている。
 改善対象の評価項目別に抽出された調整項目は、スコアを改善すべき評価項目毎に読取部30の読取条件をどのように調整すべきかを示唆する情報の一例である。ユーザが抽出された調整項目の各々について調整を行った場合には、調整後の条件が読取部30の読取条件としてコード読取装置100に設定される。
 なお、調整項目は、評価項目別に加え、スコアと閾値との乖離度合い別に上記記憶装置に記憶されていてもよく、調整方針決定部41は、改善対象の評価項目と、当該評価項目のスコアと閾値との乖離度合いとに基づいて改善対象の評価項目に対応する調整項目を抽出してもよい。また、上記記憶装置には、調整項目に加えて、調整項目をどのような値に調整すべきかといった情報が評価項目別に記憶されていてもよい。
 また、調整方針決定部41は、第1方針および第2方針を一度に決定してもよいし、第1方針および第2方針を段階的に決定してもよい。段階的に決定する場合の一例として、調整方針決定部41は、まず第1方針のみを決定し、第1方針に基づく調整が所定回数以上行われたにもかかわらず、改善対象の評価項目のスコアが改善されない場合に第2方針の内容を決定してもよい。
 また、調整方針決定部41は、入力装置300から評価対象外の評価項目の入力を受け付けてもよい。評価対象外の評価項目とは、調整方針の決定に際し、算出部33で算出されたスコアが考慮されない評価項目のことである。調整方針決定部41は、入力装置300から評価対象外の評価項目の入力を受け付けた場合には、当該評価項目のスコアを除外した上で調整方針を決定するとともに、当該評価項目のスコアを示す情報の出力を停止するように出力部42へ指示する。これにより、ユーザが所望する方向性の調整方針が決定されやすくなる。また、ユーザが必要としていない情報が出力されなくなるので、ユーザをユーザが必要とする情報だけに注目させることができる。
 なお、調整方針決定部41は、入力装置300から評価対象外の評価項目の入力を受け付けた場合に、評価項目のスコアを示す情報のうち比較情報の出力は停止するが、算出部33で算出されたスコアは出力するようにしてもよい。比較情報とは、算出部33で算出されたスコアと、評価項目毎に予め設定されている閾値とを比較した情報である。
 出力部42は、算出部33、調整方針決定部41、および出力装置200と接続されている。出力部42は、算出部33から受信した複数の評価項目毎のスコアを示す情報と、調整方針決定部41から受信した調整方針とをユーザに対し出力する。より具体的には、出力部42は、調整方針決定部41で決定された改善すべき順番をユーザが認識できる態様で評価項目およびスコアを出力する。また、出力部42は、調整方針決定部41で抽出された調整項目を評価項目別にユーザが認識できる態様で出力する。なお、出力部42は、調整方針決定部41から出力の停止を指示された評価項目については、当該評価項目のスコアを示す情報の出力を停止する。
 出力装置200がディスプレイの場合には、出力部42は、算出部33から受信したスコアや調整方針決定部41から受信した調整方針をディスプレイに表示させる。出力装置200がスピーカーの場合には、出力部42は、算出部33から受信したスコアや調整方針決定部41から受信した調整方針をスピーカーに音声で出力させる。
 ユーザは、評価項目が出力されている順に当該評価項目に対応する調整項目を調整していくことで、コード読取装置100を安定した読み取りが可能な読取条件に調整することができる。
 調整部43は、撮像条件設定部311、前処理部312、および入力装置300と接続されている。調整部43は、ユーザの操作に基づいて、読取部30の読取条件を調整する。具体的には、調整部43は、ユーザが入力装置300を用いてカメラ10の撮像条件に関わる調整項目または照明20の照明条件に関わる調整項目を調整するための操作を行った場合には、その操作に対応する条件を撮像条件設定部311へ送信する。また、調整部43は、ユーザが入力装置300を用いて画像処理に関わる調整項目を調整するための操作を行った場合には、その操作に対応する条件を前処理部312へ送信する。カメラ10および照明20では、撮像条件設定部311が調整部43から受信した条件に従ってコード1の撮像および点灯が行われ、前処理部312では、調整部43から受信した条件に従って画像処理が行われる。
 なお、カメラ10および照明20は、読取部30および調整支援部40が設けられる筐体とは異なる筐体に設けられてもよいし、読取部30および調整支援部40が設けられる筐体と同じ筐体に設けられてもよい。
 また、算出部33は、読取部30ではなく、調整支援部40に設けられてもよい。
 (評価項目)
 図1~図3を参照して、コード読取装置100において用いられる評価項目について説明する。図3は、コード読取装置100において用いられる評価項目の一例を示す図である。コード読取装置100は、コード1の印字状態を評価するために、ISO、IEC、またはJISC等で定義されている指標を評価項目として用いる。
 一例として、コード読取装置100は、SC(Symbol Contrast)、CC(Cell Contrast)、MOD(Modulation)、CM(Cell Modulation)、RM(Reflectance Margin)、FPD(Fixed Pattern Damage)、DEC(Decode)、UEC(Unused Error Correction)、GN(Grid Nonuniformity)、AN(Axial Nonuniformity)といった指標を評価項目として用いる。
 これらの指標のうち、SC、CC、MOD、CM、RM、およびFPDは、2値化のしやすさを評価するための指標である。より具体的には、SCおよびCCは、コントラストを評価するための指標である。MOD、RM、およびCMは、データが格納されている領域における2値化の余裕度を評価するための指標である。FPDは、固定パターンの領域における2値化の余裕度を評価するための指標である。SCおよびCCは、評価対象は同じであるが、評価方法(算出方法)が異なっている。同様に、MODおよびCMは、評価対象は同じであるが、評価方法(算出方法)が異なっている。
 DECおよびUECは、2値化結果の妥当性を評価するための指標である。より具体的には、DECは復号の可否を評価するための指標であり、UECは正確に2値化できたか否かを評価するための指標である。
 GNおよびANは、格子の歪みを評価するための指標である。より具体的には、GNは格子のズレ量を評価するための指標であり、ANはX/Y方向のアスペクト比を評価するための指標である。
 SC、MOD、RM、FPD、DEC、UEC、GN、およびANはISO/IEC15415で定義されており、CC、CM、FPD、DEC、UEC、GN、およびANはISO/IEC TR29158で定義されている。ISO/IEC15415で定義されている評価項目はラベル紙に印字されている二次元シンボルの印字状態の評価に適しているのに対し、ISO/IEC TR29158で定義されている評価項目は金属等の部品に直接印字されている二次元シンボルの印字状態の評価に適しているといわれている。評価項目の選定が適切でなければ、評価結果がコード1の印字状態の実態と乖離するような事態が発生し得る。
 そこで、コード読取装置100は、評価方式を選択するためのインターフェイスをユーザに提供し、ユーザが選択した評価方式に応じてスコアを算出する複数の評価項目を切り替える。一例として、出力部42は、評価方式を選択するための画面(後述の図5参照)を出力装置200に出力させる。調整方針決定部41は、ユーザが評価方式としてISO/IEC15415を選択した場合には、上述のアルゴリズムに従って、SC、MOD、RM、FPD、DEC、UEC、GN、およびANの中から、スコアを算出する複数の評価項目を設定し、ユーザが評価方式としてISO/IEC TR29158を選択した場合には、上述のアルゴリズムに従って、CC、CM、FPD、DEC、UEC、GN、およびANの中から、スコアを算出する複数の評価項目を設定する。
 なお、ユーザが選択可能な評価方式は複数あればよく、図3に示す評価方式に限られない。ISO、IEC、またはJISC等で定義されている指標を用いてメーカー独自の評価方式を考案し、ユーザが選択可能な評価方式に考案した評価方式を含めてもよい。また、評価項目も複数あればよく、評価項目にISO、IEC、またはJISC等で定義されている指標以外に、メーカー独自の指標を含めてもよい。
 (コード読取装置で行われる処理)
 図1、図2、および図4を参照して、コード読取装置100で行われる処理について説明する。図4は、コード読取装置100で行われる処理の一例を示すフローチャートである。図4に示す処理は、CPU(Central Processing Unit)が所定のプログラムを実行することによって実現される。所定のプログラムは、コード読取装置100が備える記憶装置に記憶されている。CPUは、記憶装置に記憶されているプログラムの中から対象となるプログラムを選択し、選択したプログラムをRAM(Random Access Memory)に展開して実行する。
 ステップS405において、CPUは、読み取りテストの開始を指示されたか否かを判定する。CPUは、読み取りテストの開始を指示された場合には(ステップS405においてYES)、処理をステップS410に移行し、読み取りテストの開始を指示されなかった場合には(ステップS405においてNO)、処理をステップS475に移行する。
 ステップS410において、CPUは、読取部30の読取条件(カメラ10の撮像条件、照明20の照明条件、および前処理部312による画像処理に関する条件)を設定する。具体的には、CPUは、ユーザから読取部30の読取条件の入力を受け付けた場合には、受け付けた条件を読み取りテストの初回の撮像および画像処理の条件として設定し、ユーザから読取条件の入力を受け付けなかった場合には、予めコード読取装置100に登録されている初期値を読み取りテストの初回の撮像および画像処理の条件として設定する。
 ステップS415において、CPUは、複数の評価項目を決定する。ステップS415における処理は、調整方針決定部41によって実現される。ここで、図5を参照して、評価項目の設定について説明する。図5は、評価方式を選択するための画面の一例を示す図である。画面501は、評価方式を選択するための画面の一例である。画面501は、出力部42によって出力装置200に表示される。画面501は、コード1の種類を選択する欄502と、評価方式を選択する欄503と、コード1の印字状態の計測(スコアの算出)開始を指示するボタン504とを含む。
 ユーザが入力装置300を用いて、欄502でコード1の種類を選択し、欄503で評価方式を選択して、ボタン504を押下すると、調整方針決定部41は、欄503で選択された評価方式に対応する評価項目の中から、上述のアルゴリズムに従って、複数の評価項目を決定し、決定した複数の評価項目についてスコアを算出するように算出部33へ指示を出す。一例として、評価方式としてISO/IEC15415が選択された場合には(図3参照)、調整方針決定部41は、SC、MOD、RM、FPD、DEC、UEC、GN、およびANの中から、上述のアルゴリズムに従って、SC、MOD、FPD、DEC、UEC、GN、およびANをスコアを算出する評価項目として決定する。
 再び、図4を参照して、ステップS420において、CPUは、コード1を撮像する。具体的には、CPUからの指示に基づき、照明20がコード1を照らし、カメラ10がコード1を撮像する。カメラ10の撮像条件および照明20の照明条件は、読み取りテストの開始が指示された後の初回の撮像においては、ステップS410で設定された条件が用いられ、読み取りテストの開始が指示された後の2回目以降の撮像においては、ユーザによる調整操作に基づいて設定された条件が用いられる。
 ステップS425において、CPUは、カメラ10で撮像されたコード1の画像に対し画像処理を施して、読取部30で処理するコード1の画像を生成し、生成したコード1の画像からコード1を復号する。ステップS425における処理のうち、画像処理は前処理部312によって実現され、復号処理は復号部32によって実現される。画像処理に関する条件は、読み取りテストの開始が指示された後の初回の画像生成においては、ステップS410で設定された条件が用いられ、読み取りテストの開始が指示された後の2回目以降の画像生成においては、ユーザによる調整操作によって設定された条件が用いられる。
 ステップS430において、CPUは、ステップS425で生成されたコード1の画像に対して、復号の結果を基に、ステップS415で決定された複数の評価項目の各々のスコアを算出する。ステップS430における処理は、算出部33によって実現される。
 ステップS435において、CPUは、ステップS430で算出された複数の評価項目毎のスコアに基づいて、ユーザによる読取条件の調整の方針を決定する。ステップS435における処理は、調整方針決定部41によって実現される。
 ステップS440において、CPUは、ステップS430で算出された複数の評価項目毎のスコアを示す情報と、ステップS435で決定された調整方針とをユーザに対し出力する。出力装置200がディスプレイである場合には、CPUは、ステップS430で算出された複数の評価項目毎のスコアを示す情報と、ステップS435で決定された調整方針とをディスプレイに表示させる。出力装置200がスピーカーである場合には、CPUは、ステップS430で算出された複数の評価項目毎のスコアを示す情報と、ステップS435で決定された調整方針とをスピーカーに音声で出力させる。
 ステップS445において、CPUは、読取条件のうち画像処理に関する条件を調整する操作を受け付けたか否かを判定する。CPUは、画像処理に関する条件を調整する操作を受け付けた場合には(ステップS445においてYES)、処理をステップS450へ移行し、画像処理に関する条件を調整する操作を受け付けなかった場合には(ステップS445においてNO)、処理をステップS460へ移行する。
 ステップS450において、CPUは、受け付けた操作に基づいて画像処理に関する条件を調整する。具体的には、ユーザが入力装置300を用いて画像処理に関する条件を調整するための操作を行った場合には、CPUは、その操作に対応する条件を前処理部312へ送信する。ステップS450における処理は、調整部43によって実現される。前処理部312へ送信された条件は前処理部312によって調整後の条件として記憶される。そして、後述の再計測が指示された場合には、前処理部312によって当該調整後の条件で画像処理が行われる。
 ステップS455において、CPUは、再計測を指示されたか否かを判定する。再計測とは、読取部30の読取条件が調整された場合に、調整後の条件で再度スコアを算出することである。CPUは、再計測を指示された場合には(ステップS455においてYES)、処理をステップS425へ戻し、再計測を指示されなかった場合には(ステップS455においてNO)、処理をステップS460へ移行する。このように、再計測を指示された場合には処理がステップS425へ戻されるので、既にステップS420で撮像されているコード1の画像に対し、調整後の条件で画像処理が行われ、再度スコアが算出されることになる。
 ステップS460において、CPUは、読取条件のうち撮像に関する条件を調整する操作を受け付けたか否かを判定する。CPUは、撮像に関する条件を調整する操作を受け付けた場合には(ステップS460においてYES)、処理をステップS465へ移行し、撮像に関する条件を調整する操作を受け付けなかった場合には(ステップS460においてNO)、処理をステップS470へ移行する。
 ステップS465において、CPUは、受け付けた操作に基づいて撮像に関する条件を調整する。具体的には、ユーザが入力装置300を用いて撮像に関する条件を調整するための操作を行った場合には、CPUは、その操作に対応する条件を撮像条件設定部311へ送信する。ステップS465における処理は、調整部43によって実現される。撮像条件設定部311へ送信された条件は撮像条件設定部311によって調整後の条件として記憶される。そして、再計測が指示された場合には、調整後の条件が撮像条件設定部311によってカメラ10および照明20へ送信され、カメラ10および照明20により調整後の条件でコード1が撮像される。
 ステップS470において、CPUは、再計測を指示されたか否かを判定する。CPUは、再計測を指示された場合には(ステップS470においてYES)、処理をステップS420へ戻し、再計測を指示されなかった場合には(ステップS470においてNO)、処理をステップS475へ移行する。このように、再計測を指示された場合には処理がステップS420へ戻されるので、調整後の条件でコード1の撮像および画像処理が行われ、再度スコアが算出されることになる。なお、読取条件のうち画像処理に関する条件は調整されず、撮像に関する条件だけが調整されて再計測を指示された場合には(ステップS445においてNO、かつ、ステップS460においてYES、かつ、ステップS470においてYES)、コード1の撮像は調整後の条件で行われ、画像処理は直近の画像処理時と同様の条件で行われて、再度スコアが算出されることになる。
 ステップS475において、CPUは、コード1の読み取り(本番)を指示されたか否かを判定する。CPUは、コード1の読み取り(本番)を指示された場合には(ステップS475においてYES)、処理をステップS480に移行し、コード1の読み取り(本番)を指示されなかった場合には(ステップS475においてNO)、図4に示す一連の処理を終了する。
 ステップS480において、CPUは、読取部30の読取条件(カメラ10の撮像条件、照明20の照明条件、および前処理部312による画像処理に関する条件)を設定する。具体的には、読み取りテストを経てコード1の読み取り(本番)を指示された場合には、CPUは、読み取りテストにおいて調整された調整後の条件を読み取り(本番)の読取条件として設定する。一方、読み取りテストを経ることなくコード1の読み取り(本番)を指示された場合であって、ユーザから読取部30の読取条件の入力を受け付けた場合には、CPUは、受け付けた条件を読み取り(本番)の読取条件として設定する。また、読み取りテストを経ることなくコード1の読み取り(本番)を指示された場合であって、ユーザから読取部30の読取条件の入力を受け付けなかった場合には、予めコード読取装置100に登録されている初期値を読み取り(本番)の読取条件として設定する。
 ステップS485において、CPUは、ステップS480で設定された条件でコード1を撮像する。具体的には、CPUからの指示に基づき、照明20がコード1を照らし、カメラ10がコード1を撮像する。
 ステップS490において、CPUは、カメラ10で撮像されたコード1の画像に対し、ステップS480で設定された条件で画像処理を施して、読取部30(より具体的には、復号部32)で処理するコード1の画像を生成する。ステップS490における処理は、前処理部312によって実現される。
 ステップS495において、CPUは、ステップS490で生成されたコード1の画像からコード1を復号する。ステップS495における処理は、復号部32によって実現される。
 ステップS495の後、CPUは、図4に示す一連の処理を終了する。
 (ユーザによる調整を支援するためのインターフェイス)
 図1~図4および図6~図11を参照して、コード読取装置100における、ユーザによる調整を支援するためのインターフェイスについて説明する。
 図1~図4および図6を参照して、読み取りテストの際に表示される画面について説明する。図6は、読み取りテストの際に表示される画面の一例を示す図である。画面601は、読み取りテストの際のステップS440において表示される画面の一例である。画面601は、出力部42によってディスプレイ(出力装置200)に表示される。画面601は、欄610、欄620、欄630、欄640、欄650、欄660、タブ673,674、および各種ボタン671,672,675,676を含む。
 欄610には、ステップS430で算出されたスコアを示す情報が表示される。欄610は2つのタブ(タブ611、タブ612)を有し、ユーザはタブを選択することにより、欄610内に表示される情報を切り替えることができる。具体的には、ユーザがタブ611を選択した場合には、ステップS420で撮像されたコード1の印字状態をステップS415で決定された複数の評価項目に基づいて総合的に評価した情報(俯瞰情報)が欄610に表示される。一方、ユーザがタブ612を選択した場合には、ステップS420で撮像されたコード1の印字状態をステップS415で決定された複数の評価項目のうち特定の評価項目について評価した情報(詳細情報)が欄610に表示される。俯瞰情報および詳細情報には、ステップS430で算出された複数の評価項目毎のスコアを示す情報が含まれ、スコアを示す情報には、ステップS430で算出されたスコアと、評価項目毎に予め設定されている閾値とを比較した比較情報が含まれる。
 欄620および欄630は、スコアを改善すべき評価項目毎に読取条件をどのように調整すべきかを示唆する情報が表示される。当該情報は、調整方針決定部41によって決定される。欄620には、スコアを改善すべき全ての評価項目がプルダウンで表示される。欄630には、調整方針決定部41で抽出された調整項目の調整を示唆する情報が表示される。ユーザが欄620で改善対象の評価項目の1つを選択すると、欄630には、選択された評価項目に対応する調整項目が表示される。一例として、欄620で「SC」が選択された場合には、欄630には、濃度補正フィルタの使用を示唆する情報、および、カメラの露光時間と絞りとの調整を示唆する情報が表示される。濃度補正フィルタの使用を示唆する情報は、「第1方針」の一例である。カメラの露光時間と絞りとの調整を示唆する情報は、「第2方針」の一例である。他の例として、欄620で「FPD」または「MOD」が選択された場合には、欄630には、平滑化フィルタおよび膨張/収縮フィルタの使用を示唆する情報が表示される。平滑化フィルタおよび膨張/収縮フィルタの使用を示唆する情報は、「第1方針」の一例である。
 欄640には、ステップS425で生成されたコード1の画像Gが表示される。コード1の画像Gには、印字状態に問題があるエレメントの位置を示す画像Pが重ね合わせられて表示される。一例として、画像Pは、スコアが閾値未満のエレメントの位置を示す。エレメントとは、コード1が一次元シンボルの場合にはバーやスペースに相当し、コード1が二次元シンボルの場合にはセルに相当する。コード1は、複数のエレメントで構成される。
 画像Pは、スコアが閾値未満のエレメントのうち欄620で選択されている評価項目についてのエレメントの位置のみを示してもよいし、スコアが閾値未満の全てのエレメントの位置を示してもよい。また、画像Pは、スコアが閾値未満のエレメントの位置を評価項目毎に区別して示してもよい。一例として、画像Pは、スコアが閾値未満のエレメントの位置を評価項目毎に色を変えて示してもよい。
 なお、評価項目がUECの場合には、画像Pは認識を誤ったエレメントの位置を示してもよい。また、評価項目が輝度値に関する評価項目(例えば、MOD、FPD等)の場合には、画像Pは輝度値が他のエレメントと比較して特異な値となっているエレメントの位置(特異点)を示してもよい。
 画像Pにより、ユーザは印字状態に問題があるエレメントの位置を認識することができる。
 欄650には、読み取りテストのフローが表示されている。欄660には、読取条件の調整に供される画像が表示される。ユーザが欄650の「画像入力」を選択すると、読取条件のうち撮像に関する条件の調整に供される画像が欄660に表示される。ユーザが欄650の「前処理」を選択すると、読取条件のうち画像処理に関する条件の調整に供される画像が欄660に表示される。ユーザが欄650の「読み取り」を選択すると、図5に示した画面501が欄660に表示され、ユーザは読取処理に関する条件を設定することが可能となる。
 なお、欄650には、コード1の種類別やコード1の大きさ別に「読み取り」欄が複数設けられてもよい。一例として、18×18サイズのQRコード用の「読み取り1」欄と、20×20サイズのQRコード用の「読み取り2」欄とを設けてもよい。これにより、ユーザは、コード1の種類別やコード1の大きさ別に、読取処理に関する条件を設定することが可能となる。
 タブ673とタブ674とはタブになっており、ユーザはタブ673,674を選択することにより、タブ673,674の下に表示されるボタンを切り替えることができる。
 タブ673は、機器(例えば、PCやUSBメモリ)に保存されているコード1の画像を使って読取条件を調整したい場合に、ユーザによって選択される。タブ673が選択されると、タブ673,674の下にボタン671,672,675が表示される。ユーザによるボタン671,672,675の操作の一例は、以下の通りである。
 まず、ユーザは、ボタン671をクリックして、対象となるコード1の画像を選択する。次に、ユーザはボタン675をクリックして、選択されているコード1の画像の計測(すなわち、読み取りおよび評価)をコード読取装置100に実行させる。選択されているコード1の画像の計測が完了すると、欄610、欄620、欄630、および欄640の表示が更新される。なお、同じフォルダに保存されている画像であれば、ユーザは、ボタン672の「<<」を押すことで1つ前のコード1の画像を計測させ、ボタン672の「>>」を押すことで次のコード1の画像を計測させることができる。
 タブ673が選択されている状態において、ユーザは画像処理に関する条件だけでなく、コード1の撮像に関する条件も調整することができる。ただし、ユーザがコード1の撮像に関する条件を調整したとしても、コード1の撮像は行われず、機器(例えば、PCやUSBメモリ)に保存されているコード1の画像に対し、設定された条件で画像処理が行われる。
 タブ674は、カメラ10を使ってリアルタイムにコード1を撮像し、カメラ10で撮像されたコード1の画像を使って読取条件を調整したい場合に、ユーザによって選択される。タブ674が選択されると、タブ673,674の下にボタン671,672,675に替えて、「計測」というボタンのみが表示される。ユーザが「計測」というボタンをクリックすると、カメラ10によってコード1が撮像され、撮像されたコード1の画像の計測が行われる。加えて、欄610、欄620、欄630、および欄640の表示が更新される。欄640には、撮像されたコード1の画像が表示される。
 ボタン676は、読み取りテストを終了し、読み取り(本番)に移行したい場合に、ユーザによって選択される。
 なお、欄610、欄620、欄630、欄640、欄650、および欄660はユーザによる操作に応じて、拡大縮小可能に構成されていてもよい。
 図1~図4、図6および図7を参照して、欄610に表示される俯瞰情報について説明する。図7は、俯瞰情報の一例を示す図である。俯瞰情報は、ステップS420で撮像されたコード1の印字状態をステップS415で決定された複数の評価項目に基づいて総合的に評価した情報である。俯瞰情報は、ユーザがタブ611を選択した場合に欄610に表示される。俯瞰情報は、以下に示す6つの要件を満たすような形式で欄610に表示される。
 第1の要件は、ステップS415で決定された複数の評価項目をユーザが認識できることである。第2の要件は、ステップS415で決定された複数の評価項目のうち、スコアが悪い評価項目とスコアが良い評価項目とをユーザが認識できることである。第3の要件は、いずれの評価項目からスコアを改善すべきかをユーザが認識できることである。第4の要件は、スコアと閾値との乖離を評価項目毎にユーザが認識できることである。第5の要件は、評価対象外の評価項目の設定および解除をユーザが行えることである。第6の要件は、調整のフェーズをユーザが認識できることである。
 上記6つの要件を満たすような形式の一例として、図7ではレーダーチャートを挙げている。レーダーチャートには、ステップS415で決定された複数の評価項目(アイコン701~707)がスコアを改善すべき順に時計回りに配置される。スコアを改善すべき順は、調整方針決定部41によって上述のアルゴリズムに従って決定される。これにより、ユーザはステップS415で決定された複数の評価項目を認識できるとともに、いずれの評価項目からスコアを改善すべきかを認識することができる(第1の要件、第3の要件)。
 また、レーダーチャートには、ステップS430で算出されたスコアが実線(実線708)で示され、評価項目毎に予め設定されている閾値が点線(点線709)で示されている。実線708で示される情報は、ステップS430で算出された複数の評価項目毎のスコアを示す情報の一例である。また、実線708と点線709とで示される情報は「比較情報」の一例であり、より具体的には、評価項目毎の、スコアと閾値との乖離を示す情報の一例である。これにより、ユーザはステップS415で決定された複数の評価項目のうち、スコアが悪い評価項目とスコアが良い評価項目とを認識することができる(第2の要件)。また、ユーザはスコアと閾値との乖離を評価項目毎に認識することができる(第4の要件)。
 また、レーダーチャートに配置される評価項目は、スコアが閾値未満の評価項目とスコアが閾値以上の評価項目とで表示色を変えて表示される。表示色を変えて表示される、スコアが閾値未満の評価項目とスコアが閾値以上の評価項目とは、「比較情報」の一例であり、より具体的には、スコアが閾値未満の評価項目とスコアが閾値以上の評価項目とを区別した情報の一例である。これにより、ユーザはステップS415で決定された複数の評価項目のうち、スコアが悪い評価項目とスコアが良い評価項目とを認識することができる(第2の要件)。
 また、アイコン701~707は、ユーザが操作(クリック、タッチ等)可能であり、アイコンに対応する評価項目の評価対象外の設定および解除の切り替えに供される。これにより、ユーザは評価対象外の評価項目の設定および解除を行うことができる(第5の要件)。一例として、評価対象に設定されている評価項目はユーザが視認可能な状態で表示されるのに対し、評価対象外に設定されている評価項目はユーザが視認不能若しくは視認困難となるようにグレーアウトされている。ユーザがグレーアウトされていないアイコン701~707を操作した場合には、操作されたアイコンに対応する評価項目が評価対象外に設定され、当該評価項目のスコアを示す情報がグレーアウトされて視認不能若しくは視認困難となる。評価対象外に設定された評価項目のスコアは、調整方針の決定の際には考慮されなくなる。一方、ユーザがグレーアウトされているアイコン701~707を操作した場合には、操作されたアイコンに対応する評価項目の評価対象外の設定が解除され、当該評価項目のスコアを示す情報が視認可能な状態となる。評価対象外の設定が解除された評価項目のスコアは、調整方針の決定の際に考慮されることになる。
 なお、評価対象外に設定された評価項目のスコアを示す情報のうち比較情報の出力は停止するが、算出部33で算出されたスコアは出力するようにしてもよい。一例として、算出部33で算出されたスコアと、評価項目毎に予め設定されている閾値とを比較するような情報はグレーアウトされ、算出部33で算出された各スコアのみアイコン701~707の横に表示させるようにしてもよい。
 また、欄610には、調整のフェーズをユーザが認識できるようなメッセージ(表示710)が表示される。より具体的には、評価対象の評価項目のうちスコアが閾値未満の評価項目が1つでもあるフェーズにおいては、欄610に表示されている評価項目について時計回りの順にスコアを改善させることによりスコアの全体的な底上げが必要なフェーズであることを示すメッセージ(例えば、「全体的な底上げが必要です」等)が表示され、評価対象の評価項目の全てが閾値以上であるフェーズにおいては、特定の評価項目についてスコアの更なる改善を見込めるフェーズであることを示すメッセージ(例えば、「FPD/MODをさらに改善できます」等)が表示される。これにより、ユーザは調整のフェーズを認識することができる(第6の要件)。
 なお、上記では、俯瞰情報をレーダーチャートの形式で表示するものとしたが、棒グラフの形式で表示してもよい。一例として、評価項目毎のスコアを示す棒状の画像をスコアを改善すべき評価項目順に並べ、評価項目毎の閾値を棒グラフに重ね合わせて表示させてもよい。
 また、上記では、ステップS415で決定された複数の評価項目(アイコン701~707)がスコアを改善すべき順に時計回りに配置されるとしたが、ステップS415で決定された複数の評価項目(アイコン701~707)がコード1の印字状態に影響を与えやすい順(重要度の順)に時計回りに配置されるようにしてもよい。
 また、上記では、配置される評価項目は、スコアが閾値未満の評価項目とスコアが閾値以上の評価項目とで表示色を変えて表示されるとしたが、配置される評価項目は、スコアが閾値未満の評価項目とスコアが閾値以上の評価項目とが区別可能な状態で表示されればよく、アイコン701~707の大きさを変えて表示されてもよいし、アイコン701~707の種類を変えて表示されてもよい。
 また、上記では、ステップS430で算出された複数の評価項目毎のスコアと、評価項目毎に予め設定されている閾値との両方が表示されたが、閾値は表示されずに、ステップS430で算出された複数の評価項目毎のスコアと、スコアが閾値未満の評価項目とスコアが閾値以上の評価項目とを区別した情報とが表示されるのでもよい。
 図1~図4、図6、図8および図9を参照して、欄610に表示される詳細情報について説明する。詳細情報は、ユーザがタブ612を選択した場合に欄610に表示される。詳細情報は、ステップS420で撮像されたコード1の印字状態をステップS415で決定された複数の評価項目のうち特定の評価項目について評価した情報であり、特定の評価項目についてのスコアを示す情報、または、特定の評価項目についてのスコア以外の情報である。
 図8は、詳細情報のうち、特定の評価項目についてのスコアを示す情報の一例を示す図である。特定の評価項目についてのスコアを示す情報は、ステップS420でコード1の画像が複数撮像された場合に、ユーザに対し出力される。ステップS420でコード1の画像が複数撮像される場合とは、複数のコード1が撮像される場合や、1つのコード1が複数回撮像される場合等である。
 一例として、特定の評価項目についてのスコアを示す情報は、図8に示すようなグラフの形式で表示される。図8に示すグラフは、各々の画像に対して算出されたスコアのうち特定の評価項目のスコアだけをプロットしたものである。図8に示すグラフは、縦軸に特定の評価項目のスコアが示され、横軸にコード1の枚数(カウント数)が示される。
 横軸に示されるコード1の枚数(カウント数)について補足すると、コード1の複数の画像に対して、古い画像ほど小さい番号が割り当てられ、新しい画像ほど大きい番号が割り当てられるようになっており、当該「番号」が横軸に示されている。したがって、「番号」は、コード1の枚数(カウント数)を示しているともいえる。なお、横軸には、コード1の撮像時刻が示されてもよい。
 ユーザは、欄620を操作することで特定の評価項目を切り替えることができる。図8に示すグラフは、ステップS430で算出された複数の評価項目毎のスコアを示す情報の一例である。このようなグラフにより、ユーザは複数の画像から算出されたスコアを評価項目毎に横断的に認識することができる。
 また、当該グラフには、欄620で選択されている評価項目の閾値を示すライン(ライン801)が引かれていてもよい。ライン801が引かれた図8に示すグラフは、「比較情報」の一例であり、より具体的には、評価項目毎の、スコアと閾値との乖離を示す情報の一例である。このようなグラフにより、ユーザは複数の画像から算出されたスコアと評価項目毎に予め設定されている閾値との乖離を評価項目毎に横断的に認識することができる。
 また、ユーザが当該グラフ上の計測点をクリックすると、欄640の表示が計測点に対応するコード1の画像Gに切り替わるように構成されてもよい。これにより、ユーザは複数の画像の中から所望の画像を欄640に表示させることができ、所望の画像についてスコアが悪いエレメントの位置を把握することができる。
 また、図6に示した欄650に「読み取り」欄が複数設けられている場合には、各「読み取り」欄に対応するコード1について生成されたグラフを全て重ね合わせて欄610に表示してもよい。一例として、欄650に、18×18サイズのQRコード用の「読み取り1」欄と、20×20サイズのQRコード用の「読み取り2」欄とが設けられている場合には、18×18サイズのQRコードについて生成された図8に示すグラフと、20×20サイズのQRコードについて生成された図8に示すグラフとを重ね合わせて欄610に表示してもよい。
 図9は、詳細情報のうち、特定の評価項目についてのスコア以外の情報の一例を示す図である。評価項目が輝度に関する評価項目(例えば、SC、FPD、MOD等)である場合には、スコア以外の情報が表示されてもよい。一例として、輝度値の分布を示す情報が図9に示すようなヒストグラムの形式で表示される。図9に示すグラフは、横軸に輝度値が示され、縦軸に輝度値の頻度が示される。輝度値のヒストグラムは、コード1のシンボル領域全体の輝度値の分布を示すものでもよいし、コード1のセルの中心座標のみの輝度値の分布を示すものでもよい。このようなグラフにより、ユーザは特定の評価項目についてスコア以外の情報からコード1の印字状態を認識することができる。特に、輝度値のヒストグラムは、画像処理に関する条件を調整した場合にその調整の効果(適用したフィルタの効果)をユーザが確認する際に有用である。
 図1、図3、図6、および図10を参照して、欄640に表示されるコード1の画像Gの変形例について説明する。図10は、コード1の画像の変形例を示す図である。
 図6で示したコード1の画像Gには、印字状態に問題があるエレメントの位置を示す画像Pのみが重ね合わせられていたが、図10に示す例では、コード1の画像Gに画像Pとグリッドを示す画像Qとが重ね合わせられて、欄640に表示される。画像Qは欄640にコード1の画像Gが表示される場合に常に表示されてもよいし、格子の歪みに関する評価項目(例えば、GN、AN等)のスコアが悪い場合にのみ表示されてもよい。画像Qにより、ユーザは格子の歪みを認識することができる。
 図1、図2、図6および図11を参照して、読取条件の調整方法について説明する。図11は、読取条件の調整に供される画像の一例を示す図である。図11(A)は調整前の状態を示し、図11(B)は調整後の状態を示す。
 欄660は、ユーザが調整すべき項目を示す欄111と、当該調整項目の調整に供される画像が表示される欄112とを含む。ユーザが調整すべき項目とは、調整方針決定部41によって決定され、欄630にて調整を示唆された上述の「調整項目」のことである。欄112には、ユーザの操作に従って左右にスライド可能な、摘まみを模した画像113が表示される。欄112は、画像113の位置に相当する読取条件が表示される欄114をさらに含む。
 ユーザは、欄114に所望の読取条件が表示されるように画像113を移動させるだけで読取条件を変更させることができる。ユーザがある調整項目の画像113を移動させると、調整部43は画像113の停止位置に相当する読取条件を読取部30へ送信する。より具体的には、ユーザが画像113を移動させた調整項目がコード1の撮像条件に関わる調整項目である場合には、調整部43は、画像113の停止位置に相当する読取条件を撮像条件設定部311へ送信する。撮像条件設定部311は、受信した読取条件のうちカメラ10の撮像条件をカメラ10に設定し、照明20の照明条件を照明20に設定する。一方、ユーザが画像113を移動させた項目が画像処理に関わる調整項目である場合には、調整部43は、画像113の停止位置に相当する読取条件を前処理部312へ送信する。前処理部312は、受信した読取条件で画像処理を行う。
 このように、ユーザは画像113を移動させるだけで、読取条件を調整することができる。また、調整すべき調整項目は、欄630に表示される。したがって、ユーザは欄630の表示に従って、画像113を左右にスライドさせるだけで読取条件を調整することができるので、ユーザによる読取条件の調整負担が軽減される。
 (小括)
 このように、実施の形態1におけるコード読取装置100は、コード1の読み取りに関する条件(読取部30の読取条件)のユーザによる調整を支援する調整支援機能を備え、読取部30の読取条件の調整の方針をユーザに対し出力する。これにより、ユーザは出力された調整方針に従って読取部30の読取条件を調整するだけで、コード読取装置100の読み取りを安定させることができるので、ユーザによる読取部30の読取条件の調整負担が軽減される。
 [実施の形態2]
 実施の形態1におけるコード読取装置100は、コード1の読み取りに関する条件(読取部30の読取条件)のユーザによる調整を支援する調整支援機能を備えていた。これに対し、実施の形態2におけるコード読取装置は、調整支援機能を備えていない。その代わりに、実施の形態2におけるコード読取装置は、調整支援機能を備えた調整支援装置と接続可能であり、調整支援装置と共にコードリーダ調整支援システムを形成する。以下、コードリーダ調整支援システムについて説明する。なお、実施の形態1と同様の構成や処理については、同じ符号を付して、その説明は繰り返さない。
 (コードリーダ調整支援システムの構成)
 図1、図2、および図12を参照して、コードリーダ調整支援システム500の構成について説明する。図12は、コードリーダ調整支援システム500を示すブロック図である。コードリーダ調整支援システム500は、コード読取装置100Aと調整支援装置40Aとを備える。コード読取装置100Aおよび調整支援装置40Aは、ネットワーク600を介して接続される。
 コード読取装置100Aは、調整支援装置40Aとの間で情報を通信する第1通信部34Aを備える点で実施の形態1におけるコード読取装置100と異なるが、その他の点においてはコード読取装置100と同様である。
 調整支援装置40Aは、コード読取装置100Aとの間で情報を通信する第2通信部44Aを備える点で実施の形態1における調整支援部40と異なるが、その他の点においては調整支援部40と同様である。
 第1通信部34Aは、算出部33からスコアを受信し、受信したスコアを調整支援装置40Aへ送信する。第2通信部44Aは、コード読取装置100Aからスコアを受信し、受信したスコアを調整方針決定部41および出力部42へ送信する。調整方針決定部41は、受信したスコアを基に調整方針を決定する。出力部42は、受信したスコアを示す情報をユーザに対し出力する。
 第2通信部44Aは、調整部43から読取条件を受信し、受信した読取条件をコード読取装置100Aへ送信する。第1通信部34Aは、調整支援装置40Aから送られてくる読取条件を受信し、受信した読取条件を画像生成部31へ送信する。具体的には、第1通信部34Aは、調整支援装置40Aから送られてくる撮像に関する条件を受信し、受信した条件を撮像条件設定部311へ送信する。また、第1通信部34Aは、調整支援装置40Aから送られてくる画像処理に関する条件を受信し、受信した条件を前処理部312へ送信する。撮像条件設定部311は、受信した条件のうちカメラ10の撮像条件をカメラ10に設定し、照明20の照明条件を照明20に設定する。前処理部312は、受信した条件で画像処理を行う。
 なお、カメラ10および照明20は、読取部30Aが設けられる筐体とは異なる筐体に設けられてもよいし、読取部30Aが設けられる筐体と同じ筐体に設けられてもよい。
 また、算出部33は、コード読取装置100Aではなく、調整支援装置40Aに設けられてもよい。
 (小括)
 このように、実施の形態2に従えば、コード読取装置に調整支援機能を後付けすることが可能となる。すなわち、実施の形態2におけるコード読取装置100Aは、調整支援機能を備えた調整支援装置40Aと接続されてコードリーダ調整支援システム500を形成し、コード1の読み取りに関する条件(読取部30Aの読取条件)の調整の方針をユーザに対し出力する。これにより、ユーザは出力された調整方針に従って読取部30Aの読取条件を調整するだけで、コード読取装置100Aの読み取りを安定させることができるので、ユーザによる読取部30Aの読取条件の調整負担が軽減される。
 [総括]
 実施の形態におけるコード読取装置100およびコードリーダ調整支援システム500は、コード1の読み取りに関する条件(読取部30,30Aの読取条件)の調整の方針をユーザに対し出力する。これにより、ユーザは出力された調整方針に従って読取部30,30Aの読取条件を調整するだけで、コード読取装置100,100Aの読み取りを安定させることができるので、ユーザによる読取部30,30Aの読取条件の調整負担が軽減される。
 [付記]
 上述した実施の形態は、以下のような技術思想を含む。
 [構成1]
 印字対象物(2)に印字されたコード(1)を読み取るコード読取装置(100)であって、
 前記コード(1)を撮像するカメラ(10)と、
 前記カメラ(10)で撮像された前記コード(1)の画像から前記コード(1)を読み取る読取部(30)と、
 前記読取部(30)の読取条件のユーザによる調整を支援する調整支援部(40)と、を備え、
 前記読取部(30)は、
  前記読取部(30)で処理する前記コード(1)の画像を生成する画像生成部(31)と、
  前記画像生成部(31)で生成された前記コード(1)の画像から前記コード(1)を復号する復号部(32)と、
  前記画像生成部(31)で生成された前記コード(1)の画像に対して、当該コード(1)の印字状態を評価する複数の評価項目の各々のスコアを算出する算出部(33)と、を含み、
 前記調整支援部(40)は、
  前記算出部(33)で算出された複数の前記評価項目毎の前記スコアに基づいて、前記ユーザによる前記読取条件の調整方針を決定する調整方針決定部(41)と、
  前記調整方針決定部(41)で決定された前記調整方針を前記ユーザに対し出力する出力部(42)と、
  前記ユーザの操作に基づいて前記読取条件を調整する調整部(43)と、を含む、コード読取装置。
 [構成2]
 前記画像生成部(31)は、
  前記カメラ(10)の撮像条件を設定する撮像条件設定部(311)と、
  前記コード(1)の画像に対し画像処理を施す前処理部(312)と、を有し、
 前記撮像条件設定部(311)で設定した前記撮像条件で撮像された前記コード(1)の画像に対して、前記前処理部(312)で画像処理を施して前記読取部(30)で処理する前記コードの画像を生成する、構成1に記載のコード読取装置。
 [構成3]
 前記読取部(30)と接続され、前記カメラ(10)が前記コード(1)を撮像する場合に前記コード(1)を照らす照明(20)をさらに備え、
 前記撮像条件設定部(311)は、前記照明(20)の照明条件をさらに設定する、構成2に記載のコード読取装置。
 [構成4]
 前記調整方針決定部(41)は、ユーザが選択した評価方式に応じて前記スコアを算出する複数の前記評価項目を切り替える、構成1~構成3のいずれか1項に記載のコード読取装置。
 [構成5]
 前記調整方針は、いずれの前記評価項目から前記スコアを改善すべきかという情報を含む、構成1~構成4のいずれか1項に記載のコード読取装置。
 [構成6]
 前記調整方針は、前記スコアを改善すべき前記評価項目毎に前記読取条件をどのように調整すべきかを示唆する情報を含む、構成1~構成5のいずれか1項に記載のコード読取装置。
 [構成7]
 前記示唆する情報は、前記カメラ(10)で撮像された前記コード(1)の画像に対する画像処理に関する第1方針と、前記コード(1)の撮像に関する第2方針とのうち少なくとも一方の方針を含む、構成6に記載のコード読取装置。
 [構成8]
 前記出力部(42)は、前記算出部(33)で算出された複数の前記評価項目毎の前記スコアを示す情報を前記ユーザに対しさらに出力する、構成1~構成7のいずれか1項に記載のコード読取装置。
 [構成9]
 前記スコアを示す情報は、前記スコアと閾値とを比較した比較情報を含み、
 前記比較情報は、前記スコアが閾値未満の前記評価項目と、前記スコアが閾値以上の前記評価項目とを区別した情報を含む、構成8に記載のコード読取装置。
 [構成10]
 前記比較情報は、前記評価項目毎の、前記スコアと閾値との乖離を示す情報をさらに含む、構成9に記載のコード読取装置。
 [構成11]
 前記出力部(42)は、ユーザが選択した評価対象外の前記評価項目に対して前記スコアを示す情報のうち少なくとも一部の情報の出力を停止し、
 前記調整方針決定部(41)による前記調整方針の決定には、評価対象外の前記評価項目の前記スコアは考慮されない、構成8~構成10のいずれか1項に記載のコード読取装置。
 [構成12]
 前記コード(1)は複数のエレメントで構成され、
 前記出力部(42)は、前記コード(1)の画像に前記スコアが閾値未満の前記エレメントの位置を示す画像を重ね合わせて表示する、構成1~構成11のいずれか1項に記載のコード読取装置。
 [構成13]
 印字対象物(2)に印字されたコード(1)を読み取るコード読取装置(100A)と、
 前記コード読取装置(100A)の読取条件のユーザによる調整を支援する調整支援装置(40A)と、を備えるコードリーダ調整支援システム(500)であって、
 前記コード読取装置(100A)は、
  前記コード(1)を撮像するカメラ(10)と、
  前記カメラ(10)で撮像された前記コード(1)の画像から前記コード(1)を読み取る読取部(30A)と、を含み、
 前記読取部(30A)は、
  前記読取部(30A)で処理する前記コード(1)の画像を生成する画像生成部(31)と、
  前記画像生成部(31)で生成された前記コード(1)の画像から前記コード(1)を復号する復号部(32)と、
  前記画像生成部(31)で生成された前記コード(1)の画像に対して、当該コード(1)の印字状態を評価する複数の評価項目の各々のスコアを算出する算出部(33)と、を有し、
 前記調整支援装置(40A)は、
  前記算出部(33)で算出された複数の前記評価項目毎の前記スコアに基づいて、前記ユーザによる前記読取条件の調整方針を決定する調整方針決定部(41)と、
  前記調整方針決定部(41)で決定された前記調整方針を前記ユーザに対し出力する出力部(42)と、
  前記ユーザの操作に基づいて前記読取条件を調整する調整部(43)と、を含む、コードリーダ調整支援システム。
 今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて請求の範囲によって示され、請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。
 1 コード、2 ワーク、10 カメラ、20 照明、30,30A 読取部、31 画像生成部、32 復号部、33 算出部、34A 第1通信部、40 調整支援部、40A 調整支援装置、41 調整方針決定部、42 出力部、43 調整部、44A 第2通信部、100,100A コード読取装置、111,112,114,502,503,610,620,630,640,650,660 欄、113,G,P,Q 画像、200 出力装置、300 入力装置、301 キーボード、302 マウス、311 撮像条件設定部、312 前処理部、500 コードリーダ調整支援システム、501,601 画面、504,671~675 ボタン、600 ネットワーク、611,612 タブ、701~707 アイコン、708 実線、709 点線、710 表示、801 ライン。

Claims (13)

  1.  印字対象物に印字されたコードを読み取るコード読取装置であって、
     前記コードを撮像するカメラと、
     前記カメラで撮像された前記コードの画像から前記コードを読み取る読取部と、
     前記読取部の読取条件のユーザによる調整を支援する調整支援部と、を備え、
     前記読取部は、
      前記読取部で処理する前記コードの画像を生成する画像生成部と、
      前記画像生成部で生成された前記コードの画像から前記コードを復号する復号部と、
      前記画像生成部で生成された前記コードの画像に対して、当該コードの印字状態を評価する複数の評価項目の各々のスコアを算出する算出部と、を含み、
     前記調整支援部は、
      前記算出部で算出された複数の前記評価項目毎の前記スコアに基づいて、前記ユーザによる前記読取条件の調整方針を決定する調整方針決定部と、
      前記調整方針決定部で決定された前記調整方針を前記ユーザに対し出力する出力部と、
      前記ユーザの操作に基づいて前記読取条件を調整する調整部と、を含む、コード読取装置。
  2.  前記画像生成部は、
      前記カメラの撮像条件を設定する撮像条件設定部と、
      前記コードの画像に対し画像処理を施す前処理部と、を有し、
     前記撮像条件設定部で設定した前記撮像条件で撮像された前記コードの画像に対して、前記前処理部で画像処理を施して前記読取部で処理する前記コードの画像を生成する、請求項1に記載のコード読取装置。
  3.  前記読取部と接続され、前記カメラが前記コードを撮像する場合に前記コードを照らす照明をさらに備え、
     前記撮像条件設定部は、前記照明の照明条件をさらに設定する、請求項2に記載のコード読取装置。
  4.  前記調整方針決定部は、ユーザが選択した評価方式に応じて前記スコアを算出する複数の前記評価項目を切り替える、請求項1~請求項3のいずれか1項に記載のコード読取装置。
  5.  前記調整方針は、いずれの前記評価項目から前記スコアを改善すべきかという情報を含む、請求項1~請求項4のいずれか1項に記載のコード読取装置。
  6.  前記調整方針は、前記スコアを改善すべき前記評価項目毎に前記読取条件をどのように調整すべきかを示唆する情報を含む、請求項1~請求項5のいずれか1項に記載のコード読取装置。
  7.  前記示唆する情報は、前記カメラで撮像された前記コードの画像に対する画像処理に関する第1方針と、前記コードの撮像に関する第2方針とのうち少なくとも一方の方針を含む、請求項6に記載のコード読取装置。
  8.  前記出力部は、前記算出部で算出された複数の前記評価項目毎の前記スコアを示す情報を前記ユーザに対しさらに出力する、請求項1~請求項7のいずれか1項に記載のコード読取装置。
  9.  前記スコアを示す情報は、前記スコアと閾値とを比較した比較情報を含み、
     前記比較情報は、前記スコアが閾値未満の前記評価項目と、前記スコアが閾値以上の前記評価項目とを区別した情報を含む、請求項8に記載のコード読取装置。
  10.  前記比較情報は、前記評価項目毎の、前記スコアと閾値との乖離を示す情報をさらに含む、請求項9に記載のコード読取装置。
  11.  前記出力部は、ユーザが選択した評価対象外の前記評価項目に対して前記スコアを示す情報のうち少なくとも一部の情報の出力を停止し、
     前記調整方針決定部による前記調整方針の決定には、評価対象外の前記評価項目の前記スコアは考慮されない、請求項8~請求項10のいずれか1項に記載のコード読取装置。
  12.  前記コードは複数のエレメントで構成され、
     前記出力部は、前記コードの画像に前記スコアが閾値未満の前記エレメントの位置を示す画像を重ね合わせて表示する、請求項1~請求項11のいずれか1項に記載のコード読取装置。
  13.  印字対象物に印字されたコードを読み取るコード読取装置と、
     前記コード読取装置の読取条件のユーザによる調整を支援する調整支援装置と、を備えるコードリーダ調整支援システムであって、
     前記コード読取装置は、
      前記コードを撮像するカメラと、
      前記カメラで撮像された前記コードの画像から前記コードを読み取る読取部と、を含み、
     前記読取部は、
      前記読取部で処理する前記コードの画像を生成する画像生成部と、
      前記画像生成部で生成された前記コードの画像から前記コードを復号する復号部と、
      前記画像生成部で生成された前記コードの画像に対して、当該コードの印字状態を評価する複数の評価項目の各々のスコアを算出する算出部と、を有し、
     前記調整支援装置は、
      前記算出部で算出された複数の前記評価項目毎の前記スコアに基づいて、前記ユーザによる前記読取条件の調整方針を決定する調整方針決定部と、
      前記調整方針決定部で決定された前記調整方針を前記ユーザに対し出力する出力部と、
      前記ユーザの操作に基づいて前記読取条件を調整する調整部と、を含む、コードリーダ調整支援システム。
PCT/JP2021/009190 2020-10-30 2021-03-09 コード読取装置およびコードリーダ調整支援システム WO2022091445A1 (ja)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2020-182565 2020-10-30
JP2020182565A JP2022072880A (ja) 2020-10-30 2020-10-30 コード読取装置およびコードリーダ調整支援システム

Publications (1)

Publication Number Publication Date
WO2022091445A1 true WO2022091445A1 (ja) 2022-05-05

Family

ID=81382207

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2021/009190 WO2022091445A1 (ja) 2020-10-30 2021-03-09 コード読取装置およびコードリーダ調整支援システム

Country Status (2)

Country Link
JP (1) JP2022072880A (ja)
WO (1) WO2022091445A1 (ja)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001014420A (ja) * 1999-06-28 2001-01-19 Toshiba Tec Corp 郵便バーコード印刷品質検査機
JP2004078896A (ja) * 2002-06-18 2004-03-11 Omron Corp 光学情報コードの読取方法および光学情報コード読取装置
JP2012064173A (ja) * 2010-09-17 2012-03-29 Keyence Corp 光学情報読取装置用の設定支援装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001014420A (ja) * 1999-06-28 2001-01-19 Toshiba Tec Corp 郵便バーコード印刷品質検査機
JP2004078896A (ja) * 2002-06-18 2004-03-11 Omron Corp 光学情報コードの読取方法および光学情報コード読取装置
JP2012064173A (ja) * 2010-09-17 2012-03-29 Keyence Corp 光学情報読取装置用の設定支援装置

Also Published As

Publication number Publication date
JP2022072880A (ja) 2022-05-17

Similar Documents

Publication Publication Date Title
EP3239929B1 (en) Image processing apparatus, image processing method and program
JP4531809B2 (ja) コード画像処理方法
CN110678902A (zh) 手术器具检测系统及计算机程序
CN109241345B (zh) 基于人脸识别的视频定位方法和装置
JPH02110496A (ja) 情報処理装置
CN105653171A (zh) 基于指纹识别的终端控制方法、终端控制装置及终端
WO2022091445A1 (ja) コード読取装置およびコードリーダ調整支援システム
CN105809117A (zh) 一种信息提示方法及用户终端
JP2006277001A (ja) 入力イメージ表示方法および入力イメージ表示プログラム
JP2020187070A (ja) 画像検査装置及び画像検査装置の設定方法
WO2018131451A1 (ja) 画像処理プログラム、画像認識プログラム、画像処理装置、画像認識装置、画像認識方法、及び画像処理方法
JP4985241B2 (ja) 画像処理装置
JP2020160961A (ja) 二次元コード読取装置、コンピュータプログラム、及び、二次元コード
US7734090B2 (en) Information processing device and method, and program
JP4910635B2 (ja) 画像処理装置及び画像処理プログラム
CN114153313A (zh) 激光手术器械控制方法、装置及电子设备
WO2020202337A1 (ja) 画像生成装置、テストシステム、画像生成方法及びプログラム
JP2984267B1 (ja) 対象物の画像処理方法
CN113361442A (zh) 图像识别方法、装置、电子设备和存储介质
JP2015136763A (ja) 制御装置、ロボットシステム、ロボット及びロボット制御方法
JP3037727B2 (ja) Ocrシステム
JP2018173839A (ja) 画像処理装置、処理方法、プログラム
EP4318304A1 (en) Information reading device
KR100711206B1 (ko) 체크보드 형태의 교차점 자동 추출 방법
JP2006025006A (ja) プリント画像選択装置及びプリント画像選択方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21885570

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21885570

Country of ref document: EP

Kind code of ref document: A1