Card surface image processing method and device, equipment, storage medium and program product

By decomposing the card image into a design pattern layer and a fixed information layer, and only dynamically processing the design pattern layer before overlaying it, the compliance issues of image-to-video generation technology in the financial payment field are solved, achieving dynamic processing of the card image and clarity of information elements.

CN121937599APending Publication Date: 2026-04-28CHINA UNIONPAY
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHINA UNIONPAY
Filing Date
2025-12-31
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

When existing image-to-video generation technologies are difficult to apply in the financial payment field, they result in the distortion, blurring, or non-compliance of key information elements on transaction cards, failing to meet stringent regulatory requirements.

Method used

By employing a layered processing technique, the card image is decomposed into a design pattern layer and a fixed information layer. Only the design pattern layer is dynamically processed before being overlaid with the fixed information layer, ensuring the clarity and compliance of key information elements.

Benefits of technology

It enables dynamic processing of card images, ensuring the clarity and compliance of key information elements in the generated dynamic card images, and avoiding regulatory risks caused by the randomness of image-to-video generation technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121937599A_ABST
    Figure CN121937599A_ABST
Patent Text Reader

Abstract

The invention discloses a card surface image processing method and device, equipment, a storage medium and a program product. The method comprises the following steps: acquiring a static card surface image of a target card; the static card surface image is disassembled into a first image layer and a second image layer, the first image layer comprises a first information element allowing dynamic processing, and the second image layer comprises a second information element not allowing dynamic processing; performing dynamic processing on the first information element to obtain at least one candidate video; and superposing the second information element and the candidate video to obtain a dynamic card surface image of the target card. According to the embodiment of the invention, before the image video is converted, the card surface image is automatically disassembled into the first image layer and the second image layer, only the first image layer is dynamically processed, and the first image layer and the second image layer are automatically superposed and synthesized after the dynamic processing is completed, so that the definition and the compliance of the second information element in the finally generated dynamic card surface image are ensured, and the image quality is improved. Therefore, the supervision risk caused by the randomness of the map video is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of artificial intelligence technology, and in particular relates to a card image processing method, apparatus, device, storage medium and program product. Background Technology

[0002] In recent years, with the rapid development of generative artificial intelligence technology, image and video generation technologies centered on diffusion models have made breakthrough progress. Among them, image-to-video (I2V) generation technology can synthesize short video sequences with reasonable motion, perspective changes, and temporal coherence based on a single static input image. Such technologies (e.g., Runway, Stable Video Diffusion) have demonstrated enormous potential in digital art creation, content marketing, and social media effects. Their core value lies in their ability to transform static visual content into dynamic narrative media at extremely low cost, greatly enriching the expressive dimensions and appeal of content.

[0003] However, applying such cutting-edge I2V technology to the highly standardized and strictly regulated financial payment field, especially to the digital dynamic presentation of transaction cards, is difficult to directly adapt. This is mainly because transaction card images are not ordinary artistic images; they contain fixed information elements with legal force and strict standards, such as issuing bank logos, card organization logos, chip area logos, and security authentication marks. These elements must always remain clear, complete, undistorted, and in fixed positions. When general I2V technology generates global motion for the entire image, it is very easy to cause distortion, blurring, or undesirable animation effects to the aforementioned key elements such as text and logos, thereby raising compliance risks and making it difficult to meet the regulatory requirements of the financial industry. Summary of the Invention

[0004] This application provides a card image processing method, apparatus, device, storage medium, and program product, which can realize dynamic processing of card images and ensure the compliance of the dynamic images.

[0005] In a first aspect, embodiments of this application provide a card image processing method, the method comprising: Obtain the static image of the target card; The static card image is decomposed into a first layer and a second layer. The first layer contains first information elements that can be dynamically processed, and the second layer contains second information elements that cannot be dynamically processed. The first information element in the first layer is dynamically processed to obtain at least one candidate video; The second information element in the second layer is overlaid with the candidate video to obtain the dynamic card face image of the target card.

[0006] Secondly, embodiments of this application provide a card image processing apparatus, the apparatus comprising: The acquisition module is used to acquire a static card face image of the target card; The disassembly module is used to disassemble the static card image into a first layer and a second layer. The first layer contains first information elements that allow dynamic processing, and the second layer contains second information elements that do not allow dynamic processing. The dynamic processing module is used to dynamically process the first information elements in the first layer to obtain at least one candidate video. The compositing module is used to overlay the second information elements in the second layer with the candidate video to obtain a dynamic card face image of the target card.

