Recognition and transmission method for high-capacity data conversion coding image

Through the WeChat mini program intelligent shooting and QR code array technology, the inefficiency and security problems in the shooting and transmission of ID card photos are solved, and efficient and secure image data transmission is achieved.

CN120409511APending Publication Date: 2025-08-01刘天哲 +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510477241.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-16
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

Traditional ID card photo shooting and transmission problems are inefficient and error-prone, and the security and integrity of data transmission in cross-network environments are difficult to guarantee.

Method used

Intelligent shooting and cropping are used for WeChat mini-programs, QR code array segmentation and synthesis technology, combined with high-photometer scanning and data splicing algorithms, to achieve safe and efficient transmission of large-capacity data.

Benefits of technology

Improves the efficiency and accuracy of photo shooting, ensures efficient and secure data transmission, and keeps image quality lossless in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120409511A_ABST
    Figure CN120409511A_ABST
Patent Text Reader

Abstract

The invention relates to an identification and transmission method for a high-capacity data conversion coding image. The method comprises the following steps: 1) photographing and preprocessing a photo; 2) photo segmentation and two-dimensional code generation; 3) two-dimensional code transmission and capture; 4) data splicing and photo restoration; and 5) optimizing the system. The method not only solves the problem of pain points in traditional photo shooting and transmission, but also provides a new thought for image data secure transmission in a cross-network environment, and has wide application prospects and market values.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and particularly to a method for identifying and transmitting images encoded by converting large-capacity data. Background Art

[0002] With the development of the information society, the demand for standardized images such as ID photos and certificate photos has been increasing day by day. In practical applications, these photos need to meet strict specification requirements, such as head proportion, background color, and pose norms. Traditional methods usually rely on manual shooting and manual cropping, which have problems such as low efficiency and easy errors. In addition, in data transmission across network environments, how to ensure the high security, high integrity, and fast transmission of photos has also become a major challenge.

[0003] In recent years, as an efficient information carrier, two-dimensional codes have been widely used in the field of data transmission. However, the technology of splitting large-capacity images into multiple two-dimensional codes and performing efficient identification and splicing is still in the exploration stage. Especially during the scanning process of high-speed document scanners, how to ensure the stable capture of the two-dimensional code array and the accurate restoration of information is still an urgent problem to be solved. Therefore, it is of great significance to develop a method for identifying and transmitting images encoded by converting large-capacity data that combines the photo-taking function of WeChat mini-programs, an automatic cropping and prompting system, and two-dimensional code splitting and synthesis technologies. Summary of the Invention

[0004] To solve the above technical problems in the background art, the present invention provides a method for identifying and transmitting images encoded by converting large-capacity data, which not only solves the pain points in traditional photo shooting and transmission, but also provides a new idea for the secure transmission of image data across network environments, and has broad application prospects and market value.

[0005] The technical solution of the present invention is: a method for photo processing and cross-network transmission based on WeChat mini-programs, which is characterized in that: the method includes the following steps:

[0006] 1) Photo shooting and preprocessing:

[0007] 1.1) The user takes a photo through the WeChat mini-program or provides an original photo provided by the user;

[0008] 1.2) Non-compliance reminder: The system is built with an intelligent judgment module to detect in real time whether the photo meets the requirements. If not, it gives prompts such as "the head elevation angle is too large", "the left ear is not exposed", "wearing glasses", "wearing a hat", to guide the user to take a new photo; or prompts the user to provide a new original photo until it meets the requirements of ID photos;

[0009] 1.3) According to the standards of ID photos, such as head proportion, background color, and pose requirements, perform automatic processing and cropping, and output in a standardized manner;

[0010] 2) Photo segmentation and QR code generation:

[0011] 2.1) Segment the generated compliant photo and convert it into multiple QR code images;

[0012] 2.2) Each QR code contains part of the photo data and is arranged according to the rules to form a QR code array;

[0013] 3) QR code transmission and capture:

[0014] 3.1) Display the QR code array on the same page and use a high-speed camera to scan and capture the QR code array;

[0015] 3.2) The high-speed camera obtains the information in multiple QR codes through continuous scanning and decodes it in real time;

[0016] 4) Data splicing and photo restoration:

[0017] 4.1) The decoded data is processed by a splicing algorithm and restored to the complete original photo;

[0018] 4.2) The restored photo can be transmitted to the target device through a cross-network environment to achieve safe and efficient picture transmission.

[0019] Furthermore, the specific steps of step 1.3) are as follows:

[0020] 1.3.1) Facial key point localization: Use the Tencent Cloud face detection interface to detect the face area and locate 5 key points: eyebrows, eyes, nose, mouth, and pupils;

