WO2015108022A1 - Barcode instruction generating device - Google Patents

Barcode instruction generating device Download PDF

Info

Publication number
WO2015108022A1
WO2015108022A1 PCT/JP2015/050612 JP2015050612W WO2015108022A1 WO 2015108022 A1 WO2015108022 A1 WO 2015108022A1 JP 2015050612 W JP2015050612 W JP 2015050612W WO 2015108022 A1 WO2015108022 A1 WO 2015108022A1
Authority
WO
WIPO (PCT)
Prior art keywords
display
barcode
command
print
width
Prior art date
Application number
PCT/JP2015/050612
Other languages
French (fr)
Japanese (ja)
Inventor
松原 高司
Original Assignee
株式会社Mrsホールディングズ
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 株式会社Mrsホールディングズ filed Critical 株式会社Mrsホールディングズ
Publication of WO2015108022A1 publication Critical patent/WO2015108022A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K1/00Methods or arrangements for marking the record carrier in digital fashion
    • G06K1/12Methods or arrangements for marking the record carrier in digital fashion otherwise than by punching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code

Definitions

  • the present invention relates to a technique for displaying a barcode image with high reading accuracy on a display such as a terminal device.
  • the present inventor does not have a problem in the way of development so far, such as creating an instruction for displaying the barcode on the display using a format common to the instruction for printing the barcode. I thought.
  • the width of the bar is defined by the unit of “point (pt)”, and the command for displaying on the display using this point is given. There was a problem in that it was generated.
  • This point is a unit for determining the size of characters when printing with a printer, and is defined as a length of 1/72 inch (about 0.35 mm). That is, in the print command, the width of the bar is defined in units of points such as “1 point” and “2 points”.
  • the present invention provides the following barcode command generation device. That is, as a first invention, a content information acquisition unit that acquires content information to be indicated by a barcode, and a barcode definition within a range in which each bar constituting the barcode from the acquired content information can be read and calculated by the reading device A print command generation unit that generates a print command using the print width unit of the printing device so as to achieve a specified print width ratio, and a range in which each bar constituting the barcode can be read and calculated by the reading device from the acquired content information And a display command generation unit that generates a display display command using a display display width unit of the display device so as to have a display definition width ratio defined by the barcode definition.
  • a print command acquisition unit that acquires a print command configured using a print width unit of a printing apparatus so as to obtain a print width ratio defined in the barcode definition, and a barcode from the acquired print command
  • a print command conversion unit that converts a display display command using a display display width unit of the display device so that each bar constituting the display display width ratio defined by the barcode definition is within a range in which the reading operation of the reading device can be performed;
  • a bar code command conversion device having
  • a printing command using a printing width unit of the printing apparatus so that each bar constituting the predetermined barcode has a printing width ratio defined by the barcode definition within a range in which the reading apparatus can perform the reading calculation.
  • a display display command using a display display width unit of the display device so that each bar constituting the predetermined barcode has a display definition width ratio defined by the barcode definition within a range in which the reading device can perform a reading operation,
  • a display command server device that stores and associates the URLs with each other.
  • FIG. 1 is a conceptual diagram illustrating an example of a functional configuration of a barcode display device according to a first embodiment.
  • Conceptual diagram showing an example of a barcode displayed by a display display command
  • Conceptual diagram showing another example of a barcode displayed by a display display command 1 is a conceptual diagram illustrating an example of a hardware configuration of a barcode command generation device according to a first embodiment.
  • FIG. 3 is a flowchart illustrating an example of a process flow of the barcode command generation device according to the first embodiment.
  • Conceptual diagram showing an example of a functional configuration of the barcode command conversion device according to the second embodiment Conceptual diagram showing an example of a hardware configuration of the barcode command conversion device according to the second embodiment.
  • FIG. 9 is a flowchart showing an example of a processing flow of the barcode command conversion device according to the second embodiment.
  • Conceptual diagram illustrating an example of a functional configuration of a barcode command conversion device according to the third embodiment.
  • FIG. 9 is a flowchart illustrating an example of a process flow of the barcode command conversion device according to the third embodiment.
  • the first embodiment will mainly describe claim 1.
  • claim 2 will be mainly described.
  • claim 3 will be mainly described.
  • claim 4 will be mainly described.
  • the barcode command generation device of the present embodiment generates a barcode printing command from content information to be indicated by the barcode, and generates a display display command for displaying the barcode on the display.
  • FIG. 1 is a diagram showing an example of functional blocks in the barcode command generation device of this embodiment.
  • functional blocks of the apparatus and system described below can be realized as a combination of hardware and software.
  • a computer a CPU, a main memory, a bus, or a secondary storage device (a hard disk, a non-volatile memory, a storage medium such as a CD or a DVD, a read drive for the medium, etc.), information Input devices used for input, printing equipment, display devices, other hardware components such as external peripheral devices, interfaces for external peripheral devices, communication interfaces, driver programs for controlling these hardware, Other examples include application programs and user interface applications.
  • each embodiment described in the present specification can be realized not only as an apparatus but also as a method. Moreover, a part of such an apparatus can be configured as software. Furthermore, a software product used to cause a computer to execute such software and a recording medium on which the product is fixed are naturally included in the technical scope of each embodiment described in this specification (this specification The same throughout.)
  • the “barcode command generation device” (0100) of this embodiment includes a “content information acquisition unit” (0101), a “print command generation unit” (0102), and a “display”. Display command generation unit "(0103).
  • the “content information acquisition unit” (0101) has a function of acquiring content information to be indicated by a barcode.
  • Content information is, for example, “payers”, “usage charges”, “payment due dates” that are various information included in payment slips, etc., and “product name” that is various information included in the product display , “Price”, “expiration date”, “manufacturer”, “producer information”, and the like.
  • Acquisition of content information is performed via an Internet line, a telephone line, near field communication, an optical reader, or the like.
  • the acquired content information may be stored in a non-volatile storage device such as a flash memory, or may be configured to be temporarily stored in a volatile storage device such as a ROM.
  • the “print command generating unit” (0102) prints the printing width of the printing apparatus so that each bar constituting the barcode from the acquired content information has a barcode width stipulated in the barcode definition within a range that can be read and calculated by the reading apparatus. It has a function of generating a print command using a unit.
  • Barcode definition is a definition defined by various barcode standards. Information such as the characters and modules that make up a barcode and the dimensions of the minimum element are shown as barcodes and can be read. There are various definitions for this. There are various bar code standards, such as JAN code, CODE39, CODE128, NW-7, ITF, and GS1-128. Among them, CODE39, NW-7, and ITF are called binary codes, and characters (alphabet, numbers, symbols, etc.) are composed of a combination of two types of bars and spaces, thin and thick. The JAN code, CODE128, and GS1-128 are called multi-level codes, and form a character by a combination of more than two kinds of thickness bars and spaces.
  • “Becomes the printing width ratio specified by the barcode definition within the range that can be read by the reading device” means not only when the printed barcode exactly matches the printing width ratio specified by the barcode definition. This means that the reading device has a print width ratio that includes an error within an allowable range that can be determined as the definition of the barcode.
  • the printing width ratio defined in the barcode definition means the ratio of the width of each bar or space constituting the barcode when the barcode is printed. If the printed barcode does not conform to this print width ratio, it cannot be read as a barcode according to the standard having the barcode definition.
  • the width of the thick bar is set to 2.3 to 3.0 times the width of the thin bar, and the same applies to the space. Therefore, in order to print a CODE39 standard barcode so that it can be read by a reader, the width ratio of the thin bar and the thick bar (thin space and thick space) is 1: 2.3 to 3.0. It must be printed as
  • the CODE128 standard uses four types of bars with widths of 2 times, 3 times and 4 times based on the thinnest bar. Therefore, the print width ratio in this standard is 1: 2: 3: 4. Similarly, the width between the bars is 1: 2: 3: 4.
  • the “print command” is a command for causing the printing apparatus to print a barcode or the like on a sheet or the like.
  • the print width unit is a unit for defining the size of a character to be printed, the thickness of a line, and the like, and includes, for example, “point (pt)”.
  • Such print instructions can be generated by conventional techniques for printing barcodes on paper.
  • the width of the thinnest bar serving as a reference is “1 point” and the remaining three types of bar widths are “2 points” and “3”, respectively.
  • Print commands are generated as “points” and “4 points”. By printing according to the print command generated in this way, the barcode is printed according to the print width ratio defined by the CODE 128, so that reading is performed by the reader without error.
  • the “display display command generation unit” (0103) is configured so that each bar constituting the barcode from the acquired content information has a display display width ratio stipulated by the barcode definition within a range that can be read and calculated by the reading device. It has a function of generating a display display command using a display display width unit. “Becomes the display display width ratio defined by the barcode definition within the range in which the reading operation of the reading device can be performed” has the same meaning as in the print command.
  • the display display width unit refers to, for example, “pixel” which is a unit for composing an image on a display.
  • the display display command generation unit generates a display display command so that the display definition width ratio defined by the barcode definition is obtained in units of such pixels.
  • the ratio of the widths of the bars is “1: 2: 3: 4”.
  • the PPI Pixel Per Inch
  • one pixel is 0.077 mm.
  • the width of the smallest element width of the thinnest bar
  • the minimum element width in this case is recommended to be 0.191 mm or more. Therefore, the width of the thin bar constituting CODE 39 is 3 pixels, and the width of the thick bar is 2.3 to 3.0 times the width of the thin bar. Therefore, either 7 pixels, 8 pixels, or 9 pixels are used. can do. Then, the barcode display command is generated with the ratio of the width of the thin bar to the width of the thick bar being, for example, “3 pixels: 8 pixels”.
  • FIG. 2 is a conceptual diagram showing an example of a barcode displayed by the generated display display command.
  • the barcode shown in the figure is based on the CODE128 standard.
  • FIG. 2A shows the entire displayed barcode.
  • FIG. 2B is a conceptual diagram showing the ratio of the widths of the bars constituting the barcode for a part of the barcode shown in FIG. Note that the outline of the white bar is given for convenience of explanation.
  • FIG. 2C is a conceptual diagram showing a part of the barcode shown in FIG. 2B in units of display pixels. Note that the drawing of RGB subpixels is merely omitted, and does not indicate that the drawing is a monochrome display.
  • the display width ratio of the black bar and the white bar constituting the CODE128-defined bar code is “1: 2: 3: 4”.
  • the width of the thinnest bar is set to “3 pixels”.
  • the bars constituting the portion surrounded by the broken lines are “slightly black bar”, “slightly white bar”, “slightly thick black bar”, “thinnest white bar”, “most fine bar” from the left. It is a “thin black bar”.
  • black 2: white 2: black 3: white 1: black 1” from the left is represented by the display width ratio specified by the above bar code, as shown in FIG. 2B, “black 2: white 2: black 3: white 1: black 1” from the left.
  • the width of the thinnest bar is “3 pixels”, when it is expressed on the display based on the width ratio of FIG. 2B, as shown in FIG. To “black 6: white 6: black 9: white 3: black 3”.
  • black 6: white 6: black 9: white 3: black 3 black 3
  • the value after the decimal point is generated by converting the width in pixels.
  • the condition for rounding down is “0.3 or less”, and the condition for rounding up is “0.7 or more”. If a value below the decimal point that does not meet any of the conditions occurs, it may be configured not to be read, or to try to generate a display display command by another method described above or described later. .
  • the width of each bar is defined in units of pixels, and the display display command for displaying the barcode is generated based on the definition. There are also orders.
  • the width of one point is 4.545 pixels in the case of 326 PPI, and a conventional command draws a bar with a width of “5 pixels” by rounding up.
  • the coordinates for specifying the start point and the end point to be drawn may be defined by pixels.
  • the barcode can be displayed with a width ratio defined by the barcode definition.
  • FIG. 3 is a conceptual diagram for explaining a display command by the above method.
  • a bar code “black 6: white 6: black 3: white 3: black 3” is displayed.
  • the start points are sequentially superimposed and drawn in the right direction by 3 pixels. Specifically, first, the black bar is shifted and drawn twice, and then the white bar is shifted and drawn twice. Then, the black bar is drawn once, the white bar is drawn once, and the black bar is drawn once. The last drawn white bar is drawn in order to define the width of the black bar drawn before that.
  • a bar code of “black 6: white 6: black 3: white 3: black 3” is displayed as shown in FIG. 3B.
  • a barcode as shown in FIG. 3C is displayed.
  • the display can be performed at a specified width ratio of each bar, and an increase in the processing load of the apparatus that displays the barcode may be suppressed.
  • the amount by which the start point is shifted is 3 pixels.
  • the amount to be shifted may be changed as appropriate according to the PPI of the display to be displayed, the definition of the minimum element width of the barcode to be displayed, and the like.
  • FIG. 4 is a schematic diagram showing an example of the configuration of the barcode command generation device when the above functional components are realized as hardware. The operation of each hardware configuration will be described using this figure.
  • the bar code instruction generation device reads a “CPU” (0401) for executing various arithmetic processes and a program for performing various arithmetic processes for execution by the CPU and provides a work area for the program.
  • a “communication circuit” (0404) for outputting a print command, a display display command, and the like to a device, a display device, and the like via a network is also provided. Then, they are connected to each other via a data communication path such as a system bus (0405) to perform transmission / reception and processing of information.
  • a data communication path such as a system bus (0405) to perform transmission / reception and processing of information.
  • the CPU expands the content information acquisition program stored in the HDD in the work area of the main memory, executes it, and acquires the content information via a communication circuit. Then, the CPU executes the print command generation program, acquires the barcode type from the content information, and reads the barcode width defined by the barcode definition corresponding to the type. And the process which produces
  • the generated print command is stored in the storage area of the main memory or the HDD.
  • the CPU executes the display display command generation program, acquires the barcode type from the content information, and reads the barcode width defined in the barcode definition corresponding to the type. And the process which produces
  • the generated display display command is stored in the storage area of the main memory or the HDD.
  • FIG. 5 is a flowchart showing an example of the flow of processing in the barcode command generation device of this embodiment.
  • the steps shown below may be steps executed by each hardware configuration of the computer as described above, or may be processing steps that constitute a program for controlling the computer recorded on a medium. It does not matter (the same applies to Embodiment 2 and later described later).
  • content information to be indicated by a barcode is acquired (content information acquisition step: S0501). Then, a printing command using a printing width unit of the printing apparatus is generated from the acquired content information so that each bar constituting the barcode has a printing width ratio defined in the barcode definition within a range in which the reading apparatus can perform reading calculation. (Print command generation step: S0502). Then, a display display instruction using the display display width unit of the display device so that each bar constituting the barcode from the acquired content information has a display display width ratio defined by the barcode definition within a range in which the reading device can perform a read operation. (Display display command generation step: S0503). Note that the order of the print command generation step and the display display command generation step may be reversed. ⁇ Effect>
  • the barcode command generation device generates a command for printing a barcode indicating the information from the information to be indicated by the barcode, and displays a barcode with high reading accuracy on the display.
  • An instruction can be generated.
  • the barcode command conversion device displays a barcode by maintaining a bar or space width defined by a predetermined barcode definition from a print command for printing a barcode on a printing device. Convert to display instructions for display.
  • the width specification in the print command for printing the barcode on paper is performed using a unit of “point”, for example.
  • a display command is generated in units of pixels constituting the display.
  • LINE statement as a command statement for drawing a line or the like on the display. This statement is configured by defining the starting point and ending point of drawing and the line width in units of pixels.
  • a print command is applied to this command statement. It is relatively easy to replace the start point and end point coordinates with the coordinates on the display. On the other hand, it is not easy to replace the width because the length of “point”, which is the unit on the paper, is different from the length of “pixel”, which is the unit on the display.
  • the display device including the display raises or lowers the decimal point to an integer. It is displayed again according to the rule by value.
  • the barcode is displayed from the print command so that the bar or space width defined by the predetermined barcode definition is maintained in units of pixels. Convert to display instruction. ⁇ Configuration>
  • FIG. 6 is a diagram showing an example of functional blocks in the barcode command conversion device of the present embodiment.
  • the “barcode command conversion device” (0600) includes a “print command acquisition unit” (0601) and a “print command conversion unit” (0602).
  • the definitions used in the present embodiment are basically the same as the definitions of the same name in the first embodiment.
  • the “print command acquisition unit” has a function of acquiring a print command configured by using the print width unit of the printing apparatus so that the print width ratio specified by the barcode definition is obtained.
  • This “print command” is the same as the print command generated by the print command generation unit in the first embodiment. Therefore, the description of the “print command” is omitted.
  • the print command acquisition unit acquires a “print command” from the barcode command generation device according to the first embodiment.
  • the “print command conversion unit” is a display display width unit of the display device so that each bar constituting the barcode from the acquired print command has a display display width ratio defined by the barcode definition within a range in which the reading device can perform a read operation. It has a function of converting to a display display command using.
  • This “display display command” is the same as the display display command generated by the display display command generation unit in the first embodiment. Therefore, the description of the “display display command” is omitted.
  • the conversion from the print command to the display display command is performed by converting the print width ratio of the acquired print command into the display display width ratio. For example, as described above, when a print command configured with “1: 2: 3: 4” as the print width ratio of each bar and each space constituting the barcode with “point” as a unit is acquired, The print width ratio is converted into a display width ratio in units of “pixels”.
  • the print width ratio of “1: 2: 3: 4” with the point as a unit is converted into the pixel unit as it is. Then, “4.54: 9.09: 13.63: 18.18” is obtained, which does not conform to the specified width ratio.
  • the former or the latter is used, for example, the recommended minimum element width value, the size of the display surface of the display to be displayed, and the terminal equipped with the display to be displayed can change the display direction vertically and horizontally It can be appropriately selected depending on whether or not.
  • a print command is converted into a display display command based on the display width ratio thus converted.
  • the display display command based on the converted display width ratio is the same as the display display command in the first embodiment.
  • each bar code width to be displayed is defined in units of pixels and configured to be displayed on the display, or rounded up based on points.
  • a bar having a width of “5 pixels” may be superimposed and drawn while sequentially shifting the start point.
  • FIG. 7 is a schematic diagram showing an example of the configuration of the barcode command conversion device when the above functional components are realized as hardware. The operation of each hardware configuration will be described using this figure.
  • the bar code instruction conversion device reads out “CPU” (0701) for executing various arithmetic processes and a program for performing various arithmetic processes for execution by the CPU and provides a work area for the program.
  • a storage device such as “HDD” (0703) for holding acquired print commands, width ratios of various barcode definition stipulated information, information indicating the PPI of the display device, converted display display commands, etc., and printing
  • a “communication circuit” (0704) for outputting a display display command converted to a device or a display device via a network is also provided. Then, they are connected to each other via a data communication path such as a system bus (0705) to transmit / receive information and process information.
  • the CPU develops a print command acquisition program held in the HDD in the work area of the main memory, executes it, and acquires a print command via a communication circuit. Then, the CPU executes a print command conversion program and executes processing for converting print information into a display display command. Then, the converted display display command is stored in the storage area of the main memory or the HDD.
  • FIG. 8 is a flowchart showing an example of the flow of processing in the barcode command conversion device of this embodiment.
  • a print command configured using the print width unit of the printing apparatus so as to obtain the print width ratio defined by the barcode definition is acquired (print command acquisition step: S0801).
  • a display display instruction using the display display width unit of the display device so that each bar constituting the barcode from the acquired print command has a display display width ratio defined by the barcode definition within a range in which the reading operation of the reading device can be performed.
  • Print command conversion step: S0802 Print command conversion step: S0802).
  • the barcode command conversion device is a barcode that maintains a bar / space width ratio defined by a predetermined barcode definition from a print command for printing a barcode on a printing device. By converting it into a display display command for displaying, it is possible to display a barcode with high reading accuracy on the display.
  • the barcode command conversion apparatus prints a barcode while maintaining the bar or space width defined by a predetermined barcode definition from a display display command for displaying the barcode on the display. Convert to the print command. That is, the conversion opposite to the conversion in the second embodiment is performed.
  • FIG. 9 is a diagram showing an example of functional blocks in the barcode command conversion device of the present embodiment.
  • the “barcode command conversion device” (0900) includes a “display display command acquisition unit” (0901) and a “display display command conversion unit” (0902). Note that the definitions used in the present embodiment are basically the same as the definitions of the same name in the first or second embodiment.
  • the “display display command acquisition unit” is a display that uses a display display width unit of the display device so that each bar constituting the barcode has a display display width ratio defined by the barcode definition within a range in which the reading operation of the reading device can be performed. It has a function to acquire a display command.
  • This “display display command” is the same as the display display command generated by the display display command generation unit in the first embodiment. Therefore, the description of the “display display command” is omitted.
  • the display display command acquisition unit acquires, for example, a “display display command” from the barcode command generation device according to the first embodiment.
  • the “display display command conversion unit” has a function of converting the acquired display display command into a print command configured using a print width unit of the printing apparatus so as to have a print width ratio defined in the barcode definition.
  • the display display command conversion unit performs conversion processing in the opposite direction to the conversion performed by the print command conversion unit of the second embodiment.
  • the display display command is configured with a display width ratio of “5: 10: 15: 20” in units of pixels. ing. If this display display width ratio is converted into a point unit which is a printing width unit as it is, it becomes “0.88: 1.76: 2.64: 3.52”, and therefore, for example, “1: 2: 3: 4”. To a ratio such as
  • the barcode command conversion device of this embodiment can realize this in accordance with the hardware configuration of the barcode command conversion device of Embodiment 2. Therefore, the description here is omitted. ⁇ Process flow>
  • FIG. 10 is a flowchart showing an example of the flow of processing in the barcode command conversion device of this embodiment.
  • a display display command using the display display width unit of the display device so that each bar constituting the barcode has a display display width ratio defined by the barcode definition within a range where the reading operation of the reading device can be performed. (Display display command acquisition step: S1001). Then, the acquired display display command is converted into a print command configured using the print width unit of the printing apparatus so that the print width ratio specified by the barcode definition is obtained (display display command conversion step: S1002).
  • the barcode command conversion device converts the display display command into a print command for printing a bar code in which the bar or space width specified in the barcode definition is maintained, thereby reading accuracy. High barcode can be printed.
  • the present embodiment is a display command server device that holds the print command described in the first to third embodiments and the like in association with the display display command. ⁇ Configuration>
  • the display command server device uses the printing width unit of the printing device so that each bar constituting the predetermined barcode has a printing width ratio defined by the barcode definition within a range in which the reading device can perform reading calculation.
  • a display instruction using a display display width unit of the display device such that the print command and each bar constituting the predetermined bar code have a display display width ratio defined by the barcode definition within a range in which the reading device can perform a reading operation. And hold them in association.
  • the “print command” held by the display command server device is a print command generated by the barcode command generation device of the first embodiment or a print converted by the display display command conversion unit of the barcode command conversion device of the third embodiment. Such as an instruction.
  • the “barcode display command” held by the display command server device is a barcode display command generated by the barcode command generation device of the first embodiment or a print command conversion unit of the barcode command conversion device of the second embodiment. Is a bar code display command converted by.
  • the display command server device may be configured not only in a single unit, but also in combination with a barcode command generation device, or in combination with a barcode command conversion device.
  • a CPU for executing various arithmetic processes and a program for performing various arithmetic processes are read to cause the CPU to execute and work of the program
  • a main memory that provides an area a storage device such as an HDD that holds an associated print command and display display command, and the like.
  • the display command server device of the present embodiment is convenient in content information management and the like by holding the print command generated based on the content information and the display display command in association with each other.