[0007] Thirdly, embodiments of this application provide an electronic device, which includes: a processor and a memory storing computer program instructions; When the processor executes computer program instructions, it implements the card image processing method as described in the first aspect.

[0008] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the card image processing method as described in the first aspect.

[0009] Fifthly, embodiments of this application provide a computer program product in which instructions, when executed by a processor of an electronic device, cause the electronic device to perform the card image processing method as described in the first aspect.

[0010] In this embodiment, a static card image of the target card is obtained; the static card image is decomposed into a first layer and a second layer. The first layer contains a first information element that allows dynamic processing, and the second layer contains a second information element that does not allow dynamic processing. The first information element in the first layer is dynamically processed to obtain at least one candidate video; the second information element in the second layer is superimposed with the candidate video to obtain a dynamic card image of the target card. According to this embodiment, before converting the card image into a video, the card image is decomposed into a first layer and a second layer. Only the first layer is dynamically processed. After the conversion, it is superimposed with the second layer, thereby realizing the dynamism of the card image and ensuring the clarity and accuracy of the second information element in the generated dynamic card image, thus avoiding regulatory risks such as non-compliance of the card image due to the randomness of the video. Attached Figure Description

[0011] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 This is a schematic diagram of the card image processing system provided in the embodiments of this application; Figure 2 This is a schematic diagram of the static card face image provided in the embodiments of this application; Figure 3 This is a schematic flowchart of card image processing provided in some embodiments of this application; Figure 4 This is a schematic diagram of the card image processing device provided in the embodiments of this application; Figure 5 This is a schematic diagram of the electronic device provided in the embodiments of this application. Detailed Implementation

[0013] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.

[0014] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0015] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.

[0016] I2V: Image-to-Video, refers to AI technology that converts static images into dynamic videos.

[0017] AI: Artificial Intelligence, refers to computer systems that simulate human intelligence and can be used for tasks such as image recognition and video generation.

[0018] CDN: Content Delivery Network, refers to a network architecture that accelerates content delivery through distributed servers and can be used for the rapid distribution of resources from servers.

[0019] IP: Intellectual Property, refers to original characters, brands, or content with commercial value, such as anime characters and film and television IPs, and is the core element of co-branded cards.

[0020] BIN: Bank Identification Number, typically the first 6-10 digits of a bank card number, is used to identify the issuing institution and, together with the card version number, forms a unique identifier for the card. PNG: Portable Network Graphics, a lossless image format that supports transparent backgrounds.

[0021] JPG / JPEG: Joint Photographic Experts Group format, a commonly used lossy compressed image format.

[0022] MP4: MPEG-4 Part 14. MPEG-4 Part 14 is a commonly used digital multimedia container format.

[0023] WebM: Web Media, is an open-source video format developed by Google, offering good compatibility with web applications.

[0024] PSD: Photoshop Document, is a layered image file format used by Adobe Photoshop.

[0025] Fps: Frames Per Second, which refers to the number of static images displayed per second in a video.

[0026] SVD: Stable Video Diffusion, is an open-source video generation model and one of the mainstream implementation schemes of I2V technology.

[0027] Prompt: Prompt Engineering refers to text instructions used to guide AI models in generating specific content.

[0028] C-end: Customer / Consumer End, referring to the application end that faces the end user.

[0029] App: Application, which is a software application on a terminal device.

[0030] API: Application Programming Interface, is a communication interface between different software systems, used for data exchange and function calls between systems.

[0031] UI: User Interface, is the visual interface through which users interact with the system.

[0032] Before providing a more detailed description of the embodiments of this application, related technologies will be introduced.

[0033] Traditional motion technology has been widely used in the commercial field. For example, 2D skeletal binding technology (such as Spine and Live2D) achieves dynamic effects by adding bones to a planar image, which is commonly seen in game characters and virtual anchors; 3D modeling and rendering technology requires the creation of a three-dimensional model and rendering output, and is used in film and television special effects and product displays; GIF / frame animation achieves simple motion effects by drawing frame by frame or playing in a loop, and is commonly seen in emoticons and advertising banners.

[0034] However, the aforementioned traditional animation solutions often require the involvement of professional designers, which is a high barrier to entry. They also suffer from problems such as long production cycles, high costs, and difficulty in mass-producing animations for hundreds of thousands of cards.

[0035] AI-powered image-to-video technology has matured significantly. For example, AI video generation tools such as Runway, Sora, and Keling have achieved commercial applications, converting static images into smooth, dynamic videos with lower technical barriers and controllable costs. AI-powered image-to-video technology can quickly generate natural and fluid dynamic effects without the need for remodeling or skeletal binding, providing a technological breakthrough for large-scale, low-cost dynamic card design innovation.

