Microscopic code image scanning efficiency optimization method, device, mobile terminal and medium

By performing predecoding processing on the mobile terminal, the image information is sent to the server for decoding only when a complete preset micro-encoded image unit is determined in the code image, which solves the problem of low security and slow scanning response in the micro-encoded code image scanning method, and achieves an efficient and safe scanning experience.

CN119150899BActive Publication Date: 2025-08-22SHENZHEN QIANHAI QUANTUM CLOUD TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411629970.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-08-22
Estimated Expiration
2044-11-15

AI Technical Summary

Technical Problem

The existing micro-encoded code scanning methods have problems such as low security and slow scanning response, especially when the network delay is large, which affects the user experience.

Method used

The predecoding process is performed in the mobile terminal, and only when a complete preset micro-encoded image unit is determined to exist in the coded image image, the image information is sent to the server for decoding, thereby avoiding the processing of invalid image frames.

Benefits of technology

It improves the efficiency of scanning codes, reduces processing time and server burden, saves data traffic, improves the user's scanning code experience, and maintains high security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119150899B_ABST
    Figure CN119150899B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, mobile terminal and medium for optimizing the scanning efficiency of a micro-coded code image, and relates to the field of anti-counterfeiting and traceability technology. The method comprises: obtaining an original image of a micro-coded code image to be processed; if it is determined that there is at least one complete preset micro-coded image unit in the original image, the image information in the original image is sent to a server, so that the server can decode the image information according to the image information. The technical solution provided by the embodiment of the present invention avoids the server's processing of invalid image frames, reduces processing time and the burden on the server, saves data traffic, and reduces the time consumption of the entire processing flow, thereby improving the scanning efficiency, that is, it can scan successfully faster and enhance the user's scanning experience. At the same time, since the decoding algorithm still only needs to be set in the server, it also has higher security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of anti-counterfeiting and traceability technology, and in particular to a method, device, mobile terminal, and medium for optimizing the efficiency of scanning micro-coded code images. Background Art

[0002] Currently, the application of microscopic code images is becoming increasingly widespread. By identifying the information carried in microscopic code images, functions such as anti-counterfeiting and traceability can be realized. The identification process usually requires decoding using specific image algorithms.

[0003] There are two main existing decoding methods. One is to set the entire decoding algorithm in the terminal device, and the terminal device will encrypt the decoded information and upload it to the server for further processing. This method has a faster scanning speed, but because the decoding algorithm exists in the terminal device, there is a risk of being cracked and the security is relatively low. The other is to first capture the image on the terminal device, then upload the image to the server, and then the server decodes it to obtain relevant information for further processing. This method requires the terminal device to upload the captured image to the server frame by frame. After each frame is uploaded to the server, the server needs to process it and then feed it back to the terminal device before processing the next frame. Due to the microscopic characteristics of the microscopic coding code image, there are certain requirements for the focus distance and accuracy when using the terminal device to scan the code. A clear image can only be obtained when the focus is more accurate and the terminal device's camera is closer to the image. This is different from a barcode or QR code. However, based on normal scanning habits, there will be many image frames that are out of focus or far away during the entire scanning process from starting the scanning to successful scanning, that is, invalid image frames. These invalid image frames increase processing time, data traffic and server burden. Especially when the network delay is relatively large, it will significantly increase the time consumption of the entire processing flow, resulting in slow scanning response and greatly affecting the user experience. Summary of the Invention

[0004] Embodiments of the present invention provide a method, device, mobile terminal, and medium for optimizing the scanning efficiency of a microscopically encoded code image, thereby preventing the decoding algorithm from being cracked, while improving the scanning response speed and enhancing the user's scanning experience.

[0005] In a first aspect, an embodiment of the present invention provides a method for optimizing the efficiency of scanning a microscopic code image, which is applied to a mobile terminal. The method includes:

[0006] Obtaining an original image of the microscopic coding code map to be processed;

[0007] If it is determined that there is at least one complete preset microscopic coding image unit in the original image, the image information in the original image is sent to the server so as to be decoded by the server according to the image information.

[0008] Optionally, after obtaining the original image of the microscopic coding code image to be processed, the method further includes:

[0009] Identify whether the original image contains all the preset positioning points in the preset micro-coded image unit. If so, determine that a complete preset micro-coded image unit exists in the original image.

[0010] Optionally, after obtaining the original image of the microscopic coding code image to be processed, the method further includes:

[0011] Identify whether the original image contains all the preset positioning points in the preset micro-coded image unit and a preset number of data code points. If so, determine that a complete preset micro-coded image unit exists in the original image.

[0012] Optionally, after obtaining the original image of the microscopic coding code image to be processed, the method further includes:

[0013] If it is determined that no complete preset microscopic coding image unit exists in the original image, a new original image of the microscopic coding code image to be processed is reacquired until at least one complete preset microscopic coding image unit exists in the new original image.

[0014] Optionally, the image information includes the complete image data of the original image, all code point information in the original image, the complete image data of the preset micro-coded image unit in the original image, or the complete code point information in the preset micro-coded image unit in the original image.

[0015] Optionally, after sending the image information in the original image to the server so that the server performs decoding according to the image information, the method further includes:

[0016] If the server decoding fails, the server will receive a re-execution command;

[0017] Based on the re-execution command, a new original image of the microscopic coding code image to be processed is re-acquired until at least one complete preset microscopic coding image unit exists in the new original image.

[0018] In a second aspect, an embodiment of the present invention further provides a device for optimizing the efficiency of scanning a microscopic code image, the device comprising:

[0019] A code image acquisition module is used to obtain the original image of the microscopic coding code image to be processed;

[0020] The image information sending module is configured to send the image information in the original image to a server if it is determined that at least one complete preset microscopic coded image unit exists in the original image, so that the server can decode the image information according to the image information.

[0021] In a third aspect, an embodiment of the present invention further provides a mobile terminal, the mobile terminal comprising:

[0022] one or more processors;

[0023] a memory for storing one or more programs;

[0024] When the one or more programs are executed by the one or more processors, the one or more processors implement the microscopic coding code image scanning efficiency optimization method provided by any embodiment of the present invention.

[0025] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for optimizing the microscopic coding code image scanning efficiency provided by any embodiment of the present invention.

[0026] In a fifth aspect, an embodiment of the present invention further provides a computer program product, which includes a computer program, and when the program is executed by a processor, it implements the micro-coding code image scanning efficiency optimization method provided by any embodiment of the present invention.

[0027] An embodiment of the present invention provides a method for optimizing the scanning efficiency of a micro-coded code image, which is applied to a mobile terminal. First, the original image of the micro-coded code image to be processed is obtained. When it is determined that there is at least one complete preset micro-coded image unit in the original image, the image information in the original image is sent to the server so that the server can decode it according to the image information. The method for optimizing the scanning efficiency of a micro-coded code image provided by an embodiment of the present invention pre-decodes the acquired code image in the mobile terminal in advance, and only submits the corresponding image to the server for decoding processing when it is determined that there are complete preset micro-coded image units in the code image. This avoids the server's processing of invalid image frames, reduces processing time and the burden on the server, saves data traffic, and reduces the time consumption of the entire processing flow, thereby improving the scanning efficiency, that is, it can scan successfully faster and enhance the user's scanning experience. At the same time, since the decoding algorithm only needs to be set in the server, it also has higher security. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 Flowchart of the method for optimizing the scanning efficiency of micro-encoded code images provided in the first embodiment of the present invention;

[0029] Figure 2A schematic diagram of a preset positioning point in an exemplary preset microscopic coding image unit provided in the first embodiment of the present invention;

[0030] Figure 3 This is an exemplary original image provided in the first embodiment of the present invention;

[0031] Figure 4 A schematic diagram of a preset microscopic coding image unit in an exemplary original image provided in the first embodiment of the present invention;

[0032] Figure 5 A schematic diagram of the structure of a device for optimizing microscopic code image scanning efficiency provided in the second embodiment of the present invention;

[0033] Figure 6 This is a structural diagram of a mobile terminal provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0034] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all structures.

[0035] Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0036] Example 1