Abstract

[Problem] Generating an instruction for printing, from information to be signified with a barcode, the barcode which signifies the information, and presenting a barcode in a display with high precision of scanning by a scanner, is desired. [Solution] To solve the problem, provided is a barcode instruction generating device, etc., comprising: a content information acquisition unit which acquires content information to be signified with a barcode; a print instruction generating unit which generates, from the acquired content information, a print instruction using a print width unit of a print device such that bars which configure the barcode satisfy a barcode definition regulation print width ratio in a range which is scanable and computable with a scanning device; and a display presentation instruction generating unit which generates, from the acquired content information, a display presentation instruction using a display presentation width unit of a display device such that bars which configure the barcode satisfy a barcode definition regulation display presentation width ratio in the range which is scanable and computable with the scanning device.

Description

バーコード命令生成装置Barcode instruction generator
 本発明は、端末装置などのディスプレイに読み取り精度の高いバーコード画像を表示するための技術に関する。 The present invention relates to a technique for displaying a barcode image with high reading accuracy on a display such as a terminal device.
 従来、電気や水道、ガスなどの利用料金の支払いに際してバーコードが印刷された払込票等をコンビニエンスストアなどに提示して支払いを行っていた。しかし、近年ではこのような支払いを、携帯電話機などのディスプレイに表示したバーコードを提示して行うことが試みられている。 Conventionally, when paying usage fees for electricity, water, gas, etc., payment was made by presenting a payment slip printed with a barcode to a convenience store. However, in recent years, it has been attempted to make such payment by presenting a barcode displayed on a display such as a mobile phone.