[0036] However, current AI image-to-video technology is mainly used in artistic creation scenarios. It involves inputting a complete static image into an image-to-video model, which then dynamically processes the entire image to produce a video. Card images are unique. They typically contain fixed information elements. For example, transaction cards (bank cards, credit cards, etc.) include mandatory information elements such as the issuing bank's name, card organization logo, chip area identifier, and security certification marks. These information elements are subject to industry regulatory requirements and must remain clear, identifiable, and in a fixed position without distortion. Directly processing the entire card image using traditional AI image-to-video technology would lead to compliance risks such as distorted text, deformed logos, and blurred security markings.

[0037] In view of this, to achieve the dynamism of card images, this application provides a card image processing scheme. Employing a "layered processing + post-compositing" technical approach, before image-to-video conversion, the card image is decomposed into a "design pattern layer" and a "fixed information layer." Only the design pattern layer undergoes dynamism processing, i.e., image-to-video conversion. After conversion, it is then overlaid and composited with the fixed information layer to obtain the final dynamic card image. This "layered processing + post-compositing" method ensures the clarity and compliance of mandatory information elements, avoiding regulatory risks caused by the randomness of image-to-video conversion.

[0038] The card image processing method provided in this application embodiment can be applied to, for example... Figure 1 The card image processing system shown is as follows: Figure 1 As shown, the card image processing system includes terminal equipment, card management system, image generation video system, and resource server.

[0039] The terminal device is a client device that can interact with the user, consisting of mobile smart hardware such as mobile phones and tablets, and App software. Users register an account in the client App, complete real-name authentication, and sign a contract with a commercial bank, binding their physical bank cards to the client App to form a digital card wallet. The client has a card display module that supports displaying bank card information through both static images and dynamic videos. The bank card displayed in the client App may include one or more of the following elements: issuing bank name, card name, card organization logo, card design pattern, security chip logo, and other decorative watermarks. For example, see [link to relevant documentation]. Figure 2A transaction card image includes the issuing institution's name (201), card name (202), card organization logo (203), card design (204), and decorative watermark (205). The card design can serve as a visual identifier for the brand and express the theme's emotional message; it may include IP characters, scene illustrations, co-branded elements, etc. The terminal device must have video decoding and smooth playback capabilities, supporting user operations such as loop playback and interactive clicks.

[0040] The resource server can employ a centralized cloud storage system, primarily responsible for managing and distributing card face data files. These files can include static card face images (PNG / JPG format) and dynamic card face images (MP4 / FLV / GIF and other terminal device-compatible formats). The resource server can utilize a CDN-accelerated distribution architecture to ensure fast access for terminal devices deployed in different locations. Before displaying card face information, terminal devices can request the corresponding card face data file from the resource server based on the unique identifier ID of the transaction card (based on card BIN and card number allocation). The resource server returns static or dynamic card face resources according to the request parameters and supports version control and incremental updates. After downloading, the card face data can be cached and stored locally on the client side.

[0041] The card design management system is a back-end management platform for operations personnel, consisting of a card design information management module and a search module. The card design information management module supports full lifecycle management of cards, including card creation, editing, version management, listing / delisting control, and performance data statistics. The search module provides multi-dimensional query capabilities, supporting quick location of target cards by issuing bank, card type, theme tags, launch time, and usage status. The card design management system integrates with the image-to-video system, allowing operations personnel to select static card images in the management interface and initiate "image-to-video" task requests, enabling batch processing of dynamic modifications to multiple card designs. The card design management system can also simultaneously record processing logs, task status, and review results for "image-to-video" tasks, achieving full process traceability.

[0042] The image-to-video (I2V) generation system can be an AI video generation platform built based on the Image-to-Video (I2V) diffusion model. The system may include an execution module and a review module. The execution module receives batch "image-to-video" task requests from the card management system and performs dynamic processing on the static card images in the task requests using the card image processing method provided in this application embodiment. The review module can be manually reviewed to confirm the brand compliance, visual aesthetics, and animation adaptability of the dynamically processed card images. After approval, the system uploads the dynamic card files to the resource server and updates the status flag in the card management system, completing the dynamic card production and deployment process.

[0043] The card image processing method provided in the embodiments of this application will be described below.

[0044] See Figure 3 This is a flowchart illustrating a card processing method provided in some embodiments of this application. The card processing method is executed by an image-generated video system. Figure 3 As shown, the method includes the following steps: Step 310. Obtain the static card face image of the target card.

[0045] A target card refers to a card whose image needs to be animated. Target cards can include, but are not limited to, transaction cards, transportation cards, key cards, etc.

