AR holographic photographing system

By introducing digital signature verification, timestamp verification, and layout identification into the QR code payload, and combining QR code corner point constraints and feature matching, the problems of easy tampering and poor recognition stability of QR codes in AR holographic photography systems are solved, and the reliable binding and stable presentation of AR content are realized.

CN123181602APending Publication Date: 2026-11-27XITIEKE INTELLIGENT TECHNOLOGY (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611370596.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-04
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing AR holographic photography systems suffer from problems such as QR codes being easily tampered with and copied, poor recognition stability, initialization failures under reflective, low-texture, or occluded conditions, and low QR code positioning efficiency due to changes in photo layout.

Method used

By introducing digital signature verification, timestamp verification, layout identification, and QR code corner point constraints and feature matching into the QR code payload, reliable binding and stable presentation are achieved.

Benefits of technology

It improves the anti-tampering capability of QR codes, reduces the risk of unauthorized content loading, enhances anti-replay capability, improves the initialization success rate and tracking stability under complex conditions, and ensures the stable overlay and presentation of AR content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181602A_ABST
    Figure CN123181602A_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of computer vision and augmented reality, and aims at the problems of easy tampering or copy replay of a two-dimensional code in entity photo AR interaction, slow identification initialization and unstable superposition under low-texture reflection, and provides an AR photographing method: a computer end acquires a user image, performs AI stylization, portrait segmentation, and fuses the image with a digital background to generate a synthetic picture; a two-dimensional code containing a content identifier, a timestamp, a random number, a format identifier, and a digital signature is generated, synthesized and printed according to the fixed position of the format identifier; a mobile end performs code scanning, post-signing and time limit checking, determines an expected area according to the format identifier, solves a homography matrix or a pose parameter by using a two-dimensional code corner point constraint and a photo feature matching joint solution, aligns and renders AR content, realizes content binding and stable presentation, and is used for offline photographing and printing and mobile end AR display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of computer vision and augmented reality, specifically to an AR holographic photography method and its implementation method for achieving reliable binding and stable overlay presentation of AR content on physical photographs. Background Technology

[0002] Offline photo-printing systems typically consist of a computer terminal, camera equipment, and a printer. They enable portrait photography, filter / stylization processing, background compositing, and printing of physical photos. Simultaneously, augmented reality (AR) technology on mobile devices can overlay 2D images, 3D models, or dynamic effects onto the live camera feed, achieving a seamless blend of virtual and real-world interaction. The user manual describes an existing system that already possesses the basic workflow of "AI stylization processing, intelligent image cutout and compositing, QR code generation and compositing, printing output, and WeChat scanning to access an AR mini-program where 2D / 3D effects stably appear on the physical photo."

[0003] However, the following technical defects or bottlenecks still exist in the above-mentioned "physical photo + AR interaction" scenario: 1. Issues of entry points being tampered with / misused: When the QR code on a physical photo only carries content identification or a jump link, the QR code payload may be replaced or forged, causing unauthorized AR content to be loaded on the mobile device, affecting the consistency of the experience and content security.

[0004] 2. Issues with QR code copying and replay: Physical photos are easily photographed and disseminated or copied. If there is a lack of verification such as validity period / random factor, QR codes can be reused, resulting in content misuse or loss of operational control.

[0005] 3. Recognition stability issues under low-texture or reflective conditions: When the surface of the object photograph is reflective, occluded, or has low texture, recognition initialization relying solely on full-image feature point matching may slow down or fail, leading to AR content overlay drift or loss. The manual also suggests ensuring that the object photograph is flat to facilitate recognition and stable tracking.

[0006] 4. Lack of strong binding between photo layout and recognition entry: The location and printing specifications of the QR code may change. If the mobile device cannot obtain the "expected area" corresponding to the photo layout, it will reduce the QR code positioning efficiency and thus affect the recognition initialization speed.

[0007] Therefore, a technical solution is needed to further introduce digital signature verification, anti-replay verification, layout identification expected area positioning, and QR code corner point constraint and feature joint pose solution in the "creative synthesis - QR code generation - printing output - scanning to enter the mini program - recognition and tracking presentation" link, so as to improve the reliable binding and stable presentation capabilities. Summary of the Invention

[0008] The technical problem to be solved by this invention is:

[0009] In the AR holographic photography process, how can we ensure that the QR code entry point on the physical photo has anti-tampering and trusted access capabilities, and anti-replay capabilities when the QR code is copied and spread? At the same time, how can we achieve rapid initialization recognition and stable tracking of the physical photo under conditions such as reflection, low texture, or slight occlusion, so that AR interactive content can be stably overlaid on the physical photo?

[0010] This invention provides an AR holographic photography method, comprising:

[0011] Computer-based image capture and generation: Capture user images to generate original photos; perform AI stylization processing on the original photos to obtain stylized photos; perform portrait segmentation on the stylized photos to obtain a portrait foreground layer, and merge it with a preset creative digital background to generate a composite image.

[0012] QR code payload construction and signature (trusted binding): A QR code is generated based on a synthetic image. The QR code payload includes at least: a content identifier, a timestamp, a random number, a layout identifier, and a digital signature; wherein the digital signature is generated for at least the content identifier, timestamp, random number, and layout identifier. Optionally, the payload also includes a key identifier (KID) and a content digest (Hash or perceptual hash) for key rotation and anti-counterfeiting enhancement.

[0013] Fixed-position compositing and printing output: The QR code is composited into the composite image at a fixed position to obtain the final output image, and the physical photo is printed out.

[0014] Mobile QR code scanning for signature verification, anti-replay, and expected area positioning: Mobile users scan the QR code to enter the AR interactive mini-program, parse the payload, and verify the signature using the signature verification public key; when the signature verification is successful, the expected area of ​​the QR code is determined according to the layout identifier, and the timestamp validity period verification ΔT (anti-replay) can be performed.

[0015] QR code corner constraint + feature joint pose solution (stable rendering): In the recognition initialization stage, the QR code is located in the expected area and the QR code corner points are extracted as corner constraints. At the same time, the features of the entity photo are extracted and matched with reference features. The corner constraints and feature matching are combined to calculate the homography matrix or pose parameters, and the AR content is then rendered with pose alignment to make it stably presented on the entity photo.

[0016] In summary, the advantages and positive effects of this invention are as follows:

[0017] Compared to existing technologies, the advantages of this invention are as follows: Trusted access is established through signature verification, reducing the risk of unauthorized content loading due to QR code replacement / forgery; anti-replay capability is formed through timestamps and random numbers combined with ΔT verification, reducing the risk of QR code copying and reuse; the expected area is determined through layout identification, reducing the QR code search space and improving initialization speed; pose is jointly solved by QR code corner constraints and image feature matching, improving the initialization success rate and tracking stability under reflective, low-texture, or lightly occluded conditions, making AR content more stably overlaid; key rotation is achieved through trusted updates of KID and public keys, adapting to operational security management. Attached Figure Description

[0018] Figure 1 A comprehensive diagram of AR holographic photography methods Detailed Implementation

[0019] System Composition and Terminology Explanation

[0020] The method of this invention can be applied to an offline photography and AR interaction system, the system of which includes at least:

[0021] Computer terminal: Used to run photography and image processing software, connect to camera equipment and photo printer, and access the server via the Internet;

[0022] Camera equipment: can be a USB camera or other imaging device;

[0023] Photo printer: Used to print the final output image as a physical photograph;

[0024] Mobile terminal: Equipped with a camera, running an AR interactive mini-program to complete scanning, signature verification, recognition and tracking, and AR rendering presentation.

[0025] For ease of description, the following variables and fields are defined:

[0026] Original photo; Stylized photos; Foreground layer for portrait; Transparency mask; :background; Composite image; : The final output image; Content identifier; : timestamp; : Random number; Layout identifier; Digital signature; Key identifier; Content summary; : Expected area (by (Defined QR code search area); Homography matrix; or pose parameters (Used for rendering alignment); Feature matching constraint weights; QR code corner constraint weights.

[0027] Image compositing steps (details of computer-side implementation)

[0028] AI stylization

[0029] Computer terminal acquires original photos Then, AI stylization processing was performed on it to obtain... AI stylization processing can employ image-to-image transformation modules using style transfer networks or diffusion models to output stylized photos with effects such as cartoon style. Implementable parameters: input and output resolution can range from 1080p to 4K; inference latency can be within the range of 0.5 to 5 seconds depending on the hardware.

[0030] Human Image Segmentation and Fusion

[0031] right Perform portrait segmentation to obtain the portrait foreground layer and transparency mask and with preset creative digital backgrounds The composite image is obtained by fusion. .

[0032] Blending can be done pixel-by-pixel. Fusion: (1) in: Pixel coordinates; Foreground color vector; Background color vector; Transparency mask.

[0033] To improve edge quality, edge smoothing / feathering can be applied to (A) for example, with a radius of 1 to 5 pixels.

[0034] QR code payload, signature and fixed position synthesis

[0035] Load field definition and layout identifier

[0036] QR code payload At least include: content identifiers timestamp Random numbers Layout and logo Digital signature Optionally include version number Key identifier Content Summary .

[0037] One implementable field used to characterize the fixed position parameters and / or printing specification parameters of the QR code is:

[0038] , , , : Normalized coordinates of the expected area of ​​the QR code (0~1);

[0039] QR code size parameters (side length in millimeters or scale);

[0040] Optional: dpi printing resolution settings, paper size enumeration.

[0041] The side length of the QR code can be 15-35mm, the minimum white space is 2-5mm, and the printing resolution can be 300-600DPI.

[0042] The payload can be encoded in any of the following formats: TLV, JSON, or CBOR.

[0043] Signature generation and verification public key

[0044] Construct the message to be signed: (2)

[0045] Where Encode is the serialization encoding function. Calculate the digest: (3) [0042 Then generate a signature using the signing private key (SK):] (4) [0043 Hash can be SM3 or SHA256; Sign can be SM2, RSA or ECDSA, where the RSA key length is 2048 to 4096 bits, and the ECDSA curve is P256 or P384.

[0046] [0044 When verifying signatures on the mobile device, select the signature verification public key PK[KID] based on KID (if KID does not exist, use the preset default public key), reconstruct M' and calculate D'=Hash(M'), and execute: (5) [0045 If the signature verification fails, the AR content will be refused and a prompt will be displayed; if the signature verification is successful, the subsequent verification and recognition presentation process will begin.]

[0047] [0046 Example 1: Signature-based Access AR Holographic Photography Method for Online Content Acquisition] This embodiment corresponds to a typical scenario where photos are taken offline, printed, and then scanned via a mobile device to access an AR interactive mini-program for presentation.

[0048] (a) Computer-based generation and printing S101: Acquire user image and generate original photo .

[0049] S102: AI stylization processing yielded... .

[0050] S103: The human face is segmented to obtain (F,A), and then blended with the background (B) to obtain... .

[0051] S104: Construct payload fields (at least ID, T, R, Layout, SIG), and encode, hash, and sign the payload to generate SIG.

[0052] The length of the random number R can be 64 to 128 bits; the Layout includes fixed position parameters (u0, v0, u1, v1) and optional printing parameters.

[0053] S105: Generate a QR code image (Q) based on the payload, and composite (Q) into the array at a fixed position specified by the layout. get The manual clearly states that "QR codes are generated, synthesized, and designed to be placed in a fixed position on the image."

[0054] S106: Will Send to the printer to print out the physical photo.

[0055] (ii) Mobile terminal QR code scanning verification, recognition and stable overlay presentation S201: Use your mobile device to scan the QR code on the physical photo to enter the AR interactive mini-program and authorize the camera.

[0056] S202: Parse the payload and verify the signature using (PK). If the signature verification fails, refuse to load the content and display the message "Invalid QR code / has been tampered with".

[0057] S203: (Optional) Anti-replay check: Determine ,in It can be valid for 10 minutes to 24 hours or within a calendar day; if it fails, it will display "QR code expired".

[0058] S204: After the signature is verified, AR interactive content resources (2D images, 3D models, dynamic effects, etc.) can be obtained online based on the ID.

[0059] S205: Determine the expected ROI (Region Area of ​​Interest) for the QR code based on the Layout, locate the QR code within the ROI, and extract the corner points of the QR code. As a corner constraint, feature points are extracted from the entity photo region and matched with reference feature points.

[0060] S206: Jointly estimate the homography matrix (H) or pose parameters (Pose). One possible implementation is to first estimate using RANSAC followed by weighted least squares refinement. (6) in: For feature matching point pairs; Corresponding to the corner points of the QR code; As weight; This is the projection operator.

[0061] S207: Render AR content in pose alignment based on (H / Pose) to stably overlay it onto a physical photograph. The manual describes that aligned photographs can display 3D animations, artistic embellishments, or dynamic effects and be interactive.

[0062] [0047 Example 2: Modified example of key rotation + weak network / offline loading] (a) Trusted Update of KID and Public Key The QR code payload contains a KID (4-16 bytes). The mobile device maintains a public key set {PK[k]}, and selects the public key by KID during signature verification.

[0063] When the server issues a new public key, the mobile device updates it using any of the following trusted verification methods: 1. Certificate chain verification: Verify the public key certificate chain using the built-in root certificate; 2. Secondary signature verification: The public key packet is signed and the mobile device verifies the public key using the built-in update function.

[0064] The key rotation cycle can be 1 to 12 months.

[0065] (ii) Offline resource mapping / caching Mobile devices can have a built-in or cached mapping table for "ID → resource file". After signature verification and (optional) replay protection are passed, resources are loaded locally first; if they are missing locally, they are retrieved online, making them available in weak network / offline scenarios.

[0066] [0048 Example 3: Enhanced Anti-counterfeiting Modification Example of Digest Consistency Judgment] (I) Preset Area and Summary Calculation The payload includes a Digest field. The preset area is defined as a normalized coordinate region excluding the QR code area, with an area ratio of 20% to 80%, and the minimum distance between it and the QR code area is not less than 0.1 times the side length of the QR code.

[0067] The computer calculates the Digest of the preset region in the final output image and writes it into the payload.

[0068] (II) Two Implementations: Ordinary Hash and Perceptual Hash 1. Ordinary hash implementation: Perform uniform preprocessing on the preset area (grayscale conversion, scale normalization, slight blurring / contrast normalization) and then calculate SHA256 / SM3; the mobile terminal performs the same preprocessing on the corresponding area of ​​the real-time image and calculates Digest', and if they are equal, it passes.

[0069] 2. Perceptual hashing implementation: Using pHash / dHash, the mobile device calculates the Digest' and compares it with the Hamming distance of the Digest. The threshold can be 8 to 20; if it fails, the AR content is rejected.

[0070] 3. Confidence threshold and weight switching During the identification and tracking process, when the feature matching confidence level is lower than the threshold, the corner constraint weight of the QR code is increased or initialization is based solely on the corner: The confidence threshold can be: the number of valid matches is less than 30 to 80, or the intra-match rate is less than 0.3 to 0.6. Increasing the weight can be achieved by: Increase it to 1.5 to 5 times the initial weight, or set it during the initialization phase. .

[0071] 5. Exception handling and rollback strategy (ensuring feasibility) Verification failed: Refusal to load AR content and prompt "QR code invalid / has been tampered with"; Replay protection failed: "QR code expired" message displayed. Content loading failed: A network error message will be displayed, please try again, or enter offline caching mode; Initialization recognition failed: The user is prompted to adjust the distance / lighting / flatness, and can prioritize locating the corner points of the QR code to complete the initialization and then fuse feature tracking. The manual also suggests keeping the photo flat to facilitate recognition.

[0072] [0049 The above embodiments are only used to illustrate the present invention and not to limit the present invention. It is understood that, without departing from the concept of the present invention, those skilled in the art can make equivalent substitutions or modifications to the encoding method, digest algorithm, signature algorithm, threshold and weight strategy, etc., and all such substitutions or modifications should fall within the protection scope of the present invention.]

Claims

1. An AR holographic photography method, characterized in that, include: A) Using a computer terminal, a camera device connected to the computer terminal is invoked to capture user images and generate original photos; B) Perform artificial intelligence stylization processing on the original photo to obtain a stylized photo; C) Perform portrait segmentation processing on the stylized photo to obtain a portrait foreground layer, and merge the portrait foreground layer with a preset creative digital background to generate a composite image; D) Generate a QR code based on the synthesized image, wherein the payload encoded by the QR code includes at least: a content identifier, a timestamp, a random number, a layout identifier for locating augmented reality (AR) interactive content corresponding to the synthesized image, and a digital signature generated for at least the content identifier, timestamp, random number, and layout identifier, wherein the layout identifier is used to characterize the fixed position of the QR code in the synthesized image and / or the printing specifications. E) The QR code is combined into the fixed position of the composite image to obtain the final output image, and the final output image is sent to the photo printer to print the physical photo containing the QR code; F) On a mobile terminal, scan the QR code on the physical photo to enter the AR interactive mini-program, parse the QR code payload and use the signature verification public key to verify the digital signature, and at the same time determine the expected area of ​​the QR code on the physical photo based on the layout identifier. G) When the signature verification is successful, the AR interactive content is acquired or loaded according to the content identifier, the mobile terminal camera is invoked to capture the real-time image of the entity photo, and the entity photo is identified and tracked in the real-time image; during the identification and tracking process, at least in the identification initialization stage, the QR code is located using the expected area to obtain the QR code corner constraints, and the QR code corner constraints are combined with the image feature matching of the entity photo to calculate the homography matrix or pose parameters, thereby performing pose alignment rendering of the AR interactive content, so that the AR interactive content is stably presented on the entity photo; when the signature verification fails, the acquisition or loading of the AR interactive content is prohibited.

