Microcosmic coding code pattern code scanning efficiency optimization method and device, mobile terminal and medium
By pre-decoding microscopic coded images in mobile terminals to identify complete units before server processing, the method addresses security and scanning efficiency issues, enhancing user experience and reducing data traffic.
Patent Information
- Application Number
- CN202411629970.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2044-11-15
AI Technical Summary
Existing methods for decoding microscopic coded images face security risks due to algorithms being present in terminal devices and incur slow scanning responses and increased data traffic due to processing of out-of-focus or distant image frames, affecting user experience.
A method that pre-decodes microscopic coded images in a mobile terminal to identify complete image units before sending data to the server for decoding, reducing processing of invalid frames and optimizing scanning efficiency.
Improves scanning speed and security by reducing server processing time, data traffic, and enhancing user experience through efficient pre-decoding in the mobile terminal.
Smart Images

Figure CN119150899A_ABST
Abstract
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 scanning efficiency of a microscopic coded code image. Background Art
[0002] At present, the application of microscopic code images is becoming more and more widespread. By identifying the information carried in the microscopic code images, functions such as anti-counterfeiting and traceability can be achieved. For the identification process, it is usually necessary to decode through a specific image algorithm.
[0003] There are two main existing decoding methods. One is to set the entire decoding algorithm in the terminal device, and the terminal device encrypts the decoded information and uploads 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 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 of the image is uploaded to the server, the server needs to process it and then feed it back to the terminal device, and then process the next frame of the image. Due to the microscopic characteristics of the microscopic coding code map, there are certain requirements for the focus distance and accuracy in the process of using the terminal device to scan the code. A clear image can only be obtained when the focus is more accurate and the camera of the terminal device is closer to the image. This is different from a barcode or a QR code. However, based on normal scanning habits, during the entire scanning process from starting the scanning to successful scanning, there will be many image frames that are out of focus or far away, that is, invalid image frames. These invalid image frames increase the 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, which greatly affects the user experience. Summary of the invention
[0004] The embodiments of the present invention provide a method, device, mobile terminal and medium for optimizing the scanning efficiency of a micro-coded code image to prevent 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 scanning efficiency of a microscopic code image, which is applied to a mobile terminal, and 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 coded 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 map to be processed, the method further includes:
[0009] Identify whether the original image contains all the preset positioning points in a 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 map 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 map 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 map 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 complete image data of the original image, all code point information in the original image, complete image data of the preset micro-coded image unit in the original image, or 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 as to decode the image information by the server, the method further includes:
[0016] If the server decoding fails, the re-execution command sent by the server is received;
[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 scanning efficiency of a microscopic code image, the device comprising:
[0019] A code image acquisition module is used to acquire the original image of the microscopic coding code image to be processed;
[0020] The image information sending module is used to send the image information in the original image to the server if it is determined that there is at least one complete preset micro-encoded image unit in the original image, so that the server can decode it 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 micro-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 scanning efficiency of a micro-coded code image provided in 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 method for optimizing the scanning efficiency of the micro-coding code image provided by any embodiment of the present invention.
[0027] The 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 the 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, thereby avoiding the server's processing of invalid image frames, reducing processing time and the burden on the server, saving data traffic, and reducing the time consumption of the entire processing flow, thereby improving the scanning efficiency, that is, being able to scan successfully faster, and improving 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 A flowchart of a method for optimizing the scanning efficiency of a microscopic code image provided in Embodiment 1 of the present invention;
[0029] Figure 2A schematic diagram of a preset positioning point in an exemplary preset micro-encoded image unit provided in Embodiment 1 of the present invention;
[0030] Figure 3 An exemplary original image provided in the first embodiment of the present invention;
[0031] Figure 4 A schematic diagram of a preset microscopic coded 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 the scanning efficiency of a microscopic code image provided in Embodiment 2 of the present invention;
[0033] Figure 6 This is a schematic diagram of the structure 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 in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0035] It should be mentioned before discussing the exemplary embodiments in more detail 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 therein 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] Embodiment 1
[0037] Figure 1 This is a flowchart of a 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 improving the scanning efficiency of a user scanning and identifying a specified micro-encoded code image using a mobile terminal. The method can be executed by a device for optimizing the scanning efficiency of a micro-encoded code image provided in an 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 map to be processed.
[0039] S12: If it is determined that there is at least one complete preset microscopic 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 the image information.
[0040] Among them, the microscopic coding code map refers to an image formed by the arrangement of ink dots with a diameter between 30 and 50 microns on the printed matter through certain algorithmic rules. In the microscopic coding code map image captured by the mobile terminal, each ink dot will present a black or darker area relative to other areas, which is the code point. The microscopic coding code map contains variable data information, which can realize one code for one object and no duplication of coding. At the same time, because the code points are very small and difficult to distinguish with the naked eye, they have a good hiding effect and can be well combined with the printed logo of the product. The microscopic coding code map can be a monochrome image, a grayscale image, and a color image. When printing, the color image can use the CMYK color mode.
[0041] The user can use a mobile terminal to scan the code, and this can be achieved specifically through an APP or applet in the mobile terminal. The mobile terminal can be connected to the server through a network to form a code scanning system, that is, a system for scanning the microscopic coding code map to identify its information. Specifically, the mobile terminal can obtain the original image of the microscopic coding code map to be processed through a camera, and has the function of capturing camera images. After obtaining the original image, the mobile terminal can pre-decode the original image in advance to determine whether the original image meets the conditions for providing it to the server for decoding processing, and a pre-decoding function module can be set in the mobile terminal to achieve this. The pre-decoding process may specifically be to search for a complete preset microscopic coding image unit in the original image obtained. A normally decodable microscopic coding code map image may include one or more corresponding microscopic coding image units. Each microscopic coding image unit may be decoded separately and the original information carried by the entire microscopic coding code map may be obtained. When a complete preset microscopic coding image unit is found in the original image obtained, the pre-decoding may be considered successful. The success of the pre-decoding does not guarantee that the subsequent decoding will be successful, but it can greatly improve the success rate of the subsequent decoding, that is, there is a greater probability of successful decoding compared to the case without the pre-decoding process, and the failure of the pre-decoding may mean that the subsequent decoding will definitely fail. Therefore, when it is determined that there is at least one complete preset microscopic coding image unit in the original image obtained, the image information in the original image may be sent to the server. A decoding module may be provided in the server for decoding the received image information. Specifically, the code point information in the microscopic coded image unit may be obtained according to the received image information and restored to numerical information, and then the obtained numerical information may be split, merged, decrypted and verified. If the decoding is successful, the original information carried by the microscopic coded code image to be processed may be obtained. The decoding process may 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 in a specified arrangement. The preset positioning points are a relatively basic part of the preset micro-coded image unit, which is the basis for finding all other data code points and 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-coding code map to be processed, the method further includes: identifying whether the original image contains all the preset positioning points in a preset micro-coding image unit, and if so, determining that a complete preset micro-coding 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-coding image unit are found in the original image, it can be considered that a complete preset micro-coding image unit is 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 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, and 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, that is, code points other than preset positioning points. Optionally, after obtaining the original image of the micro-coded code map to be processed, the method further includes: identifying whether the original image contains all the preset positioning points in the preset micro-coded image unit and the data code points that meet the preset number, and if so, determining that there is a complete preset micro-coded image unit in the original image. Specifically, for the pre-decoding process, it may be that on the basis of finding all the preset positioning points required in a complete preset micro-coded image unit in the original image, it is also necessary to find the data code points that meet the preset number within the corresponding preset micro-coded image unit area, and then it is considered that a complete preset micro-coded image unit is found, that is, the pre-decoding is considered to be successful, thereby improving the accuracy of the pre-decoding result and further improving the success rate of the subsequent decoding process.
[0044] On the basis of the above technical solution, optionally, after obtaining the original image of the microscopic coding code map to be processed, the method further includes: if it is determined that the original image does not contain a complete preset microscopic coding image unit, re-obtaining a new original image of the microscopic coding code map to be processed, until at least one complete preset microscopic coding image unit exists in the new original image. Specifically, if it is determined that the original image does not contain a complete preset microscopic coding image unit, that is, the pre-decoding fails, it means that the original image does not have the possibility of being successfully decoded in the end. 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, and 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 captured new original image is pre-decoded successfully, 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] On the basis of the above technical solution, optionally, the image information includes the complete image data of the original image, all the code point information in the original image, the complete image data of the preset microscopic coding image unit in the original image, or the complete code point information in the preset microscopic coding image unit in the original image. That is, similar to the traditional solution, the mobile terminal can directly upload the complete image data of the captured original image to the server for decoding. It is also possible to pre-extract all the code point information in the original image and upload it to the server for decoding, thereby reducing the server's decoding processing steps and reducing the data traffic consumption. It is also possible to upload only the complete image data of the preset microscopic coding image unit in the original image to the server for decoding based on the pre-decoding processing result, thereby reducing the server's burden by avoiding the server's processing of useless image areas and reducing the data traffic consumption. It is also possible to first narrow the image range to the preset microscopic coding image unit based on the pre-decoding processing result, and then extract the code point information in the preset microscopic coding image unit and upload it to the server for decoding, thereby further reducing the server's burden and reducing the data traffic consumption.
[0046] On the basis of the above technical solution, optionally, after sending the image information in the original image to the server so that the server can decode the image information, the method further includes: if the server decoding fails, receiving a re-execution command sent by the server; based on the re-execution command, re-acquiring a new original image of the microscopic coding code map to be processed, until there is at least one complete preset microscopic coding image unit in the new original image. Specifically, after receiving the image information, the server performs decoding processing. If the decoding fails, the re-execution command can be sent to the mobile terminal through the network. After receiving the re-execution command, the mobile terminal can re-execute the above-mentioned capture of the new original image of the microscopic coding code map to be processed and the pre-decoding processing process until the captured new original image is pre-decoded successfully, that is, there is at least one complete preset microscopic coding image unit, indicating that the frame image has the possibility of being finally decoded successfully, and then the image information of the frame of the new original image is sent to the server again for decoding processing. If the decoding still fails, the above process can be repeated until the decoding is successful or the preset number of attempts is reached. If the decoding is successful, the original information carried by the micro-coded code image to be processed can be obtained, and then the server can also use the obtained original information for further processing based on the target function of the code scanning operation (such as anti-counterfeiting or traceability), such as saving the obtained original information in the server's database, and sending the obtained original information or information further processed based on the original information back to the mobile terminal for display, etc. It is worth noting that since the mobile terminal first performs pre-decoding processing and only sends the relevant image information to the server for decoding when the pre-decoding is successful, the server's decoding success rate is relatively high.
[0047] The optimization effect of code scanning efficiency is explained with a specific example. Assume that the mobile terminal takes 50ms to process each frame of image (including capturing images and image processing, etc.), and the time taken to upload and download through the network when the amount of data is small is 200ms, and the server takes 50ms to process data each time. Also assume that from the start of code scanning, the first 10 frames of images captured are not aligned with the microscopic code map to be processed, or the focus distance is too far or the focus is inaccurate, that is, invalid frames, and the 11th frame is aligned with the microscopic code map to be processed, and the focus distance is close and the focus is accurate, that is, a valid frame. Then, the traditional solution requires 11 processing cycles from starting the code scanning to displaying the code scanning results on the mobile terminal, and the total time is: (mobile terminal processing time + upload time + server processing time + download time) × 11 = (50ms + 200ms + 50ms + 200ms) × 11 = 5500ms. However, this embodiment adopts the pre-decoding solution. From starting the code scanning to displaying the code scanning result on the mobile terminal, 11 terminal processings, one upload, one server processing and one download are required. The total time consumption is: mobile terminal processing time consumption × 11 + upload time consumption + server processing time consumption + download time consumption = 50ms × 11 + 200ms + 50ms + 200ms = 1000ms. It can be seen that the total time consumption of the code scanning system using the pre-decoding solution of this embodiment is less than that of the traditional solution, and the optimization effect is better.
[0048] The technical solution provided by the embodiment of the present invention is applied to a mobile terminal, and firstly obtains the original image of the micro-coded code map to be processed. 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. By pre-decoding the acquired code map image in the mobile terminal in advance, and submitting the corresponding image to the server for decoding only when it is determined that there are complete preset micro-coded image units in the code map image, the server is avoided from processing invalid image frames, reducing processing time and the burden of the server, saving data traffic, and reducing the time consumption of the entire processing flow, thereby improving the scanning efficiency, that is, the code can be scanned successfully faster, and the user's scanning experience is improved. At the same time, since the decoding algorithm still only needs to be set in the server, it also has higher security.
[0049] Embodiment 2
[0050] Figure 5 This is a schematic diagram of the structure of the device for optimizing the scanning efficiency of microscopic 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 in a mobile terminal to execute the method for optimizing the scanning efficiency of microscopic code images provided in any embodiment of the present invention. Figure 5 As shown, the device comprises:
[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 used to send the image information in the original image to the server if it is determined that there is at least one complete preset micro-encoded image unit in the original image, so that the server can decode it according to the image information.
[0053] The technical solution provided by the embodiment of the present invention is applied to a mobile terminal, and firstly obtains the original image of the micro-coded code map to be processed. 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. By pre-decoding the acquired code map image in the mobile terminal in advance, and submitting the corresponding image to the server for decoding only when it is determined that there are complete preset micro-coded image units in the code map image, the server is avoided from processing invalid image frames, reducing processing time and the burden of the server, saving data traffic, and reducing the time consumption of the entire processing flow, thereby improving the scanning efficiency, that is, the code can be scanned successfully faster, and the user's scanning experience is improved. At the same time, since the decoding algorithm still only needs to be set in the server, it also has higher 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 used to identify whether the original image contains all the preset positioning points in the preset micro-coded image unit after the original image of the micro-coded code map to be processed is obtained, and if so, determine that a complete preset micro-coded 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 used to identify whether the original image contains all the preset positioning points in the preset micro-coded image unit and the data code points that meet the preset number after the original image of the micro-coded code map to be processed is obtained, and if so, it is determined that there is a complete preset micro-coded image unit 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] The image re-acquisition module is used for, after acquiring the original image of the microscopic coding code map to be processed, if it is determined that no complete preset microscopic coding image unit exists in the original image, to re-acquire a new original image of the microscopic coding code map to be processed, 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 complete image data of the original image, all code point information in the original image, complete image data of the preset micro-coded image unit in the original image, or 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 so that the server can decode the image information;
[0063] A re-execution module is used 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 device for optimizing the scanning efficiency of a microscopic coding code image provided in an embodiment of the present invention can execute the method for optimizing the scanning efficiency of a microscopic coding code image provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0065] It is worth noting that in the above-mentioned embodiment of the micro-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] Embodiment 3
[0067] Figure 6 The structural diagram of the mobile terminal provided for the third embodiment of the present invention shows a block diagram of an exemplary mobile terminal suitable for implementing the implementation mode 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 example of connecting through bus is taken in the following.
[0068] The memory 62, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the microscopic coding code image scanning efficiency optimization method in the embodiment of the present invention (for example, the code image acquisition module 51 and the image information sending module 52 in the microscopic coding code image scanning efficiency optimization device). The processor 61 executes various functional applications and data processing of the mobile terminal by running the software programs, instructions and modules stored in the memory 62, that is, realizing the above-mentioned microscopic coding code image scanning efficiency optimization method.
[0069] The memory 62 may mainly include a program storage area and a data storage area, wherein 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 created according to the use of the mobile terminal, etc. In addition, the memory 62 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 62 may further include a memory remotely arranged relative to the processor 61, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network 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 map 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] Embodiment 4
[0072] Embodiment 4 of the present invention further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, is used to execute a method for optimizing the scanning efficiency of a microscopic code image, the method comprising:
[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 coded 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 may be any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; 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 disk 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, which 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 by an embodiment of the present invention is not limited to the method operations described above, and the computer executable instructions can also execute related operations in the micro-coding code image scanning efficiency optimization method provided by any embodiment of the present invention.
[0077] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0078] The program code embodied on the 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 implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, 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 a computer floppy disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (FLASH), a hard disk or 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 of the present invention.
[0080] Embodiment 5
[0081] Embodiment 5 of the present invention further 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 used. 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 more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for optimizing the scanning efficiency of a microscopic code image, applied to a mobile terminal, characterized in that: include: Obtaining an original image of the microscopic coding code map to be processed; If it is determined that there is at least one complete preset microscopic coded 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.
2. The method for optimizing the scanning efficiency of micro-encoded code images according to claim 1, characterized in that: After obtaining the original image of the microscopic coding code map to be processed, the method further includes: Identify whether the original image contains all the preset positioning points in a preset micro-coded image unit. If so, determine that a complete preset micro-coded image unit exists in the original image.
3. The method for optimizing the scanning efficiency of micro-encoded code images according to claim 1, characterized in that: After obtaining the original image of the microscopic coding code map 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.
4. The method for optimizing the scanning efficiency of microscopic code images according to claim 1, characterized in that: After obtaining the original image of the microscopic coding code map 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 map to be processed is reacquired until at least one complete preset microscopic coding image unit exists in the new original image.
5. The method for optimizing the scanning efficiency of micro-encoded code images 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.
6. The method for optimizing the scanning efficiency of micro-encoded code images according to claim 1, characterized in that: After sending the image information in the original image to the server so as to decode the image information by the server, the method further includes: If the server decoding fails, the re-execution command sent by the server is received; 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.
7. A device for optimizing the scanning efficiency of microscopic code images, characterized in that: include: A code image acquisition module is used to acquire the original image of the microscopic coding code image to be processed; The image information sending module is used to send the image information in the original image to the server if it is determined that there is at least one complete preset micro-encoded image unit in the original image, so that the server can decode it according to the image information.
8. 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 micro-coding code image scanning efficiency optimization method as described in any one of claims 1-6.
9. 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 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, it implements the method for optimizing the scanning efficiency of a microscopic coding code image as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Graphic image intelligent identification system and method
CN106778441A
Bar code identification method and system
CN110210263A
Double-ID two-dimensional code microcode element encoding-decoding method and system
CN111222610A
Anti-counterfeiting information embedding method and device, anti-counterfeiting information extraction method and device and storage medium
CN113076528A
Automatic code scanning method and terminal
CN115130491A