[0046] In some embodiments of this application, users can select the target card for which card face dynamics needs to be performed in the management interface of the card face management system based on actual needs, and initiate a video image generation task request to the video image generation system. Based on this, the video image generation system can receive the video image generation task request sent by the card face management system. The video image generation task request contains at least one static card face image of the target card. The video image generation system obtains at least one static card face image of the target card by parsing the task request.

[0047] In some embodiments of this application, in order to improve the quality of the final dynamic card image, image preprocessing can be performed on the static card image after obtaining it, followed by subsequent processing. Image preprocessing may include, but is not limited to, size normalization, quality enhancement, etc.

[0048] Step 320. Decompose the static card image into a first layer and a second layer. The first layer contains first information elements that allow for dynamic processing, and the second layer contains fixed second information elements.

[0049] In some embodiments of this application, the static card face image of the target card may contain multiple information elements, including a first information element that allows dynamic processing and a second information element that does not allow dynamic processing. The first information element is the core object of the dynamic processing. To ensure the accuracy of the dynamic processing, before image-to-video conversion, the static card face image of the target card is first decomposed into a first layer and a second layer. The first layer may contain the first information element that allows dynamic processing, and the second layer may contain the second information element that does not allow dynamic processing.

[0050] In some embodiments of this application, the target card is a transaction card. The static card image of the target card includes information elements such as the issuing bank's name, card name, card organization logo, card design pattern, security chip logo, and decorative watermark. To ensure that the animated card image complies with financial industry regulatory requirements, mandatory information elements such as the issuing bank's name, card organization logo, chip area logo, and security authentication mark are not allowed to be animated. Therefore, when the target card is a transaction card, the first information element may include information such as the card design pattern and decorative watermark. The card design pattern may include visual elements such as IP images, character illustrations, scene illustrations, and decorative elements. The second information element may include the issuing bank's name, card name, card organization logo, and security chip logo. This avoids compliance risks such as text distortion, logo deformation, and blurred security marks caused by animate animation of mandatory information elements such as the issuing bank's name, card organization logo, chip area logo, and security authentication mark.

[0051] In some embodiments of this application, the obtained static card face image of the target card is the original design draft in a layered format such as PSD, which includes a first layer and a second layer. Based on this, the image-to-video system can directly extract layered materials from the static card face image to obtain the first layer and the second layer.

[0052] In some embodiments of this application, the obtained static card face image of the target card is a planar image such as JPEG / PNG. In this case, the image-to-video system can use image segmentation technology to decompose the static card face image into a first layer and a second layer. For example, the image-to-video system can find the outline of the second information element from the static card face image; create a mask, mark the pattern part corresponding to the second information element as 1, and mark the remaining pattern parts other than the second information element as 0, use the mask to extract the patterns marked as 1 to form the second layer, and extract the patterns marked as 0 to form the second layer.

[0053] Step 330. Dynamically process the first information element in the first layer to obtain at least one candidate video.

[0054] In some embodiments of this application, the I2V model can be used to dynamically process the first information elements in the first image, thereby obtaining at least one candidate video. Dynamic processing refers to converting static first information elements into dynamic video.

[0055] In some embodiments of this application, in order to make the generated candidate video more compatible with the content in the static card image and better meet the expected dynamic effect, the above step 330 may include the following steps 3301-3302.

[0056] Step 3301. Based on the first information element, generate prompt words for the image-to-video I2V model.

[0057] The prompt words are used to guide the I2V model in generating dynamic videos that match the first information element.

[0058] In some embodiments of this application, the prompts may include positive and negative prompts. Positive prompts include keywords describing the expected generated effect, explicitly guiding the I2V model on the visual features, motion patterns, and image style it should generate. For example, positive prompts may include information such as motion style requirements, image quality requirements, and style adaptation requirements. Negative prompts include keywords used to constrain and exclude unwanted image flaws, distortions (such as distorted human limbs), or undesirable effects (such as containing sensitive information or redundant text). Negative prompts clearly inform the I2V model "what not to generate," thereby improving the quality of the candidate videos output by the model.

[0059] In some embodiments of this application, the target card is a themed card, a co-branded card, or other card with a clear card theme and character. Different card themes correspond to different visual styles, emotional expressions, and dynamic preferences. For example, anime-style cards are suitable for "cute animations" (such as blinking, smiling, or slight swaying), Chinese-style cards are suitable for "slow panning, ink wash effects," and landscape-style cards are suitable for "depth of field changes, cloud movement, and water flow," etc. Based on this, in step 3301 above, steps 33011-33014 can be used to generate prompt words.