[0037] Figure 1 This is a flow chart of the method for optimizing the scanning efficiency of micro-encoded code images provided in the first embodiment of the present invention. This embodiment can be applied to the process of users using mobile terminals to scan and identify designated micro-encoded code images, in order to improve the scanning efficiency. This method can be performed by the device for optimizing the scanning efficiency of micro-encoded code images provided in the embodiment of the present invention. The device can be implemented by hardware and / or software and can generally be integrated into a mobile terminal (such as a mobile phone, etc.). Figure 1 As shown, the specific steps include:

[0038] S11. Obtaining the original image of the microscopic coding code image to be processed.

[0039] S12. If it is determined that there is at least one complete preset microscopic coding image unit in the original image, the image information in the original image is sent to the server so that the server can decode the image information.

[0040] A micro-encoded code pattern is an image formed by ink dots with diameters between 30 and 50 microns on a printed product, arranged according to specific algorithmic rules. In a micro-encoded code pattern image captured by a mobile device, each dot appears as a black or darker area relative to the rest of the image, representing the code point. Micro-encoded code patterns contain variable data, enabling unique codes for each item, without duplication. Furthermore, because the code points are so small and difficult to discern with the naked eye, they offer excellent concealment and can be easily integrated with printed product logos. Micro-encoded code patterns can be monochrome, grayscale, or color. Color images can be printed using the CMYK color model.

[0041] Users can scan the code using a mobile terminal, specifically through an app or mini-program within the mobile terminal. The mobile terminal can connect to a server via a network to form a code scanning system, specifically a system for scanning the microscopic code pattern to identify its information. Specifically, the mobile terminal can use a camera to capture the original image of the microscopic code pattern to be processed, thus providing a camera image capture function. After obtaining the original image, the mobile terminal can pre-decode the original image to determine whether it meets the requirements for decoding processing by the server. This can be achieved by configuring a pre-decoding module within the mobile terminal. The pre-decoding process specifically involves searching for complete preset microscopic coding image units within the obtained original image. A properly decodable microscopic coding code image may include one or more corresponding microscopic coding image units. Each microscopic coding image unit can be individually decoded to obtain the original information carried by the entire microscopic coding code image. Pre-decoding is considered successful when a complete preset microscopic coding image unit is found within the obtained original image. While successful pre-decoding does not guarantee subsequent decoding success, it can significantly increase the success rate of subsequent decoding, i.e., it increases the probability of successful decoding compared to a scenario without pre-decoding. Failure in pre-decoding, on the other hand, indicates a guaranteed failure in subsequent decoding. Therefore, upon determining that at least one complete preset microscopic coding image unit exists within the obtained original image, the image information within the original image can be transmitted to the server. The server may be provided with a decoding module for decoding the received image information. Specifically, the code point information in the microscopic coded image unit is obtained based on the received image information and restored to numerical information. The obtained numerical information is then split, merged, decrypted and verified. If the decoding is successful, the original information carried by the microscopic coded code image to be processed can be obtained. The decoding process can be implemented by any known decoding algorithm.

[0042] The preset micro-coded image unit may include preset positioning points, which may be composed of multiple code points arranged in a specified manner. The preset positioning points are a relatively basic part of the preset micro-coded image unit and are the basis for finding all other data code points. They must exist. For example, the preset positioning points in a complete preset micro-coded image unit are as follows: Figure 2 As shown. Optionally, after obtaining the original image of the micro-encoding code map to be processed, the method further includes: identifying whether the original image contains all the preset positioning points in a preset micro-encoding image unit, and if so, determining that a complete preset micro-encoding image unit exists in the original image. Specifically, for the pre-decoding process, as long as all the preset positioning points required in a complete preset micro-encoding image unit are found in the original image, it can be considered that a complete preset micro-encoding image unit has been found, that is, the pre-decoding is considered successful, so that the pre-decoding process can be implemented simply and efficiently. Exemplarily, Figure 3 This is an original image captured by a mobile terminal. It can be seen that the original image contains Figure 2 All the preset positioning points in a complete preset micro-encoded image unit shown, so the original image can be successfully pre-decoded, such as Figure 4 As shown, the dotted box represents the area range of the complete preset micro-coded image unit. The captured original image may contain image parts other than the complete preset micro-coded image unit, but it will not affect the integrity of the preset micro-coded image unit.