特開2003-115025号公報Japanese Patent Laid-Open No. 2003-115025
 しかしながら、ディスプレイに表示されるバーコードを100パーセントに近い読取率で読取らせることは極めて困難であるというのが現状である。 However, it is very difficult to read a barcode displayed on the display at a reading rate close to 100%.
 そこで、本発明者は、バーコードを印刷するための命令と共通の書式を用いて、ディスプレイにバーコードを表示するための命令を作成するといったこれまでの開発の在り方に問題があるのではないかと考えた。 Therefore, the present inventor does not have a problem in the way of development so far, such as creating an instruction for displaying the barcode on the display using a format common to the instruction for printing the barcode. I thought.
 これを検討してみると、果たしてその通りであった。具体的には、バーコードを紙面に印刷するための印刷命令において、バーの幅を「ポイント(pt)」という単位により規定していたところ、このポイントを用いてディスプレイに表示するための命令を生成していた点に問題があった。 When I examined this, it was true. Specifically, in the print command for printing the barcode on the paper, the width of the bar is defined by the unit of “point (pt)”, and the command for displaying on the display using this point is given. There was a problem in that it was generated.
 このポイントとは、プリンターにより印字するときに文字の大きさなどを確定するための単位であり、1/72インチ(約0.35mm)の長さと規定されている。すなわち、印刷命令においては、バーの幅は「1ポイント」や「2ポイント」といったポイント単位で規定されている。 This point is a unit for determining the size of characters when printing with a printer, and is defined as a length of 1/72 inch (about 0.35 mm). That is, in the print command, the width of the bar is defined in units of points such as “1 point” and “2 points”.
 一方、ディスプレイは「ピクセル(画素)」を構成されており、例えば「326PPI(Pixel Per Inch)」のディスプレイであれば、1ピクセル=0.077mmとなる。このようなディスプレイに対する表示命令にポイントを用いた場合、「1ポイント」の幅は「0.35÷0.077=4.545ピクセル」となる。しかし、小数点以下でピクセルの制御を行うことはできないため、ディスプレイを備える装置は、このような表示命令について、表示すべき幅として「5ピクセル」または「4ピクセル」のように小数点以下を切り上げ又は切り捨てて解釈し実行してしまう。そして、そのように解釈し実行された結果として表示されたバーコードは、元来のバーコードから変容したものとなってしまい、バーコードが示すべき情報を正確に読取ることができなくなってしまうのである。 On the other hand, the display is composed of “pixels”. For example, if the display is “326 PPI (Pixel Per Inch)”, 1 pixel is 0.077 mm. When points are used in the display command for such a display, the width of “1 point” is “0.35 ÷ 0.077 = 4.545 pixels”. However, since it is not possible to perform pixel control below the decimal point, a device including a display rounds up or down the decimal point such as “5 pixels” or “4 pixels” as a width to be displayed for such a display command. Truncate and interpret and execute. Then, the barcode displayed as a result of such interpretation and execution will be transformed from the original barcode, and the information that the barcode should show cannot be read accurately. is there.
 上記課題を解決するために本発明において、以下のバーコード命令生成装置などを提供する。すなわち、第一の発明として、バーコードで示されるべきコンテンツ情報を取得するコンテンツ情報取得部と、取得したコンテンツ情報からバーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定の印刷幅比となるように印刷装置の印刷幅単位を用いた印刷命令を生成する印刷命令生成部と、取得したコンテンツ情報からバーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定のディスプレイ表示幅比となるようにディスプレイ装置のディスプレイ表示幅単位を用いたディスプレイ表示命令を生成するディスプレイ表示命令生成部と、を有するバーコード命令生成装置を提供する。 In order to solve the above-described problems, the present invention provides the following barcode command generation device. That is, as a first invention, a content information acquisition unit that acquires content information to be indicated by a barcode, and a barcode definition within a range in which each bar constituting the barcode from the acquired content information can be read and calculated by the reading device A print command generation unit that generates a print command using the print width unit of the printing device so as to achieve a specified print width ratio, and a range in which each bar constituting the barcode can be read and calculated by the reading device from the acquired content information And a display command generation unit that generates a display display command using a display display width unit of the display device so as to have a display definition width ratio defined by the barcode definition.
 また、第二の発明として、バーコード定義規定の印刷幅比となるように印刷装置の印刷幅単位を用いて構成された印刷命令を取得する印刷命令取得部と、取得した印刷命令からバーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定のディスプレイ表示幅比となるようにディスプレイ装置のディスプレイ表示幅単位を用いたディスプレイ表示命令に変換する印刷命令変換部と、を有するバーコード命令変換装置を提供する。 According to a second aspect of the invention, a print command acquisition unit that acquires a print command configured using a print width unit of a printing apparatus so as to obtain a print width ratio defined in the barcode definition, and a barcode from the acquired print command A print command conversion unit that converts a display display command using a display display width unit of the display device so that each bar constituting the display display width ratio defined by the barcode definition is within a range in which the reading operation of the reading device can be performed; A bar code command conversion device having
 また、第三の発明として、バーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定のディスプレイ表示幅比となるようにディスプレイ装置のディスプレイ表示幅単位を用いたディスプレイ表示命令を取得するディスプレイ表示命令取得部と、取得したディスプレイ表示命令からバーコード定義規定の印刷幅比となるように印刷装置の印刷幅単位を用いて構成された印刷命令に変換するディスプレイ表示命令変換部と、を有するバーコード命令変換装置を提供する。 According to a third aspect of the present invention, a display using the display display width unit of the display device so that each bar constituting the bar code has a display display width ratio stipulated by the bar code definition within a range where the reading operation of the reading device can be performed. Display display command acquisition unit for acquiring commands, and display display command conversion for converting the acquired display display commands into a print command configured using the print width unit of the printing apparatus so as to have a print width ratio specified in the barcode definition And a barcode command conversion device.
 また、第四の発明として、所定のバーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定の印刷幅比となるように印刷装置の印刷幅単位を用いた印刷命令と、前記所定のバーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定のディスプレイ表示幅比となるようにディスプレイ装置のディスプレイ表示幅単位を用いたディスプレイ表示命令と、を関連付けて保持する表示命令サーバ装置を提供する。 According to a fourth aspect of the present invention, there is provided a printing command using a printing width unit of the printing apparatus so that each bar constituting the predetermined barcode has a printing width ratio defined by the barcode definition within a range in which the reading apparatus can perform the reading calculation. And a display display command using a display display width unit of the display device so that each bar constituting the predetermined barcode has a display definition width ratio defined by the barcode definition within a range in which the reading device can perform a reading operation, A display command server device that stores and associates the URLs with each other.
 以上のような構成をとる本発明によって、バーコードで示されるべき情報から、読取精度の高いバーコードをディスプレイに表示させるための命令を生成することが可能となる。 According to the present invention having the above-described configuration, it is possible to generate a command for displaying a barcode with high reading accuracy on the display from information to be indicated by the barcode.
実施形態1のバーコード表示装置の機能的構成の一例を示す概念図1 is a conceptual diagram illustrating an example of a functional configuration of a barcode display device according to a first embodiment. ディスプレイ表示命令によって表示されるバーコードの一例を示す概念図Conceptual diagram showing an example of a barcode displayed by a display display command ディスプレイ表示命令によって表示されるバーコードの他の例を示す概念図Conceptual diagram showing another example of a barcode displayed by a display display command 実施形態1のバーコード命令生成装置のハードウェア構成の一例を表す概念図1 is a conceptual diagram illustrating an example of a hardware configuration of a barcode command generation device according to a first embodiment. 実施形態1のバーコード命令生成装置の処理の流れの一例を示すフロー図FIG. 3 is a flowchart illustrating an example of a process flow of the barcode command generation device according to the first embodiment. 実施形態2のバーコード命令変換装置の機能的構成の一例を示す概念図Conceptual diagram showing an example of a functional configuration of the barcode command conversion device according to the second embodiment. 実施形態2のバーコード命令変換装置のハードウェア構成の一例を表す概念図Conceptual diagram showing an example of a hardware configuration of the barcode command conversion device according to the second embodiment. 実施形態2のバーコード命令変換装置の処理の流れの一例を示すフロー図FIG. 9 is a flowchart showing an example of a processing flow of the barcode command conversion device according to the second embodiment. 実施形態3のバーコード命令変換装置の機能的構成の一例を示す概念図Conceptual diagram illustrating an example of a functional configuration of a barcode command conversion device according to the third embodiment. 実施形態3のバーコード命令変換装置の処理の流れの一例を示すフロー図FIG. 9 is a flowchart illustrating an example of a process flow of the barcode command conversion device according to the third embodiment.
 以下に、図を用いて本発明の実施の形態を説明する。なお、本発明はこれら実施の形態に何ら限定されるものではなく、その要旨を逸脱しない範囲において、種々なる態様で実施しうる。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. Note that the present invention is not limited to these embodiments, and can be implemented in various modes without departing from the spirit of the present invention.
 なお、実施形態1は、主に請求項1について説明する。また、実施形態2は、主に請求項2について説明する。また、実施形態3は、主に請求項3について説明する。また、実施形態4は、主に請求項4について説明する。
<実施形態1>
<概要>
The first embodiment will mainly describe claim 1. In the second embodiment, claim 2 will be mainly described. In the third embodiment, claim 3 will be mainly described. In the fourth embodiment, claim 4 will be mainly described.
<Embodiment 1>
<Overview>
 本実施形態のバーコード命令生成装置は、バーコードで示されるべきコンテンツ情報からバーコードの印刷命令を生成するとともに、ディスプレイにバーコードを表示するためのディスプレイ表示命令を生成する。