[0060] Step 33011. Based on the first information element, determine the subject type of the static card image.

[0061] In some embodiments of this application, the first information element is intelligently analyzed using large models (such as CLIP multimodal visual understanding models) and human assistance to determine its theme type, which is then designated as the theme type of the static card graphic. The theme type may include categories such as anime / manga, IP collaborations, Chinese cultural trends, traditional culture, scenery, games, sports, and public welfare.

[0062] Step 33012. Obtain the first prompt word that matches the topic type from the preset prompt word template library.

[0063] Different theme types are adapted to different motion modes, where motion mode refers to the movement of the first information element in the dynamic card image. Corresponding prompt word templates are pre-set for different theme types, and these templates can include positive and negative prompt words. Based on this, after determining the theme type of the static card image, a prompt word template corresponding to that theme type can be found from the pre-set prompt word templates, and the prompt words in that template are identified as the prompt words for the I2V model.

[0064] This method allows for the rapid identification of cue words for the I2V model, ensuring that candidate videos generated based on these cue words align with the theme of the static card image.

[0065] Furthermore, the dynamic design of transaction cards faces the challenge of mass production demands involving a massive number of card designs, multiple issuing banks, and various themes, while maintaining stylistic consistency and quality stability. Adopting the aforementioned industrialized production process of "theme classification + prompt word template library," which automatically identifies card design themes, matches preset prompt word templates, and generates designs in batches and in parallel, enables large-scale, standardized output and significantly improves production efficiency. Moreover, for card designs with the same theme, the same prompt words can be used for dynamic design, ensuring that dynamic card designs with the same theme conform to the common requirements of the theme style, guaranteeing stylistic consistency and quality stability.

[0066] Step 33013. Input the first information element into the prompt word inversion model to obtain the second prompt word output by the prompt word inversion model.

[0067] In some embodiments of this application, in order to further improve the accuracy and surprise of the dynamic effect, when generating prompt words, the first layer can be input into the prompt word backpropagation model to obtain the second prompt word output by the prompt word backpropagation model.

[0068] By using prompts to reverse-engineer the design, unique design elements of each card image (such as character poses, props, and lighting) can be captured. This allows the actions generated based on the reverse-engineered prompts to better match the original artwork's intent, achieving dynamic effects tailored to each image. Furthermore, for innovative card images that cannot be easily categorized or that incorporate multiple thematic elements, prompt template libraries may not provide a good match. Using reverse-engineering technology allows for direct interpretation of the static card image, providing a reliable descriptive basis and ensuring that the final generated dynamic card image better meets the expected effect.

[0069] Step 33014. Generate prompts for the IV2 model based on the first prompt and the second prompt.

[0070] In some embodiments of this application, the second prompt word obtained by the prompt word back-inference model and the first prompt word determined based on topic type and prompt word template may contain the same prompt word. In view of this, in order to avoid prompt word redundancy, the first prompt word and the second prompt word can be combined to obtain the initial prompt word of the IV2 model. The duplicate prompt words in the initial prompt word are removed to obtain the prompt word of the IV2 model.

[0071] The above-mentioned method of automatically generating prompts by inverting and superimposing thematic classifications is more suitable for industrialization and mass production than the traditional method of determining prompts through manual operation and fine-tuning. It helps to achieve large-scale and standardized card face dynamics, thereby significantly improving the efficiency of card face dynamics.

[0072] Step 3302. Input the prompt words and the first information element into the I2V model, and generate at least one candidate video through the I2V model.

[0073] The generated IV2 model's cue words and first information elements are input into the I2V model, enabling the I2V model to generate at least one dynamic video based on the cue words, first information elements, and set generation parameters, and the generated dynamic video is identified as a candidate video.

[0074] The generation parameters may include at least one of the following: video duration, video resolution, video frame rate, and motion amplitude. The values ​​of the generation parameters can be dynamically adjusted based on information such as the computing power of the terminal device, so that the final generated dynamic card image can be adapted to the terminal device.

[0075] In this way, by animate the prompts, different dynamic effects can be generated for different card designs. For example, for a co-branded credit card, the character on the card can be generated using I2V diffusion to achieve a smiling or waving gesture towards the user. Another example is a game-themed credit card, where the character and scenery on the card can be generated using I2V diffusion to achieve dynamic effects such as the character walking, changes in depth of field, and camera movement. Yet another example is a credit card featuring flowers on the card, where the flowers can be generated using I2V diffusion to achieve a dynamic effect of the flowers swaying in the wind.

[0076] Step 340. Overlay the second information element in the second layer with the candidate video to obtain the dynamic card face image of the target card.

