This application is based upon and claims the benefit of priority from the prior Japanese Patent Application No. 2010-148055, filed on Jun. 29, 2010; the entire contents of which are incorporated herein by reference.
Embodiments described herein relate generally to a code reading apparatus and a code reading method.
In the past, in order to reduce disposal losses of perishable foods, a retail store such as a supermarket often sells commodities at cut prices when the closing time approaches. In selling the commodities at cut prices, the store affixes price-cut or discount labels indicating price-cut amounts or discount rates to the commodities in order to clearly indicate to customers that the commodities are price-cut or discounted commodities.
When a price-cut or discount label is affixed to a commodity that a customer purchases, an operator of a POS (Point OF Sales) terminal reads a barcode of the commodity with a scanner. The operator inputs information concerning, a price-cut or a discount from a keyboard, a touch panel, or the like. Therefore, if the operator does not notice a price-cut or discount label, in some case, the operator sells a commodity, to which the price-cut or discount label is affixed, at a normal price.
Therefore, JP-A-2008-33640 discloses a technique for automating price-cut or discount in a POS terminal by simultaneously imaging a barcode and a price-cut or discount label with a camera and outputting a commodity code and price-cut or discount information read from imaged images to the POS terminal.
If commodities remain unsold regardless of the fact that the closing time approaches, in some case, the retail store affixes, on price-cut or discount labels already affixed to commodities, price-cut or discount labels indicating price-cut amounts or discount rates higher than price-cut amounts or discount rates indicated by the price-cut or discount labels. In that case, since a store clerk manually affixes a new price-cut or discount label on a price-cut or discount label already affixed to a commodity, in some case, the new price-cut or discount label cannot be affixed to hide the price-cut or discount label already affixed to the commodity. If the new price-cut or discount label is not affixed to hide the price-cut or discount label already affixed to the commodity, in the technique disclosed in JP-A-2008-33640, plural price-cut or discount labels are simultaneously photographed by the camera. Therefore, it cannot be discriminated which price-cut or discount label is a regular price-cut or discount label, price-cut or discount cannot be automated, and the operator has to manually input information concerning a price-cut or a discount from the keyboard or the like.
In general, according to one embodiment, a code reading apparatus includes: a photographing section configured to photograph an image; a capturing section configured to capture the photographed image; a reading section configured to detect, out of the captured image, a code symbol that represents commodity information indicating a purchase target commodity and benefit indication that represents benefit information indicating a benefit for the purchase of the commodity and read, from the detected code symbol and benefit indication, the commodity information represented by the detected code symbol and the benefit information represented by the detected benefit indication; a determining section configured to determine, if plural kinds of the benefit information are read, from benefits indicated by the plural kinds of the benefit information, a benefit granted for the purchase of the commodity indicated by the read commodity information; and an output section configured to output the read commodity information and benefit information representing the determined benefit.
In general, according to another embodiment, a code reading method includes: capturing a photographed image; detecting, out of the captured image, a code symbol that represents commodity information indicating a purchase target commodity and benefit indication that represents benefit information indicating a benefit for the purchase of the commodity and reading, from the detected code symbol and benefit indication, the commodity information represented by the detected code symbol and the benefit information represented by the detected benefit indication; determining, if plural kinds of the benefit information are read, from benefits indicated by the plural kinds of the benefit information, a benefit granted for the purchase of the commodity indicated by the read commodity information; and outputting the read commodity information and benefit information representing the determined benefit.
The POS (Point Of Sales) terminal 3 performs sales registration for commodities to be purchased by a customer. As shown in
The code reading apparatus 2 reads a barcode representing commodity information such as a commodity code affixed to a purchase target commodity and indicating the commodity. The code reading apparatus 2 outputs the commodity information represented by the read barcode to the POS terminal 3. As shown in
The CPU 50 is a control section configured to control the entire operation of the code reading apparatus 2. The ROM 42 has stored therein a computer program according to this embodiment and other computer programs and the like for controlling the operation of the CPU 50. The RAM 43 is a work area used when the CUP 50 expands the various computer programs stored by the ROM 42. The RAM 43 stores various data such as image data imaged by the camera 20.
The communication I/F 44 controls data communication with the POS terminal 3 (see
The camera 20 is a photographing section configured to image a code symbol such as a barcode or a two-dimensional code and benefit indication such as a price-cut or discount label that represents benefit information indicating a benefit such as a price-cut or a discount granted for purchase of a commodity.
A relation between a commodity processed by the code reading apparatus 2 according to this embodiment and an imaging area of the camera 20 is explained.
The store that sells the commodity 300 affixes the barcode label 302, on which a barcode 303 is displayed, to the commodity 300. As commodity information necessary for registering sales data of the commodity 300 in the POS terminal 3, the store that sells the commodity 300 incorporates information such as a commodity code in the barcode 303. The store that sells the commodity 300 displays, in a lower part of the barcode 303, a number representing a commodity code “201234567890” incorporated in the barcode 303. Further, the store that sells the commodity 300 affixes, to the commodity 300, the price-cut labels 304 to 307 that represent benefit information “20 yen off from a list price” indicating a price-cut amount from a commodity price of the commodity 300.
Price-cut labels affixed to the commodity 300 are not limited to the price-cut labels 304 to 307. The store that sells the commodity 300 may affix, to the commodity 300, a benefit indication label that represents benefit information indicating a benefit granted for the purchase of the commodity 300.
The nonvolatile memory 45 has stored therein a label characteristic table T that associates characteristics of benefit indication labels and benefit information represented by the benefit indication labels.
More specifically, the label characteristic data means information extracted from the benefit indication labels through character recognition by an OCR (Optical Character Reader) or the like. For example, the code reading apparatus 2 according to this embodiment extracts, through character recognition, information “US$, 0.2, off” as indicated by label characteristic data of No. 1 in the label characteristic table T shown in
The benefit information is information indicating a benefit such as price-cut information or point grant information indicating content of a benefit granted for purchase of a commodity. In this embodiment, benefit information indicated by an alphanumerical value is used such that the benefit information can be used in sales registration by the POS terminal 3. As shown in
Characteristic functions of the code reading apparatus 2 according to this embodiment are explained below. The CPU 50 operates according to a computer program stored by the ROM 42 and expanded in the RAM 43 to function as a capturing section 51, a reading section 52, a determining section 53, an output section 54, and an informing section 55 as shown in
The capturing section 51 outputs an imaging ON signal to the camera controller 49 in order to cause the camera controller 49 to start the imaging operation of the camera 20. The capturing section 51 captures image data included in the imaging area 301 imaged by the camera 20. Further, the capturing section 51 stores the captured image data in an image work area of the RAM 43.
The reading section 52 detects an image 701 of the barcode 303 from the image data 700 stored in the image work area of the RAM 43 by the capturing section 51. The reading section 52 reads commodity information represented by the barcode 303 from the detected image 701 of the barcode 303.
More specifically, the reading section 52 binarizes the image data 700 of one frame stored in the image work area of the RAM 43. The reading section 52 detects whether a data area concerning a barcode is present in the binarized data. If the reading section 52 detects a data area concerning the barcode 303 in the captured image data 700, the reading section 52 decodes the barcode 303 and reads, as commodity information of the commodity 300, barcode data (a JAN code) C1 of J1 to J13 shown in
The reading section 52 detects images 702 to 705 of the price-cut labels 304 to 307 (benefit indication labels) from the image data 700 stored in the image work area of the RAM 43 by the capturing section 51. The reading section 52 reads benefit information represented by the price-cut labels 304 to 307 from the detected images 702 to 705 of the price-cut labels 304 to 307. If the plural price-cut labels 304 to 307 are affixed to the commodity 300 as shown in
More specifically, the reading section 52 applies character recognition by an OCR (Optical Character Reader) or the like to the image data 700 of one frame stored in the image work area of the RAM 43. The reading section 52 collates characteristics of characters, pictures, symbols, or the like included in a benefit indication label and the label characteristic data (see
If plural kinds of benefit information are read by the reading section 52, the determining section 53 determines, using benefits indicated by the plural kinds of benefit information, benefits to be granted for the purchase of the commodity 300 indicated by the commodity information read by the reading section 52.
In this embodiment, if plural kinds of benefit information indicating price-cuts from the commodity price of the commodity 300 are read, the determining section 53 determines, from the price-cuts indicated by the read plural kinds of benefit information, a price-cut having a largest price-cut amount as a benefit granted for the purchase of the commodity 300. For example, if “−US$0.2”, “−US$0.3”, “−US$0.5”, and “−US$1” are read as benefit information from the images 702 to 705 of the price-cut labels 304 to 307 shown in
If the benefit code C2 generated by the reading section 52 is stored in the RAM 43, the output section 54 generates a composite code C3 obtained by combining the benefit code C2 with the barcode data C1 stored in the RAM 43 by the reading section 52. The output section 54 outputs the generated composite code C3 to the POS terminal 3. If the benefit code C2 generated anew by the determining section 53 is stored in the RAM 43, the output section 54 generates the composite code C3 obtained by combining the benefit code C2 generated anew by the determining section 53 with the barcode data C1 stored in the RAM 43 by the reading section 52. The output section 54 outputs the generated composite code C3 to the POS terminal 3.
As an example, if the price-cut label 304 for US$0.2 off, the price-cut label 305 for US$0.3 off, the price-cut label 306 for US$0.5 off, and the price-cut label 307 for US$1 off are affixed to the commodity 300 as shown in
If the reading section 52 reads the barcode 303, the informing section 55 outputs a barcode ON signal in order to turn on the display LED 24 to inform the operator that the barcode 303 is detected. If the output section 54 outputs the composite code C3 or the barcode data C1 to the POS terminal 3, the informing section 55 outputs a barcode OFF signal in order to turn off the display LED 24 to inform the operator that the barcode 303 is not detected.
If the output section 54 outputs the barcode data C1 to the POS terminal 3, the informing section 55 drives the buzzer 25 to give off first buzzer sound (e.g., “beep”) indicating that only the barcode label 302 is read and benefit indication labels are not read.
If the output section 54 outputs the composite data C3 to the POS terminal 3, the informing section 55 drives the buzzer 25 to give off second buzzer sound (e.g., “beep, beep”) indicating that both the barcode label 302 and benefit indication labels (the price-cut labels 304 to 307) are read.
Information output processing for a commodity performed by the code reading apparatus 2 is explained below with reference to
If the start of a job is instructed by a command from the POS terminal 3, the CPU 50 of the code reading apparatus 2 starts information output processing. The capturing section 51 outputs an imaging ON signal to the camera controller 49 in order to start an imaging operation by the camera 20 (Act 1101). The capturing section 51 captures the image data 700 imaged by the camera 20 into the image work area of the RAM 43 (Act 1102). The reading section 52 starts detection of the image 701 of the barcode 303 (Act 1103).
The reading section 52 determines whether the image 701 of the barcode 303 is detected in Act 1103 (Act 1104). If the image 701 of the barcode 303 is not detected (No in Act 1104), the reading section 52 continues the imaging by the camera 20 (Act 1102).
If the image 701 of the barcode 303 is detected (Yes in Act 1104), the informing section 55 outputs a barcode ON signal in order to turn on the display LED 24 to inform the operator that the image 701 of the barcode 303 is detected (Act 1105).
Subsequently, the reading section 52 starts detection of the images 702 to 705 of the price-cut labels 304 to 307 from the image data 700 captured into the image work area of the RAM 43 in Act 1102 (Act 1106). The reading section 52 determines whether the images 702 to 705 of the price-cut labels 304 to 307 are detected in Act 1106 (Act 1107).
If the images 702 to 705 of the price-cut labels 304 to 307 are detected (Yes in Act 1107), the determining section 53 determines whether plural kinds of benefit information are read by the reading section 52 (Act 1108). If plural kinds of benefit information are read (Yes in Act 1108), the determining section 53 determines, using benefits indicated by the plural kinds of benefit information, benefits granted for the purchase of the commodity 300 (Act 1109).
If only one kind of benefit information is read by the label reading processing of the reading section 52 (No in Act 1108) or if a benefit granted for the purchase of the commodity 300 is determined, the output section 54 generates the composite code C3 (see
Thereafter, the CPU 50 determines whether the end of the job is instructed by a command from the POS terminal 3 (Act 1117). If the end of the job is not instructed (No in Act 1117), the CPU 50 returns to Act 1102 and repeats Acts 1102 to 1117 until sales registration for all commodities is completed. If the end of the job is instructed (Yes in Act 1117), the CPU 50 outputs an imaging OFF signal to the camera controller 49 in order to end the imaging operation by the camera 20 (Act 1118).
On the other hand, if the images 702 to 705 of the price-cut labels 304 to 307 are not detected (No in Act 1107), the output section 54 transmits and outputs the barcode data C1 stored in the barcode work area of the RAM 43 to the POS terminal 3 via the communication I/F 44 (Act 1114). The informing section 55 drives the buzzer 25 to give off the first buzzer sound (Act 1115). The informing section 55 outputs a barcode OFF signal in order to turn off the display LED to inform the operator that the image 701 of the barcode 303 is not read (Act 1116). Thereafter, the CPU 50 shifts to Act 1117.
As explained above, with the code reading apparatus 2 according to this embodiment, if plural benefit indication labels are affixed to the commodity 300 and plural kinds of benefit information represented by the plural benefit indication labels are read, a benefit granted for the purchase of the commodity 300 is determined using benefits indicated by the plural kinds of benefit information. Consequently, even if the plural benefit indication labels are affixed to the commodity 300, price-cut or discount can be automated. Therefore, it is possible to reduce a work load on the operator due to price-cut or discount.
Another embodiment is an example in which, if plural benefit indication labels that represent benefit information indicating price-cut amounts or discount rates for a commodity are affixed to the commodity and plural kinds of benefit information represented by the plural kinds of benefit indication labels are read, a total of price-cut amounts or discount rates indicated by the plural kinds of benefit information is determined as a benefit granted for purchase of the commodity. In the following explanation, explanation of similarities to the code reading apparatus 2 explained above is omitted and only differences from the code reading apparatus 2 explained above are explained.
In this embodiment, if plural kinds of benefit information indicating price-cuts from a commodity price of the commodity 300 are read by the reading section 52, the determining section 53 determines, as a benefit granted for purchase of the commodity 300, a total of the price-cuts indicated by the read plural kinds of benefit information. For example, if “−US$0.2”, “−US$0.3”, “−US$0.5”, and “−US$1” are read as benefit information from the images 702 to 705 of the price-cut labels 304 to 307 shown in
As explained above, with the code reading apparatus 2 according to this embodiment, if plural kinds of benefit information indicating price-cuts or discounts from the commodity price of the commodity 300 are read by the reading section 52, a total of the price-cuts or discounts indicated by the read plural kinds of benefit information is determined as a benefit granted for the purchase of the commodity 300. Consequently, even if plural benefit indication labels are affixed to the commodity 300, it is possible to automatically perform price-cut or discount processing. Therefore, it is possible to reduce a work load on an operator due to the price-cut or discount processing.
Still another embodiment is an example in which, if plural benefit indication labels that represent benefit information indicating prices of a price-cut or discounted commodity are affixed to the commodity and plural kinds of benefit information represented by the plural benefit indication labels are read, a lowest price of the commodity among prices of the commodity indicated by the plural kinds of benefit information is determined as a benefit granted for purchase of the commodity. In the following explanation, explanation of similarities to the code reading apparatus 2 explained above is omitted and only differences from the code reading apparatus 2 explained above are explained.
The reading section 52 detects images 1301 to 1304 of the commodity price labels 1201 to 1204 from the image data 700 stored in the image work area of the RAM 43 by the capturing section 51. The reading section 52 reads benefit information represented by the detected images 1301 to 1304 of the commodity price labels 1201 to 1204. If plural commodity price labels 1201 to 1204 are affixed to the commodity 300 as shown in
If plural kinds of benefit information indicating just prices of the commodity 300 are read, the determining section 53 determines, as a benefit granted for purchase of the commodity, a lowest just price among the just prices indicated by the read plural kinds of benefit information. For example, if “US$5.8”, “US$5.7”, “US$5.5”, and “US$4” are read as benefit information from the images 1301 to 1304 of the commodity price labels 1201 to 1204 shown in
As explained above, with the code reading apparatus 2 according to this embodiment, if the plural commodity price labels 1201 to 1204 that represent benefit information indicating just pries are affixed to the commodity 300 and plural kinds of benefit information represented by the plural commodity price labels 1201 to 1204 are read, a lowest just price among just prices indicated by the plural kinds of benefit information is determined as a benefit granted for the purchase of the commodity 300. Consequently, even if the plural commodity price labels 1201 to 1204 are affixed to the commodity 300, it is possible to automatically perform price-cut or discount processing. Therefore, it is possible to reduce a work load on an operator due to the price-cut or discount processing.
Still another embodiment is an example in which, if plural benefit indication labels are affixed to a commodity and plural kinds of benefit information represented by the plural benefit indication labels are read, among the plural kinds of benefit information, a benefit indicated by benefit information read from a benefit indication label having a high-priority shape is determined as a benefit granted for purchase of the commodity. In the following explanation, explanation of similarities to the code reading apparatus 2 explained above is omitted and only differences from the code reading apparatus 2 explained above are explained.
The reading section 52 detects images 1501 to 1504 of the price-cut labels 1401 to 1404 from the image data 700 stored in the image work area of the RAM 43 by the capturing section 51. The reading section 52 reads benefit information represented by the detected images 1501 to 1504 of the discount labels 1401 to 1404 and the shapes of the respective price-cut labels 1401 to 1404. If plural price-cut labels 1401 to 1404 are affixed to the commodity 300 as shown in
If plural kinds of benefit information indicating price-cuts from the commodity 300 are read, the determining section 53 determines, from the price-cuts indicated by the read plural kinds of benefit information, as a benefit granted for purchase of the commodity 300, a price-cut indicated by benefit information read from an image of a price-cut label having a highest priority shape set in advance. For example, if “−US$0.2”, “−US$0.3”, “−US$0.5”, and “−US$1” are read as benefit information from the images 1501 to 1504 of the price-cut labels 1401 to 1404 shown in
As explained above, with the code reading apparatus 2 according to this embodiment, if the plural price-cut labels 1401 to 1404 are affixed to the commodity 300 and plural kinds of benefit information represented by the plural price-cut labels 1401 to 1404 are read, a benefit indicated by benefit information read from a price-cut label having a highest priority shape among the plural kinds of benefit information is determined as a benefit granted for the purchase of the commodity 300. Consequently, even if the plural price-cut labels 1401 to 1404 are affixed to the commodity 300, price-cut or discount can be automated. Therefore, it is possible to reduce a work load on an operator due to price-cut or discount processing.
A computer program executed by the code reading apparatus according to the embodiments is provided while being incorporated in the ROM 42 or the like in advance. However, the computer program executed by the code reading apparatus 2 according to the embodiments may be provided while being recorded in a computer-readable recording medium such as a CR-ROM, a flexible disk (FD), a CD-R, or a DVD (Digital Versatile Disk) as a file of an installable format or an executable format.
Further, the computer program executed by the code reading apparatus 2 according to the embodiments may be stored on a computer connected to a network such as the Internet and provided by being downloaded through the network. The computer program executed by the code reading apparatus 2 according to the embodiments may be provided or distributed through the network such as the Internet.
Further effects and modifications can be easily derived by those skilled in the art. Therefore, wider aspects of the present invention are not limited to the specific details and the representative embodiments shown and described herein.
Therefore, various changes are possible without departing from the spirit or the scope of the general concept of the invention defined by the appended claims and equivalents of the claims.
Number | Date | Country | Kind |
---|---|---|---|
2010-148055 | Jun 2010 | JP | national |