<構成>
The barcode command generation device of the present embodiment generates a barcode printing command from content information to be indicated by the barcode, and generates a display display command for displaying the barcode on the display.
<Configuration>
 図1は、本実施形態のバーコード命令生成装置における機能ブロックの一例を示す図である。なお、以下に記載する本装置やシステムの機能ブロックは、ハードウェア及びソフトウェアの組み合わせとして実現され得る。具体的には、コンピュータを利用するものであれば、CPUや主メモリ、バス、あるいは二次記憶装置(ハードディスクや不揮発性メモリ、CDやDVDなどの記憶メディアとそれらメディアの読取ドライブなど)、情報入力に利用される入力デバイス、印刷機器や表示装置、その他の外部周辺装置などのハードウェア構成部、またその外部周辺装置用のインターフェース、通信用インターフェース、それらハードウェアを制御するためのドライバプログラムやその他アプリケーションプログラム、ユーザ・インターフェース用アプリケーションなどが挙げられる。そして主メモリ上に展開したプログラムに従ったCPUの演算処理によって、入力デバイスやその他インターフェースなどから入力され、メモリやハードディスク上に保持されているデータなどが加工、蓄積されたり、上記各ハードウェアやソフトウェアを制御するための命令が生成されたりする。あるいは本システムの機能ブロックは専用ハードウェアによって実現されてもよい。 FIG. 1 is a diagram showing an example of functional blocks in the barcode command generation device of this embodiment. Note that functional blocks of the apparatus and system described below can be realized as a combination of hardware and software. Specifically, if a computer is used, a CPU, a main memory, a bus, or a secondary storage device (a hard disk, a non-volatile memory, a storage medium such as a CD or a DVD, a read drive for the medium, etc.), information Input devices used for input, printing equipment, display devices, other hardware components such as external peripheral devices, interfaces for external peripheral devices, communication interfaces, driver programs for controlling these hardware, Other examples include application programs and user interface applications. Then, by CPU processing according to the program developed on the main memory, the data input from the input device or other interface and held in the memory or hard disk is processed and stored, An instruction for controlling the software is generated. Alternatively, the functional blocks of this system may be realized by dedicated hardware.
 また、本明細書に記載の各実施形態は装置として実現できるのみでなく、方法としても実現可能である。また、このような装置の一部をソフトウェアとして構成することができる。さらに、そのようなソフトウェアをコンピュータに実行させるために用いるソフトウェア製品、及び同製品を固定した記録媒体も、当然に本明細書に記載の各実施例の技術的な範囲に含まれる(本明細書の全体を通じて同様である)。 Each embodiment described in the present specification can be realized not only as an apparatus but also as a method. Moreover, a part of such an apparatus can be configured as software. Furthermore, a software product used to cause a computer to execute such software and a recording medium on which the product is fixed are naturally included in the technical scope of each embodiment described in this specification (this specification The same throughout.)
 そして、この図1にあるように、本実施形態の「バーコード命令生成装置」(0100)は、「コンテンツ情報取得部」(0101)と、「印刷命令生成部」(0102)と、「ディスプレイ表示命令生成部」(0103)と、からなる。 As shown in FIG. 1, the “barcode command generation device” (0100) of this embodiment includes a “content information acquisition unit” (0101), a “print command generation unit” (0102), and a “display”. Display command generation unit "(0103).
 「コンテンツ情報取得部」(0101)は、バーコードで示されるべきコンテンツ情報を取得する機能を有する。 The “content information acquisition unit” (0101) has a function of acquiring content information to be indicated by a barcode.
 「コンテンツ情報」は、例えば、払込票などに含まれる各種情報である「支払者」、「利用料金」、「支払期限日」などや、表品表示に含まれる各種情報である「商品名」、「価格」、「消費期限」、「製造元」、「生産者情報」などである。コンテンツ情報の取得は、インターネット回線や電話回線、近距離無線通信、光学的読取機などを介して行われる。取得したコンテンツ情報は、フラッシュメモリなどの不揮発性記憶装置に保持してもよいし、ROMなどの揮発性記憶装置に一次的に保持するよう構成してもよい。 “Content information” is, for example, “payers”, “usage charges”, “payment due dates” that are various information included in payment slips, etc., and “product name” that is various information included in the product display , “Price”, “expiration date”, “manufacturer”, “producer information”, and the like. Acquisition of content information is performed via an Internet line, a telephone line, near field communication, an optical reader, or the like. The acquired content information may be stored in a non-volatile storage device such as a flash memory, or may be configured to be temporarily stored in a volatile storage device such as a ROM.
 「印刷命令生成部」(0102)は、取得したコンテンツ情報からバーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定の印刷幅比となるように印刷装置の印刷幅単位を用いた印刷命令を生成する機能を有する。 The “print command generating unit” (0102) prints the printing width of the printing apparatus so that each bar constituting the barcode from the acquired content information has a barcode width stipulated in the barcode definition within a range that can be read and calculated by the reading apparatus. It has a function of generating a print command using a unit.
 「バーコード定義」とは、種々存在するバーコード規格によって定められている定義であり、バーコードを構成するキャラクタやモジュール、最小エレメントの寸法など、情報をバーコードとして示し、また、読取可能とするための様々な定義である。バーコード規格は種々存在するが、JANコード、CODE39、CODE128、NW-7、ITF、GS1-128などがある。その中で、CODE39、NW-7、ITFは、バイナリーコードといい、キャラクタ(アルファベット、数字、記号など)を細と太の2種類のバー及びスペースの組み合わせで構成される。また、JANコード、CODE128、GS1-128は、マルチレベルコードといい、2種よりも多い種類の太さのバー及びスペースの組み合わせによりキャラクタを構成する。 "Barcode definition" is a definition defined by various barcode standards. Information such as the characters and modules that make up a barcode and the dimensions of the minimum element are shown as barcodes and can be read. There are various definitions for this. There are various bar code standards, such as JAN code, CODE39, CODE128, NW-7, ITF, and GS1-128. Among them, CODE39, NW-7, and ITF are called binary codes, and characters (alphabet, numbers, symbols, etc.) are composed of a combination of two types of bars and spaces, thin and thick. The JAN code, CODE128, and GS1-128 are called multi-level codes, and form a character by a combination of more than two kinds of thickness bars and spaces.
 「読取装置の読取演算可能な範囲でバーコード定義規定の印刷幅比となる」とは、印刷されたバーコードが、そのバーコードの定義規定の印刷幅比と完全に合致する場合だけでなく、読取装置がそのバーコードの定義規定として判別し得る許容範囲内での誤差を含む印刷幅比となる場合を含む意味である。 “Becomes the printing width ratio specified by the barcode definition within the range that can be read by the reading device” means not only when the printed barcode exactly matches the printing width ratio specified by the barcode definition. This means that the reading device has a print width ratio that includes an error within an allowable range that can be determined as the definition of the barcode.
 「バーコード定義規定の印刷幅比」とは、バーコードを印刷する場合に、そのバーコードを構成する各バーやスペースの幅の比などをいう。印刷されたバーコードが、この印刷幅比に沿わない場合には、そのバーコード定義を有する規格によるバーコードとして読取ができなくなってしまう。 “The printing width ratio defined in the barcode definition” means the ratio of the width of each bar or space constituting the barcode when the barcode is printed. If the printed barcode does not conform to this print width ratio, it cannot be read as a barcode according to the standard having the barcode definition.
 例えば、前述のCODE39は、太いバーの幅は細いバーの幅の2.3~3.0倍と定められており、スペースについても同様である。したがって、読取装置で読取可能となるようにCODE39規格のバーコードを印刷するためには、細バーと太バー(細スペースと太スペース)の幅の比が1:2.3~3.0となるように印刷しなければならない。 For example, in the CODE 39 described above, the width of the thick bar is set to 2.3 to 3.0 times the width of the thin bar, and the same applies to the space. Therefore, in order to print a CODE39 standard barcode so that it can be read by a reader, the width ratio of the thin bar and the thick bar (thin space and thick space) is 1: 2.3 to 3.0. It must be printed as
 また、CODE128規格は、最も細いバーを基準とし、2倍、3倍、4倍の各幅の4種類のバーを用いる。したがって、この規格における印刷幅比は、1:2:3:4となる。また、バーとバーの間のスペースについても同様に、それらの各幅が1:2:3:4となる。 Also, the CODE128 standard uses four types of bars with widths of 2 times, 3 times and 4 times based on the thinnest bar. Therefore, the print width ratio in this standard is 1: 2: 3: 4. Similarly, the width between the bars is 1: 2: 3: 4.
 「印刷命令」は、印刷装置に対してバーコードなどを紙面等に印刷させるための命令である。例えば、汎用の文書作成アプリケーションや描画アプリケーションなどを利用した命令や、印刷装置や印刷物に応じた専用のプログラムなどである。 The “print command” is a command for causing the printing apparatus to print a barcode or the like on a sheet or the like. For example, a command using a general-purpose document creation application or a drawing application, a dedicated program corresponding to a printing apparatus or printed matter, and the like.
 この印刷命令は、印刷装置の印刷幅単位を用いて作成される。印刷幅単位とは、印刷すべき文字の大きさや線の太さなどを規定するための単位であり、例えば、「ポイント(pt)」がある。このような印刷命令は、紙面にバーコードを印刷するための従前の技術により生成することが可能である。 This print command is created using the print width unit of the printing device. The print width unit is a unit for defining the size of a character to be printed, the thickness of a line, and the like, and includes, for example, “point (pt)”. Such print instructions can be generated by conventional techniques for printing barcodes on paper.
 「ポイント(pt)」を印刷幅単位とした場合、上記CODE128であれば基準となる最も細いバーの幅を「1ポイント」とし、残り3種類のバーの幅をそれぞれ「2ポイント」、「3ポイント」、「4ポイント」として印刷命令を生成する。このように生成された印刷命令によって印刷することで、CODE128の規定する印刷幅比によってバーコードが印刷されるため誤りなく読取機によって読取が行われる。 When “point (pt)” is used as a printing width unit, the width of the thinnest bar serving as a reference is “1 point” and the remaining three types of bar widths are “2 points” and “3”, respectively. Print commands are generated as “points” and “4 points”. By printing according to the print command generated in this way, the barcode is printed according to the print width ratio defined by the CODE 128, so that reading is performed by the reader without error.
 「ディスプレイ表示命令生成部」(0103)は、取得したコンテンツ情報からバーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定のディスプレイ表示幅比となるようにディスプレイ装置のディスプレイ表示幅単位を用いたディスプレイ表示命令を生成する機能を有する。「読取装置の読取演算可能な範囲でバーコード定義規定のディスプレイ表示幅比となる」とは、印刷命令における場合と同様の意味である。 The “display display command generation unit” (0103) is configured so that each bar constituting the barcode from the acquired content information has a display display width ratio stipulated by the barcode definition within a range that can be read and calculated by the reading device. It has a function of generating a display display command using a display display width unit. “Becomes the display display width ratio defined by the barcode definition within the range in which the reading operation of the reading device can be performed” has the same meaning as in the print command.
 ディスプレイ表示幅単位とは、例えば、ディスプレイで画像を構成するための単位である「ピクセル」をいう。ディスプレイ表示命令生成部は、このようなピクセルを単位としてバーコード定義規定のディスプレイ表示幅比となるようにディスプレイ表示命令を生成する。 The display display width unit refers to, for example, “pixel” which is a unit for composing an image on a display. The display display command generation unit generates a display display command so that the display definition width ratio defined by the barcode definition is obtained in units of such pixels.
 例えば、CODE128規定のバーコードを表示するための表示命令を生成する場合には、各バーの幅の比が「1:2:3:4」である。ここで、ディスプレイのPPI(Pixel Per Inch)が「326PPI」である場合、1ピクセルは0.077mmとなる。一方、CODE128規定において、最小エレメントの幅(最も細いバーの幅)は0.191mm以上を推奨している。そこで、この規定を満たすために、最小エレメントの幅を「3ピクセル=0.231mm」とし、4種類のバーの幅の比を「3ピクセル:6ピクセル:9ピクセル:12ピクセル」としてバーコード表示命令を生成する。 For example, in the case of generating a display command for displaying a bar code defined by CODE128, the ratio of the widths of the bars is “1: 2: 3: 4”. Here, when the PPI (Pixel Per Inch) of the display is “326 PPI”, one pixel is 0.077 mm. On the other hand, according to the CODE128 standard, it is recommended that the width of the smallest element (width of the thinnest bar) is 0.191 mm or more. Therefore, in order to satisfy this rule, the bar code is displayed with the minimum element width of “3 pixels = 0.231 mm” and the ratio of the widths of the four types of bars as “3 pixels: 6 pixels: 9 pixels: 12 pixels”. Generate instructions.
 また、CODE39を例に挙げると、この場合の最小エレメント幅も0.191mm以上を推奨している。そこで、CODE39を構成する細いバーの幅を3ピクセルとし、太いバーの幅については細いバーの幅の2.3~3.0倍であることから、7ピクセル又は8ピクセル又は9ピクセルのいずれかとすることができる。そして、細いバーの幅と太いバーの幅との比を、例えば、「3ピクセル:8ピクセル」としてバーコード表示命令を生成する。 Also, taking CODE39 as an example, the minimum element width in this case is recommended to be 0.191 mm or more. Therefore, the width of the thin bar constituting CODE 39 is 3 pixels, and the width of the thick bar is 2.3 to 3.0 times the width of the thin bar. Therefore, either 7 pixels, 8 pixels, or 9 pixels are used. can do. Then, the barcode display command is generated with the ratio of the width of the thin bar to the width of the thick bar being, for example, “3 pixels: 8 pixels”.
 なお、バーとバーとの間のスペースは、黒色のバーと対比可能な白色等のバーを描画することによりディスプレイに表示される。したがって、本明細書において、係るスペースのことを「白色バー」の文言を用いて表現する場合もある。 Note that the space between the bars is displayed on the display by drawing a bar such as white that can be compared with the black bar. Therefore, in this specification, such a space may be expressed using the term “white bar”.
 図2は、生成されたディスプレイ表示命令によって表示されるバーコードの一例を示す概念図である。図示するバーコードはCODE128規定に基づくものである。図2(a)は、表示されたバーコードの全体を示すものである。図2(b)は、図2(a)のバーコードの一部について、バーコードを構成する各バーの幅の比を示す概念図である。なお、白色バーの輪郭線は説明の便宜のために付したものである。図2(c)は、図2(b)に示したバーコードの一部をディスプレイのピクセル単位で表わした概念図である。なお、RGBサブピクセルの描画は省略したに過ぎず、本図がモノクロディスプレイであることを示すものではない。 FIG. 2 is a conceptual diagram showing an example of a barcode displayed by the generated display display command. The barcode shown in the figure is based on the CODE128 standard. FIG. 2A shows the entire displayed barcode. FIG. 2B is a conceptual diagram showing the ratio of the widths of the bars constituting the barcode for a part of the barcode shown in FIG. Note that the outline of the white bar is given for convenience of explanation. FIG. 2C is a conceptual diagram showing a part of the barcode shown in FIG. 2B in units of display pixels. Note that the drawing of RGB subpixels is merely omitted, and does not indicate that the drawing is a monochrome display.
 CODE128規定のバーコードを構成する黒色バー及び白色バーのディスプレイ表示幅比は、先に述べたように「1:2:3:4」であり、各幅について「最細:やや細:やや太:最太」と表現することにする。また、最小エレメントの推奨幅の規定を満たすため、最細バーの幅を「3ピクセル」とする。 As described above, the display width ratio of the black bar and the white bar constituting the CODE128-defined bar code is “1: 2: 3: 4”. For each width, “thinnest: slightly thin: slightly thick”. : "The thickest". Further, in order to satisfy the definition of the recommended width of the minimum element, the width of the thinnest bar is set to “3 pixels”.
 図2(a)において、破線で囲んだ部分を構成するバーは、左から「やや細黒色バー」、「やや細白色バー」、「やや太黒色バー」、「最細白色バー」、「最細黒色バー」となっている。これらのバーを上記のバーコード規定のディスプレイ表示幅比で表わすと、図2(b)に示すように、左から「黒2:白2:黒3:白1:黒1」となる。 In FIG. 2 (a), the bars constituting the portion surrounded by the broken lines are “slightly black bar”, “slightly white bar”, “slightly thick black bar”, “thinnest white bar”, “most fine bar” from the left. It is a “thin black bar”. When these bars are represented by the display width ratio specified by the above bar code, as shown in FIG. 2B, “black 2: white 2: black 3: white 1: black 1” from the left.
 前述の通り、最細バーの幅は「3ピクセル」なので、図2(b)の幅比に基づき、ディスプレイ上で表現する場合には、図2(c)に示すように、ピクセル単位で左から「黒6:白6:黒9:白3:黒3」と表示する。このように、ディスプレイのピクセルを単位に用いて、バーコード定義規定を満たす幅の比によりバーコードを構成することにより、誤読取や読取不可といったことをほとんどなくすことができる。 As described above, since the width of the thinnest bar is “3 pixels”, when it is expressed on the display based on the width ratio of FIG. 2B, as shown in FIG. To “black 6: white 6: black 9: white 3: black 3”. In this way, by using the pixels of the display as a unit and constructing the barcode with the ratio of the width satisfying the barcode definition rule, it is possible to eliminate the possibility of erroneous reading or unreadable.
 また、バーコードリーダによっては、読み取ったバーの幅が所定のバーコード規定に適合するか否かの判断において、ある程度の誤差を許容するものもある。そこで、バーコード表示命令の生成において、上記のようにバーコード規定やディスプレイのPPIなどに基づき予め表示するバーの幅を画定するのではなく、ピクセルで幅を換算して生じる小数点以下の値を切り上げるか又は切り下げるかについての制御を行うことによりバーコードを表示する表示命令を生成するように構成してもよい。例えば、四捨五入により小数点以下の値の切り下げ又は切り上げを行うように制御したり、小数点以下の値に応じて切り上げ又は切り下げを行うように所定の条件を設けて制御するように構成してもよい。後者の制御においては、例えば、切り下げを行う場合の条件を「0.3以下」とし、切り上げを行う場合の条件を「0.7以上」とする。そして、いずれの条件にも適合しない小数点以下の値が生じた場合には、読取不可としたり、あるいは、上述した又は後述する他の手法によりディスプレイ表示命令の生成を試みるように構成してもよい。 Some bar code readers allow a certain amount of error in determining whether the width of the read bar conforms to a predetermined bar code rule. Therefore, in the generation of the barcode display command, instead of demarcating the width of the bar to be displayed in advance based on the barcode specification or the PPI of the display as described above, the value after the decimal point is generated by converting the width in pixels. You may comprise so that the display command which displays a barcode may be produced | generated by controlling whether it rounds up or down. For example, it may be configured to control by rounding off or rounding up the value after the decimal point, or by setting a predetermined condition so as to round up or down according to the value after the decimal point. In the latter control, for example, the condition for rounding down is “0.3 or less”, and the condition for rounding up is “0.7 or more”. If a value below the decimal point that does not meet any of the conditions occurs, it may be configured not to be read, or to try to generate a display display command by another method described above or described later. .
 図2を用いて説明したように各バーの幅をピクセル単位で規定してから、それらの規定に基づいてバーコードを表示するディスプレイ表示命令を生成する場合だけでなく、他の態様のディスプレイ表示命令もある。 As described with reference to FIG. 2, the width of each bar is defined in units of pixels, and the display display command for displaying the barcode is generated based on the definition. There are also orders.
 例えば、「ポイント」によって幅が規定されたバー用いて、描画する位置を適宜移動させながら重畳してバーを描くことによりバーコードを表示する表示命令を生成することもできる。 For example, it is possible to generate a display command for displaying a barcode by using a bar whose width is defined by “point” and drawing the bar by superimposing the drawing position while appropriately moving the drawing position.
 既に述べたように、1ポイントの幅は326PPIの場合4.545ピクセルとなり、従来の命令においては切り上げなどにより「5ピクセル」の幅でバーを描画してしまう。ただし、このような命令においても、描画する始点及び終点を特定するための座標はピクセルにより規定することができる場合がある。そこで、5ピクセルの幅のバーを用いて、そのバーを描画する位置を適宜横方向へずらしながら重ねて描画することで、バーコード定義規定の幅比にてバーコードを表示させることができる。 As already described, the width of one point is 4.545 pixels in the case of 326 PPI, and a conventional command draws a bar with a width of “5 pixels” by rounding up. However, even in such a command, the coordinates for specifying the start point and the end point to be drawn may be defined by pixels. Thus, by using a bar having a width of 5 pixels and drawing it while overlapping the drawing position of the bar in the horizontal direction as appropriate, the barcode can be displayed with a width ratio defined by the barcode definition.
 図3は上記の方法による表示命令を説明するための概念図である。ここでは、「黒6:白6:黒3:白3:黒3」のバーコードを表示する場合を示している。図3(a)に示すように、5ピクセル幅の黒色バーと白色バーを用いて、それらの始点を順次3ピクセル右方向にずらしながら重畳して描画する。具体的には、まず、黒色バーずらして2回描画し、続いて白色バーをずらして2回描画する。そして、黒色バーを1回、白色バーを1回、黒色バーを1回描画する。最後に描画した白色バーは、その前に描画した黒色バーの幅を画定するために描画するものである。このように順次3ピクセルずつ始点をずらして描画すると、図3(b)で示すように、「黒6:白6:黒3:白3:黒3」のバーコードが表示されることになる。実際の表示においては、白色バーの輪郭線は存在しないため、図3(c)のようなバーコードが表示される。このように描画することにより、ポイントやミリメートルなどのように印刷命令に基づいてバーの幅が規定されている場合においても、それらの幅をピクセルに変換するなどの処理を経ずにバーコードが規定する各バーの幅比にて表示させることができ、バーコードを表示する装置の処理負担の増加を抑制し得る場合がある。 FIG. 3 is a conceptual diagram for explaining a display command by the above method. In this example, a bar code “black 6: white 6: black 3: white 3: black 3” is displayed. As shown in FIG. 3A, using a black bar and a white bar having a width of 5 pixels, the start points are sequentially superimposed and drawn in the right direction by 3 pixels. Specifically, first, the black bar is shifted and drawn twice, and then the white bar is shifted and drawn twice. Then, the black bar is drawn once, the white bar is drawn once, and the black bar is drawn once. The last drawn white bar is drawn in order to define the width of the black bar drawn before that. When the drawing is performed by shifting the starting point by 3 pixels in this way, a bar code of “black 6: white 6: black 3: white 3: black 3” is displayed as shown in FIG. 3B. . In actual display, since the outline of the white bar does not exist, a barcode as shown in FIG. 3C is displayed. By drawing in this way, even if the bar width is defined based on the print command, such as points or millimeters, the barcode can be converted without converting the width into pixels. The display can be performed at a specified width ratio of each bar, and an increase in the processing load of the apparatus that displays the barcode may be suppressed.
 この例においては、バーコード規定の最小エレメント幅を満たすための最小ピクセルが3ピクセルである場合を用いたため、始点をずらす分量を3ピクセルとした。しかし、表示させるディスプレイのPPIや、表示するバーコードの最小エレメント幅の規定などに応じて、ずらす分量は適宜変更すればよい。