[0021] 1.3.2) Background segmentation and replacement: Use the Grab foreground and background separation algorithm to segment the portrait and the background; Replace the background with a solid color according to the document type;

[0022] 1.3.3) Skin color correction: Automatically correct the over-white / red / blue skin color caused by light influence;

[0023] 1.3.4) Size adaptive cropping: Based on the target document specifications, convert to pixel size at 350 dpi resolution: 358x441 pixels, and perform intelligent cropping based on the center of the face in proportion;

[0024] 1.3.5) Color correction: Apply adaptive hsv correction and white balance algorithms to ensure natural skin color.

[0025] Furthermore, the specific steps of step 2.1) are as follows:

[0026] 2.1.1) Convert the generated ID photo into base64 code and divide it into N data blocks;

[0027] 2.1.2) Attach metadata to each data block: id value; block serial number and total number of blocks.

[0028] Furthermore, the specific steps of step 2.2) are as follows:

[0029] 2.2.1) Random sequence generation: Dynamically arrange the data blocks according to the sequence value;

[0030] 2.2.2) QR code generation: Adopt QR Code and embed RS error correction code; Each QR code contains: 1 data block + unique picture id code + block serial number and total number of blocks.

[0031] Furthermore, in step 2.2.1), re - sort every 5s.

[0032] Furthermore, in step 2.2.2), the error correction level is L with a 15% error tolerance rate.

[0033] Furthermore, the specific steps of step 4.1) are: Re - organize the data blocks according to the random sequence logic and restore them to the complete original photo.

[0034] Furthermore, after step 4), it also includes step 5) System optimization. The specific steps of step 5) are as follows:

[0035] 5.1) Adopt image compression and encryption technology to ensure the efficiency and security of data during transmission;

[0036] 5.2) Adopt anti - interference algorithms to enhance the recognition ability of the high - speed camera for the QR code array in complex environments.

[0037] Furthermore, the resolution of the high - speed camera is ≥1600×1200, and the frame rate is ≥30fps. The technical solution of the present invention consists of two core modules: Intelligent ID photo generation module: Automatically standardize the photo based on deep learning algorithms; Dynamic QR code transmission system: Ensure the security of cross - network transmission through block coding, random sorting, and the cooperation of high - speed camera hardware.

[0038] The present invention has the following beneficial effects:

[0039] 1) The present invention improves the shooting efficiency and accuracy: The WeChat mini - program has built - in intelligent cropping and prompting functions, significantly reducing manual intervention, improving the passing rate of photo shooting, and reducing the number of repeated shootings caused by non - compliance.

[0040] 2) The present invention realizes efficient data transmission: By splitting the photo into multiple QR codes and using the high - speed camera for rapid scanning, it realizes the safe and efficient transmission of large - capacity data, which is especially suitable for information security requirements in cross - network environments.

[0041] 3) The present invention achieves high-precision restoration and compatibility: The data splicing algorithm can accurately restore the original photo, ensuring no loss of image quality. The system is compatible with a variety of devices, supports high-speed document cameras with different resolutions, and has strong adaptability.

[0042] 4) The present invention realizes intelligence and optimization of user experience: The intelligent prompt function improves the user experience and reduces the operation threshold. The entire process has a high degree of automation, reduces manual participation, and saves time and costs.

[0043] 5) The present invention has security and stability: The application of image compression and encryption technology ensures the security of data transmission. The anti-interference algorithm improves the stability of QR code recognition, and can ensure a high recognition rate even under complex lighting conditions. Description of the Drawings

[0044] Figure 1 It is a schematic diagram of the entity of the present invention. Detailed Embodiment

[0045] A method for photo processing and cross-network transmission based on a WeChat mini-program provided by the present invention, the steps of a specific embodiment are as follows:

[0046] 1) Photo shooting and preprocessing:

[0047] 1.1) The user takes a photo through the WeChat mini-program or provides the original photo.

[0048] 1.2) Non-standard reminder: The system is built with an intelligent judgment module to detect in real time whether the photo meets the requirements. If not, it gives prompts such as "excessive head elevation angle", "left ear not showing", "wearing glasses", "wearing a hat", to guide the user to take a new photo; or prompts the user to provide a new original photo until it meets the requirements of the ID card photo.

[0049] 1.3) According to the standards of ID card photos, such as head proportion, background color, and pose requirements, perform automatic processing and cropping, and output in a standardized manner.

[0050] 1.3.1) Facial key point positioning: Use the Tencent Cloud face detection interface to detect the face area and locate 5 key points: eyebrows, eyes, nose, mouth, and pupils.

[0051] 1.3.2) Background segmentation and replacement: Adopt the Grab foreground and background separation algorithm to segment the portrait and the background; replace the background with a solid color according to the document type.

