WO2023142990A1 - 扫码识别 - Google Patents

扫码识别 Download PDF

Info

Publication number
WO2023142990A1
WO2023142990A1 PCT/CN2023/071214 CN2023071214W WO2023142990A1 WO 2023142990 A1 WO2023142990 A1 WO 2023142990A1 CN 2023071214 W CN2023071214 W CN 2023071214W WO 2023142990 A1 WO2023142990 A1 WO 2023142990A1
Authority
WO
WIPO (PCT)
Prior art keywords
code scanning
code
module
scanning module
preset
Prior art date
Application number
PCT/CN2023/071214
Other languages
English (en)
French (fr)
Inventor
万旭阳
Original Assignee
支付宝(杭州)信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 支付宝(杭州)信息技术有限公司 filed Critical 支付宝(杭州)信息技术有限公司
Publication of WO2023142990A1 publication Critical patent/WO2023142990A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • G06K7/10881Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices constructional details of hand-held scanners
    • G06K7/109Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices constructional details of hand-held scanners adaptations to make the hand-held scanner useable as a fixed scanner
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K2007/10524Hand-held scanners

Definitions

  • This application relates to the field of computer technology, in particular to code scanning identification.
  • code scanning devices such as code scanning guns can input image codes such as barcodes and two-dimensional codes on commodities into computers.
  • code scanning devices are often used in stores and other business places.
  • the code-scanning devices installed in cash registers such as stores are usually hand-held or fixed-type code-scanning devices, which can only scan payment codes.
  • users need to perform product statistics, they need to use other code-scanning devices, which will give users Bring some inconvenience. Therefore, how to provide a convenient scanning code recognition method is a technical problem to be solved urgently.
  • the embodiment of this specification provides a code scanning identification method, device, equipment and medium, so as to improve the convenience of scanning code identification.
  • a code scanning recognition method provided in the embodiment of this specification is applied to a code scanning device, the code scanning device includes a code scanning part and a hand-held part; the code scanning part includes a first code scanning module and a second code scanning module group; a first angle is formed between the first top surface of the code scanning part where the first code scanning module is located and the second top surface of the handle part; one side of the first top surface and the The second top surface is connected; the other side opposite to one side of the first top surface is connected to the first side of the scanning part; the first side of the scanning part is provided with the second scanning Module; the code scanning tool also includes a sensing module.
  • the method includes: acquiring the sensing signal detected by the sensing module; judging whether the value corresponding to the sensing signal meets a preset state condition, and obtaining a judgment result; the preset state condition includes that the code scanning machine is in The theoretical value range corresponding to the sensing signal detected by the sensing module in the target working mode; when the judgment result indicates that the value corresponding to the sensing signal meets the preset state condition, enable the code scanning corresponding to the target working mode
  • the module performs code scanning identification; the code scanning module corresponding to the target working mode is the first code scanning module or the second code scanning module.
  • a code scanning recognition device provided in the embodiment of this specification is applied to a code scanning device, the code scanning device includes a code scanning part and a hand-held part; the code scanning part includes a first code scanning module and a second code scanning module group; a first angle is formed between the first top surface of the code scanning part where the first code scanning module is located and the second top surface of the handle part; one side of the first top surface and the The second top surface is connected; the other side opposite to one side of the first top surface is connected to the first side of the scanning part; the first side of the scanning part is provided with the second scanning Module; the code scanning tool also includes a sensing module.
  • the device includes: a sensing signal acquisition module, used to acquire the sensing signal detected by the sensing module; a condition judging module, used to judge whether the value corresponding to the sensing signal meets a preset state condition, and obtain a judgment result;
  • the preset state conditions include a theoretical value range corresponding to the sensing signal detected by the sensing module when the code scanning tool is in the target working mode;
  • the value corresponding to the signal conforms to the preset state condition, and the code scanning module corresponding to the target working mode is enabled for code scanning identification;
  • the code scanning module corresponding to the target working mode is the first scanning code module or the The second code scanning module.
  • the embodiment of this specification provides a code scanning identification device, which is applied to a code scanning device, and the code scanning device includes a code scanning part and a hand-held part; the code scanning part includes a first code scanning module and a second code scanning module.
  • the second is a code scanning module; the code scanning device also includes a sensing module.
  • the device includes at least one processor and a memory communicatively connected to the at least one processor, the memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, To enable the at least one processor to: obtain the sensing signal detected by the sensing module; determine whether the value corresponding to the sensing signal meets the preset state condition, and obtain a judgment result; the preset state condition includes the The theoretical value range corresponding to the sensing signal detected by the sensing module when the code scanning tool is in the target working mode; when the judgment result indicates that the value corresponding to the sensing signal meets the preset state condition, the target working
  • the code-scanning module corresponding to the mode performs code-scanning identification; the code-scanning module corresponding to the first working mode is the first code-scanning module or the second code-scanning module.
  • the embodiment of this specification provides a computer-readable medium, on which computer-readable instructions are stored, and the computer-readable instructions can be executed by a processor to implement a code scanning identification method.
  • the code scanning recognition method provided in the embodiment of this specification can start the first code scanning module or The second code-scanning module performs code-scanning recognition, so that the code-scanning machine can automatically adapt to the needs and simplify user operations.
  • the code-scanning device in the embodiment of this specification includes two code-scanning modules, which can also meet the needs of users to scan codes in different places.
  • the first code-scanning module is located on the top of the code-scanning part, and when the code-scanning machine is placed on a cash register or other position, it can be more in line with the usage habits of consumers and improve the convenience of use;
  • the second code-scanning module Located on the side of the code scanning department, it is also more convenient for shop assistants to use the code scanning machine with their hands, which in turn can improve the convenience of users who scan codes for identification.
  • FIG. 1 is a schematic diagram of a code-scanning machine provided by an embodiment of this specification
  • Fig. 2 is a schematic flow chart of a scanning code identification method provided by the embodiment of this specification
  • Fig. 3 is a swimming lane diagram of a scanning code identification method provided in the embodiment of this specification.
  • Fig. 4 is a schematic structural diagram of a scanning code identification device provided by an embodiment of this specification.
  • FIG. 5 is a schematic structural diagram of a code scanning identification device provided by an embodiment of this specification.
  • FIG. 1 is a schematic diagram of a code scanning device provided by an embodiment of this specification.
  • the code scanning device 100 may include: a code scanning part 110 and a handheld part 120; wherein, the code scanning part 110 may include a first code scanning module 111 and a second code scanning module 112; A first angle is formed between the first top surface 113 of the code scanning part where the code module 111 is located and the second top surface 121 of the handle part; one side of the first top surface 113 is connected to the second top surface 121; One opposite side of the top surface 113 is connected to the first side 114 of the code scanning part; the second code scanning module 112 is arranged on the first side 114 of the code scanning part.
  • the code scanning device provided in the embodiment of this specification further includes a sensing module 130 , and the sensing module 130 may be located inside the code scanning device, or on the housing of the code scanning device.
  • the first code scanning module and the second code scanning module can be controlled to perform code scanning recognition according to the sensing signal detected by the sensing module.
  • the first code scanning module 111 can be used to identify the first image to be recognized within the first distance range; the second code scanning module 112 can be used to identify the second image to be recognized within the second distance range ;
  • the minimum distance value in the first distance range may be smaller than the minimum distance value in the second distance range.
  • the first scanning code module can be used to identify the payment code provided by the consumer at close range, and the second scanning module can be used to identify the barcode of the product at a far distance when performing commodity statistics, so that It can meet the needs of users to scan codes in different places.
  • the first code scanning module is located on the top surface of the code scanning part.
  • the first code scanning module and the placement surface can have a certain angle, which can be more suitable for consumers It improves the convenience of use;
  • the second code-scanning module is located on the side of the code-scanning department, and it is also more convenient for shop assistants to use the code-scanning machine with their hands.
  • the code scanning part and the hand-held part of the code scanning device in the embodiment of this specification have a certain angle.
  • the first top surface The inclination angle of the placement surface may be less than or equal to 50 degrees.
  • the angle between the bottom surface of the handle and the placement surface may be less than or equal to 20 degrees.
  • the inclination angle of the first top surface relative to the placing surface may be within 45 degrees; the angle between the bottom surface of the handle part and the placing surface may be within 18.5 degrees.
  • the inclination angles of the code scanning part and the handle part can also be determined in combination with the side thickness of the code scanning tool, and the specific content is not limited here.
  • FIG. 2 is a schematic flowchart of a code scanning identification method provided by an embodiment of this specification.
  • the subject of execution of the process can be a program or an application client installed on an application server; from a hardware point of view, the subject of execution of this process can be the controller or processing of the code scanning machine as shown in Figure 1 device.
  • Step 202 Acquire the sensing signal detected by the sensing module.
  • the code scanning tool in the embodiment of this specification may include a sensor module, which can be used to detect the sensing signal, and the sensing signal can reflect the position status of the code scanning tool.
  • Step 204 Judging whether the value corresponding to the sensing signal conforms to a preset state condition, and obtaining a judgment result;
  • the preset state condition includes the sensing signal detected by the sensing module when the code scanning tool is in the target working mode The corresponding theoretical value range.
  • Step 206 When the judgment result indicates that the value corresponding to the sensing signal meets the preset state condition, enable the code scanning module corresponding to the target working mode to perform code scanning identification; the scanning code module corresponding to the target working mode It is the first code scanning module or the second code scanning module.
  • the code-scanning device in the embodiment of this specification can be used as a handheld device for code-scanning recognition, or it can be placed on a desktop or other location as a fixed device for scanning code recognition.
  • the two code scanning modules in the code scanning machine can respectively correspond to different working modes.
  • the first code scanning module can be enabled for code scanning identification; when the user holds the code scanning device for scanning code recognition, the code scanning device In the handheld state, the second code scanning module can be activated for scanning code recognition.
  • the working mode of the code scanning device can be determined according to the first sensing signal detected by the sensing module, and the first code scanning module or the second code scanning module can be correspondingly activated for code scanning identification.
  • the code-scanning recognition method provided in the embodiment of this specification can start the first code-scanning module or the second code-scanning module in the code-scanning device to perform code-scanning recognition according to the induction signal of the sensing module in the code-scanning device, so that the code-scanning
  • the coding machine can automatically adapt to the needs and simplify the user's operation.
  • the code-scanning device in the embodiment of this specification includes two code-scanning modules, which can also meet the needs of users to scan codes in different places, and can improve the convenience of users who scan codes for identification.
  • the sensing module may include a sensor, and the working mode of the code scanning tool may be determined according to the sensing signal obtained by the sensor.
  • the code scanning tool when the user picks up the code scanning tool to scan the code, the code scanning tool is moving with a certain acceleration; when the code scanning tool is placed on a fixed surface such as a cash register, the code scanning tool is relatively At rest, the acceleration at this time is very small, even close to zero.
  • the code scanning device in the embodiment of this specification may include an acceleration sensor. According to the sensing signal detected by the acceleration sensor, it is judged whether the code scanning device is placed on a fixed placement surface such as a cash register.
  • the preset acceleration threshold can determine that the code-scanning tool is placed on the placement surface and is in a non-handheld state, and the first code-scanning module can be activated for code-scanning identification.
  • the code scanning module corresponding to the target working mode in the embodiment of this specification is the first code scanning module, and the sensing module specifically includes a pressure sensor; the pressure sensor can be located between the code scanning machine and The place where surface contact is placed, for example, can be located on the bottom of the code scanning tool.
  • the judging whether the value corresponding to the sensing signal meets the preset state condition may specifically include: judging whether the pressure value detected by the pressure sensor is greater than or equal to the first preset pressure threshold; The result indicates that the value corresponding to the sensing signal meets the preset state condition, and the code scanning module corresponding to the target working mode is enabled for code scanning identification, specifically including: if the pressure value detected by the pressure sensor is greater than or equal to the first If the pressure threshold is preset, the first code scanning module is enabled for code scanning identification.
  • the outer surface of the handheld portion of the code scanner may also include a pressure sensor for sensing the pressure between the code scanner and the user's hand when the user holds the code scanner.
  • a pressure sensor for sensing the pressure between the code scanner and the user's hand when the user holds the code scanner.
  • the pressure sensor when the user is holding the code scanning tool, when the pressure sensor can detect a certain pressure, it can be determined that the code scanning tool is in the hand-held state, and the second code scanning module can be activated for scanning code identification; when the pressure detected by the code scanning tool When the value is small or even zero, it can be determined that the code scanning tool is in a non-handheld state, and the first code scanning module can be enabled for code scanning recognition.
  • the code scanning device when the user holds the code scanning device to scan the code, the code scanning device will be in contact with the user's hand, and the user's hand has a certain temperature.
  • the code scanning mode can also be determined according to the temperature signal. The work status of the group.
  • the code scanning module corresponding to the target working mode in the embodiment of this specification is the first code scanning module
  • the sensing module may specifically include a temperature sensor
  • the judging that the sensing signal corresponds to Whether the value of the value meets the preset state condition can specifically include: judging whether the temperature value detected by the temperature sensor is less than or equal to the first preset temperature threshold; when the judgment result indicates that the value corresponding to the sensing signal meets Preset status conditions, enable the code scanning module corresponding to the target working mode to scan code identification, which may specifically include: if the temperature value detected by the temperature sensor is less than or equal to the first preset temperature threshold, enabling the The first code scanning module performs code scanning recognition.
  • the temperature sensor may be located on the outer surface of the handle, and may be distributed in multiple positions, so as to improve the accuracy of detection.
  • it may be located on the bottom surface, side surface, etc. of the hand-held part.
  • specific installation positions may be set according to requirements, and are not specifically limited here.
  • the surrounding temperature is the ambient temperature.
  • the ambient temperature is lower than the human body temperature.
  • the first preset temperature threshold can be set according to the human body temperature.
  • the code scanning module corresponding to the target working mode in the embodiment of this specification is the first code scanning module
  • the sensing module may specifically include a distance sensor
  • the judging that the sensing signal corresponds to Whether the value of the value meets the preset state condition may specifically include: judging whether the distance value detected by the distance sensor is less than or equal to the first preset distance threshold; when the judgment result indicates that the value corresponding to the sensing signal meets Preset state conditions, enable the code scanning module corresponding to the target working mode to scan code recognition, specifically include: if the distance value detected by the distance sensor is less than or equal to the first preset distance threshold, enable the second A scan code module for scan code recognition.
  • the distance sensor may include an infrared sensor, which may be located at the bottom of the code scanning tool, and is used to detect the distance between the code scanning tool and the placement surface.
  • an infrared sensor which may be located at the bottom of the code scanning tool, and is used to detect the distance between the code scanning tool and the placement surface.
  • the distance sensor in the embodiment of this specification may also include a distance sensor for detecting the user's hand and the code scanning tool, and the distance sensor may be located on the side of the code scanning tool.
  • the distance sensor When the user picks up the code scanning device, it can be determined that the user is approaching the code scanning device through the signal of the distance sensor.
  • the distance value detected by the distance sensor When the distance value detected by the distance sensor is small, it can be determined that the user is holding the code scanning device; when the code scanning device is placed on the placement surface When it is on, the distance value detected by the distance sensor is relatively large, and the first code scanning module can be activated.
  • the judgment conditions for module activation can be set according to the location and type of the sensor, and the specific content will not be listed here.
  • the code scanning device will be tilted at a certain angle when the user is holding the code scanning device.
  • the working state of the code scanning module can also be determined according to the angle of the code scanning device.
  • the angle at which the code scanning tool is placed on the placement surface can be determined as the reference angle.
  • the inclination angle of the code scanning tool is small.
  • the code scanning machine will generate a large inclination angle, and the activation of the code scanning module can be controlled according to the angle value detected by the angle sensor.
  • the angle data detected by the angle sensor can also be the angle difference of the code-scanning machine at two moments.
  • the angle difference When the angle difference is large, it can be determined that the code-scanning machine is in a moving state, not on the placement surface, and in a hand-held state; When the angle difference is small, it can be determined that the code scanning tool is relatively stationary, located on the placement surface, and in a non-handheld state.
  • the code scanning module corresponding to the target working mode in the embodiment of this specification can also be the second code scanning module of the code scanning device, or can be connected by an acceleration sensor, a pressure sensor, a temperature sensor, a distance sensor, an angle sensor, etc.
  • the induction signal detected by the sensor controls the working state of the second code scanning module.
  • the code scanning module corresponding to the target working mode in the embodiment of this specification may be the second code scanning module;
  • the sensing module may specifically include an acceleration sensor;
  • the judging the sensing signal Whether the corresponding value meets the preset state condition may specifically include: judging whether the acceleration value detected by the acceleration sensor is greater than or equal to the second preset acceleration threshold; Meeting the preset state conditions, enabling the code scanning module corresponding to the target working mode to scan the code for recognition, which may specifically include: if the acceleration value detected by the acceleration sensor is greater than or equal to the second preset acceleration threshold, enabling the The second code scanning module is used for scanning code recognition.
  • the code scanning device when the user picks up the code scanning device placed on the desktop, the code scanning device will generate a certain acceleration, and the code scanning device will usually move when the user holds the code scanning device.
  • the acceleration of the code-scanning tool can be detected according to the acceleration sensor, and when the acceleration value is greater than or equal to the second preset acceleration threshold, the second code-scanning module can be activated for code-scanning recognition.
  • the pressure sensor can detect the pressure between the code scanning tool and the placement surface.
  • the pressure between the code scanning tool and the placement surface is small, which can be approximately understood as zero pressure, and the second The code scanning module performs code scanning recognition.
  • the outer surface of the handheld portion of the code scanner may also include a pressure sensor for detecting the pressure between the code scanner and the user's hand when the user holds the code scanner.
  • the pressure sensor can detect a certain pressure, for example, when the pressure value detected by the pressure sensor is greater than or equal to the third preset pressure threshold, it can be determined that the code scanning tool is in the handheld state , you can enable the second scan code module for scan code recognition.
  • the temperature sensor can detect the temperature of the hand of the hand-held code scanning device.
  • the temperature value detected by the temperature sensor is greater than or equal to the second preset temperature threshold, it can be determined that the code scanning device is in the handheld state, and the second code scanning device can be enabled.
  • the code module scans the code for identification.
  • the second preset temperature threshold may be determined according to the body temperature and the ambient temperature.
  • the distance sensor may include an infrared sensor, which may be located at the bottom of the code scanning device.
  • the distance sensor can detect the distance between the code scanning device and the ground, desktop, etc., if the distance sensor detects If the obtained distance value is greater than or equal to the second preset distance threshold, it can be determined that the code scanning device is in a hand-held state, and the second code scanning module can be activated for scanning code recognition.
  • the distance sensor in the embodiment of this specification may also include a distance sensor for detecting the user's hand and the code scanning tool, and the distance sensor may be located on the side of the code scanning tool.
  • the distance sensor When the user picks up the code scanning tool, it can be determined that the user is approaching the code scanning tool through the signal of the distance sensor.
  • the distance value detected by the distance sensor is small, that is, if the distance value detected by the distance sensor is less than or equal to the third
  • the preset distance threshold can determine that the user is holding a code scanning device, and can also enable the second code scanning module for scanning code recognition.
  • the working state of the second code scanning module can also be controlled according to the induction signal of the angle sensor.
  • the code scanning module corresponding to the target working mode may be the second code scanning module, and the sensing module may specifically include an angle sensor; the judging whether the value corresponding to the sensing signal meets the preset state condition , specifically may include: judging whether the angle value detected by the angle sensor is greater than or equal to a second preset angle threshold;
  • enabling the code scanning module corresponding to the target working mode to perform code scanning identification may specifically include: if the angle sensor detects If the angle value is greater than or equal to the second preset distance threshold, the second code scanning module is enabled for code scanning recognition.
  • the code module scans the code for recognition.
  • the first code-scanning module can be activated for code-scanning identification.
  • the acceleration value detected by the acceleration sensor is greater than or equal to the second preset acceleration threshold, and the duration of the acceleration value detected by the acceleration sensor is greater than or equal to the first preset acceleration threshold is greater than the second preset duration, It can be determined that the code scanning device is in a hand-held state, and the second code scanning module can be activated for code scanning identification.
  • the code scanning device may include one type of sensor, or multiple sensors.
  • the sensing module in the embodiment of this specification may include an acceleration sensor, a pressure sensor, a temperature sensor, a distance sensor, an angle at least one of the sensors.
  • the target working mode of the code scanning tool can be determined by combining the induction signals detected by various sensors.
  • the specific values of the preset conditions such as the preset acceleration threshold, the preset pressure threshold, the preset distance threshold, and the preset angle threshold can be set according to actual needs, and are not specifically limited here.
  • the first code scanning module of the code scanning device may include a first camera 115, and the first top surface of the code scanning part includes a camera lens 116 for protecting the first camera, wherein the first top
  • the surface can include a top opening, and the camera lens 116 can be fixed in the top opening, and the light outside the code-scanning machine can enter the first camera through the top opening, so that the first camera can collect images near the first top. image.
  • a cup cover may also be included between the first camera and the lens of the camera, so as to improve the image acquisition effect of the first camera and protect the internal structure of the code scanning device.
  • the cup cover in the embodiment of the present specification may include a tapered shell, which is in the shape of a shell with a small bottom and a large top, similar to a bowl, wherein the first part of the bottom of the tapered shell is The opening can be connected with the first code scanning module, so that light outside the code scanning device enters the lens of the first code scanning module, and the first camera can collect images to be recognized through the first opening.
  • the second opening at the top of the tapered housing can be connected to the top opening on the first top surface; the light outside the code scanning tool enters the first code scanning module through the top opening, the second opening and the first opening; The area of the first opening is smaller than the area of the second opening.
  • the camera lens 116 in the example of this specification can be a color-variable isolation screen, wherein, when the code scanning device is in a non-handheld state, the light transmittance of the isolation screen can be greater than or equal to the first light transmittance rate; when the code scanning device is in a hand-held state, the light transmittance of the isolation screen may be less than or equal to the second light transmittance.
  • the first light transmittance may be greater than the second light transmittance.
  • the first light transmittance may be 60%-100%, and the second light transmittance may be 0%-30%.
  • the light transmittance of the isolation screen can be below 20%; when the code scanning device is in a non-handheld state, the light transmittance of the isolation screen can be above 80%. Therefore, when scanning codes with a hand-held scanning device, the isolation screen can shield the light entering the first scanning code module, and use the second scanning code module to scan codes; , you can use the first scan code module for image acquisition.
  • the code scanning machine in the embodiment of this specification may also include an isolation screen; the isolation screen may be located on the first top surface; after obtaining the judgment result, it may also include: when the judgment result indicates The value corresponding to the sensing signal conforms to the preset state condition, and controls the light transmittance of the isolation screen.
  • the isolation screen can present different isolation states.
  • the first preset condition may represent the condition that the code scanning device is in a non-handheld state and the first code scanning module is activated for scanning code recognition.
  • the code scanning module corresponding to the target working mode in the embodiment of this specification may be the first code scanning module; when the judgment result indicates that the value corresponding to the sensing signal conforms to the preset state condition, controlling the light transmittance of the isolation screen may specifically include: when the judgment result indicates that the value corresponding to the sensing signal meets the second preset state condition, controlling the light transmittance of the isolation screen to be less than or equal to the first Two light transmittance: the second light transmittance is less than or equal to 30%.
  • the second preset condition may represent the condition that the code scanning device is in a hand-held state, and the second code scanning module is activated for scanning code recognition.
  • the code scanning device further includes an indicator light, and the indicator light is located on the first top surface; after the judgment result is obtained, it also includes: when the judgment result indicates the value corresponding to the sensing signal When the preset state condition is met, the indicator light is controlled to flash according to the preset frequency.
  • the indicator light can be used to guide the user to use the code scanning module in the usable state in the code scanning device to perform code scanning identification.
  • the indicator light may include a light-emitting light ring.
  • the light-emitting light circle can emit light of the first preset color according to the first preset frequency, so as to guide the user to scan the code at the code scanning machine;
  • the luminous light ring can also emit light of the second preset color according to the second preset frequency to prompt the user to scan the code successfully; Lights with preset colors to remind users of failure to scan codes.
  • the handheld part of the code scanning device in the embodiment of this specification may include a key component 122 and a display component 123; wherein the key component and the display component are located on the second top surface of the handheld part; the key component includes a second A button is used to control the code scanning machine to acquire the image to be recognized.
  • the user when the user needs to use the code scanning machine to scan the code, he can first click the first button or keep the first button in the operated state, and then scan the code. For example, when the user scans the barcode on the product to be put into storage through the code scanning machine, he can click or press the first button to execute the code scanning process. When the user clicks the first button again or releases the first button, the code scanning part can No more images are acquired.
  • the button assembly in the embodiment of this specification may include several buttons, may include function keys, and may also include number keys.
  • the button component can contain commodity buttons for managing commodity management in the commodity library, such as checking the quantity, unit price, total price, etc. of commodities in the commodity library; it can also contain buttons for viewing a certain transaction
  • the order button of the order details for example, you can use this button to obtain the order details of the transaction; it can also include a statistics button for viewing statistical information, for example, you can view the statistics of the goods in the warehouse for a certain period of time, etc.; Can contain menu buttons for viewing various functions of the system, etc.
  • the code scanning recognition method provided by the embodiment of this specification may further include: acquiring a function instruction; the function instruction is generated based on the operation of the function keys in the code scanning device; based on the function instruction, sending A function information acquisition request; acquire the function information corresponding to the function instruction.
  • the function keys include the commodity button for managing the commodity management in the commodity library, the order button for viewing the order details of a certain transaction, the statistics button for viewing statistical information, and the menu for viewing various functions of the system Any one of the keys.
  • the code scanning device can also include a code scanning module switching control, through which two code scanning modules can be switched and used. For example, when the first code scanning module is in the working state, the first scanning code module can be switched to the non-working state through the switching control of the scanning code module, and the second code scanning module can be switched to the working state , the second code scanning module can be used to collect images to be recognized; similarly, when the second code scanning module is in the working state, the second scanning code module can be switched to a non-operable state through the switching control of the scanning code module. In the working state, the first code scanning module is switched to the working state, and the first scanning code module can be used to collect images to be recognized.
  • the switching control of the code scanning module can be a key in the key assembly, or a button independently arranged on the side of the code scanning device.
  • the code scanning module switching control can be a control, through which the working status of the first scanning code module and the second scanning code module can be controlled;
  • the scanning code module switching control can be two controls, wherein It may contain a first code scanning module switching control for starting the first code scanning module, and may also contain a second code scanning module switching control for starting the second code scanning module.
  • the first code scanning module can be switched to a workable state by operating the first scanning code module switching control, and the image to be recognized can be collected through the first scanning code module;
  • the second code scanning module is switched to the working state, and the image to be recognized can be collected through the second code scanning module.
  • the method provided in the embodiment of this specification may further include: acquiring a module switching instruction; the module switching instruction is generated based on the operation of the scan code module switching control; according to the module switching instruction , enabling the first code scanning module or the second code scanning module to perform code scanning identification.
  • the first code scanning module and the second code scanning module can be in the working state at the same time, and one of the first code scanning module and the second code scanning module can be activated at the same time Work, the specific method can be set according to actual needs.
  • the display component may include an LCD display screen, which is used to display the information received by the code scanning machine.
  • the corresponding information obtained by operating the keys in the code scanning device can also be displayed on the display screen.
  • the display component can also include a touch panel, so that the user can operate the code scanning device through the touch panel.
  • the second code scanning module in the embodiment of this specification may include a second camera.
  • the second code scanning module can also include a supplementary light, and the supplementary light can be located on one side of the second camera, so that when the second code scanning module is working, the second code scanning module can be illuminated.
  • the shooting area of the second camera fills in light to obtain high-definition images and improve recognition efficiency.
  • the code scanning identification method provided in the embodiment of this specification may further include: based on the first confirmation instruction, sending a supplementary light control signal to the supplementary light so that the supplementary light performs supplementary light.
  • the second code scanning module can also include a positioning light, which can be located on the other side of the second camera, so as to locate the image to be recognized.
  • the positioning light may adopt an infrared positioning light.
  • the casing of the code scanning device may include through holes for fixing components such as supplementary lights and positioning lights, and may also include through holes for the second camera to collect images outside the code scanning device. The specific size of the through hole can be set according to actual requirements, and is not specifically limited here.
  • the code scanning identification method provided in the embodiment of this specification may further include: based on the first confirmation instruction, sending a positioning control signal to the positioning light so that the positioning light emits a positioning light.
  • the distance between the first user and the code scanning machine is usually relatively short, or the first user may put the payment code and other images presented close to the code scanning machine for identification;
  • a second user such as a clerk performs operations such as warehousing or delivery of goods
  • the second user is more accustomed to holding a mobile code scanning device to identify the barcode on the product.
  • the code scanning device when the code scanning device is placed on a fixed surface such as a desktop, the first code scanning module can be used to obtain images; The second code scanning module acquires images.
  • the field of view (FOV, Field of View) of the first camera may be greater than or equal to the field of view of the second camera.
  • the field of view of the first camera can be between 85 and 120 degrees, and the scanning distance can be between 0 and 15 centimeters; the field of view of the second camera can be between 30 and 45 degrees , The scanning distance can be between 5 and 40 cm.
  • the camera can be set according to actual needs, and no specific limitation is made here.
  • the code scanning device in the embodiment of this specification can also include a SIM (Subscriber Identity Module, customer identification module) card slot, which can be used to place a SIM card, and can be located on the side of the code scanning device.
  • SIM Subscriber Identity Module
  • the casing of the code scanning device may also include several through holes, which may correspond to the speakers located inside the code scanning device, so as to disseminate the sound played by the speakers.
  • the code scanning identification method provided in the embodiment of this specification may further include: sending a broadcast instruction to a speaker; so that the speaker can broadcast.
  • the speaker can broadcast information indicating the result of scanning the code, such as information indicating the success of scanning the code, information indicating the failure of scanning the code, and so on.
  • the code scanning device provided in the embodiment of this specification may also include an anti-slip mat, which may be located on the outer surface of the bottom of the code scanning device, wherein the anti-slip pad may be fixed on the part of the outer surface that is in contact with the bottom and the placement surface, and may be placed on the upper bottom and the lower bottom respectively. Fixed setting.
  • the code scanning device in the embodiment of this specification may also include a power button, and the power button may be located on the side of the code scanning device.
  • the code scanning device in the embodiment of this specification may also include a data interface, which may be located at the bottom of the code scanning device, and is used to connect the code scanning device with other devices.
  • the data interface can include a waterproof Type-c interface, which can be used to charge the code scanning machine and transmit data.
  • components such as the power button, SIM card slot, and data interface can be located on different sides of the code scanning device, or on the same side. The specific positions can be set according to actual needs, and are not specifically limited here.
  • the code scanning recognition method provided in the embodiment of this specification may further include: acquiring the image to be recognized collected by the first code scanning module or the second code scanning module; analyzing the image to be recognized to obtain the analyzed information; sending the analysis information to the server.
  • the server can perform business processing according to the parsed information, for example, it can process payment business, process goods in and out of warehouse, and so on.
  • the code scanning identification method in the embodiment of this specification may further include: acquiring the business processing result sent by the server.
  • the bottom casing of the code scanning device may be a casing that is wide at the top and narrow at the bottom.
  • the bottom surface can also have a preset radian, so that the bottom surface can be attached to the palm when holding the code scanning tool;
  • the bottom surface in the bottom shell can also be set with a preset radian angle on the side connecting the bottom surface and the surrounding sides, so that the bottom surface and the side surface are smooth. connect.
  • the first code scanning module may include a first camera control module for controlling the first camera to capture images; the second code scanning module may include a second camera control module for controlling the second camera to capture images .
  • the control module can be connected with the first camera control module and the second camera control module.
  • the first code scanning module can process images to be recognized that contain two-dimensional codes
  • the second code scanning module can process images to be recognized that contain one-dimensional codes.
  • the The code scanning device may include a first decoding unit, wherein the first decoding unit is connected to the first code scanning module and can be used to analyze the first image to be recognized collected by the first code scanning module.
  • the code scanning device may further include a second decoding unit, wherein the second decoding unit may be connected to the second code scanning module for analyzing the second image to be recognized collected by the second code scanning module;
  • the computing power of the second decoding unit may be greater than or equal to the computing power of the first decoding unit.
  • two decoding units are used to respectively process the images to be recognized obtained by the first code scanning module and the second code scanning module, without considering the compatibility of decoding chips, and can also reduce the cost of code scanning equipment.
  • the above parsing information in the embodiment of this specification may include first parsing information provided by the first decoding unit and/or second parsing information provided by the second decoding unit.
  • the code scanning device in the embodiment of this specification may also include a communication module, which can be used to send image analysis information to a server or other information processing equipment.
  • the communication module may include a wireless communication module, such as a Bluetooth module, a WiFi (Wireless Network) module, an RFID (Radio Frequency Identification) module, a mobile communication module, and the like.
  • a wireless communication module such as a Bluetooth module, a WiFi (Wireless Network) module, an RFID (Radio Frequency Identification) module, a mobile communication module, and the like.
  • FIG. 3 is a swim lane diagram of a code scanning recognition method provided in the embodiment of this specification.
  • the method may include a sensing information acquisition phase and a module startup phase, which may specifically include: Step 302 : The sensing module in the code scanning tool detects the sensing signal.
  • Step 304 The controller obtains the sensing signal detected by the sensing module.
  • Step 306 According to the sensing signal detected by the sensing module, determine that the value corresponding to the sensing signal meets the first preset state condition.
  • the first preset status condition may represent a condition for enabling the first code scanning module.
  • Step 308 When it is determined that the value corresponding to the sensing signal meets the first preset state condition, the light transmittance of the isolation screen can be controlled to be greater than or equal to the first light transmittance, so that the light outside the code scanning machine can enter the first code scanning mode group of cameras.
  • Step 310 When it is determined that the value corresponding to the sensing signal meets the first preset state condition, the first code scanning module may be activated for code scanning identification.
  • Step 312 According to the sensing signal detected by the sensing module, determine that the value corresponding to the sensing signal meets the second preset state condition.
  • the second preset state condition may represent a condition for enabling the second code scanning module.
  • Step 314 When it is determined that the value corresponding to the sensing signal meets the second preset state condition, the light transmittance of the isolation screen can be controlled to be less than or equal to the second light transmittance, which can prevent the light outside the code scanning machine from entering the first code scanning mode group of cameras.
  • the code scanning port corresponding to the first code scanning module can be displayed in black or dark color, and the user can be prompted that the code scanning port is unavailable.
  • Step 316 When it is determined that the value corresponding to the sensing signal meets the second preset state condition, the second code scanning module may be activated for code scanning identification.
  • the embodiment of this specification also provides a device corresponding to the above method.
  • the device can be applied to a code-scanning device, the code-scanning device includes a code-scanning part and a hand-held part; the code-scanning part includes a first code-scanning module and a second code-scanning module; the first code-scanning module A first angle is formed between the first top surface of the code scanning part and the second top surface of the handle part; one side of the first top surface is connected to the second top surface; The other side opposite to one side of the first top surface is connected to the first side of the code scanning part; the second code scanning module is arranged on the first side of the code scanning part; the code scanning tool also includes Sensor module.
  • FIG. 4 is a schematic structural diagram of a code scanning identification device provided by an embodiment of this specification.
  • the device may include: a sensing signal acquisition module 402, configured to acquire the sensing signal detected by the sensing module; a condition judging module 404, used to judge whether the value corresponding to the sensing signal conforms to the preset Set the state condition to obtain the judgment result; the preset state condition includes the theoretical value range corresponding to the sensing signal detected by the sensing module when the code scanning tool is in the target working mode; the module enabling module 406 is used to When the judgment result indicates that the numerical value corresponding to the sensing signal meets the preset state condition, enable the code scanning module corresponding to the target working mode to perform code scanning identification; the scanning code module corresponding to the target working mode is the The first code scanning module or the second code scanning module.
  • the embodiment of this specification also provides a device corresponding to the above method.
  • the device is applied to a code-scanning device, the code-scanning device includes a code-scanning part and a hand-held part; the code-scanning part includes a first code-scanning module and a second code-scanning module; A first angle is formed between the first top surface of the scanning part and the second top surface of the handle part; one side of the first top surface is connected to the second top surface; The opposite side of one top surface is connected to the first side of the code scanning part; the second code scanning module is arranged on the first side of the code scanning part; the code scanning device also includes a transmission sense module.
  • FIG. 5 is a schematic structural diagram of a code scanning identification device provided by an embodiment of this specification.
  • the device 500 may include: at least one processor 510; and a memory 530 communicatively connected to the at least one processor; instruction 520, the instruction is executed by the at least one processor 510, so that the at least one processor 510 can: acquire the sensing signal detected by the sensing module; determine whether the value corresponding to the sensing signal is Meet the preset state conditions, and obtain the judgment result; the preset state conditions include the theoretical value range corresponding to the sensing signal detected by the sensing module when the code scanning tool is in the target working mode; when the judgment result indicates The numerical value corresponding to the induction signal meets the preset state condition, and the code scanning module corresponding to the target working mode is enabled for code scanning identification; the scanning code module corresponding to the first working mode is the first scanning code module group or the second code scanning module.
  • the embodiment of this specification also provides a computer-readable medium corresponding to the above method.
  • Computer-readable instructions are stored on the computer-readable medium, and the computer-readable instructions can be executed by a processor to implement the above code scanning identification method: each embodiment in this specification is described in a progressive manner, and each embodiment It is sufficient to refer to each other for the same and similar parts, and each embodiment focuses on the differences from other embodiments.
  • the description is relatively simple, and for relevant parts, refer to part of the description of the method embodiment.
  • the improvement of a technology can be clearly distinguished as an improvement in hardware (for example, improvements in circuit structures such as diodes, transistors, and switches) or improvements in software (improvement in method flow).
  • improvements in circuit structures such as diodes, transistors, and switches
  • improvements in software improvement in method flow
  • the improvement of many current method flows can be regarded as the direct improvement of the hardware circuit structure.
  • Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by hardware physical modules.
  • a programmable logic device Programmable Logic Device, PLD
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • ABEL Advanced Boolean Expression Language
  • AHDL Altera Hardware Description Language
  • HDCal JHDL
  • Lava Lava
  • Lola MyHDL
  • PALASM RHDL
  • VHDL Very-High-Speed Integrated Circuit Hardware Description Language
  • Verilog Verilog
  • the controller may be implemented in any suitable way, for example the controller may take the form of a microprocessor or processor and a computer readable medium storing computer readable program code (such as software or firmware) executable by the (micro)processor , logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers and embedded microcontrollers, examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory.
  • controller in addition to realizing the controller in a purely computer-readable program code mode, it is entirely possible to make the controller use logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded The same function can be realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as structures within the hardware component. Or even, means for realizing various functions can be regarded as a structure within both a software module realizing a method and a hardware component.
  • a typical implementing device is a computer.
  • the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, etc. Or a combination of any of these devices.
  • the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
  • the device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read-only memory (ROM) or flash RAM. Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash random access memory
  • Computer-readable media including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information.
  • Information may be computer readable instructions, data structures, modules of a program, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage , magnetic tape cartridge, magnetic tape storage or other magnetic storage device or any other non-transmission medium that may be used to store information that can be accessed by a computing device.
  • computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.
  • the embodiments of the present application may be provided as methods, systems or computer program products. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types.
  • the application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network.
  • program modules may be located in both local and remote computer storage media including storage devices.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Numerical Control (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种扫码识别方法、装置、设备及介质,其中方法包括:获取传感模组(130)检测得到的感应信号;判断感应信号对应的数值是否符合预设状态条件,得到判断结果;当判断结果表示感应信号对应的数值符合预设状态条件,启用目标工作模式对应的扫码模组进行扫码识别,目标工作模式对应的扫码模组为第一扫码模组(111)或者第二扫码模组(112)。

Description

扫码识别 技术领域
本申请涉及计算机技术领域,尤其涉及扫码识别。
背景技术
扫码枪等扫码设备作为一种输入设备,能够将商品上的条形码、二维码等图像编码输入到计算机中,实际应用中,扫码设备是商店等经营场所中经常使用的设备,实现对商品的统计管理、支付流程的处理等等。一般,商店等收银台中配置的扫码机具通常是手持式的或者固定式的扫码机具,仅能够扫描支付码,当用户需要进行商品统计时需要采用其他的扫码机具进行,这样会给用户带来一定的不便。因此,如何提供一种便捷的扫码识别方法是亟待解决的技术问题。
发明内容
本说明书实施例提供一种扫码识别方法、装置、设备及介质,以提高扫码识别的便捷性。
本说明书实施例提供的一种扫码识别方法,应用于扫码机具,所述扫码机具包括扫码部和手持部;所述扫码部包括第一扫码模组和第二扫码模组;所述第一扫码模组所在的所述扫码部的第一顶面与所述手持部的第二顶面之间形成第一夹角;所述第一顶面的一边与所述第二顶面相连;与所述第一顶面的一边相对的另一边与所述扫码部的第一侧面相连;所述扫码部的第一侧面上设置有所述第二扫码模组;所述扫码机具还包括传感模组。所述方法包括:获取所述传感模组检测得到的感应信号;判断所述感应信号对应的数值是否符合预设状态条件,得到判断结果;所述预设状态条件包括所述扫码机具处于目标工作模式时所述传感模组检测得到的感应信号对应的理论数值范围;当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别;所述目标工作模式对应的扫码模组为所述第一扫码模组或者所述第二扫码模组。
本说明书实施例提供的一种扫码识别装置,应用于扫码机具,所述扫码机具包括扫码部和手持部;所述扫码部包括第一扫码模组和第二扫码模组;所述第一扫码模组所在的所述扫码部的第一顶面与所述手持部的第二顶面之间形成第一夹角;所述第一顶面的一边与所述第二顶面相连;与所述第一顶面的一边相对的另一边与所述扫码部的第一侧面相连;所述扫码部的第一侧面上设置有所述第二扫码模组;所述扫码机具还包括传感模组。所述装置包括:感应信号获取模块,用于获取所述传感模组检测得到的感应信号;条件判断模块,用于判断所述感应信号对应的数值是否符合预设状态条件,得到判断结果;所述预设状态条件包括所述扫码机具处于目标工作模式时所述传感模组检测得到的感应信号对应的理论数值范围;模组启用模块,用于当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别;所述目标工作模式对应的扫码模组为所述第一扫码模组或者所述第二扫码模组。
本说明书实施例提供的一种扫码识别设备,所述设备应用于扫码机具,所述扫码机具包括扫码部和手持部;所述扫码部包括第一扫码模组和第二扫码模组;所述第一扫码模组所在的所述扫码部的第一顶面与所述手持部的第二顶面之间形成第一夹角;所述第一顶面的一边与所述第二顶面相连;与所述第一顶面的一边相对的另一边与所述扫码部的第一侧面相连;所述扫码部的第一侧面上设置有所述第二扫码模组;所述扫码机具还 包括传感模组。所述设备包括至少一个处理器以及与所述至少一个处理器通信连接的存储器,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:获取所述传感模组检测得到的感应信号;判断所述感应信号对应的数值是否符合预设状态条件,得到判断结果;所述预设状态条件包括所述扫码机具处于目标工作模式时所述传感模组检测得到的感应信号对应的理论数值范围;当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别;所述第一工作模式对应的扫码模组为所述第一扫码模组或者所述第二扫码模组。
本说明书实施例提供的一种计算机可读介质,其上存储有计算机可读指令,所述计算机可读指令可被处理器执行以实现一种扫码识别方法。
本说明书一个实施例实现了能够达到以下有益效果:本说明书实施例中提供的扫码识别方法可以根据扫码机具中传感模组的感应信号启动扫码机具中的第一扫码模组或者第二扫码模组进行扫码识别,使得扫码机具可自动适应需求,简化用户操作。
另一方面,本说明书实施例中的扫码机具包含两个扫码模组,也可满足用户在不同场所扫码的需求。并且,第一扫码模组位于扫码部的顶面,将扫码机具放置于收银台等位置上时,可以更符合消费者的使用习惯,提高使用的便捷性;第二扫码模组位于扫码部的侧面,也更方便店员手持使用扫码机具,进而可提高扫码识别的用户的便捷性。
附图说明
图1为本说明书实施例提供的一种扫码机具的示意图;
图2为本说明书实施例提供的一种扫码识别方法的流程示意图;
图3为本说明书实施例中提供的一种扫码识别方法的泳道图;
图4为本说明书实施例提供的一种扫码识别装置的结构示意图;
图5为本说明书实施例提供的一种扫码识别设备的结构示意图。
具体实施方式
为了解决现有技术中的缺陷,本方案给出了以下实施例:图1为本说明书实施例提供的一种扫码机具的示意图。如图1所示,该扫码机具100可以包括:扫码部110和手持部120;其中,扫码部110可以包括第一扫码模组111和第二扫码模组112;第一扫码模组111所在的扫码部的第一顶面113与手持部的第二顶面121之间形成第一夹角;第一顶面113的一边与第二顶面121相连;与第一顶面113的一边相对的另一边与扫码部的第一侧面114相连;扫码部的第一侧面114上设置有第二扫码模组112。
如图1所示,本说明书实施例提供的扫码机具还包括传感模组130,该传感模组130可以位于扫码机具的内部,也可位于扫码机具的壳体上。本说明书实施例中可以根据传感模组检测得到的感应信号,控制第一扫码模组以及第二扫码模组进行扫码识别。
本说明书实施例中第一扫码模组111可以用于识别第一距离范围内的第一待识别图像;第二扫码模组112可以用于识别第二距离范围内的第二待识别图像;第一距离范围的最小距离值可以小于第二距离范围中的最小距离值。实际应用中在进行支付时,可以使用第一扫码模组识别消费者近距离提供的支付码,还可以在进行商品统计时,使用第二扫码模组识别距离较远的商品条码,从而可以满足用户在不同场所扫码的需求。
并且,第一扫码模组位于扫码部的顶面,将扫码机具放置于收银台等位置上时,第 一扫码模组与放置面可以具有一定的夹角,可以更符合消费者的使用习惯,提高使用的便捷性;第二扫码模组位于扫码部的侧面,也更方便店员手持使用扫码机具。
如图1所示,本说明书实施例中的扫码机具的扫码部与手持部具有一定的夹角,为了便于使用,本说明书实施例中扫码机具放置于放置面时,第一顶面相对于放置面的倾斜角度可以小于或等于50度。手持部的底面与放置面的夹角可以小于或等于20度。
可选的,本说明书实施例中第一顶面相对于放置面的倾斜角度可以在45度以内;手持部的底面与放置面的夹角可以在18.5度以内。实际应用中,也可以结合扫码机具的侧面厚度确定扫码部以及手持部的倾斜角度,具体内容这里不作限定。
接下来,将针对说明书实施例提供的一种扫码识别方法结合附图进行具体说明。
图2为本说明书实施例提供的一种扫码识别方法的流程示意图。从程序角度而言,流程的执行主体可以为搭载于应用服务器的程序或应用客户端,从硬件角度而言,该流程的执行主体可以为如图1所示的扫码机具的控制器或者处理器。
如图2所示,该流程可以包括以下步骤:步骤202:获取所述传感模组检测得到的感应信号。
本说明书实施例中的扫码机具中可以包含传感模组,可以用于检测感应信号,该感应信号可以反映扫码机具所处的位置状态。
步骤204:判断所述感应信号对应的数值是否符合预设状态条件,得到判断结果;所述预设状态条件包括所述扫码机具处于目标工作模式时所述传感模组检测得到的感应信号对应的理论数值范围。
步骤206:当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别;所述目标工作模式对应的扫码模组为所述第一扫码模组或者所述第二扫码模组。
本说明书实施例中的扫码机具可以作为手持式机具进行扫码识别,也可以放置在桌面等位置作为固定式机具进行扫码识别。扫码机具中的两个扫码模组可以分别对应不同的工作模式。实际应用中,当扫码机具放置于桌面等放置位置处,处于非手持状态时,可以启用第一扫码模组进行扫码识别;当用户手持扫码机具进行扫码识别时,扫码机具处于手持状态,可以启动第二扫码模组进行扫码识别。
本说明书实施例中可以根据传感模组检测得到的第一感应信号,确定扫码机具的工作模式,对应的启用第一扫码模组或者所述第二扫码模组进行扫码识别。
本说明书实施例中提供的扫码识别方法可以根据扫码机具中传感模组的感应信号启动扫码机具中的第一扫码模组或者第二扫码模组进行扫码识别,使得扫码机具可自动适应需求,简化用户操作。并且,本说明书实施例中的扫码机具包含两个扫码模组,也可满足用户在不同场所扫码的需求,可提高扫码识别的用户的便捷性。
应当理解,本说明书一个或多个实施例所述的方法其中部分步骤的顺序可以根据实际需要相互交换,或者其中的部分步骤也可以省略或删除。
基于图2的方法,本说明书实施例还提供了该方法的一些具体实施方案。
本说明书实施例中传感模组可以包含传感器,可以根据传感器获取到的感应信号确定扫码机具的工作模式。
可选的,本说明书实施例中所述目标工作模式对应的扫码模组可以为所述第一扫码模组,所述传感模组具体包括可以加速度传感器;所述判断所述感应信号对应的数值是否符合预设状态条件,具体可以包括:判断所述加速度传感器检测得到的加速度数值是 否小于或等于第一预设加速度阈值;所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体可以包括:若所述加速度传感器检测得到的加速度数值小于或等于第一预设加速度阈值,则启用所述第一扫码模组进行扫码识别。
实际应用中,当用户拿起扫码机具进行扫码的过程中,扫码机具是运动的,具有一定的加速度;当扫码机具放置在收银台等固定放置面上时,扫码机具是相对静止的,此时的加速度很小,甚至接近于零。本说明书实施例扫码机具中可以包含加速度传感器,根据加速度传感器检测到的传感信号判断扫码机具是否放置在收银台等固定放置面上,当加速度传感器检测得到的加速度数值小于或等于第一预设加速度阈值,可以确定扫码机具放置在放置面上,处于非手持状态,可以启用第一扫码模组进行扫码识别。
实际应用中,当扫码机具放置在放置面上时,由于重力的作用,扫码机具与放置面之间存在的一定的压力,本说明书实施例中也可以根据压力感应信息判断扫码机具是否处于非手持状态。可选的,本说明书实施例中所述目标工作模式对应的扫码模组为所述第一扫码模组,所述传感模组具体包括压力传感器;该压力传感器可以位于扫码机具与放置面接触的部位,例如,可以位于扫码机具的底部。
其中,所述判断所述感应信号对应的数值是否符合预设状态条件,具体可以包括:判断所述压力传感器检测得到的压力数值是否大于或等于第一预设压力阈值;所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体包括:若所述压力传感器检测得到的压力数值大于或等于第一预设压力阈值,则启用所述第一扫码模组进行扫码识别。
实际应用中,扫码的手持部的外表面也可以包含压力传感器,用于感应用户手持扫码机具时,扫码机具与用户手部的压力。其中,当用户手持扫码机具时,压力传感器可以检测到一定的压力时,可以确定扫码机具处于手持状态,可以启用第二扫码模组进行扫码识别;当扫码机具检测到的压力值较小甚至为零时,可以确定扫码机具处于非手持状态,可以启用第一扫码模组进行扫码识别。
考虑到实际应用中,用户手持扫码机具进行扫码时,扫码机具会与用户手部接触,而用户手部是具有一定温度的,本说明书实施例中还可以根据温度信号确定扫码模组的工作状态。可选的,本说明书实施例中所述目标工作模式对应的扫码模组为所述第一扫码模组,所述传感模组具体可以包括温度传感器;所述判断所述感应信号对应的数值是否符合预设状态条件,具体可以包括:判断所述温度传感器检测得到的温度数值是否小于或等于第一预设温度阈值;所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体可以包括:若所述温度传感器检测得到的温度数值小于或等于第一预设温度阈值,则启用所述第一扫码模组进行扫码识别。
本说明书实施例中温度传感器可以位于手持部的外表面,可以分布在多个位置,以提高检测的准确性。例如,可以位于手持部的底面、侧面等位置,实际应用中可以根据需求设定具体的安装位置,这里不作具体限定。
实际应用中,当扫码机具放置于放置面上时,周围的温度为环境温度,一般环境温度低于人体温度,可以根据人体温度设定第一预设温度阈值,当温度传感器检测得到的温度数值小于或等于第一预设温度阈值,可以确定扫码机具放置于放置面上,处于非手持状态,可以启用第一扫码模组进行扫码识别。
本说明书实施例中还可以根据扫码机具与放置面的距离,判断扫码机具是否处于放置面上,进而控制扫码模组的工作状态。可选的,本说明书实施例中所述目标工作模式 对应的扫码模组为所述第一扫码模组,所述传感模组具体可以包括距离传感器;所述判断所述感应信号对应的数值是否符合预设状态条件,具体可以包括:判断所述距离传感器检测得到的距离数值是否小于或等于第一预设距离阈值;所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体包括:若所述距离传感器检测得到的距离数值小于或等于第一预设距离阈值,则启用所述第一扫码模组进行扫码识别。
实际应用中,距离传感器可以包括红外传感器,可以位于扫码机具的底部,用于检测扫码机具与放置面之间的距离。当扫码机具与放置面之间的距离较小,可以确定扫码机具放置在放置面上,处于非手持状态,可以启用第一扫码模组进行扫码识别。
本说明书实施例中的距离传感器还可以包含用于检测用户手部与扫码机具的距离传感器,该距离传感器可以位于扫码机具的侧面。当用户拿起扫码机具时,可以通过距离传感器的信号确定用户在靠近扫码机具,当距离传感器检测到的距离数值较小时,可以确定用户手持扫码机具;当扫码机具放置在放置面上时,距离传感器检测到的距离数值较大,可以启用第一扫码模组。实际应用中,可以根据传感器的位置、类型等设定模组启用的判断条件,具体内容这里不再一一列举。
实际应用中,在用户手持扫码机具的过程中扫码机具会存在一定角度倾斜,本说明书实施例中还可以根据扫码机具的角度,确定扫码模组的工作状态。可选的,本说明书实施例中所述目标工作模式对应的扫码模组为所述第一扫码模组,所述传感模组具体可以包括角度传感器;所述判断所述感应信号对应的数值是否符合预设状态条件,具体可以包括:判断所述角度传感器检测得到的角度数值是否小于或等于第一预设角度阈值;所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体可以包括:若所述角度传感器检测得到的角度数值小于或等于预设角度阈值,则启用所述第一扫码模组进行扫码识别。
实际应用中,可以将扫码机具放置于放置面上时的角度确定为基准角度,当扫码机具被放置在放置面上时,扫码机具的倾斜角度较小,当扫码机具被拿起时,扫码机具会产生较大的倾斜角度,可以根据角度传感器检测得到的角度数值控制扫码模组的启用情况。其中,角度传感器检测到的角度数据也可以为两个时刻扫码机具的角度差值,当角度差值较大时,可以确定扫码机具处于移动状态,未位于放置面上,处于手持状态;当角度差值较小时,可以确定扫码机具相对静止,位于放置面上,处于非手持状态。
同理,本说明书实施例中的目标工作模式对应的扫码模组也可以为扫码机具的第二扫码模组,也可以通过加速度传感器、压力传感器、温度传感器、距离传感器、角度传感器等传感器检测到的感应信号,控制第二扫码模组的工作状态。
可选的,本说明书实施例中所述目标工作模式对应的扫码模组可以为所述第二扫码模组;所述传感模组具体可以包括加速度传感器;所述判断所述感应信号对应的数值是否符合预设状态条件,具体可以包括:判断所述加速度传感器检测得到的加速度数值是否大于或等于第二预设加速度阈值;所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体可以包括:若所述加速度传感器检测得到的加速度数值大于或等于第二预设加速度阈值,则启用所述第二扫码模组进行扫码识别。
实际应用中,当用户将放置在桌面等位置的扫码机具拿起时,扫码机具会产生一定的加速度,并且用户手持扫码机具的过程中扫码机具通常也是会移动的,进而本说明书实施例中可以根据加速度传感器检测扫码机具的加速度,当加速度数值大于或等于第二预设加速度阈值时,则可以启用第二扫码模组进行扫码识别。
可选的,本说明书实施例中所述目标工作模式对应的扫码模组可以为所述第二扫码模组,所述传感模组具体可以包括压力传感器;所述判断所述感应信号对应的数值是否符合预设状态条件,具体可以包括:判断所述压力传感器检测得到的压力数值是否小于或等于第二预设压力阈值;所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体可以包括:若所述压力传感器检测得到的压力数值小于或等于第二预设压力阈值,则启用所述第二扫码模组进行扫码识别。
其中,压力传感器可以检测扫码机具与放置面之间的压力,当用户手持扫码机具时,扫码机具与放置面之间的压力较小,可以近似理解为压力为零,可以启用第二扫码模组进行扫码识别。
实际应用中,扫码的手持部的外表面也可以包含压力传感器,用于检测用户手持扫码机具时扫码机具与用户手部之间的压力。其中,当用户手持扫码机具时,压力传感器可以检测到一定的压力时,例如,当该压力传感器检测到的压力数值大于或等于第三预设压力阈值时,可以确定扫码机具处于手持状态,可以启用第二扫码模组进行扫码识别。
可选的,本说明书所述目标工作模式对应的扫码模组可以为所述第二扫码模组,所述传感模组具体可以包括温度传感器;所述判断所述感应信号对应的数值是否符合预设状态条件,具体可以包括:判断所述温度传感器检测得到的温度数值是否大于或等于第二预设温度阈值;所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体可以包括:若所述温度传感器检测得到的温度数值大于或等于第二预设温度阈值,则启用所述第二扫码模组进行扫码识别。
实际应用中,温度传感器可以检测手持扫码机具的手部的温度,当温度传感器检测得到的温度数值大于或等于第二预设温度阈值,可以确定扫码机具处于手持状态,可以启用第二扫码模组进行扫码识别。其中,可以根据人体温度以及环境温度确定第二预设温度阈值。
可选的,本说明书实施例中所述目标工作模式对应的扫码模组可以为所述第二扫码模组,所述传感模组具体可以包括距离传感器;所述判断所述感应信号对应的数值是否符合预设状态条件,具体可以包括:判断所述距离传感器检测得到的距离数值是否大于或等于第二预设距离阈值;所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体可以包括:若所述距离传感器检测得到的距离数值大于或等于第二预设距离阈值,则启用所述第二扫码模组进行扫码识别。
本说明书实施例中距离传感器可以包括红外传感器,可以位于扫码机具的底部,当用户手持扫码机具时,距离传感器可以检测扫码机具与地面、桌面等位置之间的距离,若距离传感器检测得到的距离数值大于或等于第二预设距离阈值,可以确定扫码机具处于手持状态,可以启用第二扫码模组进行扫码识别。
本说明书实施例中的距离传感器还可以包含用于检测用户手部与扫码机具的距离传感器,该距离传感器可以位于扫码机具的侧面。当用户拿起扫码机具时,可以通过距离传感器的信号确定用户在靠近扫码机具,当距离传感器检测到的距离数值较小时,即,若该距离传感器检测得到的距离数值小于或等于第三预设距离阈值,可以确定用户手持扫码机具,也可以启用第二扫码模组进行扫码识别。
本说明书实施例中也可以根据角度传感器的感应信号,控制第二扫码模组的工作状态。其中,目标工作模式对应的扫码模组可以为所述第二扫码模组,所述传感模组具体 可以包括角度传感器;所述判断所述感应信号对应的数值是否符合预设状态条件,具体可以包括:判断所述角度传感器检测得到的角度数值是否大于或等于第二预设角度阈值;
所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体可以包括:若所述角度传感器检测得到的角度数值大于或等于第二预设距离阈值,则启用所述第二扫码模组进行扫码识别。
为提高扫码机具的工作模式的稳定性,本说明书实施例中还可以检测感应信号对应的数值符合预设状态条件的持续时长,当该持续时长符合预设时长条件时,可以启用对应的扫码模组进行扫码识别。
例如,当加速度传感器检测得到的加速度数值小于或等于第一预设加速度阈值,且加速度传感器检测得到的加速度数值小于或等于第一预设加速度阈值的持续时长大于第一预设持续时长时,可以确定扫码机具处于非手持状态,可以启用第一扫码模组进行扫码识别。
又如,当加速度传感器检测得到的加速度数值大于或等于第二预设加速度阈值,且加速度传感器检测得到的加速度数值大于或等于第一预设加速度阈值的持续时长大于第二预设持续时长时,可以确定扫码机具处于手持状态,可以启用第二扫码模组进行扫码识别。
本说明书实施例中扫码机具中可以包含一种传感器,也可以包含多种传感器,具体的,本说明书实施例中的传感模组可以包含加速度传感器、压力传感器、温度传感器、距离传感器、角度传感器中至少一种。为提高扫码机具的稳定性,可以结合多种传感器检测到的感应信号确定扫码机具的目标工作模式。
可以理解的是,上述预设加速度阈值、预设压力阈值、预设距离阈值、预设角度阈值等预设条件的具体数值可以根据实际需求进行设定,这里不作具体限定。
如图1所示,该扫码机具的第一扫码模组可以包括第一摄像头115,扫码部的第一顶面上包含用于保护第一摄像头的摄像头镜片116,其中,第一顶面上可以包含顶面开口,摄像头镜片116可以固定于顶面开口中,扫码机具外部的光可以通过顶面开口进入所述第一摄像头,以便第一摄像头可以采集位于第一顶面附近的图像。其中,第一摄像头与摄像头镜片之间还可以包含杯罩,以便提高第一摄像头采集图像的效果,也可以保护扫码机具的内部结构。
本说明书实施例中的杯罩可以包括渐缩形壳体,该渐缩形壳体为底小顶大的壳体形状,类似于碗状,其中,该渐缩形壳体的底部的第一开口可以与第一扫码模组相连,以便扫码机具外部的光进入第一扫码模组的镜头,第一摄像头可通过第一开口采集待识别图像。该渐缩形壳体的顶部的第二开口可以与第一顶面的顶面开口相连;扫码机具外部的光通过顶面开口、第二开口以及第一开口进入第一扫码模组;第一开口的面积小于第二开口的面积。
为提供用户使用的便捷性,本说明书实例中摄像头镜片116可以为颜色可变的隔离屏,其中,当扫码机具处于非手持状态时,隔离屏的透光率可以大于或等于第一透光率;当扫码机具处于手持状态时,隔离屏的透光率可以小于或等于第二透光率。其中第一透光率可以大于第二透光率。可选的,第一透光率可以为60%~100%,第二透光率可以为0%~30%。
实际应用中,当扫码机具处于手持状态时,隔离屏的透光率可以在20%以下;当扫码机具处于非手持状态时,隔离屏的透光率可以在80%以上。从而当手持扫描机具进行扫码时,隔离屏可以屏蔽进入第一扫码模组的光线,使用第二扫码模组进行扫码;当扫 码机具位于桌面等固定物上处于非手持状态时,可以使用第一扫码模组进行图像采集。
可选的,本说明书实施例中所述扫码机具还可以包括隔离屏;所述隔离屏可以位于所述第一顶面;所述得到判断结果之后,还可以包括:当所述判断结果表示所述感应信号对应的数值符合预设状态条件,控制所述隔离屏的透光率。
针对两个扫码模组的工作状态,隔离屏可以呈现不同的隔离状态。
可选的,本说明书实施例中所述目标工作模式对应的扫码模组为所述第一扫码模组;所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,控制所述隔离屏的透光率,具体可以包括:所述当所述判断结果表示所述感应信号对应的数值符合第一预设状态条件,控制所述隔离屏的透光率大于或等于第一透光率;所述第一透光率大于或等于60%。其中,第一预设条件可以表示扫码机具处于非手持状态,启用第一扫码模组进行扫码识别的条件。
可选的,本说明书实施例中所述目标工作模式对应的扫码模组可以为所述第一扫码模组;所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,控制所述隔离屏的透光率,具体可以包括:当所述判断结果表示所述感应信号对应的数值符合第二预设状态条件,控制所述隔离屏的透光率小于或等于第二透光率;所述第二透光率小于或等于30%。其中,第二预设条件可以表示扫码机具处于手持状态,启用第二扫码模组进行扫码识别的条件。
本说明书实施例中所述扫码机具还包括指示灯,所述指示灯位于所述第一顶面;所述得到判断结果之后,还包括:当所述判断结果表示所述感应信号对应的数值符合预设状态条件,控制所述指示灯按照预设频率闪烁。其中,指示灯可以用于引导用户使用扫码机具中处于可使用状态的扫码模组进行扫码识别。
本说明书实施例中指示灯可以包括发光灯圈,如图1所示,本说明书实施例中提供的扫码机具的扫码部中还可以包含发光灯圈117,发光灯圈117可以位于第一顶面的顶面开口的四周,可以用于引导用户在该位置出示二维码。实际应用中,当第一扫码模组处于可工作状态时,发光灯圈可以按照第一预设频率发出第一预设颜色的灯光,以便引导用户在扫码机具处扫码;当扫码成功时,发光灯圈也可以按照第二预设频率发出第二预设颜色的灯光,以提示用户扫码成功;当扫码失败时,发光灯圈也可以按照第三预设频率发出第三预设颜色的灯光,以提示用户扫码失败。
如图1所示,本说明书实施例中的扫码机具的手持部可以包括按键组件122和显示组件123;其中按键组件和显示组件位于手持部的第二顶面;所述按键组件中包括第一按键,用于控制所述扫码机具获取待识别图像。
实际应用中,为避免不必要的图像的打扰,当用户需要使用扫码机具扫码时,可以先点击第一按键或者保持第一按键处于被操作状态时,再进行扫码。例如,用户通过扫码机具扫描待入库的商品上的条形码时,可以点击或者长摁第一按键执行扫码流程,当用户再次点击第一按键或者松开第一按键后,扫码部可以不再采集图像。
本说明书实施例中按键组件可以包括若干个按键,可以包括功能键,也可以包括数字键。为便于用户查看货品,按键组件中可以包含用于对商品库里的商品管理进行管理的商品按键,例如查看商品库中的商品数量、单价、总价等;还可以包含用于查看某笔交易的订单详情的订单按键,例如,可以通过该按键获取交易的订单详情信息;还可以包括用于查看统计信息的统计按键,例如,可以查看某时间段的入库的商品统计信息等等;还可以包含用于查看系统各个功能的菜单按键等等。
可选的,本说明书实施例提供的扫码识别方法还可以包括:获取功能指令;所述功 能指令是基于用于对扫码机具中的功能键的操作生成的;基于所述功能指令,发送功能信息获取请求;获取所述功能指令对应的功能信息。
其中,功能键包括用于对商品库里的商品管理进行管理的商品按键、用于查看某笔交易的订单详情的订单按键、用于查看统计信息的统计按键、用于查看系统各个功能的菜单按键中任一种按键。
为避免因根据传感模组检测得到的感应信号确定出的目标工作模式有误,也为了使用户可以更方便的使用扫码机具中的扫码模组进行扫码识别,本说明书实施例中的扫码机具还可以包含扫码模组切换控件,可以通过该扫码模组切换控件切换使用两个扫码模组。例如,在第一扫码模组处于可工作状态时,通过该扫码模组切换控件可以将第一扫码模组切换至非可工作状态,将第二扫码模组切换至可工作状态,可使用第二扫码模组采集待识别图像;同理,在第二扫码模组处于可工作状态时,通过该扫码模组切换控件可以将第二扫码模组切换至非可工作状态,将第一扫码模组切换至可工作状态,可使用第一扫码模组采集待识别图像。
其中,扫码模组切换控件可以为按键组件中的按键,也可为独立设置于扫码机具侧面的按钮。实际应用中,扫码模组切换控件可以为一个控件,通过该控件可以控制第一扫码模组和第二扫码模组的工作状态;扫码模组切换控件可以为两个控件,其中可以包含用于启动第一扫码模组的第一扫码模组切换控件,也可以包含用于启动第二扫码模组的第二扫码模组切换控件。可以通过操作第一扫码模组切换控件将第一扫码模组切换至可工作状态,可通过第一扫码模组采集待识别图像;可以通过操作第二扫码模组切换控件将第二扫码模组切换至可工作状态,可通过第二扫码模组采集待识别图像。
可选的,本说明书实施例提供的方法还可以包括:获取模组切换指令;所述模组切换指令是基于用于对扫码模组切换控件的操作生成的;根据所述模组切换指令,启用所述第一扫码模组或者所述第二扫码模组进行扫码识别。
实际应用中,第一扫码模组和第二扫码模组可同时处于可工作状态,也可以在同一时刻启动第一扫码模组和第二扫码模组中的一个扫码模组工作,具体方式可根据实际需求进行设定。
本说明书实施例中显示组件可以包含LCD显示屏,用于显示扫码机具接收到的信息。实际应用中,用于对于扫码机具中的按键进行操作得到的相应信息也可以在显示屏中显示。为便于用户操作,显示组件还可以包含触控面板,以便用户可以通过触控面板对扫码机具进行操作。
本说明书实施例中的第二扫码模组可以包含第二摄像头。为提高第二扫码模组的工作效果,第二扫码模组还可以包含补光灯,补光灯可以位于第二摄像头的一侧,以便在第二扫码模组工作时,给第二摄像头的拍摄区域补光,获取清晰度较高的图像,提高识别效率。
可选的,本说明书实施例中提供的扫码识别方法还可以包括:基于所述第一确认指令,发送补光控制信号至所述补光灯,以便所述补光灯进行补光。
为便于用户使用,第二扫码模组还可以包含定位灯,可位于第二摄像头的另一侧,以便对待识别图像进行定位。其中,定位灯可以采用红外定位灯。实际应用中,扫码机具的外壳中可以包含用于固定补光灯、定位灯等部件的通孔,还可以包含用于第二摄像头采集扫码机具外部的图像的通孔。具体通孔大小可以根据实际需求进行设定,这里不作具体限定。
可选的,本说明书实施例中提供的扫码识别方法还可以包括:基于所述第一确认指 令,发送定位控制信号至所述定位灯,以便所述定位灯发出定位灯光。
考虑到实际应用中,消费者等第一用户在进行支付时,通常第一用户距离扫码机具的距离较近,或者第一用户可能会将出示的支付码等图像贴近扫码机具进行识别;而当店员等第二用户进行商品入库、出库等操作时,第二用户更习惯手持移动扫码机具对商品上的条码进行识别。为便于不同用户的使用,本说明书实施例中,当扫码机具放置于桌面等固定的放置面时,可以采用第一扫码模组获取图像;用户手持扫码机具进行扫码时,可以采用第二扫码模组获取图像。其中第一摄像头的视场(FOV,Field of View)可以大于或等于所述第二摄像头的视场。
可选的,本说明书实施例中第一摄像头的视场可以在85至120度之间,扫码距离可以在0至15厘米之间;第二摄像头的视场可以在30至45度之间,扫码距离可以在5至40厘米之间。实际应用中可以根据实际需求设定摄像头,这里不作具体限定。
本说明书实施例中的扫码机具还可包含SIM(Subscriber Identity Module,客户识别模块)卡槽,可用于放置SIM卡,可位于扫码机具的侧面。扫码机具的外壳上还可以包含若干通孔,通孔可与位于扫码机具内部的扬声器对应,以便散播扬声器播放的声音。
可选的,本说明书实施例中提供的扫码识别方法还可以包括:发送播报指令至扬声器;以便所述扬声器进行播报。
实际应用中,扬声器可以播报表示扫码识别结果的信息,如表示扫码成功的信息,表示扫码失败的信息等等。
本说明书实施例提供的扫码机具还可以包含防滑垫,防滑垫可位于扫码机具的底部外表面,其中,可以固定于底部与放置面接触的外表面部分,可在上底部和下底部分别固定设置。
本说明书实施例中的扫码机具还可以包含电源键,电源键可位于扫码机具的侧面。本说明书实施例中的扫码机具还可以包含数据接口,可位于扫码机具的底部,用于将扫码机具与其他设备连接。其中数据接口可以包括防水Type-c接口,可用于对扫码机具充电,也可以进行数据传输。实际应用中,电源键、SIM卡槽、数据接口等部件可分别位于扫码机具的不同侧面,也可位于相同的侧面,具体位置可根据实际需求进行设定,这里不作具体限定。
可选的,本说明书实施例中提供的扫码识别方法还可以包括:获取第一扫码模组或者所述第二扫码模组采集的待识别图像;解析所述待识别图像,得到解析信息;发送所述解析信息至服务器。其中,服务器可以根据解析信息进行业务处理,例如可以进行支付业务处理,商品进出库处理等等。
可选的,本说明书实施例中的扫码识别方法还可以包括:获取服务器发送的业务处理结果。
为便于用户手持,本说明书实施例提供的扫码机具的底部壳体可以为上宽下窄的壳体。其中,底面也可以具有预设弧度,使得手持扫码机具时底面可与手掌处贴合;底部壳体中的底面与四周的侧面相连的边也可以设置预设弧度角,使底面与侧面平滑连接。
本说明书实施例中第一扫码模组可以包含第一摄像头控制模块,用于控制第一摄像头采集图像;第二扫码模组可以包含第二摄像头控制模块,用于控制第二摄像头采集图像。其中,控制模块可以与第一摄像头控制模块以及第二摄像头控制模块相连。
本说明书实施例中第一扫码模块可以处理包含二维码的待识别图像,第二扫码模块可以处理包含一维码的待识别图像,为提高识别的准确性,本说明书实施例中的扫码机具可以包括第一解码单元,其中,第一解码单元与第一扫码模组相连,可以用于解析第 一扫码模组采集的第一待识别图像。
本说明书实施例提供的扫码机具还可以包括第二解码单元,其中,第二解码单元可以与第二扫码模组相连,用于解析第二扫码模组采集的第二待识别图像;第二解码单元的算力可以大于或等于第一解码单元的算力。
本说明书实施例中采用两个解码单元分别处理第一扫码模组和第二扫码模组获取的待识别图像,无需考虑解码芯片的兼容性,也可降低扫码机具的成本。
可选的,本说明书实施例中上述解析信息可以包括第一解码单元提供的第一解析信息和/或第二解码单元提供的第二解析信息。
为便于扫码机具的使用,本说明书实施例中的扫码机具还可以包括通讯模块,可以用于将图像解析信息发送至服务器或者其他信息处理设备。
实际应用中,通讯模块可以包括无线通讯模块,例如蓝牙模块、WiFi(无线网络)模块、RFID(射频识别)模块、移动通讯模块等等。
为更清楚的说明本说明书实施例中提供的扫码识别方法,图3为本说明书实施例中提供的一种扫码识别方法的泳道图。如图3所示,该方法可以包括感应信息获取阶段以及模组启动阶段,具体可以包括:步骤302:扫码机具中的传感模组检测感应信号。
步骤304:控制器获取传感模组检测到的感应信号。
步骤306:根据传感模组检测到的感应信号,确定感应信号对应的数值符合第一预设状态条件。第一预设状态条件可以表示用于启用第一扫码模组的条件。
步骤308:当确定感应信号对应的数值符合第一预设状态条件时,可以控制隔离屏的透光率大于或等于第一透光率,使得扫码机具外部的光可以进入第一扫码模组的摄像头中。
步骤310:当确定感应信号对应的数值符合第一预设状态条件时,可以启用第一扫码模组进行扫码识别。
步骤312:根据传感模组检测到的感应信号,确定感应信号对应的数值符合第二预设状态条件。第二预设状态条件可以表示用于启用第二扫码模组的条件。
步骤314:当确定感应信号对应的数值符合第二预设状态条件时,可控制隔离屏的透光率小于或等于第二透光率,可避免扫码机具外部的光进入第一扫码模组的摄像头中。第一扫码模组对应的扫码口可显示为黑色或者深色,可提示用户该扫码口不可用。
步骤316:当确定感应信号对应的数值符合第二预设状态条件时,可以启用第二扫码模组进行扫码识别。
基于同样的思路,本说明书实施例还提供了上述方法对应的装置。该装置可以应用于扫码机具,所述扫码机具包括扫码部和手持部;所述扫码部包括第一扫码模组和第二扫码模组;所述第一扫码模组所在的所述扫码部的第一顶面与所述手持部的第二顶面之间形成第一夹角;所述第一顶面的一边与所述第二顶面相连;与所述第一顶面的一边相对的另一边与所述扫码部的第一侧面相连;所述扫码部的第一侧面上设置有所述第二扫码模组;所述扫码机具还包括传感模组。
图4为本说明书实施例提供的一种扫码识别装置的结构示意图。如图4所示,该装置可以包括:感应信号获取模块402,用于获取所述传感模组检测得到的感应信号;条件判断模块404,用于判断所述感应信号对应的数值是否符合预设状态条件,得到判断结果;所述预设状态条件包括所述扫码机具处于目标工作模式时所述传感模组检测得到的感应信号对应的理论数值范围;模组启用模块406,用于当所述判断结果表示所述感 应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别;所述目标工作模式对应的扫码模组为所述第一扫码模组或者所述第二扫码模组。
基于同样的思路,本说明书实施例还提供了上述方法对应的设备。该设备应用于扫码机具,所述扫码机具包括扫码部和手持部;所述扫码部包括第一扫码模组和第二扫码模组;所述第一扫码模组所在的所述扫码部的第一顶面与所述手持部的第二顶面之间形成第一夹角;所述第一顶面的一边与所述第二顶面相连;与所述第一顶面的一边相对的另一边与所述扫码部的第一侧面相连;所述扫码部的第一侧面上设置有所述第二扫码模组;所述扫码机具还包括传感模组。
图5为本说明书实施例提供的一种扫码识别设备的结构示意图。如图5所示,设备500可以包括:至少一个处理器510;以及,与所述至少一个处理器通信连接的存储器530;其中,所述存储器530存储有可被所述至少一个处理器510执行的指令520,所述指令被所述至少一个处理器510执行,以使所述至少一个处理器510能够:获取所述传感模组检测得到的感应信号;判断所述感应信号对应的数值是否符合预设状态条件,得到判断结果;所述预设状态条件包括所述扫码机具处于目标工作模式时所述传感模组检测得到的感应信号对应的理论数值范围;当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别;所述第一工作模式对应的扫码模组为所述第一扫码模组或者所述第二扫码模组。
基于同样的思路,本说明书实施例还提供了上述方法对应的计算机可读介质。计算机可读介质上存储有计算机可读指令,所述计算机可读指令可被处理器执行以实现上述扫码识别方法:本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于图5所示的设备而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字符系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机 可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字符助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。 计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字符多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带式磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。

Claims (18)

  1. 一种扫码识别方法,应用于扫码机具,所述扫码机具包括扫码部和手持部;所述扫码部包括第一扫码模组和第二扫码模组;所述第一扫码模组所在的所述扫码部的第一顶面与所述手持部的第二顶面之间形成第一夹角;所述第一顶面的一边与所述第二顶面相连;与所述第一顶面的一边相对的另一边与所述扫码部的第一侧面相连;所述扫码部的第一侧面上设置有所述第二扫码模组;所述扫码机具还包括传感模组;
    所述方法包括:
    获取所述传感模组检测得到的感应信号;
    判断所述感应信号对应的数值是否符合预设状态条件,得到判断结果;所述预设状态条件包括所述扫码机具处于目标工作模式时所述传感模组检测得到的感应信号对应的理论数值范围;
    当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别;所述目标工作模式对应的扫码模组为所述第一扫码模组或者所述第二扫码模组。
  2. 根据权利要求1所述的方法,所述目标工作模式对应的扫码模组为所述第一扫码模组,所述传感模组具体包括加速度传感器;
    所述判断所述感应信号对应的数值是否符合预设状态条件,具体包括:
    判断所述加速度传感器检测得到的加速度数值是否小于或等于第一预设加速度阈值;
    所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体包括:
    若所述加速度传感器检测得到的加速度数值小于或等于第一预设加速度阈值,则启用所述第一扫码模组进行扫码识别。
  3. 根据权利要求1所述的方法,所述目标工作模式对应的扫码模组为所述第一扫码模组,所述传感模组具体包括压力传感器;
    所述判断所述感应信号对应的数值是否符合预设状态条件,具体包括:
    判断所述压力传感器检测得到的压力数值是否大于或等于第一预设压力阈值;
    所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体包括:
    若所述压力传感器检测得到的压力数值大于或等于第一预设压力阈值,则启用所述第一扫码模组进行扫码识别。
  4. 根据权利要求1所述的方法,所述目标工作模式对应的扫码模组为所述第一扫码模组,所述传感模组具体包括温度传感器;
    所述判断所述感应信号对应的数值是否符合预设状态条件,具体包括:
    判断所述温度传感器检测得到的温度数值是否大于或等于第一预设温度阈值;
    所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体包括:
    若所述温度传感器检测得到的温度数值小于或等于第一预设温度阈值,则启用所述第一扫码模组进行扫码识别。
  5. 根据权利要求1所述的方法,所述目标工作模式对应的扫码模组为所述第一扫码模组,所述传感模组具体包括距离传感器;
    所述判断所述感应信号对应的数值是否符合预设状态条件,具体包括:
    判断所述距离传感器检测得到的距离数值是否小于或等于第一预设距离阈值;
    所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体包括:
    若所述距离传感器检测得到的距离数值小于或等于第一预设距离阈值,则启用所述 第一扫码模组进行扫码识别。
  6. 根据权利要求1所述的方法,所述目标工作模式对应的扫码模组为所述第一扫码模组,所述传感模组具体包括角度传感器;
    所述判断所述感应信号对应的数值是否符合预设状态条件,具体包括:
    判断所述角度传感器检测得到的角度数值是否小于或等于第一预设角度阈值;
    所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体包括:
    若所述角度传感器检测得到的角度数值小于或等于预设角度阈值,则启用所述第一扫码模组进行扫码识别。
  7. 根据权利要求1所述的方法,所述目标工作模式对应的扫码模组为所述第二扫码模组;所述传感模组具体包括加速度传感器;
    所述判断所述感应信号对应的数值是否符合预设状态条件,具体包括:
    判断所述加速度传感器检测得到的加速度数值是否大于或等于第二预设加速度阈值;
    所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体包括:
    若所述加速度传感器检测得到的加速度数值大于或等于第二预设加速度阈值,则启用所述第二扫码模组进行扫码识别。
  8. 根据权利要求1所述的方法,所述目标工作模式对应的扫码模组为所述第二扫码模组,所述传感模组具体包括压力传感器;
    所述判断所述感应信号对应的数值是否符合预设状态条件,具体包括:
    判断所述压力传感器检测得到的压力数值是否小于或等于第二预设压力阈值;
    所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体包括:
    若所述压力传感器检测得到的压力数值小于或等于第二预设压力阈值,则启用所述第二扫码模组进行扫码识别。
  9. 根据权利要求1所述的方法,所述目标工作模式对应的扫码模组为所述第二扫码模组,所述传感模组具体包括温度传感器;
    所述判断所述感应信号对应的数值是否符合预设状态条件,具体包括:
    判断所述温度传感器检测得到的温度数值是否大于或等于第二预设温度阈值;
    所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体包括:
    若所述温度传感器检测得到的温度数值大于或等于第二预设温度阈值,则启用所述第二扫码模组进行扫码识别。
  10. 根据权利要求1所述的方法,所述目标工作模式对应的扫码模组为所述第二扫码模组,所述传感模组具体包括距离传感器;
    所述判断所述感应信号对应的数值是否符合预设状态条件,具体包括:
    判断所述距离传感器检测得到的距离数值是否大于或等于第二预设距离阈值;
    所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别,具体包括:
    若所述距离传感器检测得到的距离数值大于或等于第二预设距离阈值,则启用所述第二扫码模组进行扫码识别。
  11. 根据权利要求1所述的方法,所述手持部包括按键组件;所述按键组件中包括第一按键;
    所述启用所述目标工作模式对应的扫码模组进行扫码识别,具体包括:
    获取第一确认指令;所述第一确认指令是基于用户对所述第一按键的操作生成的;
    基于所述第一确认指令,启用所述目标工作模式对应的扫码模组进行扫码识别。
  12. 根据权利要求1所述的方法,所述扫码机具还包括隔离屏;所述隔离屏位于所述第一顶面;
    所述得到判断结果之后,还包括:
    当所述判断结果表示所述感应信号对应的数值符合预设状态条件,控制所述隔离屏的透光率。
  13. 根据权利要求12所述的方法,所述目标工作模式对应的扫码模组为所述第一扫码模组;
    所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,控制所述隔离屏的透光率,具体包括:
    所述当所述判断结果表示所述感应信号对应的数值符合第一预设状态条件,控制所述隔离屏的透光率大于或等于第一透光率;所述第一透光率大于或等于60%。
  14. 根据权利要求12所述的方法,所述目标工作模式对应的扫码模组为所述第一扫码模组;
    所述当所述判断结果表示所述感应信号对应的数值符合预设状态条件,控制所述隔离屏的透光率,具体包括:
    当所述判断结果表示所述感应信号对应的数值符合第二预设状态条件,控制所述隔离屏的透光率小于或等于第二透光率;所述第二透光率小于或等于30%。
  15. 根据权利要求1所述的方法,所述扫码机具还包括指示灯,所述指示灯位于所述第一顶面;
    所述得到判断结果之后,还包括:
    当所述判断结果表示所述感应信号对应的数值符合预设状态条件,控制所述指示灯按照预设频率闪烁。
  16. 一种扫码识别装置,所述装置应用于扫码机具,所述扫码机具包括扫码部和手持部;所述扫码部包括第一扫码模组和第二扫码模组;所述第一扫码模组所在的所述扫码部的第一顶面与所述手持部的第二顶面之间形成第一夹角;所述第一顶面的一边与所述第二顶面相连;与所述第一顶面的一边相对的另一边与所述扫码部的第一侧面相连;所述扫码部的第一侧面上设置有所述第二扫码模组;所述扫码机具还包括传感模组;
    所述装置包括:
    感应信号获取模块,用于获取所述传感模组检测得到的感应信号;
    条件判断模块,用于判断所述感应信号对应的数值是否符合预设状态条件,得到判断结果;所述预设状态条件包括所述扫码机具处于目标工作模式时所述传感模组检测得到的感应信号对应的理论数值范围;
    模组启用模块,用于当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别;所述目标工作模式对应的扫码模组为所述第一扫码模组或者所述第二扫码模组。
  17. 一种扫码识别设备,所述设备应用于扫码机具,所述扫码机具包括扫码部和手持部;所述扫码部包括第一扫码模组和第二扫码模组;所述第一扫码模组所在的所述扫码部的第一顶面与所述手持部的第二顶面之间形成第一夹角;所述第一顶面的一边与所述第二顶面相连;与所述第一顶面的一边相对的另一边与所述扫码部的第一侧面相连;所述扫码部的第一侧面上设置有所述第二扫码模组;所述扫码机具还包括传感模组;
    所述设备包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:
    获取所述传感模组检测得到的感应信号;
    判断所述感应信号对应的数值是否符合预设状态条件,得到判断结果;所述预设状态条件包括所述扫码机具处于目标工作模式时所述传感模组检测得到的感应信号对应的理论数值范围;
    当所述判断结果表示所述感应信号对应的数值符合预设状态条件,启用所述目标工作模式对应的扫码模组进行扫码识别;所述第一工作模式对应的扫码模组为所述第一扫码模组或者所述第二扫码模组。
  18. 一种计算机可读介质,其上存储有计算机可读指令,所述计算机可读指令可被处理器执行以实现权利要求1至15中任一项所述的扫码识别方法。
PCT/CN2023/071214 2022-01-30 2023-01-09 扫码识别 WO2023142990A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210114197.6A CN114444527B (zh) 2022-01-30 2022-01-30 一种扫码识别方法、装置、设备及介质
CN202210114197.6 2022-01-30

Publications (1)

Publication Number Publication Date
WO2023142990A1 true WO2023142990A1 (zh) 2023-08-03

Family

ID=81372530

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/071214 WO2023142990A1 (zh) 2022-01-30 2023-01-09 扫码识别

Country Status (2)

Country Link
CN (1) CN114444527B (zh)
WO (1) WO2023142990A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114444527B (zh) * 2022-01-30 2024-02-02 支付宝(杭州)信息技术有限公司 一种扫码识别方法、装置、设备及介质

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205959313U (zh) * 2016-08-05 2017-02-15 深圳市智微智能科技开发有限公司 一种非接触受理和扫码读取二合一的金融支付装置
CN208422016U (zh) * 2018-06-02 2019-01-22 惠尔丰(中国)信息系统有限公司 一种pos机
CN109271827A (zh) * 2018-12-01 2019-01-25 深圳市华东兴科技有限公司 一种摄像头扫码设备
CN210515310U (zh) * 2019-11-23 2020-05-12 深圳市柯美创新科技有限公司 固定式二维条码扫描器
WO2020218542A1 (ja) * 2019-04-26 2020-10-29 株式会社デンソーウェーブ 光学的情報読取装置
CN112349045A (zh) * 2020-11-18 2021-02-09 苏州斯普锐智能系统股份有限公司 一种集成式双视窗桌上型扫码设备
CN112749575A (zh) * 2020-12-31 2021-05-04 支付宝(杭州)信息技术有限公司 扫码设备及扫码设备的工作模式识别方法、装置、设备
KR20210071553A (ko) * 2019-12-06 2021-06-16 주식회사 이앤씨 다중모드 스캐너
CN113935349A (zh) * 2021-10-18 2022-01-14 交互未来(北京)科技有限公司 一种扫描二维码的方法、装置、电子设备及存储介质
CN114444527A (zh) * 2022-01-30 2022-05-06 支付宝(杭州)信息技术有限公司 一种扫码识别方法、装置、设备及介质
CN217060988U (zh) * 2022-01-30 2022-07-26 支付宝(杭州)信息技术有限公司 一种扫码机具

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5340971A (en) * 1990-09-17 1994-08-23 Metrologic Instruments, Inc. Automatic bar code reading system having selectable long range and short range modes of operation
CN107315981A (zh) * 2017-06-06 2017-11-03 杭州十间鱼科技有限公司 便携式条码扫描设备和数据高效处理方法
CN110070684A (zh) * 2019-04-16 2019-07-30 北京意锐新创科技有限公司 一种用于户外的扫码支付设备
US11216798B2 (en) * 2019-10-16 2022-01-04 Visa International Service Association System and computer implemented method for extracting information in a document using machine readable code
US11531826B2 (en) * 2019-11-01 2022-12-20 Zebra Technologies Corporation Systems and methods for user choice of barcode scanning range
CN211699107U (zh) * 2020-04-16 2020-10-16 支付宝(杭州)信息技术有限公司 一种结算机具
CN112799511A (zh) * 2021-01-28 2021-05-14 Oppo广东移动通信有限公司 图形码生成模型的训练方法、装置、电子设备及存储介质

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205959313U (zh) * 2016-08-05 2017-02-15 深圳市智微智能科技开发有限公司 一种非接触受理和扫码读取二合一的金融支付装置
CN208422016U (zh) * 2018-06-02 2019-01-22 惠尔丰(中国)信息系统有限公司 一种pos机
CN109271827A (zh) * 2018-12-01 2019-01-25 深圳市华东兴科技有限公司 一种摄像头扫码设备
WO2020218542A1 (ja) * 2019-04-26 2020-10-29 株式会社デンソーウェーブ 光学的情報読取装置
CN210515310U (zh) * 2019-11-23 2020-05-12 深圳市柯美创新科技有限公司 固定式二维条码扫描器
KR20210071553A (ko) * 2019-12-06 2021-06-16 주식회사 이앤씨 다중모드 스캐너
CN112349045A (zh) * 2020-11-18 2021-02-09 苏州斯普锐智能系统股份有限公司 一种集成式双视窗桌上型扫码设备
CN112749575A (zh) * 2020-12-31 2021-05-04 支付宝(杭州)信息技术有限公司 扫码设备及扫码设备的工作模式识别方法、装置、设备
CN113935349A (zh) * 2021-10-18 2022-01-14 交互未来(北京)科技有限公司 一种扫描二维码的方法、装置、电子设备及存储介质
CN114444527A (zh) * 2022-01-30 2022-05-06 支付宝(杭州)信息技术有限公司 一种扫码识别方法、装置、设备及介质
CN217060988U (zh) * 2022-01-30 2022-07-26 支付宝(杭州)信息技术有限公司 一种扫码机具

Also Published As

Publication number Publication date
CN114444527A (zh) 2022-05-06
CN114444527B (zh) 2024-02-02

Similar Documents

Publication Publication Date Title
KR102325418B1 (ko) 알림 처리 방법 및 전자 기기
US10942580B2 (en) Input circuitry, terminal, and touch response method and device
CN106095295B (zh) 一种基于指纹识别的处理方法和移动终端
EP3453794B1 (en) Foreign matter recognition method and device
CN107209625B (zh) 用于电子设备上的触摸显示器的浮动软触发器
KR102206394B1 (ko) 전자 장치 및 전자 장치의 작업 설정 방법
WO2016107505A1 (zh) 一种图形用户界面的显示方法及移动终端
US9916514B2 (en) Text recognition driven functionality
US8909300B2 (en) Mobile terminal and controlling method of displaying direction
KR102488374B1 (ko) 전자 장치, 액세서리 장치 및 이를 이용한 정보 표시 방법
US10101843B2 (en) Method for recognizing fingerprint and mobile terminal supporting the same
US20140160045A1 (en) Terminal and method for providing user interface using a pen
JP2018518751A (ja) 指紋認識を用いる操作方法、装置、およびモバイル端末
KR20130129914A (ko) 터치스크린 상에서의 손가락 인식
KR102318920B1 (ko) 전자 장치 및 전자 장치의 제어 방법
WO2008153600A1 (en) Proximity based stylus and display screen, and device incorporating same
WO2020156194A1 (zh) 指纹解锁方法、装置、终端及存储介质
US10671277B2 (en) Floating soft trigger for touch displays on an electronic device with a scanning module
CN107395871B (zh) 一种开启应用的方法、装置、存储介质及终端
US11112889B2 (en) Electronic device and method for mapping function of electronic device to operation of stylus pen
KR20150046852A (ko) 전자 장치 및 전자 장치의 암호를 이용한 인증 방법
CN107491677A (zh) 指纹识别处理方法、装置、设备及存储介质
WO2023142990A1 (zh) 扫码识别
CN106255977A (zh) 用于执行可变数据捕获过程的装置和方法
US20150253932A1 (en) Information processing apparatus, information processing system and information processing method

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

Country of ref document: EP

Kind code of ref document: A1