<ハードウェア>
In this example, since the case where the minimum pixel for satisfying the minimum element width defined by the barcode is 3 pixels is used, the amount by which the start point is shifted is 3 pixels. However, the amount to be shifted may be changed as appropriate according to the PPI of the display to be displayed, the definition of the minimum element width of the barcode to be displayed, and the like.
<Hardware>
 図4は、上記機能的な各構成要件をハードウェアとして実現した際の、バーコード命令生成装置における構成の一例を表す概略図である。この図を利用してそれぞれのハードウェア構成の働きについて説明する。 FIG. 4 is a schematic diagram showing an example of the configuration of the barcode command generation device when the above functional components are realized as hardware. The operation of each hardware configuration will be described using this figure.
 図示するように、バーコード命令生成装置は、各種演算処理を実行するための「CPU」(0401)と、各種演算処理を行なうプログラムをCPUに実行させるために読み出すとともにそのプログラムのワーク領域を提供する「主メモリ」(0402)とを備えている。これらの構成により、コンテンツ情報取得部、印刷命令生成部、ディスプレイ表示命令生成部を具現する。また、取得したコンテンツ情報や各種のバーコード定義規定やディスプレイ装置のPPIを示した情報や生成した印刷命令やディスプレイ表示命令などを保持するための「HDD」(0403)などの記憶装置や、印刷装置やディスプレイ装置などへ印刷命令やディスプレイ表示命令などをネットワークを介して出力するための「通信回路」(0404)なども備えている。そして、それらがシステムバス(0405)などのデータ通信経路によって相互に接続され、情報の送受信や処理を行う。 As shown in the figure, the bar code instruction generation device reads a “CPU” (0401) for executing various arithmetic processes and a program for performing various arithmetic processes for execution by the CPU and provides a work area for the program. A “main memory” (0402). With these configurations, a content information acquisition unit, a print command generation unit, and a display display command generation unit are implemented. Also, a storage device such as “HDD” (0403) for holding the acquired content information, various bar code definition rules, information indicating the PPI of the display device, a generated print command, a display display command, etc. A “communication circuit” (0404) for outputting a print command, a display display command, and the like to a device, a display device, and the like via a network is also provided. Then, they are connected to each other via a data communication path such as a system bus (0405) to perform transmission / reception and processing of information.
 まず、CPUは、HDDに保持されているコンテンツ情報取得プログラムを主メモリのワーク領域に展開し、これを実行し通信回路を介すなどしてコンテンツ情報を取得する。そして、CPUは、印刷命令生成プログラムを実行し、コンテンツ情報からバーコードの種別を取得し、当該種別に対応するバーコード定義規定の印刷幅比を読み出す。そして、ポイントなどの印刷幅単位を用いた印刷命令を生成する処理を実行する。そして、生成した印刷命令を主メモリの記憶領域またはHDDに格納する。 First, the CPU expands the content information acquisition program stored in the HDD in the work area of the main memory, executes it, and acquires the content information via a communication circuit. Then, the CPU executes the print command generation program, acquires the barcode type from the content information, and reads the barcode width defined by the barcode definition corresponding to the type. And the process which produces | generates the printing command using printing width units, such as a point, is performed. The generated print command is stored in the storage area of the main memory or the HDD.
 また、CPUは、ディスプレイ表示命令生成プログラムを実行し、コンテンツ情報からバーコードの種別を取得し、当該種別に対応するバーコード定義規定の印刷幅比を読み出す。そして、ディスプレイ表示幅単位であるピクセルを用いてディスプレイ表示命令を生成する処理を実行する。そして、生成したディスプレイ表示命令を主メモリの記憶領域またはHDDに格納する。 Also, the CPU executes the display display command generation program, acquires the barcode type from the content information, and reads the barcode width defined in the barcode definition corresponding to the type. And the process which produces | generates a display display command using the pixel which is a display display width unit is performed. The generated display display command is stored in the storage area of the main memory or the HDD.
 なお、CPUは、通信回路を介して印刷命令又はディスプレイ表示命令の出力の要求を受信した場合、格納されている印刷命令又はディスプレイ表示命令を出力するための出力プログラムを実行し、印刷命令又はディスプレイ表示命令を通信回路を介して出力する処理を実行する。