[0077] After obtaining the candidate video, the second information element in the second layer is overlaid and synthesized with the candidate video, and the overlaid and synthesized video is used as the dynamic card face image of the target card.

[0078] In some embodiments of this application, to ensure the compliance and aesthetics of the final dynamic card image, before step 340 above, the image-generated video system can first display at least one candidate video. The user can view the displayed candidate videos and manually review them to select the target video that best meets the compliance requirements. The selected target video is then selected, and the image-generated video system can receive selection input for the target video from the at least one candidate video. Correspondingly, in step 340 above, the second information element in the second layer can be overlaid with the target video to obtain the dynamic card image of the target card. By adding manual review during the generation process, the compliance and visual aesthetics of the final generated dynamic card image can be improved.

[0079] In some embodiments of this application, when overlaying the second information element with a candidate video, the candidate video can be used as the bottom layer, and the second information element can be overlaid as a static transparent layer (such as a static PNG transparent layer) at the target position in the candidate video to obtain an initial dynamic card image. The target position is the position of the second information element in the static card image. Color calibration is then performed on the initial dynamic card image to obtain the dynamic card image of the target card. By performing color calibration, it can be ensured that the hue of the elements in the dynamic card image is consistent with the hue of the elements in the static card image.

[0080] In this embodiment, a static card image of the target card is obtained; the static card image is decomposed into a first layer and a second layer. The first layer contains a first information element that allows dynamic processing, and the second layer contains a second information element that does not allow dynamic processing. The first information element in the first layer is dynamically processed to obtain at least one candidate video; the second information element in the second layer is superimposed with the candidate video to obtain a dynamic card image of the target card. According to this embodiment, before converting the card image into a video, the card image is decomposed into a first layer and a second layer. Only the first layer is dynamically processed. After the conversion, it is superimposed with the second layer, thereby realizing the dynamism of the card image and ensuring the clarity and accuracy of the second information element in the generated dynamic card image, thus avoiding regulatory risks such as non-compliance of the card image due to the randomness of the video.

[0081] In some embodiments of this application, after obtaining the dynamic card face image of the target card, the dynamic card face image can be converted into a format compatible with the terminal device and compressed to obtain a dynamic card face file; the dynamic card face file is then sent to the resource server.

[0082] For example, dynamic card images can be converted to formats compatible with terminal devices such as MP4 / WebM. The converted dynamic card images are then subjected to video compression and optimization to obtain dynamic card file files. These files are automatically uploaded to a resource server, and their status is updated to "online" in the card management system. This allows end users to view and experience the dynamic card effects in their digital card wallets.

[0083] In some embodiments of this application, a terminal device can send a resource request to a resource server based on the unique identifier ID of the target card. In response to the resource request, the resource server can send a dynamic card image of the target card to the terminal device. The terminal device can then display the dynamic card image sent by the resource server on a target page. This allows the user to view the dynamic card image of the target card on the terminal device.

[0084] In some embodiments of this application, the target page may include, but is not limited to, a payment page, a card details page, etc., with the payment page primarily being a payment code page. The dynamic card image can be displayed at any location on the target page. For example, if the target page is a payment page, the dynamic card image can be displayed below the payment code. As another example, if the target page is a card details page, the dynamic card image can be displayed at the very top of the card details page.

[0085] In some embodiments of this application, after receiving the dynamic card face image of the target card sent by the resource server, the terminal device can also cache and store the dynamic card face image locally for easy retrieval next time.

[0086] In some embodiments of this application, the resource server may adopt a CDN accelerated distribution architecture to ensure fast access for terminal devices.

[0087] The card image processing method provided in this application introduces AI video generation technology into the digital and dynamic presentation of card faces, breaking through the traditional static card face format and creating a new category of "dynamic digital card faces." By animate the card face, the elements and characters on the card "come alive," giving them vitality and triggering a sense of surprise and exclusivity in users, creating visual content with viral potential. Leveraging dynamic card faces can drive multi-dimensional growth, accurately reaching young users in anime, fandoms, and Chinese fashion circles. By "trying out" dynamic card faces, dormant accounts can be activated, marginal users can be converted into active users, and a second growth curve can be discovered.

[0088] Based on the card image processing method provided in the above embodiments, this application also provides specific implementations of the card image processing apparatus. Please refer to the following embodiments.