2. The method according to claim 1, characterized in that: In step A), after the user triggers the photo taking, the computer terminal outputs a countdown prompt before taking the photo, and automatically completes the photo taking when the countdown ends.

3. The method according to claim 1, characterized in that: The generation of the digital signature includes: performing a hash operation on the message to be signed to obtain a digest value, and signing the digest value using a signing private key to obtain the digital signature; wherein, the hash operation uses either SM3 or SHA-256; the signature uses either SM2, RSA or ECDSA; when using RSA, the key length is 2048 to 4096 bits; when using ECDSA, the elliptic curve is P-256 or P-384; and when using SM2, the curve parameters recommended by national commercial cryptography are used.

4. The method according to claim 1, characterized in that: In addition to the content identifier, timestamp, random number, and layout identifier, the message to be signed also includes a content digest of the final output image. The content digest is a hash value or perceptual hash value calculated from a preset area in the final output image, excluding the QR code area. The preset area is a normalized coordinate region relative to the boundary of the final output image, satisfying an area ratio of 20% to 80%, and a minimum distance from the QR code area of ​​not less than 0.1 times the side length of the QR code. When the content digest is a perceptual hash value, the consistency judgment threshold for the perceptual hash value by the mobile terminal is a Hamming distance of not more than 8 to 20.