[0043] The preset micro-coded image unit may also include a preset number of data code points, i.e., code points other than the preset positioning points. Optionally, after obtaining the original image of the micro-coded code pattern to be processed, the method further includes: identifying whether the original image contains all the preset positioning points and a preset number of data code points in the preset micro-coded image unit; if so, determining that a complete preset micro-coded image unit exists in the original image. Specifically, in the pre-decoding process, after finding all the preset positioning points required for a complete preset micro-coded image unit in the original image, it is also necessary to find a preset number of data code points within the corresponding preset micro-coded image unit area before a complete preset micro-coded image unit is considered to have been found, i.e., pre-decoding is considered successful. This can improve the accuracy of the pre-decoding result and further increase the success rate of subsequent decoding processes.

[0044] Based on the above technical solution, optionally, after obtaining the original image of the microscopic coding code image to be processed, the method further includes: if it is determined that the original image does not contain a complete set of the preset microscopic coding image units, re-obtaining a new original image of the microscopic coding code image to be processed, until at least one complete set of the preset microscopic coding image units is present in the new original image. Specifically, if it is determined that the original image does not contain a complete set of the preset microscopic coding image units, i.e., pre-decoding has failed, indicating that the original image is unlikely to be ultimately decoded successfully. In order to avoid the frame data continuing to occupy server resources and network resources and increase time consumption, the original image of this frame is no longer processed, and the new original image of the next frame is directly recaptured. The above-mentioned pre-decoding process can be repeated for the new original image. If the pre-decoding of the new original image is successful, the image information in the new original image can be sent to the server for decoding processing. If the pre-decoding of the new original image fails, the above-mentioned re-capturing of the new original image and pre-decoding process can be repeated until the pre-decoding of the captured new original image is successful, that is, there is at least one complete preset micro-encoded image unit, indicating that the frame image has the possibility of being successfully decoded in the end, and the image information of the new original image of this frame is sent to the server for decoding processing.

[0045] Based on the above technical solution, the image information optionally includes the complete image data of the original image, all code point information within the original image, image data of the complete predetermined micro-coded image unit within the original image, or code point information within the complete predetermined micro-coded image unit within the original image. Similar to conventional solutions, the mobile terminal can directly upload the complete image data of the captured original image to the server for decoding. Alternatively, all code point information within the original image can be pre-extracted and uploaded to the server for decoding, thereby reducing the server's decoding steps and data traffic consumption. Alternatively, based on the pre-decoding results, only the complete predetermined micro-coded image unit within the original image can be uploaded to the server for decoding, thereby avoiding the server's processing of useless image areas and reducing the server's burden and data traffic consumption. Furthermore, based on the pre-decoding results, the image range can be narrowed down to the predetermined micro-coded image unit, and then the code point information within the predetermined micro-coded image unit can be extracted and uploaded to the server for decoding, further reducing the server's burden and data traffic consumption.

[0046] Based on the above technical solution, optionally, after sending the image information of the original image to the server for decoding by the server based on the image information, the method further includes: if the server decoding fails, receiving a re-execution command from the server; and re-acquiring a new original image of the micro-encoded code image to be processed based on the re-execution command, until the new original image contains at least one complete preset micro-encoded image unit. Specifically, after receiving the image information, the server performs decoding. If decoding fails, the server may send a re-execution command to the mobile terminal via the network. After receiving the re-execution command, the mobile terminal may re-execute the above-mentioned capture and pre-decoding process of the new original image of the micro-encoded code image to be processed until the pre-decoding of the captured new original image is successful, i.e., at least one complete preset micro-encoded image unit is present, indicating that the image frame has the potential to be ultimately decoded successfully. The mobile terminal then re-sends the image information of the new original image to the server for decoding. If decoding still fails, the above process may be repeated until decoding is successful or a preset number of attempts is reached. If the decoding is successful, the original information carried by the microscopic code image to be processed can be obtained. The server can then use the obtained original information for further processing based on the target function of the code scanning operation (such as anti-counterfeiting or traceability). For example, the obtained original information can be stored in the server database, and the obtained original information or information further processed based on the original information can be sent back to the mobile terminal for display. It is worth noting that because the mobile terminal first performs pre-decoding processing and only sends the relevant image information to the server for decoding if the pre-decoding is successful, the server's decoding success rate is relatively high.