[0089] See Figure 4 The card image processing apparatus provided in this application includes the following modules: The acquisition module 401 is used to acquire a static card face image of the target card; The disassembly module 402 is used to disassemble the static card image into a first layer and a second layer. The first layer contains first information elements that allow dynamic processing, and the second layer contains second information elements that do not allow dynamic processing. The dynamic processing module 403 is used to dynamically process the first information elements in the first layer to obtain at least one candidate video. The compositing module 404 is used to overlay the second information elements in the second layer with the candidate video to obtain the dynamic card face image of the target card.

[0090] In this embodiment, a static card image of the target card is obtained; the static card image is decomposed into a first layer and a second layer. The first layer contains a first information element that allows dynamic processing, and the second layer contains a second information element that does not allow dynamic processing. The first information element in the first layer is dynamically processed to obtain at least one candidate video; the second information element in the second layer is superimposed with the candidate video to obtain a dynamic card image of the target card. According to this embodiment, before converting the card image into a video, the card image is decomposed into a first layer and a second layer. Only the first layer is dynamically processed. After the conversion, it is superimposed with the second layer, thereby realizing the dynamism of the card image and ensuring the clarity and accuracy of the second information element in the generated dynamic card image, thus avoiding regulatory risks such as non-compliance of the card image due to the randomness of the video.

[0091] In some embodiments of this application, the target card is a transaction card; The primary information elements include the card design and decorative watermark; The second information element includes the issuing bank's name, card name, card organization logo, and security chip identifier.

[0092] In some embodiments of this application, the dynamic processing module 403 is specifically used for: Based on the first information element, prompt words for the image-to-video I2V model are automatically generated. The prompt words are used to guide the I2V model to generate dynamic video that matches the first information element. Input the prompt words and the first information element into the I2V model, and generate at least one candidate video through the I2V model.

[0093] In some embodiments of this application, the dynamic processing module 403 is specifically used for: Based on the first information element, determine the theme type of the static card image; Retrieve the first prompt word corresponding to the topic type from the preset prompt word template library; The first information element is input into the prompt word inversion model to obtain the second prompt word output by the prompt word inversion model; Based on the first and second prompt words, generate prompt words for the I2V model.

[0094] In some embodiments of this application, the prompt words include positive prompt words and negative prompt words; Positive prompts include keywords used to describe the expected generated effect; Negative warning words include keywords used to constrain and eliminate unwanted image defects, distortions, or undesirable effects.

[0095] In some embodiments of this application, the device 400 further includes: A display module is used to display at least one candidate video; A receiving module is used to receive input for selecting a target video from at least one candidate video; Synthesis module 404 is specifically used for: The second information element in the second layer is overlaid with the target video to obtain the dynamic card face image of the target card.

[0096] In some embodiments of this application, the synthesis module 404 is specifically used for: Using the candidate video as the bottom layer, the second information element is superimposed on the target position in the candidate video as a static transparent layer to obtain the initial dynamic card image. The target position is the position of the second information element in the static card image. Color calibration is performed on the initial dynamic card image to obtain the dynamic card image of the target card.

[0097] In some embodiments of this application, the device 400 further includes: The format conversion module is used to convert the dynamic card image into a format compatible with the terminal device and compress it to obtain the dynamic card file; The sending module is used to send dynamic card face files to the resource server.

[0098] In some embodiments of this application, the acquisition module 401 is specifically used for: Receive a video image generation task request sent by the card management system. The video image generation task request contains at least one static card image of the target card. The task request is parsed to obtain a static card image of at least one target card.

[0099] The card image processing device provided in this application embodiment can achieve... Figure 3 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0100] Figure 5 A schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application is shown.

[0101] Electronic device 500 may include processor 501 and memory 502 storing computer program instructions.

[0102] Specifically, the processor 501 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0103] Memory 502 may include a large-capacity memory for data or instructions. For example, and not limitingly, memory 502 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 502 may include removable or non-removable (or fixed) media. Where appropriate, memory 502 may be internal or external to electronic device 500. In a particular embodiment, memory 502 is a non-volatile solid-state memory. Memory 502 may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical / tangible memory storage devices. Thus, generally, memory 502 includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it can perform the operations described in any of the card image processing methods in the above embodiments.

[0104] The processor 501 reads and executes computer program instructions stored in the memory 502 to implement any of the card image processing methods in the above embodiments.

[0105] In one example, the electronic device 500 may also include a communication interface 503 and a bus 510. For example, Figure 5 As shown, the processor 501, memory 502, and communication interface 503 are connected through bus 510 and complete communication with each other.

[0106] The communication interface 503 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.

