This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2018-153699, filed in Aug. 17, 2018, the entire contents of which are incorporated herein by reference.
Embodiments described herein relate generally to a code symbol reading device and a method therefor.
In the related art, commodity sale data processing devices such as point of sale (POS) terminals are used at retail stores such as supermarkets or convenience stores. Code symbol reading devices for reading code symbols are connected to the commodity sale data processing devices. A code symbol reading device includes an imaging unit and reads data such as a price or identification information for identifying a commodity by imaging a code symbol such as a barcode or a 2-dimensional code attached to the commodity. Then, a commodity sale data processing device performs sale data processing such as a payoff process based on data read by the code symbol reading device.
In recent years, code symbols displayed on display screens of portable terminals or the like are read in some cases. For example, in services in which electronic data including code symbols indicating coupon tickets is delivered to portable terminals carried by customers, code symbols displayed on display screens of the portable terminals are read by code symbol reading devices. In this case, commodity sale data processing devices perform price reduction or discount or the like based on data read by the code symbol reading devices.
Incidentally, brightness (luminance) of display screens of portable terminals can be changed manually or automatically. There are many kinds of display screens and characteristics related to display are different. Therefore, there is a concern that code symbols displayed on the display screens cannot be read in uniform imaging conditions. Accordingly, in the related art, technologies for being able to switch exposure time, gains, or the like of image sensors are proposed as reading devices for reading 2-dimensional codes displayed on liquid crystal panels.
However, since the foregoing technologies of the related art are specialized for reading code symbols displayed on display screens, the versatility is low. Therefore, there is a possibility that gains and the like are switched even when code symbols attached to commodities are read, and thus there is a possibility that the code symbols cannot be efficiently read.
Embodiments provide a code symbol reading device and a method capable of efficiently reading code symbols.
In general, according to one embodiment, a code symbol reading device includes: imaging means for imaging a code symbol; acquisition means for acquiring image data captured by the imaging means; decoding means for decoding data encoded in the code symbol based on the image data; first control means for operating the imaging means under one imaging condition set for imaging a code symbol attached to a commodity; and second control means for operating the imaging means while switching among a plurality of the mutually different imaging conditions. The second control means switches between the imaging conditions under the condition that the decoding in the decoding means fails.
Hereinafter, a code symbol reading device and a method therefor according to embodiments will be described. In the following embodiments, application examples of POS systems installed at a retail store will be described. However, exemplary embodiments are not limited to the embodiments.
The reading device 10 stands on a sacker table 2 on which a shopping basket or the like is placed, at a location (substantial middle) at which an operator faces a customer. The POS terminal 20 is provided near one end of the sacker table 2. The reading device 10 and the POS terminal 20 are connected to be able to communicate via a transmission path (not illustrated). The reading device 10 and the POS terminal 20 are included in the POS system 1.
The POS terminal 20 performs sale data processing including a registration process and a payoff process for commodities purchased by a customer based on data of the commodities or the like read by the reading device 10. The POS terminal 20 is installed on a drawer 30 that accommodates coins and bills so that the coins and bills can be picked up. The POS terminal 20 includes two displays 21a and 21b for the operator and the customer, an input device 22 including a keyboard or a key, and a receipt printer 23.
Next, a configuration of the reading device 10 will be described with reference to
As illustrated in
The body unit 11 is formed in a substantially rectangular parallelepiped shape and stands on the sacker table 2. The height of the body unit 11 is preferably, for example, about the height of the eyes of the operator on the stacker table 2.
The imaging window 11a is provided on the side of the body unit 11 that the operator stands. The first imaging unit 12 is an example of an imaging unit (first imaging unit) and is installed inside the imaging window 11a. The operator reads (images) a commodity brought by a shopper by holding up the commodity to the imaging window 11a. The first imaging unit 12 is an image sensor that includes an imaging element such as a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) image sensor. The first imaging unit 12 images the outside of the body unit 11 through the imaging window 11a. For example, the first imaging unit 12 optically images a code symbol (a barcode, a 2-dimensionall code, or the like) attached to a commodity. For example, the first imaging unit 12 optically images a code symbol displayed on a display screen of a portable terminal or the like carried by the customer.
Here, in a code symbol attached to a commodity, data such as an identifier (commodity code) or a price of the commodity is assumed to be maintained in a state of being encoded in a barcode or a 2-dimensional code. For example, in a code symbol displayed on a display screen of a portable terminal or the like, data indicating a coupon ticket of a price reduction or discount or the like is assumed to be maintained in a state of being encoded in a barcode or a 2-dimensional code. When the reading device 10 reads data indicating a coupon ticket or the like, the POS terminal 20 performs a process such as a price reduction or discount based on the data.
The first display unit 13 is a display device for an operator and is provided above the imaging window 11a. The first display unit 13 is a display device with a touch panel including a display device such as a liquid crystal display (LCD). The first display unit 13 displays a name, a price, and the like of a commodity registered for the operator in response to a sale registration process by the POS terminal 20.
The keyboard 14 is provided near (on the side) of the first display unit 13. The keyboard 14 includes various keys for registering a commodity which cannot be registered with a code symbol or an object image.
The second display unit 15 is a display device with a touch panel including a display device such as an LCD. The second display unit 15 displays a name, a price, and the like of a commodity registered for the shopper in response to the sale registration process by the POS terminal 20. In the embodiment, a holding member (not illustrated) is configured to hold the second display unit 15 on the side of the body unit 11, but an exemplary embodiment is not limited to this configuration.
Next, a hardware configuration of the reading device 10 will be described with reference to
An input and output controller 106, a display and keyboard controller 107, a storage unit 108, and a communication interface 109 are connected to the microcomputer 101 via the bus line 103.
The input and output controller 106 is connected to the first imaging unit 12. The input and output controller 106 outputs an image (image data) captured by the first imaging unit 12 to the microcomputer 101. The input and output controller 106 outputs a control signal output from the microcomputer 101 to the first imaging unit 12.
The display and keyboard controller 107 drives and controls the first display unit 13 and the second display unit 15 to display various images on the displayer 21. The display and keyboard controller 107 outputs an operation signal accompanied with a touch operation on the first display unit 13 and the second display unit 15 or an operation signal from the keyboard 14 to the microcomputer 101.
The storage unit 108 is a storage device such as a hard disk drive (HDD) or a solid-state drive (SSD). The storage unit 108 stores various programs or various kinds of data related to operations of the reading device 10. The communication interface 109 enables data to communicate with another device (the POS terminal 20) via a connection line such as a local area network (LAN) cable.
Next, a functional configuration of the reading device 10 will be described with reference to
The image acquisition unit 111 is an example of an acquisition unit. The image acquisition unit 111 controls capturing of images by the first imaging unit 12. Specifically, the image acquisition unit 111 starts reading image data captured by the first imaging unit 12 via the input and output controller 106 when an instruction to start transaction is given in accordance with an operation through the keyboard 14 or the first display unit 13 or a signal notified of by the POS terminal 20. The image acquisition unit 111 stops the capturing of the image data when an instruction to end a transaction is given in accordance with an operation through the keyboard 14 or the first display unit 13 or a signal notified of by the POS terminal 20.
The decoding processing unit 112 is an example of a decoding unit. The decoding processing unit 112 reads (captures) data encoded in the code symbol by decoding the code symbol. Specifically, the decoding processing unit 112 detects a region indicating a code symbol from the image data acquired by the image acquisition unit 111 and performs a process of decoding the code symbol.
When the data is read from the code symbol, the decoding processing unit 112 determines that the decoding of the code symbol is successful and outputs the read data to the POS terminal 20 or the like. On the other hand, when the data cannot be read from the code symbol, the decoding processing unit 112 determines that the decoding of the code symbol fails. The definition of the failure of the decoding is not limited to the foregoing example. For example, when the format of the data is different from the regulated format despite the fact that the data can be read from the code symbol, the decoding may be determined to fail.
The mode switching unit 113 is an example of a switching unit. The mode switching unit 113 switches an operation mode of the first imaging unit 12 to a first operation mode or a second operation mode in response to an operation through the keyboard 14 or the first display unit 13. As a default operation mode, the first operation mode may be set in advance to be selected automatically.
The first operation mode is an operation mode for performing imaging under a single imaging condition. The first operation mode functions as an operation mode for imaging a code symbol attached to a commodity. The second operation mode is an operation mode for performing imaging while switching among a plurality of imaging conditions. The second operation mode functions as an operation mode for imaging a code symbol displayed on a display screen such as a liquid crystal display.
For example, the imaging condition is to determine a setting value of each element related to imaging such as a gain or a shutter speed. An imaging condition suitable for imaging a code symbol attached to a commodity is associated with the first operation mode. A plurality of imaging conditions, in which different setting values are set, is associated with the second operation mode. In the plurality of imaging conditions associated with the second operation mode, setting values corresponding to various conditions such as the type of display screen or brightness of the display screen are set in advance. The imaging conditions are stored in the storage unit 108. For example, the storage unit 108 stores and manages the plurality of imaging conditions associated with the second operation mode in an imaging condition table T1.
In the imaging condition table T1, a success rate is stored in association with procedure setting for each imaging condition. The success rate indicates the number of decoding successes or a ratio at which the decoding is successful. In the examples of
The procedure setting indicates a selection (switching) procedure or priorities of the imaging conditions. The procedure setting is configured to be selected preferentially in the order in which the success rate is higher under the control of the imaging control unit 114 to be described below. In the initial state, for example, the procedure setting is configured in a procedure determined in advance, such as an ascending order or a descending order of setting values of the imaging conditions (the state of
Referring back to
For example, when an operation mode of the first imaging unit 12 is the first operation mode, the imaging control unit 114 reads an imaging condition associated with the first operation mode and applies (sets) the imaging condition to the first imaging unit 12. Thus, the first imaging unit 12 performs imaging under the imaging condition corresponding to the first operation mode, that is, an imaging condition suitable for reading a code symbol attached to a commodity.
When an operation mode of the first imaging unit 12 is the second operation mode, the imaging control unit 114 applies a plurality of imaging conditions (the imaging condition table T1) associated with the second operation mode to the first imaging unit 12 based on the imaging conditions. Specifically, the imaging control unit 114 selects an imaging condition with the highest-hierarchy in the procedure setting from the imaging condition table T1 and applies the imaging condition to the first imaging unit 12. When the decoding process in the decoding processing unit 112 fails after the application of the imaging condition, the imaging control unit 114 selects an imaging condition with hierarchy lower by one in the procedure setting and applies the imaging condition to the first imaging unit 12. In this way, whenever the decoding fails, the imaging control unit 114 operates the first imaging unit 12 under the imaging condition while switching among the plurality of different imaging conditions.
When the decoding fails after the application of the imaging condition with the lowest hierarchy in the procedure setting, the imaging control unit 114 returns the procedure setting to the imaging condition with the highest-hierarchy in the procedure setting and repeatedly applies imaging conditions registered in the imaging condition table T1. This is a control method based on the fact that a positional relation between the first imaging unit 12 and a display screen (a portable terminal) easily changes, and there is a possibility that the decoding can be successful by a change in the positional relation even when the same imaging condition is applied. The control method is also effective, for example, when brightness of a display screen in a terminal device is set to automatically change.
The imaging control unit 114 increases the success rate in all the imaging conditions stored in the imaging condition table T1 by counting the number of successes in the imaging condition during the application when the decoding of the code symbol is successful under the second operation mode. Then, the imaging control unit 114 performs a process of increasing the success rate of the corresponding imaging condition whenever the decoding is successful. Thus, in each of the imaging conditions stored in the imaging condition table T1, a value indicating a success ratio of the decoding is set as a success rate. Then, the imaging control unit 114 changes the value of the procedure setting so that the imaging condition is selected in the higher order of the success rate.
For example, in the state of the imaging condition table T1 illustrated in
In
As described above, the imaging control unit 114 changes the success rate and the procedure setting of each imaging condition in accordance with success or failure of the decoding. The state of the imaging condition table T1 in which the number of decoding successes is n times is assumed to be a state illustrated in
Accordingly, the imaging control unit 114 sequentially selects an imaging condition in which the success rate of the decoding is higher under the second operation mode. Thus, since the imaging condition in which the code symbol displayed on the display screen is read at a higher probability can be applied preferentially, it is possible to shorten a standby time until the decoding is successful.
Next, an example of a process performed by the reading device 10 will be described with reference to
First, the mode switching unit 113 waits until one operation mode is selected between two operation modes, first and second operation modes (No in ACT11→No in ACT18).
Here, the operator of the reading device 10 can select any operation mode through the keyboard 14 or the like. For example, the operator selects the first operation mode when reading a code symbol attached to a commodity. The operator selects the second operation mode when reading a code symbol displayed on a display screen of a portable terminal carried by a customer. When the default operation mode (the first operation mode) is set, the default operation mode is assumed to be automatically selected without depending on an operation by a user.
When the first operation mode is selected (Yes in ACT11), the mode switching unit 113 switches the operation mode of the first imaging unit 12 to the first operation mode (ACT12). Subsequently, the imaging control unit 114 operates the first imaging unit 12 under a single imaging condition associated with the first operation mode by applying this imaging condition (ACT13).
When the first imaging unit 12 performs the imaging under the applied imaging condition, the imaging acquisition unit 111 acquires image data captured by the first imaging unit 12 (ACT14). Subsequently, when the code symbol is detected from the image data acquired in ACT14, the decoding processing unit 112 performs the decoding process (ACT15).
Subsequently, the decoding processing unit 112 determines whether the decoding of the code symbol is successful (ACT16). Here, when the data can be read from the code symbol, the decoding processing unit 112 determines that the decoding is successful (Yes in ACT16). Then, the decoding processing unit 112 outputs the data read from the code symbol to the POS terminal 20 or the like (ACT17) and returns the process to ACT11. Conversely, when data cannot be read from the code symbol, the decoding processing unit 112 determines that the decoding fails (No in ACT16) and returns the process to ACT11.
On the other hand, when the second operation mode is selected (No in ACT11 Yes in ACT18), the mode switching unit 113 switches the operation mode of the first imaging unit 12 to the second operation mode (ACT19). Subsequently, the imaging control unit 114 sequentially reads an imaging condition in the order having the higher procedure setting based on the imaging condition table T1 associated with the second operation mode (ACT20) and operates the first imaging unit 12 under the read imaging condition (ACT21).
When the first imaging unit 12 performs the imaging under the applied imaging condition, the image acquisition unit 111 acquires image data captured by the first imaging unit 12 (ACT22). Subsequently, when the code symbol is detected from the image data acquired in ACT22, the decoding processing unit 112 performs the decoding process (ACT23).
Subsequently, the decoding processing unit 112 determines whether the decoding of the code symbol is successful (ACT24). Here, when data cannot be read from the code symbol, the decoding processing unit 112 determines that the decoding fails (No in ACT24). In this case, the imaging control unit 114 returns the process to ACT20 and reads the subsequent imaging condition from the imaging condition table T1.
In addition, when the data can be read from the code symbol, the decoding processing unit 112 determines that the decoding process is successful (Yes in ACT24) and outputs the read data to the POS terminal 20 or the like (ACT25). Then, the imaging control unit 114 updates the success rate and the procedure setting value stored in the imaging condition table T1 under the imaging condition in which the decoding process is successful (ACT26) and returns the process to ACT11. When the decoding is successful in the second operation mode, the default operation mode (the first operation mode) may be automatically selected to be returned to the first operation mode.
Through the foregoing process, the reading device 10 reads the data from the code symbol attached to the commodity or the code symbol displayed on the display screen of the terminal device and outputs the read data to the POS terminal 20. Thus, the POS terminal 20 can performs sale data processing such as a registration, payoff, or price reduction for commodities purchased by a customer based on the data input from the reading device 10.
As described above, the reading device 10 according to the embodiment has the dedicated operation mode for reading a code symbol attached to a commodity and a code symbol displayed on a screen and performs reading while switching among the plurality of imaging conditions when reading the code symbol displayed on the screen. Thus, the reading device 10 can efficiently read the code symbol attached to the commodity since reading device 10 can image the code symbol under the imaging condition suitable for the reading of the code symbol attached to the commodity. The reading device 10 can efficiently read the code symbol displayed on the screen since the reading device 10 can read the code symbol while searching for the imaging condition suitable for brightness (luminance) or characteristics of the display screen with regard to the code symbol displayed on the screen.
The reading device 10 records the success rate of the decoding of the code symbol and sequentially selects an imaging condition in the order having a higher success rate with regard to the reading of the code symbol displayed on the screen. Thus, the reading device 10 can achieve acceleration of the reading since the reading device 10 can preferentially apply the imaging condition capable of reading the code symbol displayed on the screen with a higher probability.
The first embodiment describes the configuration example in which the code symbol attached to the commodity or the code symbol displayed on the screen is read using one imaging device (the first imaging unit 12). In a second embodiment, a configuration example in which two imaging devices are provided will be described. The same reference numerals are given to similar elements to those of the first embodiment, and the description thereof will be omitted.
As illustrated in
While the above-described first imaging unit 12 is provided for reading (imaging) by the operator, the second imaging unit 16 is provided for reading by the customer. Specifically, the second imaging unit 16 optically images a predetermined commodity carried by the customer.
As an imaging target commodity, for example, a display screen of a portable terminal carried by the customer can be exemplified. That is, the second imaging unit 16 is provided for the reading of a code symbol displayed on the screen.
In the embodiment, the second imaging unit 16 is configured to be integrated with the body unit 11, but an exemplary embodiment is not limited thereto. The second imaging unit 16 and the body unit 11 may be separated from each other.
Next, a hardware configuration of the reading device 10a will be described with reference to
Next, a functional configuration of the reading device 10a will be described with reference to
The image acquisition unit 111a is an example of an acquisition unit. The image acquisition unit 111a controls the capturing of images by the first imaging unit 12 and the second imaging unit 16. Specifically, the image acquisition unit 111a starts reading image data captured by the first imaging unit 12 and the second imaging unit 16 via the input and output controller 106 when an instruction to start transaction is given in accordance with an operation through the keyboard 14 or the first display unit 13 or a signal notified of by the POS terminal 20. The image acquisition unit 111a stops the capturing of the image data when an instruction to end transaction is given in accordance with an operation through the keyboard 14 or the first display unit 13 or a signal notified of by the POS terminal 20.
The mode setting unit 115 is a functional unit that sets operation modes of the first imaging unit 12 and the second imaging unit 16. In the embodiment, the mode setting unit 115 sets the first operation mode in the first imaging unit 12 and sets the second operation mode in the second imaging unit 16.
The mode setting unit 115 may be configured to switch between the first operation mode and the second operation mode in each of the first imaging unit 12 and the second imaging unit 16 as in the first embodiment. In this case, the first operation mode is preferably set as a default operation mode in the first imaging unit 12. The second operation mode is preferably set as a default operation mode in the second imaging unit 16.
The imaging control unit 114a is an example of a first control unit and a second control unit. The imaging control unit 114a controls an operation related to the imaging of the first imaging unit 12 and the second imaging unit 16 in cooperation with the mode setting unit 115. Specifically, the imaging control unit 114a operates the first imaging unit 12 and the second imaging unit 16 under an imaging condition corresponding to an operation mode in accordance with the operation mode set through the mode setting unit 115.
For example, the imaging control unit 114a applies an imaging condition corresponding to the first operation mode to the first imaging unit 12 in which the first operation mode is set. Thus, the first imaging unit 12 performs imaging under the imaging condition corresponding to the first operation mode, that is, an imaging condition suitable for the reading of a code symbol attached to a commodity. The imaging control unit 114a sequentially applies the imaging conditions registered in the imaging condition table T1 to the second imaging unit 16 in which the second operation mode is set. An operation of the imaging control unit 114a related to the switching of the imaging condition in the second operation mode and the update of the procedure setting and the success rate is similar to that of the above-described imaging control unit 114.
Next, an operation of the reading device 10a will be described. The first imaging unit 12 of the two imaging devices in the reading device 10a is an imaging device for the operator and is used only for reading a code symbol attached to a commodity. Therefore, the mode setting unit 115 sets the first operation mode in the first imaging unit 12. Thus, the imaging control unit 114a operates the first imaging unit 12 under an imaging condition suitable for reading the code symbol attached to the commodity by applying a single imaging condition corresponding to the first operation mode to the first imaging unit 12.
On the other hand, the second imaging unit 16 is an imaging device for the customer and is assumed to set a display screen of a portable terminal carried by the customer as an imaging target. Therefore, the mode setting unit 115 sets the second operation mode in the second imaging unit 16. Thus, the imaging control unit 114a operates the second imaging unit 16 under various imaging conditions by sequentially applying the imaging conditions to the second imaging unit 16 based on a plurality of imaging conditions (the imaging condition table T1) corresponding to the second operation mode.
As described above, the reading device 10a according to the embodiment has the dedicated operation mode for reading a code symbol attached to a commodity and a code symbol displayed on a screen and performs reading while switching among the plurality of imaging conditions when reading the code symbol displayed on the screen. Accordingly, the reading device 10a can obtain similar advantages to those of the reading device 10 of the first embodiment. The reading device 10a can efficiently read code symbols since the reading device 10a causes the first imaging unit 12 for the operator and the second imaging unit 16 for the customer to read the code symbols in the operation modes suitable for the purposes.
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel embodiments described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.
For example, in the foregoing first embodiment, the first operation mode and the second operation mode are switched in response to a manual operation by the operator, but may be switched automatically. For example, when the first operation mode is initially operated and decoding fails in a decoding process of the first operation mode, the mode may be switched to the second operation mode automatically.
In the foregoing embodiments, the procedure setting is updated according to the success or failure of the decoding, but an exemplary embodiment is not limited thereto. The procedure setting may be fixed. For a code symbol displayed on a screen, an imaging condition in which the decoding is successful in the previous reading may be stored in the RAM 105, the storage unit 108, or the like and the imaging condition may be used preferentially (initially) in the subsequent reading.
A program executed in the reading device 10 according to the embodiment is embedded in advance in a storage medium (the ROM 104 or the storage unit 108) of the reading device 10, but an exemplary embodiment is not limited thereto. The program may be supplied in a state of being recorded on a computer-readable recording medium such as a CD-ROM, a flexible disc (FD), a CD-R, or a digital versatile disk (DVD) in a file with an installable format or an executable format. Further, the storage medium is not limited to a medium independent from a computer or an embedded system but also includes a storage medium that downloads a program delivered via a LAN, the Internet, or the like and stores the program or temporarily stores the program.
The program executed in the reading device 10 according to the foregoing embodiments may be stored on a computer connected to a network such as the Internet and may be downloaded via the network to be supplied. The program executed in the reading device 10 according to the foregoing embodiments may be supplied or distributed via a network such as the Internet.
Number | Date | Country | Kind |
---|---|---|---|
2018-153699 | Aug 2018 | JP | national |