<処理の流れ>
When the CPU receives a print command or display display command output request via the communication circuit, the CPU executes an output program for outputting the stored print command or display display command. A process of outputting the display command via the communication circuit is executed.
<Process flow>
 図5は、本実施形態のバーコード命令生成装置における処理の流れの一例を表すフローチャートである。なお、以下に示すステップは、上記のような計算機の各ハードウェア構成によって実行されるステップであっても良いし、媒体に記録され計算機を制御するためのプログラムを構成する処理ステップであっても構わない(後述する実施形態2以下についても同様である)。 FIG. 5 is a flowchart showing an example of the flow of processing in the barcode command generation device of this embodiment. The steps shown below may be steps executed by each hardware configuration of the computer as described above, or may be processing steps that constitute a program for controlling the computer recorded on a medium. It does not matter (the same applies to Embodiment 2 and later described later).
 図示するように、まず、バーコードで示されるべきコンテンツ情報を取得する(コンテンツ情報取得ステップ:S0501)。そして、取得したコンテンツ情報からバーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定の印刷幅比となるように印刷装置の印刷幅単位を用いた印刷命令を生成する(印刷命令生成ステップ:S0502)。そして、取得したコンテンツ情報からバーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定のディスプレイ表示幅比となるようにディスプレイ装置のディスプレイ表示幅単位を用いたディスプレイ表示命令を生成する(ディスプレイ表示命令生成ステップ:S0503)。なお、印刷命令生成ステップとディスプレイ表示命令生成ステップの順序は前後してもよい。
<効果>
As shown in the drawing, first, content information to be indicated by a barcode is acquired (content information acquisition step: S0501). Then, a printing command using a printing width unit of the printing apparatus is generated from the acquired content information so that each bar constituting the barcode has a printing width ratio defined in the barcode definition within a range in which the reading apparatus can perform reading calculation. (Print command generation step: S0502). Then, a display display instruction using the display display width unit of the display device so that each bar constituting the barcode from the acquired content information has a display display width ratio defined by the barcode definition within a range in which the reading device can perform a read operation. (Display display command generation step: S0503). Note that the order of the print command generation step and the display display command generation step may be reversed.
<Effect>
 本実施形態のバーコード命令生成装置により、バーコードで示されるべき情報から、係る情報を示すバーコードを印刷するための命令を生成するとともに、読取精度の高いバーコードをディスプレイに表示させるための命令を生成することが可能となる。
<実施形態2>
<概要>
The barcode command generation device according to the present embodiment generates a command for printing a barcode indicating the information from the information to be indicated by the barcode, and displays a barcode with high reading accuracy on the display. An instruction can be generated.
<Embodiment 2>
<Overview>
 本実施形態のバーコード命令変換装置は、バーコードを印刷装置にて印刷するための印刷命令から、所定のバーコード定義により規定されるバーやスペースの幅等が維持されてバーコードを表示するためのディスプレイ表示命令に変換する。 The barcode command conversion device according to the present embodiment displays a barcode by maintaining a bar or space width defined by a predetermined barcode definition from a print command for printing a barcode on a printing device. Convert to display instructions for display.
 バーコード利用の現状は、紙面上に印刷されて利用されることがほとんどである。このような状況下、バーコードで示されるべきコンテンツ情報から印刷命令とディスプレイ表示命令の双方を生成するのではなく、主として印刷命令を生成し、必要に応じて生成した印刷命令からバーコードをディスプレイに表示するための命令に変換し得るようにする必要性もあると考えられる。ここで、印刷命令からディスプレイに表示するための命令に変換するにあたり、以下の点に注意が必要となる。 The current status of bar code use is mostly printed on paper. Under such circumstances, instead of generating both a print command and a display display command from the content information to be indicated by the bar code, a print command is mainly generated, and the bar code is displayed from the generated print command as necessary. It is also considered necessary to be able to convert it into a command for display on the screen. Here, when converting from a print command to a command for display on a display, attention must be paid to the following points.
 バーコードを紙に印刷するための印刷命令における幅の規定は、例えば「ポイント」という単位を用いて行われる。このポイントとは、プリンターにより印字するときに文字の大きさなどを確定するための単位であり、1/72インチの長さと規定されている。すなわち、印刷命令においては、バーの幅は「1ポイント」や「2ポイント」といったポイント単位で規定されている。そして、例えば、CODE128規定における各バーの幅比は「1:2:3:4」なので、これに従い「1ポイント:2ポイント:3ポイント:4ポイント」としてバーコードを印刷させる。なお、1ポイント=0.35mmであるので、最小エレメント幅の規定を満たしている。 The width specification in the print command for printing the barcode on paper is performed using a unit of “point”, for example. This point is a unit for determining the character size and the like when printing by the printer, and is defined as a length of 1/72 inch. That is, in the print command, the width of the bar is defined in units of points such as “1 point” and “2 points”. For example, since the bar width ratio in the CODE128 standard is “1: 2: 3: 4”, the barcode is printed as “1 point: 2 points: 3 points: 4 points” accordingly. Since 1 point = 0.35 mm, the minimum element width is satisfied.
 このような印刷命令からバーコードを表示するための命令を生成するためには、座標と幅をディスプレイ上で規定するための情報に改める必要がある。そこで、ディスプレイを構成するピクセルを単位として表示命令を生成する。例えば、ディスプレイ上に線などを描画するための命令文として「LINE文」がある。この命令文は、描画する始点と終点及び線の幅をピクセル単位で規定して構成される。この命令文に印刷命令を当てはめる。始点及び終点の座標をディスプレイ上の座標に置き換えることは比較的容易である。一方、幅を置き換えることは、紙面における単位である「ポイント」とディスプレイにおける単位である「ピクセル」の長さが異なるため、容易ではない。 In order to generate a command for displaying a barcode from such a print command, it is necessary to change the coordinates and width to information for defining on the display. Therefore, a display command is generated in units of pixels constituting the display. For example, there is a “LINE statement” as a command statement for drawing a line or the like on the display. This statement is configured by defining the starting point and ending point of drawing and the line width in units of pixels. A print command is applied to this command statement. It is relatively easy to replace the start point and end point coordinates with the coordinates on the display. On the other hand, it is not easy to replace the width because the length of “point”, which is the unit on the paper, is different from the length of “pixel”, which is the unit on the display.
 すなわち、「1ポイント」と規定されているバーコードの幅は、1/72インチであり約0.35mmである。この1ポイントをピクセルに置き換えるとすれば、例えば、「326PPI(Pixel Per Inch)」のディスプレイの場合、1ピクセル=0.077mmであることから1ポイント=4.54ピクセルとなる。同様に、2ポイント=9.09ピクセル、3ポイント=13.63ピクセル、4ポイント=18.18ピクセルとなる。このような小数点以下の値を含む命令を生成した場合、ディスプレイにおいて小数点以下のピクセルの表示は不可能であるため、ディスプレイを備える表示装置は、小数点以下を繰り上げたり、あるいは繰り下げたりして整数の値による規定に改めて表示させてしまう。 That is, the width of the bar code defined as “1 point” is 1/72 inch and about 0.35 mm. If this 1 point is replaced with a pixel, for example, in the case of a display of “326 PPI (Pixel Per Inch)”, since 1 pixel = 0.077 mm, 1 point = 4.54 pixels. Similarly, 2 points = 9.09 pixels, 3 points = 13.63 pixels, and 4 points = 18.18 pixels. When such an instruction including a value after the decimal point is generated, it is impossible to display the pixel after the decimal point on the display. Therefore, the display device including the display raises or lowers the decimal point to an integer. It is displayed again according to the rule by value.
 しかし、上記のポイントとピクセルの関係を繰り下げて改めると「4:9:13:18」となり、CODE128が規定する「1:2:3:4」とはならない。また、繰り上げて改めると「5:10:14:19」となり、これも「1:2:3:4」とはならない。いずれの場合においても、バーやスペースの幅の比が規定に沿わないため、このような表示命令によって表示されたバーコードは読取が行われずエラーとなってしまう。 However, if the relationship between the above points and pixels is lowered and revised, it becomes “4: 9: 13: 18”, and does not become “1: 2: 3: 4” defined by CODE128. Moreover, when it is advanced and revised, it becomes “5: 10: 14: 19”, and this does not become “1: 2: 3: 4”. In either case, the bar / space width ratio does not comply with the regulations, and the bar code displayed by such a display command is not read and an error occurs.
 そこで、本実施形態のバーコード命令生成装置においては、ピクセルを単位として所定のバーコード定義により規定されるバーやスペースの幅等が維持されるように、印刷命令からバーコードを表示するためのディスプレイ表示命令に変換する。