[0052] 1.3.3) Skin color correction: Automatically correct the skin color that is too white / red / blue caused by the influence of light.

[0053] 1.3.4) Size Adaptive Cropping: Based on the target document specifications, convert to pixel size at 350 dpi resolution: 358x441 pixels, and perform intelligent cropping proportionally with the center of the face as the reference.

[0054] 1.3.5) Color Correction: Apply adaptive HSV correction and white balance algorithms to ensure natural skin color.

[0055] 2) Photo Segmentation and QR Code Generation:

[0056] 2.1) Perform segmentation processing on the generated compliant photo and convert it into multiple QR code images.

[0057] 2.1.1) Convert the generated ID photo to base64 code and divide it into N data blocks.

[0058] 2.1.2) Attach metadata to each data block: id value; block serial number and total number of blocks.

[0059] 2.2) Each QR code contains part of the photo data and is arranged according to the rules to form a QR code array.

[0060] 2.2.1) Random Sequence Generation: Dynamically arrange the data blocks according to the sequence value (re - sort every 5s).

[0061] 2.2.2) QR Code Generation: Use QR Code and embed RS error correction code (error correction level L, 15% error tolerance rate); each QR code contains: 1 data block + unique picture id code + block serial number and total number of blocks.

[0062] 3) QR Code Transmission and Capture:

[0063] 3.1) Display the QR code array on the same page and use a high - speed scanner to scan and capture the QR code array.

[0064] 3.2) The high - speed scanner obtains the information in multiple QR codes through continuous scanning and decodes it in real - time.

[0065] 4) Data Stitching and Photo Restoration:

[0066] 4.1) The decoded data is processed by a stitching algorithm and restored to the complete original photo; specifically, reorganize the data blocks according to the random sequence logic to restore the complete original photo.

[0067] 4.2) The restored photo can be transmitted to the target device across the network environment to achieve safe and efficient picture transfer.

[0068] 5) System Optimization.

[0069] 5.1) Adopt image compression and encryption technologies to ensure the efficiency and security of data during transmission.

[0070] 5.2) Adopt an anti-interference algorithm to enhance the recognition ability of the high-speed document scanner for the QR code array in a complex environment.

[0071] Among them, the image compression and encryption technology and the anti-interference algorithm are both existing technologies.

[0072] The following further elaborates on the overall solution of the present invention in conjunction with the attached drawings and specific embodiments:

[0073] See Figure 1 , the specific application embodiment of the present invention is applied to an iPad and a high-speed document scanner. The iPad is connected to the external network, and the high-speed document scanner is connected to the internal network. The specific steps are as follows:

[0074] Intelligent ID photo generation

[0075] 1) Input preprocessing

[0076] 1.1) Input source: The original photo provided by the user or the photo taken by the user through the WeChat mini-program;

[0077] 1.2) Judge whether there is a face in the photo, whether the position is compliant, and perform preprocessing. Non-standard reminder: It can prompt the non-standard places during photo taking (such as wearing glasses, wearing a hat, etc., and prompt the corresponding prompt words for non-standard photos); guide the user to retake the photo; or prompt the user to provide a new original photo until it meets the requirements of the ID photo;

[0078] 1.3) Face and background processing and standardized output;

[0079] 1.3.1) Face key point positioning: Use the Tencent Cloud face detection interface to detect the face area and locate 5 key points (eyebrows, eyes, nose, mouth, pupils);

[0080] 1.3.2) Background segmentation and replacement: Adopt the Grab foreground and background separation algorithm to segment the portrait and the background; Replace the background with a solid color according to the document type (such as white #FFFFFF).

[0081] 1.3.3) Skin color correction: Automatically correct the over-white / red / blue skin color caused by the influence of light;

[0082] 1.3.4) Size adaptive cropping: Based on the target document specifications, convert to pixel size (358x441 pixels) at 350 dpi resolution; Centered on the face, perform intelligent cropping according to the ratio;

[0083] 1.3.5) Color correction: Apply the adaptive hsv correction and white balance algorithm to ensure natural skin color.

[0084] 2) Dynamic QR code encoding;

[0085] 2.1) Data Chunking and Encapsulation

[0086] 2.1.1) Convert the generated ID photo into base64 code and divide it into N data chunks;

[0087] 2.1.2) Attach metadata to each data chunk: id value; chunk serial number and total number of chunks.

[0088] 2.2) Dynamic Sorting of QR Codes

[0089] 2.2.1) Random Sequence Generation: Dynamically arrange the data chunks according to the sequence value (re - sort every 5s).