[0107] Bus 510 includes hardware, software, or both, that couples components of electronic device 500 together. For example, and not limitingly, the bus may include Accelerated Graphics Port (AGP) or other graphics buses, Enhanced Industry Standard Architecture (EISA) buses, Front Side Bus (FSB), HyperTransport (HT) interconnects, Industry Standard Architecture (ISA) buses, Infinite Bandwidth Interconnects, Low Pin Count (LPC) buses, memory buses, Microchannel Architecture (MCA) buses, Peripheral Component Interconnect (PCI) buses, PCI-Express (PCI-X) buses, Serial Advanced Technology Attachment (SATA) buses, Video Electronics Standards Association Local (VLB) buses, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 510 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, any suitable bus or interconnect is contemplated herein.

[0108] Furthermore, in conjunction with the card image processing methods in the above embodiments, this application embodiment can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the card image processing methods in the above embodiments.

[0109] This application also provides a computer program product, including a computer program, which, when executed, implements any of the card image processing methods described in the above embodiments.

[0110] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0111] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0112] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0113] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.

[0114] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A card face image processing method, characterized in that, The method includes: Obtain the static image of the target card; The static card image is decomposed into a first layer and a second layer. The first layer contains a first information element that allows dynamic processing, and the second layer contains a second information element that does not allow dynamic processing. The first information element in the first layer is dynamically processed to obtain at least one candidate video; The second information element in the second layer is overlaid with the candidate video to obtain the dynamic card face image of the target card.

2. The method according to claim 1, characterized in that, The target card is a transaction card; The first information element includes the card design pattern and decorative watermark; The second information element includes the issuing bank's name, card name, card organization logo, and security chip identifier.

3. The method according to claim 1, characterized in that, The step of dynamically processing the first information element in the first layer to obtain at least one candidate video includes: Based on the first information element, prompt words for the image-to-video I2V model are automatically generated. The prompt words are used to guide the I2V model to generate dynamic video that matches the first information element. The prompt word and the first information element are input into the I2V model, and at least one candidate video is generated through the I2V model.

4. The method according to claim 1, characterized in that, Based on the first information element, prompt words for the I2V model are generated, including: Based on the first information element, the theme type of the static card image is determined; Retrieve the first prompt word corresponding to the topic type from the preset prompt word template library; The first information element is input into the prompt word reverse inference model to obtain the second prompt word output by the prompt word reverse inference model; Based on the first prompt word and the second prompt word, the prompt words for the I2V model are generated.

5. The method according to claim 3, characterized in that, The prompts include positive and negative prompts; The positive prompts include keywords used to describe the expected generated effect; The negative warning words include keywords used to constrain and eliminate unwanted image defects, distortions, or undesirable effects.

6. The method according to any one of claims 1-5, characterized in that, Before overlaying the second information element in the second layer with the candidate video to obtain the dynamic card face image of the target card, the method further includes: Display the at least one candidate video; Receive input for selecting a target video from the at least one candidate video; The step of overlaying the second information element in the second layer with the candidate video to obtain the dynamic card face image of the target card includes: The second information element in the second layer is overlaid with the target video to obtain the dynamic card face image of the target card.

7. The method according to any one of claims 1-5, characterized in that, The step of overlaying the second information element in the second layer with the candidate video to obtain the dynamic card face image of the target card includes: Using the candidate video as the bottom layer, the second information element is superimposed on the target position in the candidate video as a static transparent layer to obtain an initial dynamic card image. The target position is the position of the second information element in the static card image. The initial dynamic card image is color-calibrated to obtain the dynamic card image of the target card.

8. The method according to any one of claims 1-5, characterized in that, After obtaining the dynamic card face image of the target card, the method further includes: The dynamic card image is converted into a format compatible with the terminal device and compressed to obtain a dynamic card file; Send the dynamic card face file to the resource server.

9. The method according to any one of claims 1-5, characterized in that, The process of obtaining a static card face image of the target card includes: Receive a video image task request sent by the card management system, wherein the video image task request contains at least one static card image of the target card; The task request is parsed to obtain a static card image of at least one target card.

10. A card face image processing device, characterized in that, The device includes: The acquisition module is used to acquire a static card face image of the target card; The disassembly module is used to disassemble the static card image into a first layer and a second layer. The first layer contains a first information element that allows dynamic processing, and the second layer contains a second information element that does not allow dynamic processing. The dynamic processing module is used to dynamically process the first information element in the first layer to obtain at least one candidate video. The compositing module is used to overlay the second information element in the second layer with the candidate video to obtain the dynamic card face image of the target card.

11. An electronic device, characterized in that, The electronic device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the card image processing method as described in any one of claims 1-9.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the card image processing method as described in any one of claims 1-9.

13. A computer program product, characterized in that, When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device performs the card image processing method as described in any one of claims 1-9.