<構成>
Therefore, in the barcode command generation device of the present embodiment, the barcode is displayed from the print command so that the bar or space width defined by the predetermined barcode definition is maintained in units of pixels. Convert to display instruction.
<Configuration>
 図6は、本実施形態のバーコード命令変換装置における機能ブロックの一例を示す図である。図示するように、「バーコード命令変換装置」(0600)は、「印刷命令取得部」(0601)と、「印刷命令変換部」(0602)と、を有する。なお、本実施形態において用いる定義等は、実施形態1における同名の定義等と基本的に同様である。 FIG. 6 is a diagram showing an example of functional blocks in the barcode command conversion device of the present embodiment. As illustrated, the “barcode command conversion device” (0600) includes a “print command acquisition unit” (0601) and a “print command conversion unit” (0602). The definitions used in the present embodiment are basically the same as the definitions of the same name in the first embodiment.
 「印刷命令取得部」は、バーコード定義規定の印刷幅比となるように印刷装置の印刷幅単位を用いて構成された印刷命令を取得する機能を有する。この「印刷命令」は、実施形態1における印刷命令生成部によって生成される印刷命令と同様である。したがって、「印刷命令」についての説明は省略する。印刷命令取得部は、例えば、実施形態1のバーコード命令生成装置から「印刷命令」を取得する。 The “print command acquisition unit” has a function of acquiring a print command configured by using the print width unit of the printing apparatus so that the print width ratio specified by the barcode definition is obtained. This “print command” is the same as the print command generated by the print command generation unit in the first embodiment. Therefore, the description of the “print command” is omitted. For example, the print command acquisition unit acquires a “print command” from the barcode command generation device according to the first embodiment.
 「印刷命令変換部」は、取得した印刷命令からバーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定のディスプレイ表示幅比となるようにディスプレイ装置のディスプレイ表示幅単位を用いたディスプレイ表示命令に変換する機能を有する。この「ディスプレイ表示命令」は、実施形態1におけるディスプレイ表示命令生成部によって生成されるディスプレイ表示命令と同様である。したがって、「ディスプレイ表示命令」についての説明は省略する。 The “print command conversion unit” is a display display width unit of the display device so that each bar constituting the barcode from the acquired print command has a display display width ratio defined by the barcode definition within a range in which the reading device can perform a read operation. It has a function of converting to a display display command using. This “display display command” is the same as the display display command generated by the display display command generation unit in the first embodiment. Therefore, the description of the “display display command” is omitted.
 印刷命令からディスプレイ表示命令への変換は、取得した印刷命令の印刷幅比をディスプレイ表示幅比に変換することにより行う。例えば、上述したように、「ポイント」を単位としバーコードを構成する各バー及び各スペースの印刷幅比を「1:2:3:4」として構成された印刷命令を取得した場合には、その印刷幅比を「ピクセル」を単位とするディスプレイ幅比に変換する。 The conversion from the print command to the display display command is performed by converting the print width ratio of the acquired print command into the display display width ratio. For example, as described above, when a print command configured with “1: 2: 3: 4” as the print width ratio of each bar and each space constituting the barcode with “point” as a unit is acquired, The print width ratio is converted into a display width ratio in units of “pixels”.
 例えば、「326PPI」のディスプレイにCODE128規定のバーコード表示させるためのディスプレイ表示幅比に変換する場合、ポイントを単位とする「1:2:3:4」の印刷幅比をそのままピクセル単位に換算すると「4.54:9.09:13.63:18.18」となり規定された幅の比に適合しなくなってしまうので、例えば、「4:8:12:16」や「5:10:15:20」といった比に変換する。前者とするか後者とするかは、例えば、規定されている最小エレメント幅の推奨値や、表示させるディスプレイの表示面のサイズや、表示させるディスプレイを備える端末がディスプレイの表示方向を縦横に変更自在であるか否かなどによって適宜選択し得る。このように変換した表示幅比に基づいて印刷命令をディスプレイ表示命令に変換する。 For example, when converting to the display display width ratio for displaying CODE 128 standard barcode on the “326PPI” display, the print width ratio of “1: 2: 3: 4” with the point as a unit is converted into the pixel unit as it is. Then, “4.54: 9.09: 13.63: 18.18” is obtained, which does not conform to the specified width ratio. For example, “4: 8: 12: 16” or “5:10: 15:20 ". Whether the former or the latter is used, for example, the recommended minimum element width value, the size of the display surface of the display to be displayed, and the terminal equipped with the display to be displayed can change the display direction vertically and horizontally It can be appropriately selected depending on whether or not. A print command is converted into a display display command based on the display width ratio thus converted.
 変換した表示幅比に基づくディスプレイ表示命令は、実施形態1におけるディスプレイ表示命令と同様である。例えば、「4:8:12:16」といった幅比に基づき、表示するバーコードの各幅をピクセルを単位として規定して、ディスプレイに表示するように構成したり、ポイントに基づいて切り上げられた「5ピクセル」の幅のバーを始点を順次ずらしながら重畳して描画するように構成してもよい。
<ハードウェア>
The display display command based on the converted display width ratio is the same as the display display command in the first embodiment. For example, based on the width ratio such as “4: 8: 12: 16”, each bar code width to be displayed is defined in units of pixels and configured to be displayed on the display, or rounded up based on points. A bar having a width of “5 pixels” may be superimposed and drawn while sequentially shifting the start point.
<Hardware>
 図7は、上記機能的な各構成要件をハードウェアとして実現した際の、バーコード命令変換装置における構成の一例を表す概略図である。この図を利用してそれぞれのハードウェア構成の働きについて説明する。 FIG. 7 is a schematic diagram showing an example of the configuration of the barcode command conversion device when the above functional components are realized as hardware. The operation of each hardware configuration will be described using this figure.
 図示するように、バーコード命令変換装置は、各種演算処理を実行するための「CPU」(0701)と、各種演算処理を行なうプログラムをCPUに実行させるために読み出すとともにそのプログラムのワーク領域を提供する「主メモリ」(0702)とを備えている。これらの構成により、印刷命令取得部、印刷命令変換部を具現する。また、取得した印刷命令や各種のバーコード定義規定の幅比やディスプレイ装置のPPIを示す情報御や変換したディスプレイ表示命令などを保持するための「HDD」(0703)などの記憶装置や、印刷装置やディスプレイ装置などへ変換したディスプレイ表示命令などをネットワークを介して出力するための「通信回路」(0704)なども備えている。そして、それらがシステムバス(0705)などのデータ通信経路によって相互に接続され、情報の送受信や処理を行う。 As shown in the figure, the bar code instruction conversion device reads out “CPU” (0701) for executing various arithmetic processes and a program for performing various arithmetic processes for execution by the CPU and provides a work area for the program. A “main memory” (0702). With these configurations, a print command acquisition unit and a print command conversion unit are implemented. In addition, a storage device such as “HDD” (0703) for holding acquired print commands, width ratios of various barcode definition stipulated information, information indicating the PPI of the display device, converted display display commands, etc., and printing A “communication circuit” (0704) for outputting a display display command converted to a device or a display device via a network is also provided. Then, they are connected to each other via a data communication path such as a system bus (0705) to transmit / receive information and process information.
 まず、CPUは、HDDに保持されている印刷命令取得プログラムを主メモリのワーク領域に展開し、これを実行し通信回路を介すなどして印刷命令を取得する。そして、CPUは、印刷命令変換プログラムを実行し、印刷情報をディスプレイ表示命令に変換する処理を実行する。そして、変換したディスプレイ表示命令を主メモリの記憶領域またはHDDに格納する。
<処理の流れ>
First, the CPU develops a print command acquisition program held in the HDD in the work area of the main memory, executes it, and acquires a print command via a communication circuit. Then, the CPU executes a print command conversion program and executes processing for converting print information into a display display command. Then, the converted display display command is stored in the storage area of the main memory or the HDD.
<Process flow>
 図8は、本実施形態のバーコード命令変換装置における処理の流れの一例を表すフローチャートである。図示するように、まず、バーコード定義規定の印刷幅比となるように印刷装置の印刷幅単位を用いて構成された印刷命令を取得する(印刷命令取得ステップ:S0801)。そして、取得した印刷命令からバーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定のディスプレイ表示幅比となるようにディスプレイ装置のディスプレイ表示幅単位を用いたディスプレイ表示命令に変換する(印刷命令変換ステップ:S0802)。
<効果>
FIG. 8 is a flowchart showing an example of the flow of processing in the barcode command conversion device of this embodiment. As shown in the figure, first, a print command configured using the print width unit of the printing apparatus so as to obtain the print width ratio defined by the barcode definition is acquired (print command acquisition step: S0801). Then, a display display instruction using the display display width unit of the display device so that each bar constituting the barcode from the acquired print command has a display display width ratio defined by the barcode definition within a range in which the reading operation of the reading device can be performed. (Print command conversion step: S0802).
<Effect>
 以上のように本実施形態のバーコード命令変換装置は、バーコードを印刷装置で印刷するための印刷命令から、所定のバーコード定義により規定されるバーやスペースの幅比が維持されたバーコードを表示するためのディスプレイ表示命令に変換することにより、読み取り精度の高いバーコードをディスプレイに表示させることが可能となる。
<実施形態3>
<概要>
As described above, the barcode command conversion device according to the present embodiment is a barcode that maintains a bar / space width ratio defined by a predetermined barcode definition from a print command for printing a barcode on a printing device. By converting it into a display display command for displaying, it is possible to display a barcode with high reading accuracy on the display.
<Embodiment 3>
<Overview>
 本実施形態のバーコード命令変換装置は、バーコードをディスプレイに表示するためのディスプレイ表示命令から、所定のバーコード定義により規定されるバーやスペースの幅等が維持してバーコードを印刷するための印刷命令に変換する。すなわち、実施形態2における変換と逆の変換を行うものである。
<構成>
The barcode command conversion apparatus according to the present embodiment prints a barcode while maintaining the bar or space width defined by a predetermined barcode definition from a display display command for displaying the barcode on the display. Convert to the print command. That is, the conversion opposite to the conversion in the second embodiment is performed.
<Configuration>
 図9は、本実施形態のバーコード命令変換装置における機能ブロックの一例を示す図である。図示するように、「バーコード命令変換装置」(0900)は、「ディスプレイ表示命令取得部」(0901)と、「ディスプレイ表示命令変換部」(0902)と、を有する。なお、本実施形態において用いられる定義等は、実施形態1又は2における同名の定義等と基本的に同様である。 FIG. 9 is a diagram showing an example of functional blocks in the barcode command conversion device of the present embodiment. As illustrated, the “barcode command conversion device” (0900) includes a “display display command acquisition unit” (0901) and a “display display command conversion unit” (0902). Note that the definitions used in the present embodiment are basically the same as the definitions of the same name in the first or second embodiment.
 「ディスプレイ表示命令取得部」は、バーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定のディスプレイ表示幅比となるようにディスプレイ装置のディスプレイ表示幅単位を用いたディスプレイ表示命令を取得する機能を有する。この「ディスプレイ表示命令」は、実施形態1におけるディスプレイ表示命令生成部によって生成されるディスプレイ表示命令と同様である。したがって、「ディスプレイ表示命令」についての説明は省略する。ディスプレイ表示命令取得部は、例えば、実施形態1のバーコード命令生成装置から「ディスプレイ表示命令」を取得する。 The “display display command acquisition unit” is a display that uses a display display width unit of the display device so that each bar constituting the barcode has a display display width ratio defined by the barcode definition within a range in which the reading operation of the reading device can be performed. It has a function to acquire a display command. This “display display command” is the same as the display display command generated by the display display command generation unit in the first embodiment. Therefore, the description of the “display display command” is omitted. The display display command acquisition unit acquires, for example, a “display display command” from the barcode command generation device according to the first embodiment.
 「ディスプレイ表示命令変換部」は、取得したディスプレイ表示命令からバーコード定義規定の印刷幅比となるように印刷装置の印刷幅単位を用いて構成された印刷命令に変換する機能を有する。このディスプレイ表示命令変換部は、実施形態2の印刷命令変換部にて行われる変換と逆向きの変換処理を行う。 The “display display command conversion unit” has a function of converting the acquired display display command into a print command configured using a print width unit of the printing apparatus so as to have a print width ratio defined in the barcode definition. The display display command conversion unit performs conversion processing in the opposite direction to the conversion performed by the print command conversion unit of the second embodiment.
 例えば、CODE128規定のバーコードを326PPIのディスプレイに表示させるためのディスプレイ表示命令を取得した場合、このディスプレイ表示命令はピクセルを単位とする「5:10:15:20」のディスプレイ幅比により構成されている。このディスプレイ表示幅比をそのまま印刷幅単位であるポイント単位に換算すると「0.88:1.76:2.64:3.52」となってしまうので、例えば、「1:2:3:4」といった比に変換する。 For example, when a display display command for displaying a CODE 128 standard barcode on a 326 PPI display is acquired, the display display command is configured with a display width ratio of “5: 10: 15: 20” in units of pixels. ing. If this display display width ratio is converted into a point unit which is a printing width unit as it is, it becomes “0.88: 1.76: 2.64: 3.52”, and therefore, for example, “1: 2: 3: 4”. To a ratio such as
 本実施形態のバーコード命令変換装置は、実施形態2のバーコード命令変換装置におけるハードウェア構成に準じてこれを実現することができる。したがって、ここでの説明は省略する。