5. The method according to claim 1, characterized in that: After the signature verification is successful, the mobile terminal performs an anti-replay check: it determines that the difference between the current time and the timestamp does not exceed a preset threshold ΔT. If the difference exceeds ΔT, it prohibits the acquisition or loading of the AR interactive content. The ΔT is 10 minutes to 24 hours, or is valid within the natural day to which the timestamp belongs.

6. The method according to claim 1, characterized in that: The QR code payload further includes a key identifier KID, and the mobile terminal selects the corresponding signature verification public key for signature verification based on the key identifier. The KID has a length of 4 to 16 bytes; the verification public key is pre-installed in the AR interactive mini-program, or is issued by the server and updated after trusted verification; the trusted verification includes one of the following: verifying the certificate chain carried by the issued public key, or performing secondary signature verification on the data packet containing the public key; the key rotation cycle is 1 to 12 months.

7. The method according to claim 1, characterized in that: The fixed position is a preset area relative to the boundary of the final output image. The preset area is defined using pixel coordinates or normalized coordinates based on the image corner points. The layout identifier includes at least coordinate parameters and QR code size parameters to characterize the preset area. The QR code side length is 15mm to 35mm, the minimum white space between the QR code and the image boundary is 2mm to 5mm, and the printing resolution is 300 to 600 DPI.

8. The method according to claim 1, characterized in that: The AR interactive mini-program mentioned in step F) is a WeChat mini-program, and the QR code recognition is triggered and authorized by WeChat's "Scan" function to call the mobile terminal's camera.

9. The method according to claim 1, characterized in that: During the identification and tracking process, when the feature matching confidence of the entity photo is lower than a threshold, the weight of the QR code corner constraint in the homography matrix or pose parameter calculation is increased, or the homography matrix or pose parameter is initialized only based on the QR code corner constraint; wherein, the confidence threshold satisfies one of the following: the number of effective matching points is less than 30 to 80, or the matching inlier rate is less than 0.3 to 0.6; the weight is increased to 1.5 to 5 times the initial weight, or the weight of the QR code corner constraint is set to 1 to 3 times the weight of the image feature matching constraint during the initialization stage.