[0047] The optimization effect of code scanning efficiency is illustrated with a specific example. Assume that the mobile terminal takes 50ms to process each image frame (including image capture and processing). When the data volume is small, network upload and download takes 200ms, and the server takes 50ms to process each frame. Furthermore, assume that from the start of code scanning, the first 10 captured frames are not aligned with the microscopic code image to be processed, or are focused too far or out of focus, thus becoming invalid frames. The 11th frame is aligned with the microscopic code image to be processed, has a close and accurate focus, and is therefore a valid frame. Therefore, the traditional solution requires 11 processing cycles from initiating code scanning to displaying the scanned result on the mobile terminal. The total processing time is: (mobile terminal processing time + upload time + server processing time + download time) × 11 = (50ms + 200ms + 50ms + 200ms) × 11 = 5500ms. This embodiment, however, uses a pre-decoding solution. From initiating the scan to displaying the scan result on the mobile terminal, 11 terminal processing operations, one upload, one server processing, and one download are required. The total processing time is: mobile terminal processing time × 11 + upload time + server processing time + download time = 50ms × 11 + 200ms + 50ms + 200ms = 1000ms. This shows that the total scanning time of the pre-decoding solution in this embodiment is shorter than that of the traditional solution, achieving better optimization results.

[0048] The technical solution provided by the embodiments of the present invention, when applied to a mobile terminal, first obtains an original image of the micro-coded code pattern to be processed. Upon determining that at least one complete preset micro-coded image unit exists in the original image, the image information in the original image is transmitted to a server for decoding by the server based on the image information. By pre-decoding the acquired code pattern image in the mobile terminal and submitting the corresponding image to the server for decoding only when a complete preset micro-coded image unit is determined within the code pattern image, the server avoids processing invalid image frames, reducing processing time and server burden, saving data traffic, and shortening the overall processing time. This improves code scanning efficiency, enabling faster successful scanning and enhancing the user's scanning experience. Furthermore, since the decoding algorithm only needs to be implemented on the server, it also offers a high level of security.

[0049] Example 2

[0050] Figure 5 This is a schematic diagram of the structure of the device for optimizing the scanning efficiency of micro-encoded code images provided in the second embodiment of the present invention. The device can be implemented by hardware and / or software and can generally be integrated into a mobile terminal to execute the method for optimizing the scanning efficiency of micro-encoded code images provided in any embodiment of the present invention. Figure 5 As shown, the device includes:

[0051] The code image acquisition module 51 is used to acquire the original image of the microscopic coding code image to be processed;

[0052] The image information sending module 52 is configured to send the image information in the original image to the server if it is determined that at least one complete preset microscopic coded image unit exists in the original image, so that the server can decode the image information.

[0053] The technical solution provided by the embodiments of the present invention, when applied to a mobile terminal, first obtains an original image of the micro-coded code pattern to be processed. Upon determining that at least one complete preset micro-coded image unit exists in the original image, the image information in the original image is transmitted to a server for decoding by the server based on the image information. By pre-decoding the acquired code pattern image in the mobile terminal and submitting the corresponding image to the server for decoding only when a complete preset micro-coded image unit is determined within the code pattern image, the server avoids processing invalid image frames, reducing processing time and server burden, saving data traffic, and shortening the overall processing time. This improves code scanning efficiency, enabling faster successful scanning and enhancing the user's scanning experience. Furthermore, since the decoding algorithm only needs to be implemented on the server, it also offers a high level of security.

[0054] On the basis of the above technical solution, optionally, the microscopic code image scanning efficiency optimization device further includes:

[0055] The first image unit determination module is configured to, after obtaining the original image of the microscopic coding code pattern to be processed, identify whether the original image contains all the preset positioning points in the preset microscopic coding image unit; if so, determine that a complete preset microscopic coding image unit exists in the original image.