[0090] 2.2.1) QR Code Generation: Use QR Code and embed RS error - correction code (error - correction level L, 15% error tolerance); each QR code contains: 1 data chunk + unique photo id code + chunk serial number and total number of chunks.

[0091] 3) High - speed Document Scanner Scanning and Transmission

[0092] Hardware Requirements: Industrial - grade high - speed document scanner (resolution ≥ 1600×1200, frame rate ≥ 30fps), equipped with a polarization filter to reduce reflection interference.

[0093] 3.1) Display the QR code array on the same page and use the high - speed document scanner to scan and capture the QR code array;

[0094] 3.2) The high - speed document scanner obtains the information in multiple QR codes through continuous scanning and decodes it in real - time;

[0095] 4) Data Stitching and Photo Restoration, Secure Transmission;

[0096] 4.1) Re - organize the data chunks according to the random sequence logic and restore them to the complete original photo;

[0097] 4.2) The restored photo can be transmitted to the target device through a cross - network environment to achieve secure and efficient picture transfer;

[0098] 5) System Optimization.

[0099] 5.1) Adopt image compression and encryption technologies to ensure the efficiency and security of data during transmission;

[0100] 5.2) Adopt anti - interference algorithms to enhance the high - speed document scanner's ability to recognize the QR code array in complex environments.

[0101] The technical content not specifically described in the present invention content and the above embodiments is the same as the prior art.

[0102] The above is only the specific implementation manner disclosed by the present invention, but the protection scope disclosed by the present invention is not limited thereto. The protection scope disclosed by the present invention shall be subject to the protection scope of the claims.

Claims

1. A photo processing and cross-network transmission method based on WeChat mini-program, characterized in that: The method includes the following steps: 1) Photo shooting and preprocessing: 1.1) The user takes a photo through the WeChat mini-program or provides the original photo; 1.2) Non-compliance reminder: The system has a built-in intelligent judgment module to detect in real time whether the photo meets the requirements. If not, it gives prompts such as "Excessive head elevation angle", "Left ear not exposed", "Wearing glasses", "Wearing a hat", and guides the user to take a new photo; or prompts the user to provide a new original photo until it meets the requirements of the ID card photo; 1.3) Automatically process and crop according to the standards of ID card photos, such as head proportion, background color, and pose requirements, and output in a standardized manner; 2) Photo segmentation and QR code generation: 2.1) Perform segmentation processing on the generated compliant photo and convert it into multiple QR code images; 2.2) Each QR code contains part of the photo data and is arranged according to rules to form a QR code array; 3) QR code transmission and capture: 3.1) Display the QR code array on the same page and use a high-speed camera to scan and capture the QR code array; 3.2) The high-speed camera obtains the information in multiple QR codes through continuous scanning and decodes it in real time; 4) Data splicing and photo restoration: 4.1) The decoded data is processed by a splicing algorithm and restored to the complete original photo; 4.2) The restored photo can be transmitted to the target device through a cross-network environment to achieve safe and efficient picture transfer.

2. The photo processing and cross-network transmission method based on WeChat Mini Program according to claim 1, wherein: The specific steps of step 1.3) are as follows: 1.3.1) Facial key point positioning: Use the Tencent Cloud face detection interface to detect the face area and locate 5 key points: eyebrows, eyes, nose, mouth, and pupils; 1.3.2) Background segmentation and replacement: Use the Grab foreground and background separation algorithm to segment the portrait and the background; replace the background with a solid color according to the document type; 1.3.3) Skin color correction: Automatically correct the over-white / red / blue skin color caused by light influence; ​ ​ 3. The method for photo processing and cross-network transmission based on WeChat mini-program according to claim 2, wherein: ​ ​ ​ ​ 4. The method for photo processing and cross-network transmission based on WeChat Mini Program according to claim 3, wherein: ​ ​ ​ 5. The photo processing and cross-network transmission method based on WeChat mini-program according to claim 4, wherein: ​ 6. The photo processing and cross-network transmission method based on WeChat mini-program according to claim 5, characterized in that: ​ 7. The method for photo processing and cross-network transmission based on WeChat mini-program according to claim 6, wherein: ​ 8. The method for photo processing and cross-network transmission based on WeChat mini-program according to claim 7, wherein: After the said step 4), step 5) system optimization is further included, and the specific steps of step 5) are as follows: 5.1) Adopt image compression and encryption technology to ensure the efficiency and security of data during transmission; 5.2) Adopt anti-interference algorithms to enhance the recognition ability of the high-speed scanner for the QR code array in complex environments.

9. The photo processing and cross-network transmission method based on WeChat mini-program according to any one of claims 1 to 8, characterized in that: The resolution of the said high-speed scanner is ≥1600×1200, and the frame rate is ≥30fps.