<処理の流れ>
The barcode command conversion device of this embodiment can realize this in accordance with the hardware configuration of the barcode command conversion device of Embodiment 2. Therefore, the description here is omitted.
<Process flow>
 図10は、本実施形態のバーコード命令変換装置における処理の流れの一例を表すフローチャートである。図示するように、まず、バーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定のディスプレイ表示幅比となるようにディスプレイ装置のディスプレイ表示幅単位を用いたディスプレイ表示命令を取得する(ディスプレイ表示命令取得ステップ:S1001)。そして、取得したディスプレイ表示命令からバーコード定義規定の印刷幅比となるように印刷装置の印刷幅単位を用いて構成された印刷命令に変換する(ディスプレイ表示命令変換ステップ:S1002)。
<効果>
FIG. 10 is a flowchart showing an example of the flow of processing in the barcode command conversion device of this embodiment. As shown in the figure, first, a display display command using the display display width unit of the display device so that each bar constituting the barcode has a display display width ratio defined by the barcode definition within a range where the reading operation of the reading device can be performed. (Display display command acquisition step: S1001). Then, the acquired display display command is converted into a print command configured using the print width unit of the printing apparatus so that the print width ratio specified by the barcode definition is obtained (display display command conversion step: S1002).
<Effect>
 本実施形態のバーコード命令変換装置により、ディスプレイ表示命令から、バーコード定義に規定されるバーやスペースの幅等が維持されたバーコードを印刷するための印刷命令に変換することにより、読取精度の高いバーコードを印刷することができる。
<実施形態4>
<概要>
The barcode command conversion device according to the present embodiment converts the display display command into a print command for printing a bar code in which the bar or space width specified in the barcode definition is maintained, thereby reading accuracy. High barcode can be printed.
<Embodiment 4>
<Overview>
 本実施形態は、実施形態1から3などにおいて記述した印刷命令とディスプレイ表示命令とを関連付けて保持する表示命令サーバ装置である。
<構成>
The present embodiment is a display command server device that holds the print command described in the first to third embodiments and the like in association with the display display command.
<Configuration>
 本実施形態の表示命令サーバ装置は、所定のバーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定の印刷幅比となるように印刷装置の印刷幅単位を用いた印刷命令と、前記所定のバーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定のディスプレイ表示幅比となるようにディスプレイ装置のディスプレイ表示幅単位を用いたディスプレイ表示命令と、を関連付けて保持する。 The display command server device according to the present embodiment uses the printing width unit of the printing device so that each bar constituting the predetermined barcode has a printing width ratio defined by the barcode definition within a range in which the reading device can perform reading calculation. A display instruction using a display display width unit of the display device such that the print command and each bar constituting the predetermined bar code have a display display width ratio defined by the barcode definition within a range in which the reading device can perform a reading operation. And hold them in association.
 表示命令サーバ装置が保持する「印刷命令」は、実施形態1のバーコード命令生成装置において生成された印刷命令や、実施形態3のバーコード命令変換装置のディスプレイ表示命令変換部により変換された印刷命令などである。また、表示命令サーバ装置が保持する「バーコード表示命令」は、実施形態1のバーコード命令生成装置において生成されたバーコード表示命令や、実施形態2のバーコード命令変換装置の印刷命令変換部により変換されたバーコード表示命令などである。 The “print command” held by the display command server device is a print command generated by the barcode command generation device of the first embodiment or a print converted by the display display command conversion unit of the barcode command conversion device of the third embodiment. Such as an instruction. The “barcode display command” held by the display command server device is a barcode display command generated by the barcode command generation device of the first embodiment or a print command conversion unit of the barcode command conversion device of the second embodiment. Is a bar code display command converted by.
 例えば、一のコンテンツ情報から生成された印刷命令とディスプレイ表示命令とを関連付けて保持することで、いずれかの命令を選択的に出力することなどが可能となる。なお、表示命令サーバ装置は単体で構成する場合だけでなく、バーコード命令生成装置と組み合わせて構成したり、あるいは、バーコード命令変換装置と組み合わせて構成するなどしてよい。 For example, it is possible to selectively output any one of the commands by associating and holding a print command generated from one content information and a display display command. Note that the display command server device may be configured not only in a single unit, but also in combination with a barcode command generation device, or in combination with a barcode command conversion device.
 本実施形態の表示命令サーバ装置を実現するためのハードウェア構成としては、例えば各種演算処理を実行するためのCPUと、各種演算処理を行なうプログラムをCPUに実行させるために読み出すとともにそのプログラムのワーク領域を提供する主メモリと、関連付けられた印刷命令とディスプレイ表示命令とを保持するHDDなどの記憶装置などによって構成される。
<効果>
As a hardware configuration for realizing the display instruction server device according to the present embodiment, for example, a CPU for executing various arithmetic processes and a program for performing various arithmetic processes are read to cause the CPU to execute and work of the program A main memory that provides an area, a storage device such as an HDD that holds an associated print command and display display command, and the like.
<Effect>
 本実施形態の表示命令サーバ装置により、コンテンツ情報に基づいて生成された印刷命令とディスプレイ表示命令とが関連付けられて保持されることでコンテンツ情報管理などにおいて便宜である。 The display command server device of the present embodiment is convenient in content information management and the like by holding the print command generated based on the content information and the display display command in association with each other.
 0100 バーコード命令生成装置
 0101 コンテンツ情報取得部
 0102 印刷命令生成部
 0103 ディスプレイ命令生成部
0100 Barcode command generation device 0101 Content information acquisition unit 0102 Print command generation unit 0103 Display command generation unit

Claims (4)

  1.  バーコードで示されるべきコンテンツ情報を取得するコンテンツ情報取得部と、
     取得したコンテンツ情報からバーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定の印刷幅比となるように印刷装置の印刷幅単位を用いた印刷命令を生成する印刷命令生成部と、
     取得したコンテンツ情報からバーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定のディスプレイ表示幅比となるようにディスプレイ装置のディスプレイ表示幅単位を用いたディスプレイ表示命令を生成するディスプレイ表示命令生成部と、
     を有するバーコード命令生成装置。
    A content information acquisition unit for acquiring content information to be indicated by a barcode;
    A print command that generates a print command using a print width unit of the printing device so that each bar constituting the barcode has a print width ratio defined by the barcode definition within a range in which the reading device can perform a read operation from the acquired content information A generator,
    Generates display display commands using the display display width unit of the display device so that each bar constituting the barcode has the display display width ratio specified by the barcode definition within the range that can be read and calculated by the reading device from the acquired content information A display display command generation unit to perform,
    A barcode command generation device.
  2.  バーコード定義規定の印刷幅比となるように印刷装置の印刷幅単位を用いて構成された印刷命令を取得する印刷命令取得部と、
     取得した印刷命令から
     バーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定のディスプレイ表示幅比となるようにディスプレイ装置のディスプレイ表示幅単位を用いたディスプレイ表示命令に変換する印刷命令変換部と、
     を有するバーコード命令変換装置。
    A print command acquisition unit that acquires a print command configured using a print width unit of the printing apparatus so as to have a print width ratio defined in the barcode definition;
    Converts the acquired print command into a display display command using the display display width unit of the display device so that each bar composing the barcode has a display display width ratio specified by the barcode definition within the range that can be read and operated by the reader. A print command conversion unit,
    A bar code command conversion device.
  3.  バーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定のディスプレイ表示幅比となるようにディスプレイ装置のディスプレイ表示幅単位を用いたディスプレイ表示命令を取得するディスプレイ表示命令取得部と、
     取得したディスプレイ表示命令から
      バーコード定義規定の印刷幅比となるように印刷装置の印刷幅単位を用いて構成された印刷命令に変換するディスプレイ表示命令変換部と、
     を有するバーコード命令変換装置。
    Display display command acquisition that obtains a display display command using the display display width unit of the display device so that each bar constituting the bar code has a display display width ratio defined by the barcode definition within the range that can be read and operated by the reading device. And
    A display display command conversion unit for converting the acquired display display command into a print command configured using the print width unit of the printing apparatus so as to have a print width ratio defined in the barcode definition;
    A bar code command conversion device.
  4.  所定のバーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定の印刷幅比となるように印刷装置の印刷幅単位を用いた印刷命令と、
     前記所定のバーコードを構成する各バーが読取装置の読取演算可能な範囲でバーコード定義規定のディスプレイ表示幅比となるようにディスプレイ装置のディスプレイ表示幅単位を用いたディスプレイ表示命令と、
     を関連付けて保持する表示命令サーバ装置。
    A printing command using a printing width unit of the printing device so that each bar constituting the predetermined barcode has a printing width ratio defined in the barcode definition within a range in which the reading device can perform reading calculation;
    A display display command using a display display width unit of the display device such that each bar constituting the predetermined barcode has a display definition width ratio defined by the barcode definition within a range in which the reading operation of the reading device can be performed;
    Display instruction server device that holds and associates a message.
PCT/JP2015/050612 2014-01-16 2015-01-13 Barcode instruction generating device WO2015108022A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2014006270A JP5784764B2 (en) 2014-01-16 2014-01-16 Barcode instruction generator
JP2014-006270 2014-01-16

Publications (1)

Publication Number Publication Date
WO2015108022A1 true WO2015108022A1 (en) 2015-07-23

Family

ID=53542911

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2015/050612 WO2015108022A1 (en) 2014-01-16 2015-01-13 Barcode instruction generating device

Country Status (2)

Country Link
JP (1) JP5784764B2 (en)
WO (1) WO2015108022A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6197960B2 (en) * 2014-09-18 2017-09-20 日本電気株式会社 Information processing apparatus, method, and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002028655A1 (en) * 2000-10-05 2002-04-11 Ainix Corporation Identification code creating method in network and identification code creating program
US20050283448A1 (en) * 2004-06-22 2005-12-22 Dixon Kyle M Method and system for providing a barcode image over a network
JP2012148535A (en) * 2011-01-21 2012-08-09 Seiko Epson Corp Recording method and recording apparatus
JP2012152957A (en) * 2011-01-24 2012-08-16 Seiko Epson Corp Recording method and recording apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002028655A1 (en) * 2000-10-05 2002-04-11 Ainix Corporation Identification code creating method in network and identification code creating program
US20050283448A1 (en) * 2004-06-22 2005-12-22 Dixon Kyle M Method and system for providing a barcode image over a network
JP2012148535A (en) * 2011-01-21 2012-08-09 Seiko Epson Corp Recording method and recording apparatus
JP2012152957A (en) * 2011-01-24 2012-08-16 Seiko Epson Corp Recording method and recording apparatus

Also Published As

Publication number Publication date
JP2015135578A (en) 2015-07-27
JP5784764B2 (en) 2015-09-24

Similar Documents

Publication Publication Date Title
US8610929B2 (en) Image processing apparatus, control method therefor, and program
EP2264995B1 (en) Image processing apparatus, image processing method, and computer program
JP6334467B2 (en) Barcode instruction generator
JP6465425B2 (en) Barcode instruction generator
JP5712489B2 (en) Image processing apparatus, image processing system, and program
JP5784764B2 (en) Barcode instruction generator
KR20130048429A (en) Method for embedding qr code in an image forming apparatus
US20100147960A1 (en) Methods, devices, and systems for printing bar codes
US8587837B2 (en) Image processing apparatus embedding additional information in document data
JP2010278822A (en) Image forming apparatus and method
JP2007164482A (en) Printer, print method, print program and storage medium
JP4591372B2 (en) Image forming apparatus and image forming method
US20140203072A1 (en) Method and system for tracking modifications in a document
JP2010039542A (en) Operation information management system
JP6613871B2 (en) Information processing apparatus, image reading apparatus, and program
JP5989065B2 (en) Image forming system, printer driver, image forming apparatus, and rendering program
JP6672666B2 (en) Information processing apparatus and program
CN113448522B (en) Variable data printing output method and device, terminal equipment and readable storage medium
US10902182B2 (en) Changing the height of a facsimile source area in accordance with a registered language
JP2011008506A (en) Apparatus and program for processing document, and document flow system
JP2017069826A (en) Image forming apparatus and program
JP6613872B2 (en) Information processing apparatus, image reading apparatus, code image generating apparatus, and program
JP2009101662A (en) Printing processor
JP6455676B2 (en) Electronic device and font image output program
US9729756B2 (en) Image forming system that restrains increase of print data amount, image forming apparatus, and recording medium

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: 15737104

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: 15737104

Country of ref document: EP

Kind code of ref document: A1