[0056] On the basis of the above technical solution, optionally, the microscopic code image scanning efficiency optimization device further includes:

[0057] The second image unit determination module is configured to, after obtaining the original image of the microscopically encoded code pattern to be processed, identify whether the original image contains all the preset positioning points and a preset number of data code points in a preset microscopically encoded image unit; if so, determine that a complete preset microscopically encoded image unit exists in the original image.

[0058] On the basis of the above technical solution, optionally, the microscopic code image scanning efficiency optimization device further includes:

[0059] an image re-acquisition module configured to, after acquiring the original image of the microscopic coding code image to be processed, re-acquire a new original image of the microscopic coding code image to be processed if it is determined that no complete preset microscopic coding image unit exists in the original image, until at least one complete preset microscopic coding image unit exists in the new original image.

[0060] Based on the above technical solution, optionally, the image information includes the complete image data of the original image, all code point information in the original image, the complete image data of the preset micro-coded image unit in the original image, or the complete code point information in the preset micro-coded image unit in the original image.

[0061] On the basis of the above technical solution, optionally, the microscopic code image scanning efficiency optimization device further includes:

[0062] a re-execution command receiving module, configured to receive a re-execution command sent by the server if the server fails in decoding after the image information in the original image is sent to the server for decoding by the server according to the image information;

[0063] A re-execution module is configured to re-acquire a new original image of the microscopic coding code image to be processed based on the re-execution command, until at least one complete preset microscopic coding image unit exists in the new original image.

[0064] The micro-coding code image scanning efficiency optimization device provided by the embodiment of the present invention can execute the micro-coding code image scanning efficiency optimization method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0065] It is worth noting that in the above-mentioned embodiment of the microscopic coding code image scanning efficiency optimization device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0066] Example 3

[0067] Figure 6 The structural diagram of the mobile terminal provided in the third embodiment of the present invention shows a block diagram of an exemplary mobile terminal suitable for implementing the embodiments of the present invention. Figure 6 The mobile terminal shown is only an example and should not limit the functions and scope of use of the embodiments of the present invention. Figure 6As shown, the mobile terminal includes a processor 61, a memory 62, an input device 63 and an output device 64; the number of processors 61 in the mobile terminal can be one or more. Figure 6 Taking a processor 61 as an example, the processor 61, memory 62, input device 63 and output device 64 in the mobile terminal can be connected through a bus or other means. Figure 6 The bus connection is taken as an example.

[0068] The memory 62, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the microscopic code image scanning efficiency optimization method in the embodiments of the present invention (for example, the code image acquisition module 51 and image information transmission module 52 in the microscopic code image scanning efficiency optimization device). The processor 61 executes the software programs, instructions, and modules stored in the memory 62 to execute various functional applications and data processing of the mobile terminal, thereby implementing the aforementioned microscopic code image scanning efficiency optimization method.

[0069] The memory 62 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data generated based on the use of the mobile terminal. Furthermore, the memory 62 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state memory device. In some instances, the memory 62 may further include memory remotely located relative to the processor 61, and these remote memories may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0070] The input device 63 can be used to obtain the original image of the microscopic code image to be processed, and generate key signal input related to user settings and function control of the mobile terminal, etc. The output device 64 can be used to upload image information to the server, etc.

[0071] Example 4

[0072] Embodiment 4 of the present invention further provides a storage medium containing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are used to perform a method for optimizing the efficiency of scanning a microscopic code image. The method includes:

[0073] Obtaining an original image of the microscopic coding code map to be processed;

[0074] If it is determined that there is at least one complete preset microscopic coding image unit in the original image, the image information in the original image is sent to the server so as to be decoded by the server according to the image information.

[0075] The storage medium can be any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROMs, floppy disks, or tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disks or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system that is connected to the computer system via a network (such as the Internet). The second computer system may provide program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (e.g., in different computer systems connected via a network). The storage medium may store program instructions (e.g., embodied as a computer program) that may be executed by one or more processors.

[0076] Of course, the storage medium containing computer-executable instructions provided in an embodiment of the present invention is not limited to the method operations described above, and can also execute related operations in the micro-coding code image scanning efficiency optimization method provided in any embodiment of the present invention.

