Multi-bar code scanning method and device
Through multiple barcode scanning methods and devices, the best scanning method is automatically matched and selected, which solves the problem that different input sources need to be installed in different applications, improves the scanning code recognition efficiency and compatibility, simplifies user operations, and achieves stable recognition performance.
Patent Information
- Application Number
- CN202411446633.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2024-12-27
AI Technical Summary
In the prior art, different input sources require installation of different code scanning applications, resulting in large memory usage, low integration convenience, poor system compatibility, and inability to flexibly and quickly choose the appropriate code scanning method.
Provide a multi-barcode scanning method and device, through automatic matching of mobile phone scanning, code scanning gun scanning and barcode box input, select the best scanning method according to the scanning scenario and barcode type, and realize verification of the scanning results and output.
It improves the scanning code recognition efficiency, simplifies user operations, realizes the mutual compatibility of multiple input sources, and has stable and reliable identification performance, solving the problems of memory footprint and integration convenience.
Smart Images

Figure CN119204057A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and in particular to a multi-barcode scanning method and device. Background Art
[0002] Barcode scanning devices generally include mobile phone scanning devices that recognize barcodes through cameras, Bluetooth barcode scanning devices, and barcode scanning data processing terminal PAD devices.
[0003] For mobile phone camera recognition, the recognition efficiency is generally low, the speed is slow, and there are high requirements for light, distance, barcode clarity, etc., which cannot meet the use scenario of fast scanning and recognition of multiple barcodes; for Bluetooth barcode scanner recognition, although the recognition efficiency is high and is not subject to the above restrictions, the barcode scanner only provides scanning functions and cannot be directly input into the application; for barcode scanner PAD devices, the recognition efficiency is comparable to that of Bluetooth barcode scanners, but its configuration is usually low and cannot be compatible with other input methods. Different input sources use different input methods, and different scanning applications need to be installed, resulting in large memory usage of scanning applications, low integration convenience, and poor system compatibility.
[0004] Therefore, how to effectively and flexibly select the scanning method according to the application scenario of the scanning, and optimize the scanning application in terms of memory usage, integration convenience and system compatibility, is a technical problem that technical personnel in this field need to solve. Summary of the invention
[0005] The present application provides a multi-barcode scanning method and device to solve the problem in the prior art that different input sources adopt different input methods and different scanning applications need to be installed, resulting in large memory usage, low integration convenience and poor system compatibility of the scanning application, and to achieve flexible and fast selection of input methods for different application scenarios.
[0006] The present application provides a multi-barcode scanning method, which is implemented by a multi-barcode scanning device, wherein the multi-barcode scanning device is provided with three barcode scanning modes: mobile phone scanning, barcode scanning gun scanning and barcode box input; The method comprises: Acquire an item to be scanned that carries a recognizable barcode, wherein the types of the recognizable barcode include one-dimensional barcode and two-dimensional barcode; Automatically matching a target scanning mode in a multi-barcode scanning device based on the scanning scenario of the object to be scanned and the type of the recognizable barcode, wherein the target scanning mode is a barcode scanning mode selected from three barcode scanning modes of the multi-barcode scanning device; Scanning the identifiable barcode by the target scanning method to obtain a scanning result; The scanning result is verified and the verified scanning result is output. According to the multi-barcode scanning method provided by the present application, the scanning scenario at least includes scanning environment factors, scanning purpose, scanning type and scanning performance requirements; Among them, the purposes of scanning include scanning codes for entering and exiting the warehouse and scanning codes for inquiry; the scanning types include single-bar scanning and multiple continuous scanning; the scanning performance requirements include scanning code clarity and scanning code speed.
[0007] According to the multi-barcode scanning method provided by the present application, the step of scanning the recognizable barcodes by the target scanning method to obtain the scanning result specifically includes: When the target scanning method is mobile phone scanning, the camera permission of the scanning mobile phone is obtained, and the barcode of the object is scanned using the mobile phone camera to obtain the scanning result; When the target scanning method is scanning with a barcode scanner, a Bluetooth barcode scanner or a barcode scanner data processing terminal is used to scan the barcode of the item to obtain a scanning result.
[0008] According to the multi-barcode scanning method provided by the present application, the step of verifying the scanning result specifically includes: Performing format check on the scan result, and after the scan result passes the format check, determining whether the scan result is a single scan code; If the scan result is a single scan, the scan result is returned; When the scanning result is not a single barcode scan, the scanning result is stored in a preset barcode scan result set.
[0009] According to the multi-barcode scanning method provided by the present application, the step of performing format verification on the scanning result specifically includes: S1, determining whether the scan result is a website or barcode information, and if the scan result is a website, executing S2, and if the scan result is a barcode information, executing S3; S2, obtaining a uniform resource locator corresponding to the website, and obtaining barcode information of the item based on the uniform resource locator; S3. Determine whether the barcode information complies with preset barcode rules. If the barcode information complies with the preset barcode rules, store the barcode information and transfer the barcode information to subsequent processing. If the barcode information does not comply with the preset barcode rules, determine it as an invalid barcode. The preset barcode rules include at least a preset barcode digit rule and a preset barcode composition rule.
[0010] According to the multi-barcode scanning method provided by the present application, the step of obtaining the barcode information of the item based on the uniform resource locator specifically includes: Querying the commodity information corresponding to the uniform resource locator, and obtaining the barcode information of the item based on the commodity information; or,
[0011] By calling the backend API, the uniform resource locator is converted into the barcode information of the item.
[0012] The present application also provides a multi-barcode scanning device, the device is arranged in a multi-barcode scanning device, and the multi-barcode scanning device is provided with three barcode scanning modes: mobile phone scanning, barcode scanning gun scanning and barcode box input; The device comprises: An acquisition module, used to acquire an object to be scanned that carries a recognizable barcode, wherein the types of the recognizable barcode include one-dimensional barcode and two-dimensional barcode; A selection module, for automatically matching a target scanning mode in a plurality of barcode scanning devices based on the scanning scenario of the object to be scanned and the type of the identifiable barcode, wherein the target scanning mode is a barcode scanning mode selected from three barcode scanning modes of the plurality of barcode scanning devices; A scanning module, used to scan the identifiable barcode by the target scanning method to obtain a scanning result; The verification module is used to verify the scanning results and output the scanning results that pass the verification.
[0013] The present application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute any of the above-mentioned multiple barcode scanning methods through the computer program.
[0014] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein the program is executed to implement any of the above-mentioned multiple barcode scanning methods when it is run.
[0015] The present application also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the multi-barcode scanning method as described above is implemented.
[0016] The multi-barcode scanning method and device provided by the present application automatically match the target scanning mode in the multi-barcode scanning device based on the scanning scenario of the object to be scanned and the type of recognizable barcode; scan the recognizable barcode through the target scanning mode to obtain the scanning result; verify the scanning result, and output the scan result that passes the verification, and adopt different input methods for different input sources. The present application integrates multiple input sources and multiple input methods, and adopts different input methods for different input sources, which solves the problem that different input sources need to install different applications, and greatly improves the barcode recognition efficiency of the scanning application, simplifies the complexity of user operations, realizes the mutual compatibility of multiple input sources, and has stable and reliable recognition performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 It is a schematic diagram of the hardware environment of a multi-barcode scanning method according to an embodiment of the present application.
[0019] Figure 2 This is one of the flow charts of the multi-barcode scanning method provided in the embodiment of the present application.
[0020] Figure 3 This is the second flowchart of the multi-barcode scanning method provided in the embodiment of the present application.
[0021] Figure 4 It is a structural schematic diagram of the mobile phone scanning method provided in an embodiment of the present application.
[0022] Figure 5 A schematic diagram of the principle of mobile phone code scanning provided in an embodiment of the present application.
[0023] Figure 6 It is a structural schematic diagram of the barcode scanning method provided by the embodiment of the present application.
[0024] Figure 7 It is a structural diagram of the barcode box input scanning method provided in an embodiment of the present application.
[0025] Figure 8 It is a flowchart of the barcode verification provided in the embodiment of the present application.
[0026] Fig. 9 It is a structural schematic diagram of the multi-barcode scanning device provided in this application.
[0027] Fig.10 It is a structural schematic diagram of the electronic device provided by this application. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] According to one aspect of the embodiment of the present application, a multi-barcode scanning method is provided. The multi-barcode scanning method is widely used in smart home (Smart Home), smart home, smart home device ecology, smart residential (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned multi-barcode scanning method can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.
[0031] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing equipment, a smart dishwasher, a smart projection equipment, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart speaker, a smart fresh air equipment, a smart kitchen and bathroom equipment, a smart bathroom equipment, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification equipment, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.
[0032] The present application will be described in detail below in conjunction with specific implementation methods.
[0033] In some specific embodiments of the present application, Figure 2 As shown, this solution provides a multi-barcode scanning method, which is implemented by a multi-barcode scanning device, wherein the multi-barcode scanning device is provided with three barcode scanning modes: mobile phone scanning, barcode scanning gun scanning and barcode box input; Methods include: Step 210: Obtain an item to be scanned that carries a recognizable barcode, wherein the types of the recognizable barcode include one-dimensional barcode and two-dimensional barcode; Step 220: automatically matching a target scanning mode in a multi-barcode scanning device based on the scanning scenario of the object to be scanned and the type of the recognizable barcode, wherein the target scanning mode is a barcode scanning mode selected from three barcode scanning modes of the multi-barcode scanning device; Step 230: Scan the identifiable barcode using the target scanning method to obtain a scanning result; Step 240: verify the scan result and output the scan result that passes the verification.
[0034] It should be noted that in the existing barcode scanning solutions, barcode scanning is the basic function of the application. The barcode recognition function is usually based on the zxing framework. The barcode recognition function is integrated into various mainstream applications, but most of the barcode scanning and recognition functions are based on image acquisition of the mobile phone camera module and local image analysis of the album. The recognition method is relatively simple and cannot be applied to input methods in multiple scenarios.
[0035] Therefore, this application integrates the currently known input sources and input methods by adopting different input methods for different input sources, solves the problem that different input sources need to install different applications, and greatly improves the barcode recognition efficiency of the application, simplifies the complexity of user operations, and makes multiple input sources compatible with each other, and the recognition function is stable and reliable.
[0036] In some possible implementations of the present application, the code scanning scenarios include at least scanning environment factors, scanning purposes, scanning types and scanning performance requirements; wherein the scanning purposes include scanning codes for entering and exiting warehouses and scanning codes for inquiries; the scanning types include single-bar scanning and multiple continuous scanning; the scanning performance requirements include scanning clarity and scanning speed.
[0037] It is worth noting that the barcode scanning method is closely related to the scanning environment factors, scanning purpose, scanning type and scanning performance requirements. Scanning environment factors such as light and distance have a great impact on the scanning results. A single barcode scanning method has certain limitations. For example, the recognition efficiency and speed of mobile phone cameras are low, and they have high requirements for light, distance, and barcode clarity. They cannot meet the usage scenarios of rapid scanning and recognition of multiple barcodes. Bluetooth barcode scanners have high recognition efficiency and are not subject to the above-mentioned limitations of mobile phone scanning methods, but barcode scanners only provide scanning functions and cannot be directly input into applications. The recognition efficiency of the barcode scanner PAD is consistent with the function of the Bluetooth barcode scanner, and its general configuration is relatively low, and it is not compatible with other input methods.
[0038] Based on the above problems, this recognition system integrates input methods suitable for various scenarios, and optimizes memory usage, integration convenience, system compatibility and other aspects.
[0039] In some possible implementations of the present application, the step of scanning the identifiable barcode by the target scanning method to obtain a scanning result specifically includes: When the target scanning method is mobile phone scanning, the camera permission of the scanning mobile phone is obtained, and the barcode of the object is scanned using the mobile phone camera to obtain the scanning result; When the target scanning method is scanning with a barcode scanner, a Bluetooth barcode scanner or a barcode scanner data processing terminal is used to scan the barcode of the item to obtain a scanning result.
[0040] Specifically, this embodiment provides an implementation method for scanning a recognizable barcode. According to the user's usage requirements, by selecting multiple barcode scanning methods in a multi-barcode scanning device, different scanning methods are used for different scanning inputs.
[0041] In a possible embodiment, before performing a barcode scanning, preliminary steps are required, such as determining the purpose of the barcode scanning, such as scanning the barcode for entering and exiting the warehouse, scanning the barcode to check the goods, and the business function determines whether the barcode is scanned single or continuous, and determines whether there is a scanned barcode and the scanning verification rules.
[0042] It is worth mentioning that the technical problems existing in existing barcode scanning tools mainly focus on improving scanning efficiency, optimizing user experience, and enhancing scanning accuracy and reliability.
[0043] In a possible embodiment, the multi-barcode scanning device takes into account multiple input methods such as PDA barcode scanner devices, Bluetooth handheld barcode scanners, mobile phone camera modules, manual input, etc., and supports barcode recognition of one-dimensional barcodes (such as UPC codes, EAN codes) and two-dimensional barcodes (such as QR codes, Code128), and supports preliminary verification of scanning results, filtering of illegal barcodes, etc.
[0044] In a possible embodiment, the multi-barcode scanning device may be a mobile phone connected to a Bluetooth barcode scanning gun, or a barcode scanning terminal with a camera function, etc.
[0045] On the basis of the above embodiments, the user can select any scanning method to scan the barcode of the scanned object through the same multi-barcode scanning device according to the barcode scanning habits or historical barcode scanning data, without having to select different scanning applications according to different input methods, thereby further solving the problem that different input sources need to install different applications, resulting in large memory usage, low integration convenience, and poor system compatibility. It greatly improves the barcode recognition efficiency of the scanning application, simplifies the complexity of user operations, and multiple input sources are compatible with each other, and the recognition function is stable and reliable.
[0046] In some possible implementations of the present application, the step of verifying the scanning result specifically includes: Performing format check on the scan result, and after the scan result passes the format check, determining whether the scan result is a single scan code; If the scan result is a single scan, the scan result is returned; When the scanning result is not a single barcode scan, the scanning result is stored in a preset barcode scan result set.
[0047] Specifically, this embodiment provides an implementation method for verifying the scanning results, by performing a format check on the scanning results, and after the scanning results pass the format check, determining whether the scanning result is a single scan code; if the scanning result is a single scan code, directly returning the scan code result; if the scanning result is multiple scan codes, storing the scan result in a scan code result set.
[0048] It can be understood that this setting of the present application fully considers the normal format and invalid format of the barcode scanning results, the single-bar scanning and multiple-bar scanning situations. In different situations, users store the scanning results in different ways, and the subsequent processing of the obtained scanning results is also different. Therefore, it is necessary to carry out targeted processing measures according to the different settings of the scanning results to improve the efficiency and accuracy of barcode scanning, thereby enhancing the user's experience of scanning multiple barcodes.
[0049] In some possible implementations of the present application, the step of performing format verification on the scan result specifically includes: S1, determining whether the scan result is a website or barcode information, and if the scan result is a website, executing S2, and if the scan result is a barcode information, executing S3; S2, obtaining a uniform resource locator URL corresponding to the website, and obtaining barcode information of the item based on the uniform resource locator; S3. Determine whether the barcode information complies with preset barcode rules. If the barcode information complies with the preset barcode rules, store the barcode information and transfer the barcode information to subsequent processing. If the barcode information does not comply with the preset barcode rules, determine it as an invalid barcode. The preset barcode rules include at least a preset barcode digit rule and a preset barcode composition rule.
[0050] Specifically, this embodiment provides an implementation method for format verification of scanning results. The scanning results may include non-barcode information such as URL information. In this case, it is necessary to parse the URL information to obtain the uniform resource locator corresponding to the URL information, and then query the product information corresponding to the uniform resource locator. Based on the product information, the barcode information of the item to be scanned is obtained, and corresponding processing is performed for different scanning results. The setting of multiple processing methods can cope with the verification requirements of different barcode scanning results, thereby improving the user experience.
[0051] In a possible embodiment, the step of obtaining the barcode information of the item based on the uniform resource locator specifically includes: Query the commodity information corresponding to the uniform resource locator, and obtain the barcode information of the item based on the commodity information; or, convert the uniform resource locator into the barcode information of the item by calling a backend API.
[0052] In some possible implementations of the present application, the preset barcode rules include preset barcode digit rules and preset barcode composition rules. For example, the preset barcode rules are that the number of digits of the barcode information is 20 or 22 digits, and the barcode information only contains uppercase and lowercase letters and numbers, and the barcode information does not include the letters I, O, i, o.
[0053] It is worth noting that the preset barcode rules can be set according to the user's different scenario requirements. During the barcode scanning process, the barcode rules can also be modified or added or deleted according to the scanning requirements of different barcodes. This application does not make specific limitations on the preset barcode rules.
[0054] In some possible implementation schemes of the present application, a barcode information scanning method of inputting a barcode frame is also provided in the multi-barcode scanning device, which is suitable for inputting barcode information in abnormal situations such as unclear, incomplete or damaged barcodes.
[0055] In some possible implementations of this application, such as Figure 3 As shown, Figure 3 This is the second flow chart of the multi-barcode scanning method provided by this application. After entering the barcode scanning page, you can choose three scanning methods: mobile phone, barcode scanning gun and manual input. The barcode scanning result is checked for barcode format. If the scanning result passes the format check and is determined to be a single barcode scan, the scanning result is directly returned. If it is determined to be multiple barcode scans, the barcode scan result is stored in the record result set. At the same time, if the check fails, the scanning result is determined to be invalid information and the scanning ends.
[0056] In a possible embodiment, Figure 4 As shown, if you select the mobile phone scanning method in the multi-barcode scanning device, first obtain the camera permission, and after obtaining the camera permission authorization, start the system camera for scanning; specifically, during the scanning process, the camera is aimed at the barcode / QR code, and the position of the barcode in the barcode indicator box on the screen is adjusted; the QR code captured by the camera is automatically identified and parsed; the identification result is output to the barcode verification module for verification; among them, the multi-bar scanning function saves the barcodes that meet the rules and displays them on the screen; the single-bar scanning automatically outputs the barcodes that meet the rules to the subsequent functions; the multi-bar scanning user outputs the barcode list to the subsequent functions as needed; the scanning function ends.
[0057] In a possible embodiment, Figure 5 As shown, Figure 5 A schematic diagram of the principle of mobile phone code scanning provided in the embodiment of the present application, Figure 5 A quick response matrix code QRCode is demonstrated. The QR code is essentially an encoding rule for a string of characters, which is eventually converted into a binary string.
[0058] In this embodiment, the principle of mobile phone code scanning is specifically described in the following three parts: Part 1: Positioning Pattern: In this part, the size of the QR code rectangle is marked by the position detection pattern, and the position and direction of a QR code rectangle can be identified and determined by using three positioning patterns; the positioning pattern is distinguished from other areas by a white border through the position detection graphic separator; positioning is performed by the positioning pattern. If the size of the QR code is too large, it is easy to be distorted during scanning. The role of the timing pattern is to prevent the distortion during scanning. In a possible embodiment, such as in Android system Version 2, further correction graphics are required.
[0059] Part II: Functional Data: This part includes format information, which exists in all sizes and stores formatted data; and version information, which can be used for Android system Version 7 and above. Two 3×6 areas need to be reserved to store some version information.
[0060] Part III: Data content (remaining part): This part includes data codes and error correction codes.
[0061] In essence, the mobile phone recognition does not take a photo, but parses the camera video stream data, directly generates a YUV image to create a brightness source, and parses the brightness source data. After the image data is constructed as a bit matrix represented by black and white, the BinaryBitmap object is compared and parsed to obtain the QR code coordinates and data. After obtaining the orderly arranged QR code coordinate information, a symbol matrix corresponding to the original image QR code is constructed. The core of this part is data verification and generation of the final matrix, which facilitates subsequent decoding operations.
[0062] In a possible embodiment, if Figure 6 As shown, if you select the barcode scanning gun scanning mode (including PDA) among the multiple barcode scanning devices, the barcode scanning gun needs to scan the code through a Bluetooth barcode scanning gun, or use a barcode scanning gun PDA device; specifically, the barcode scanning gun is aimed at the barcode / QR code, and the barcode indicator line of the barcode scanning gun is adjusted; the scan button is pressed; the barcode scanning gun outputs the recognition result to the barcode verification module for verification; the multiple barcode scanning function saves and records the barcodes that meet the rules and displays them on the screen; the single barcode scanning automatically outputs the barcodes that meet the rules to the subsequent functions; the multiple barcode scanning user outputs the barcode list to the subsequent functions as needed; the scanning function ends.
[0063] In this embodiment, the barcode scanner (including PDA devices) is essentially connected to the mobile phone as a keyboard peripheral. This solution monitors and recognizes the characters input by the keyboard, converts the characters into a string and stores them. Different barcode scanners have different end characters, different barcode recognition speeds, and different barcode conversion input methods, so this solution achieves compatibility with various input devices.
[0064] In a possible embodiment, after the barcode scanner scans a barcode or QR code, it will send a character every 5-50ms. After the sending is completed, it will send an end character. This solution can form a complete barcode string after monitoring the end character. Some barcode scanners do not send an end character. Such barcode scanners use a delay method. When no new characters are received after the delay period, the scanning is considered to be completed, and the barcode string is formed and output for subsequent processing.
[0065] In a possible embodiment, Figure 7 As shown, if you select the barcode box input scanning method in the multi-barcode scanning device, the barcode box input requires the barcode to be entered into the input box, and supports copying and pasting from the clipboard; click the OK button to output the recognition result to the barcode verification module for verification; the multi-barcode scanning function saves the barcodes that meet the rules and displays them on the screen; the single-bar code scanning automatically outputs the barcodes that meet the rules to the subsequent functions; the multi-barcode scanning user can output the barcode list to the subsequent functions as needed; the scanning function ends.
[0066] In some possible implementations of the present application, Figure 8 : is a schematic diagram of the barcode verification process provided by the embodiment of the present application, such as Figure 8 As shown, this application provides a more complete verification process, which makes the scanning results more usable by performing preliminary verification on the scanning results and filtering out illegal barcodes, thereby improving the user's scanning experience. Through the setting of barcode verification, this application makes the compatible solution of multiple barcode scanning methods more complete, more applicable, more efficient, and more complete in verification rules compared to the traditional solution on the market that only has a single scanning function of mobile phone and album selection and recognition.
[0067] The core value of the multi-barcode scanning method provided by this application lies in integrating different barcode and QR code collection methods, achieving compatibility with all collection methods on the market with low power consumption and low cost. The design ideas and implementation methods have achieved outstanding results in the industry. The architecture design and analysis process adopted by this application utilizes the characteristics of open source systems to select and match models to achieve high efficiency, high availability, high fault tolerance, and high scalability. The overall solution of this application solves a large amount of offline labor cost work, making scanning more accurate, smarter, and faster, and reducing the operating costs of business processes that use scanning functions.
[0068] In some specific embodiments of the present application, Fig. 9 As shown, this solution provides a multi-barcode scanning device, which is arranged in a multi-barcode scanning device. The multi-barcode scanning device is provided with three barcode scanning modes: mobile phone scanning, barcode scanning gun scanning and barcode box input; The device includes: An acquisition module 910 is used to acquire an object to be scanned that carries a recognizable barcode, wherein the types of the recognizable barcode include a one-dimensional barcode and a two-dimensional barcode; A selection module 920, configured to automatically match a target scanning mode in a plurality of barcode scanning devices based on the scanning scenario of the object to be scanned and the type of the identifiable barcode, wherein the target scanning mode is a barcode scanning mode selected from three barcode scanning modes of the plurality of barcode scanning devices; The scanning module 930 is used to scan the identifiable barcode by the target scanning method to obtain a scanning result; The verification module 940 is used to verify the scanning result and output the scanning result that passes the verification.
[0069] The implementation principle and beneficial effects of the multi-barcode scanning device provided in the embodiment of the present application are similar to the implementation principle and beneficial effects of the multi-barcode scanning method shown in the above embodiment. Please refer to the implementation principle and beneficial effects of the multi-barcode scanning method shown in the above embodiment, and no further details will be given here.
[0070] Fig.10 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.10 As shown, the electronic device may include: a processor 1010, a communication interface 1020, a memory 1030 and a communication bus 1040, wherein the processor 1010, the communication interface 1020 and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 may call the logic instructions in the memory 1030 to execute a multi-barcode scanning method, the method comprising: obtaining an object to be scanned carrying a recognizable barcode, wherein the type of the recognizable barcode includes a one-dimensional barcode and a two-dimensional barcode; automatically matching a target scanning mode in a multi-barcode scanning device based on the scanning scene of the object to be scanned and the type of the recognizable barcode, wherein the target scanning mode is a barcode scanning mode selected from three barcode scanning modes of the multi-barcode scanning device; scanning the recognizable barcode through the target scanning mode to obtain a scanning result; verifying the scanning result, and outputting the scanning result that passes the verification.
[0071] In addition, the logic instructions in the above-mentioned memory 1030 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0072] On the other hand, the present application also provides a computer program product, which includes a computer program. The computer program can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the multi-barcode scanning method provided by the above methods, the method including: obtaining an object to be scanned carrying a recognizable barcode, wherein the type of the recognizable barcode includes a one-dimensional barcode and a two-dimensional barcode; based on the scanning scenario of the object to be scanned and the type of the recognizable barcode, automatically matching a target scanning mode in a multi-barcode scanning device, the target scanning mode being a barcode scanning mode selected from three barcode scanning modes of the multi-barcode scanning device; scanning the recognizable barcode using the target scanning mode to obtain a scanning result; verifying the scanning result, and outputting the scanning result that passes the verification.
[0073] On the other hand, the present application also provides a computer-readable storage medium, the computer-readable storage medium includes a stored program, wherein the program, when running, executes the multi-barcode scanning method provided by the above methods, the method comprising: obtaining an object to be scanned carrying a recognizable barcode, wherein the type of the recognizable barcode includes a one-dimensional barcode and a two-dimensional barcode; based on the scanning scenario of the object to be scanned and the type of the recognizable barcode, automatically matching a target scanning mode in a multi-barcode scanning device, the target scanning mode being a barcode scanning mode selected from three barcode scanning modes of the multi-barcode scanning device; scanning the recognizable barcode using the target scanning mode to obtain a scanning result; verifying the scanning result, and outputting the scanning result that passes the verification.
[0074] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0075] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0076] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for scanning multiple barcodes, characterized in that: The method is implemented by a multi-barcode scanning device, wherein the multi-barcode scanning device is provided with three barcode scanning modes: mobile phone scanning, barcode scanning gun scanning and barcode box input; The method comprises: Acquire an item to be scanned that carries a recognizable barcode, wherein the types of the recognizable barcode include one-dimensional barcode and two-dimensional barcode; Automatically matching a target scanning mode in a multi-barcode scanning device based on the scanning scenario of the object to be scanned and the type of the recognizable barcode, wherein the target scanning mode is a barcode scanning mode selected from three barcode scanning modes of the multi-barcode scanning device; Scanning the identifiable barcode by the target scanning method to obtain a scanning result; The scanning results are verified, and the scanning results that pass the verification are output.
2. The multi-barcode scanning method according to claim 1, characterized in that: The code scanning scenario at least includes scanning environment factors, scanning purpose, code scanning type and code scanning performance requirements; Among them, the purposes of scanning include scanning codes for entering and exiting the warehouse and scanning codes for inquiry; the scanning types include single-bar scanning and multiple continuous scanning; the scanning performance requirements include scanning code clarity and scanning code speed.
3. The multi-barcode scanning method according to claim 1, characterized in that: The step of scanning the identifiable barcode by the target scanning method to obtain a scanning result specifically includes: When the target scanning method is mobile phone scanning, the camera permission of the scanning mobile phone is obtained, and the barcode of the object is scanned using the mobile phone camera to obtain the scanning result; When the target scanning method is scanning with a barcode scanner, a Bluetooth barcode scanner or a barcode scanner data processing terminal is used to scan the barcode of the item to obtain a scanning result.
4. The multi-barcode scanning method according to claim 2 or 3, characterized in that: The step of verifying the scanning result specifically includes: Performing format check on the scan result, and after the scan result passes the format check, determining whether the scan result is a single scan code; If the scan result is a single scan, the scan result is returned; When the scanning result is not a single barcode scan, the scanning result is stored in a preset barcode scan result set.
5. The multi-barcode scanning method according to claim 4, characterized in that: The step of performing format verification on the scan result specifically includes: S1, determining whether the scan result is a website or barcode information, and if the scan result is a website, executing S2, and if the scan result is a barcode information, executing S3; S2, obtaining a uniform resource locator corresponding to the website, and obtaining barcode information of the item based on the uniform resource locator; S3. Determine whether the barcode information complies with preset barcode rules. If the barcode information complies with the preset barcode rules, store the barcode information and transfer the barcode information to subsequent processing. If the barcode information does not comply with the preset barcode rules, determine it as an invalid barcode. The preset barcode rules include at least a preset barcode digit rule and a preset barcode composition rule.
6. The multi-barcode scanning method according to claim 5, characterized in that: The step of obtaining the barcode information of the item based on the uniform resource locator specifically includes: Querying the commodity information corresponding to the uniform resource locator, and obtaining the barcode information of the item based on the commodity information; or, By calling the backend API, the uniform resource locator is converted into the barcode information of the item.
7. A multi-barcode scanning device, characterized in that: The device is arranged on a multi-barcode scanning device, wherein the multi-barcode scanning device is provided with three barcode scanning modes: mobile phone scanning, barcode scanning gun scanning and barcode box input; The device comprises: An acquisition module, used to acquire an object to be scanned that carries a recognizable barcode, wherein the types of the recognizable barcode include one-dimensional barcode and two-dimensional barcode; A selection module, for automatically matching a target scanning mode in a plurality of barcode scanning devices based on the scanning scenario of the object to be scanned and the type of the identifiable barcode, wherein the target scanning mode is a barcode scanning mode selected from three barcode scanning modes of the plurality of barcode scanning devices; A scanning module, used to scan the identifiable barcode by the target scanning method to obtain a scanning result; The verification module is used to verify the scanning results and output the scanning results that pass the verification.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the multi-barcode scanning method according to any one of claims 1 to 6 when running.
9. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to execute the multi-barcode scanning method according to any one of claims 1 to 6 through the computer program.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the multi-barcode scanning method according to any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Scanning control method, device and system
CN120781858A