[0077] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0078] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0079] Through the above description of the embodiments, those skilled in the art can clearly understand that the present invention can be implemented with the help of software and necessary general-purpose hardware. Of course, it can also be implemented with hardware, but in many cases the former is a more preferred embodiment. Based on this understanding, the technical solution of the present invention, or the part that contributes to the existing technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention.

[0080] Example 5

[0081] Embodiment 5 of the present invention also provides a computer program product, which includes a computer program (also referred to as code, instruction), which can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it is used to execute the micro-coding code image scanning efficiency optimization method provided in any of the above embodiments, and has the corresponding beneficial effects of the execution method.

[0082] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for optimizing the efficiency of scanning micro-code images, applied to mobile terminals, characterized in that: include: Acquire an original image of a microscopic coding code image to be processed, wherein the microscopic coding code image to be processed includes a plurality of microscopic coding image units, each of which can be decoded individually; If it is determined that at least one complete preset microscopic coded image unit exists in the original image, sending image information in the original image to a server for decoding by the server according to the image information; If it is determined that the complete preset microscopic coding image unit does not exist in the original image, then the original image is no longer processed; After obtaining the original image of the microscopic coding code image to be processed, the method further includes: Identify whether the original image contains all the preset positioning points in the preset micro-coded image unit. If so, determine that a complete preset micro-coded image unit exists in the original image.

2. The method for optimizing microscopic code image scanning efficiency according to claim 1, characterized in that: After obtaining the original image of the microscopic coding code image to be processed, the method further includes: Identify whether the original image contains all the preset positioning points in the preset micro-coded image unit and a preset number of data code points. If so, determine that a complete preset micro-coded image unit exists in the original image.

3. The method for optimizing microscopic code image scanning efficiency according to claim 1, characterized in that: After obtaining the original image of the microscopic coding code image to be processed, the method further includes: If it is determined that no complete preset microscopic coding image unit exists in the original image, a new original image of the microscopic coding code image to be processed is reacquired until at least one complete preset microscopic coding image unit exists in the new original image.

4. The method for optimizing microscopic code image scanning efficiency according to claim 1, characterized in that: The image information includes the complete image data of the original image, all code point information in the original image, the image data of the complete preset micro-coded image unit in the original image, or the code point information in the complete preset micro-coded image unit in the original image.

5. The method for optimizing microscopic code image scanning efficiency according to claim 1, characterized in that: After sending the image information in the original image to the server so as to be decoded by the server according to the image information, the method further includes: If the server decoding fails, the server will receive a re-execution command; Based on the re-execution command, a new original image of the microscopic coding code image to be processed is re-acquired until at least one complete preset microscopic coding image unit exists in the new original image.

6. A device for optimizing the efficiency of scanning micro-code images, characterized in that: include: A code image acquisition module is used to acquire an original image of a microscopic code image to be processed, wherein the microscopic code image to be processed includes a plurality of microscopic code image units, each of which can be decoded individually; an image information sending module, configured to send the image information in the original image to a server if it is determined that at least one complete preset microscopic coded image unit exists in the original image, so that the server can decode the image information; If it is determined that the complete preset microscopic coding image unit does not exist in the original image, then the original image is no longer processed; The device further comprises: The first image unit determination module is configured to, after obtaining the original image of the microscopic coding code pattern to be processed, identify whether the original image contains all the preset positioning points in the preset microscopic coding image unit; if so, determine that a complete preset microscopic coding image unit exists in the original image.

7. A mobile terminal, characterized in that: include: one or more processors; a memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the microscopic coding code image scanning efficiency optimization method as described in any one of claims 1-5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for optimizing the scanning efficiency of a microscopic coding code image as described in any one of claims 1 to 5 is implemented.

9. A computer program product comprising a computer program, characterized in that When executed by a processor, the computer program implements the microscopic coding code image scanning efficiency optimization method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Anti-counterfeiting information embedding method and device, anti-counterfeiting information extraction method and device and storage medium

    CN113076528A

  • Microcosmic coding code pattern scanning identification method and device, equipment, medium and product

    CN118942086A