A business card batch generation method and device, electronic equipment and storage medium

CN122528844APending Publication Date: 2026-08-07SHENZHEN DIANMAO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN DIANMAO TECH CO LTD
Filing Date
2026-05-09
Publication Date
2026-08-07

AI Technical Summary

Technical Problem

[0005]本发明提供了一种名片的批量生成方法、装置、电子设备及存储介质,以解决以解决现有名片生成过程中效率低、信息校验缺失、排版依赖人工、无法自动化批量生成的问题

Benefits of technology

[0007]本发明提供的名片的批量生成方法,通过自动获取多个目标用户的业务信息与业务模板,并对业务信息进行完整性校验,校验通过后按目标模板自动确定图文排版并完成图像渲染,生成各个目标用户的目标名片。本发明能够实现名片的全程自动化生成,无需人工参与排版与制作,流程规范简洁、执行顺畅,信息处理准确可靠,有效避免人工录入与校对带来的失误,批量处理效率大幅提升,稳定、高效、批量输出版式统一、格式规范、视觉一致的标准化名片,显著提升名片生成的整体效率与输出一致性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122528844A_ABST
    Figure CN122528844A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of business card design, and discloses a batch generation method and system of a business card, an electronic device and a storage medium, the method comprising the following steps: obtaining service information of target users and corresponding target service templates, wherein the target users are at least one; performing integrity verification on the service information corresponding to each target user based on a local material library; if the verification is passed, determining a graphic-text layout result according to the target service template and the service information; performing image rendering according to the graphic-text layout result to generate a target business card of the target user. The application can realize full-process automatic generation of the business card, does not need manual participation in layout and production, the process is simple and smooth, information processing is accurate and reliable, errors caused by manual input and correction are effectively avoided, batch processing efficiency is greatly improved, and a standardized business card with unified output style, standard format and consistent vision is stably and efficiently output, so that the overall efficiency of business card generation and output consistency are significantly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of business card design technology, specifically to a method, apparatus, electronic device, and storage medium for batch generation of business cards. Background Technology

[0002] With the widespread development of online education and digital teaching, the size of teaching teams is constantly expanding. As an important carrier for showcasing teachers' identities and teaching image, the demand for teacher business cards is continuously increasing, and they need to be frequently updated according to business scenarios and personnel information. Currently, the production and generation of business cards generally rely on manual operation, requiring manual information sorting, layout selection, and typesetting output, which is cumbersome and inefficient.

[0003] In batch generation scenarios, existing methods cannot effectively verify business information and materials. Incomplete information and missing materials often lead to unusable generated results, making it difficult to guarantee generation quality. At the same time, business card generation is highly dependent on fixed layouts and cannot adapt to different business templates to complete the graphic and text layout. The consistency of layout and output standardization are poor, requiring repeated manual adjustments.

[0004] Furthermore, existing technologies lack automated rendering and generation capabilities. Both single-page and batch processing require extensive manual intervention, with complex and time-consuming operation steps. This makes it difficult to quickly and accurately output business cards that meet the requirements, and it is hard to meet the needs of large-volume, high-frequency, and standardized business card production. As a result, production costs are high, error rates are high, and updates and iterations are slow. Summary of the Invention

[0005] This invention provides a method, apparatus, electronic device, and storage medium for batch generation of business cards, in order to solve the problems of low efficiency, lack of information verification, reliance on manual layout, and inability to automatically generate business cards in the existing business card generation process.

[0006] In a first aspect, the present invention provides a method for batch generation of business cards, the method comprising: acquiring business information of a target user and a corresponding target business template, wherein there is at least one target user; performing integrity verification on the business information corresponding to each target user in sequence based on a local material library; if the verification passes, determining the graphic layout result based on the target business template and business information; and performing image rendering based on the graphic layout result to generate the target business card of the target user.

[0007] The batch business card generation method provided by this invention automatically acquires business information and templates from multiple target users, verifies the integrity of the business information, and automatically determines the text and image layout according to the target template and completes image rendering to generate target business cards for each target user. This invention enables fully automated business card generation without manual intervention in layout and production. The process is standardized, concise, and smooth, with accurate and reliable information processing, effectively avoiding errors caused by manual data entry and proofreading. Batch processing efficiency is significantly improved, and standardized business cards with uniform layout, standardized format, and consistent visual appearance are stably and efficiently output in batches, significantly improving the overall efficiency and consistency of business card generation.

[0008] In one optional implementation, the business information corresponding to all target users is stored in a target file. The integrity of the business information corresponding to each target user is sequentially verified based on a local media library. This includes: sequentially extracting the structured business information of each target user from the target file to obtain the target user's business fields, where there is at least one business field; matching preset media in the local media library based on a triple-downgrade matching strategy to determine if there are target media corresponding to the business fields, and / or performing compliance verification on the business fields; if all business fields meet the verification requirements, the integrity verification of the business information is deemed to have passed; otherwise, the verification is deemed to have failed.

[0009] This invention extracts business fields from target files in a structured manner and verifies local materials through a triple degradation matching strategy. It can batch obtain relevant user materials and perform integrity verification, significantly improving the material matching success rate and fault tolerance rate, reducing verification failures caused by non-standard file names or inconsistent formats, and ensuring accurate and reliable judgment of business information integrity.

[0010] In an optional implementation, the method further includes: if the verification fails, determining the missing information based on the business fields and the material type of the missing material, and generating a visual error list based on the missing information of all target users.

[0011] When the verification fails, this invention generates a visual error list based on the business fields and the type of missing material. This allows for quick location of missing information, facilitating timely completion. It also enables abnormal records to be identified and blocked from the rendering process before batch processing, avoiding invalid generation and improving the reliability of batch processing.

[0012] In one optional implementation, based on a triple-downgrade matching strategy, preset materials in the local material library are matched according to business fields to determine whether there is a target material corresponding to the business fields. This includes: determining the key identifier of the target user based on the business fields; matching the key identifier with the filenames of preset format files in the local material library to determine the target file corresponding to the key identifier; if no target file of the preset format can be matched, then the key identifier is traversed and matched with the filenames of multiple preset extended format files in the local material library to determine the target file corresponding to the key identifier; if no target file of the preset extended format can be matched, then the key identifier is matched with the filenames of all files in the local material library using regular expressions to determine the target file.

[0013] This invention finds target files by sequentially employing precise matching, multi-extension format traversal matching, and regular expression fuzzy matching. It is compatible with diverse file names and formats, improves the success rate of material recognition, and reduces the dependence on file naming conventions.

[0014] In one optional implementation, determining the graphic layout result based on the target business template and business information includes: obtaining template parameters of the target business template, the template parameters including at least: position parameters, font parameters, font size parameters, element size, text anchor points, border rounded corners, layer level and conditional dependency rules; converting business fields into intermediate layout descriptions, and determining the graphic layout result based on the template parameters and intermediate layout descriptions.

[0015] This invention uses the parameters of the target business template and transforms the business fields into intermediate layout descriptions to determine the graphic layout result. This ensures accurate and consistent business card layout, enables flexible adaptation of data and templates, and improves layout efficiency and standardization.

[0016] In one optional implementation, image rendering is performed based on the text and image layout results to generate a target business card for the target user. This includes: constructing scalable vector graphics from the text information in the intermediate layout description according to template parameters; performing pipeline orchestration on the bitmap resources and scalable vector graphics in the intermediate layout description based on an image processing library to determine a pixel array; performing multi-layer hierarchical scheduling based on the pixel array to obtain image buffer data for each layer; and synthesizing the image buffer data layer by layer according to the position parameters of the target template to obtain the target business card.

[0017] This invention constructs text information into scalable vector graphics and performs pipeline orchestration, layer scheduling, and compositing of bitmap resources and vector graphics. It can achieve asynchronous mixed rendering for complex multi-layer business cards, improve text clarity and rendering quality, enhance image compositing efficiency, and solve the problem of long time consumption when merging multiple layers.

[0018] In an optional implementation, the method further includes: performing sequential generation, temporary file writing, result archiving, and naming output control on multiple target users, and outputting the target business cards to a specified directory.

[0019] This invention performs sequential generation, temporary file writing, result archiving, and naming output control on business cards of multiple target users, enabling the orderly output and unified management of batch business cards and improving the convenience of large-scale processing.

[0020] Secondly, the present invention provides a batch business card generation device, comprising: an information acquisition module for acquiring business information of a target user and a corresponding target business template, wherein there is at least one target user; an information verification module for performing integrity verification on the business information corresponding to each target user sequentially based on a local material library; a graphic layout module for determining the graphic layout result based on the target business template and business information if the verification passes; and a business card generation module for performing image rendering based on the graphic layout result to generate the target business card for the target user.

[0021] Thirdly, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the batch generation method of business cards as described in the first aspect or any corresponding embodiment.

[0022] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the business card batch generation method of the first aspect or any corresponding embodiment described above. Attached Figure Description

[0023] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0024] Figure 1 This is a schematic diagram of an application scenario according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the architecture of a system for batch generating business cards according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the first method for batch generating business cards according to an embodiment of the present invention; Figure 4This is a schematic diagram of a second process for a method of batch generating business cards according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the technical architecture of a method for batch generating business cards according to an embodiment of the present invention; Figure 6 This is a schematic diagram of the third process of a method for batch generating business cards according to an embodiment of the present invention; Figure 7 This is a structural block diagram of a business card batch generation device according to an embodiment of the present invention; Figure 8 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0026] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.

[0027] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0028] As an optional application scenario of this invention, such as Figure 1 As shown, a business card batch generation system may include at least one terminal device and at least one server. Figure 1 The system is illustrated in the example, which includes a computer 101, a mobile terminal 102, and a server 103, and the terminal devices such as the computer 101 and the mobile terminal 102 are connected to the server 103 through a network 110.

[0029] Specifically, the terminal device can be a smartphone, tablet, laptop, PDA, desktop computer, game console, smart TV, smart wearable device, in-vehicle terminal, VR (Virtual Reality) device, AR (Augmented Reality) device, etc. Server 103 can be a standalone physical server, a server cluster, a distributed system, or a cloud server providing cloud services. Network 110 can be a wired or wireless network, examples of which include, but are not limited to, the Internet, corporate intranet, local area network, wide area network, mobile communication network, and combinations thereof.

[0030] Figure 2 An architecture diagram of a system for batch generating business cards, such as... Figure 2 As shown, the business card batch generation system adopts a modular, layered, and decoupled architecture design, which is divided into five layers from top to bottom: user interaction layer, data parsing and verification layer, dynamic template configuration layer, core rendering layer, and output feedback layer. It is also equipped with independent functional modules to realize a closed loop of the entire process of cross-platform deployment, automated verification, dynamic layout, and batch generation.

[0031] The user interaction layer corresponds to the desktop visualization module, built on Electron Forge, and supports cross-platform compatibility across macOS, Windows, and Linux operating systems. The user interaction layer provides a visual interface, allowing operations personnel to perform operations such as template selection, uploading business data files, and monitoring generation progress, thus unifying the user's interaction entry point and standardizing the operation process.

[0032] The data parsing and verification layer includes an Excel parser based on the XLSX library, which can perform structured reading and extraction of batch business information. It also features a triple intelligent search algorithm engine, which uses a three-level progressive material verification strategy of precise matching, extension matching, and fuzzy matching to perform a preliminary scan of the integrity of business information and related materials, providing a reliable data foundation for subsequent rendering.

[0033] The dynamic template configuration layer adopts a configuration separation architecture to decouple resources from dynamic logic. It has more than 10 pre-built templates adapted to different business scenarios (such as experience, teaching, deep space, C++, etc.) and supports quickly pulling the corresponding layout configuration and dependency relationship according to business needs, so as to realize flexible scheduling and reuse of templates.

[0034] The core rendering layer contains a core image compositing engine that uses the Sharp and Jimp image processing libraries to achieve pixel-level overlay of multiple layers. It also combines SVG technology to vectorize and render text with custom fonts, colors, and positioning, achieving dynamic text and static bitmap mixed rendering with clear text edges and lossless image quality, ensuring high-definition output of business cards.

[0035] The output feedback layer corresponds to the feedback and output modules. It is responsible for the automatic archiving, batch export, and naming control of the finished business cards. At the same time, when the verification fails, it generates a visual Excel report containing missing fields and material types, which makes it easy for users to quickly locate and fill in the abnormal information, thereby improving the efficiency and reliability of batch processing.

[0036] Furthermore, the core functional modules of the business card batch generation system include: a business template scheduling module, a resource pre-verification module, a high-level image rendering module, and a cross-platform build and distribution module. The business template scheduling module receives user instructions from the front end, pulls and loads the layout configuration file and resource dependencies for the corresponding business scenario, providing parameter support for layout rendering. The resource pre-verification module performs consistency and integrity scans on the source data files and associated material libraries, intercepting abnormal data and missing resources to avoid invalid rendering operations. The high-level image rendering module converts business text information into SVG vector graphics and performs pipeline orchestration and multi-layer blending rendering with static bitmap materials to generate the final business card image. The cross-platform build and distribution module, based on the Electron framework, packages the application into local installation packages (such as DMG, ZIP, and DEB formats) adapted to different operating systems, enabling convenient deployment and distribution across multiple platforms.

[0037] Therefore, based on the above-mentioned business card batch generation system, this embodiment of the invention provides a business card batch generation method, which generates business cards in batches based on user business information to automate the business card generation process, improve business card generation efficiency and output consistency, and reduce human operation errors.

[0038] According to an embodiment of the present invention, a method for batch generation of business cards is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0039] This embodiment provides a method for batch generating business cards, which can be used on the aforementioned mobile terminals, such as computers. Figure 3 This is a flowchart of a method for batch generating business cards according to an embodiment of the present invention, such as... Figure 3 As shown, the process includes the following steps: Step S301: Obtain the business information of the target user and the corresponding target business template. There must be at least one target user.

[0040] Specifically, in this embodiment of the invention, the batch business card generation system receives operation instructions from operators through a desktop visualization module to complete the preparation of data and templates. Operators can upload target files containing business information of multiple target users through the interface and select the corresponding target business template according to the business scenario. Taking teachers as an example, the system reads the business information of at least one target teacher from the target file. The business information includes identity information, content information, and related resource identification information for business card display, such as name, position, contact information, and avatar identification, etc., which are only examples and not limited to this. At the same time, the pre-selected target business template is loaded. The target business template defines the overall layout and style of the business card, adapts to the design specifications of different business scenarios, and is used to uniformly constrain the overall layout, element position, content presentation form, and visual specifications of the business card, so that different target teachers generate business cards with the same format according to the same template.

[0041] For example, in this embodiment of the invention, the business information corresponding to the target teacher is stored in a pre-collected and constructed teacher directory Excel, including the real names of multiple teachers, teacher nicknames, years of experience, award rate, pass rate, number of students tutored, and the name of the teacher's company, etc.

[0042] Step S302: Based on the local material library, perform integrity verification on the business information corresponding to each target user in sequence.

[0043] Specifically, in this embodiment of the invention, after acquiring business information and templates, the system performs item-by-item verification of the business information of each target teacher according to the number of target teachers. Specifically, the system's data parsing and verification layer uses the Excel parser from the XLSX library to parse the business information of each target teacher, obtaining the corresponding business fields. Based on the local material library, it performs integrity verification on the business information of each target teacher, determining whether the information items necessary for generating the business card are complete, whether associated materials exist, and whether the data format is valid. This ensures that all information and materials required for business card generation are available, avoiding rendering failure due to missing information or invalid materials, thus guaranteeing data integrity and availability before business card generation. The system also performs consistency and integrity scanning on the target teacher's business fields, identifying missing information fields, abnormal data formats, or missing associated materials. Problematic information is intercepted to prevent it from entering the subsequent rendering process, ensuring the stability of business card generation.

[0044] Therefore, when faced with a large number of scattered materials (such as teacher portraits, QR codes, skill radar charts, PTA certificates, etc.), the embodiments of the present invention can promptly detect whether any materials are missing, thereby completing a full integrity check of all materials before the business card rendering process starts, realizing the pre-identification and effective interception of abnormal information, and avoiding rendering interruption, abnormal results or output failures due to missing materials, incomplete information or invalid formats.

[0045] This invention, through a step-by-step, precise, and comprehensive verification of each target teacher's business information and related materials, ensures that all data entering the rendering stage meets the generation requirements. This significantly improves the stability and reliability of the business card generation process, reduces invalid rendering and repetitive operations, and makes the batch generation process smoother, more efficient, and controllable. Simultaneously, this pre-verification mechanism guarantees that each final business card output is complete in content, elements, and format, effectively improving the business card yield and overall generation quality, and meeting the stability and standardization requirements of large-scale batch production of teacher business cards.

[0046] Step S303: If the verification passes, determine the graphic layout result based on the target business template and business information.

[0047] Specifically, in this embodiment of the invention, after the target user's business information passes the integrity verification, the system's core rendering layer, based on the preset layout rules, layout parameters, element sizes, and visual specifications in the target business template, and combined with the business information corresponding to the target teacher, automatically allocates text content, image materials, decorative elements, background layers, etc., in precise positions, adapts proportions, and arranges them in an orderly manner according to the template requirements. The system matches each item in the business information with its corresponding position in the template one by one, ensuring that the text content is placed reasonably, the image elements are positioned accurately, and the overall layout is coordinated and unified. This results in a graphic and text layout with clear layout logic, reasonable element layout, standardized format, and consistent visual effects, ensuring that the business card content is highly matched with the template style. This guarantees that the batch-generated business cards maintain a high degree of consistency in layout, structure, and presentation, ultimately outputting a standardized, unified, and aesthetically pleasing business card layout.

[0048] Step S304: Render the image based on the text and image layout results to generate the target user's business card.

[0049] Specifically, in this embodiment of the invention, the system performs unified image rendering, layer overlay, and overall compositing processing on all elements constituting a business card, including text, images, backgrounds, icons, logos, and decorations, according to the predetermined graphic layout. The system precisely integrates each layout element according to preset hierarchical relationships, coordinate positions, display ratios, and transparency requirements, sequentially completing layer scheduling, image stitching, color correction, and clarity optimization, ultimately generating a target business card that is complete, formatted correctly, contains accurate information, is visually unified, and has clear image quality. Through this automated rendering process, the system can efficiently generate business cards for single or multiple target users in batches, achieving fully automated, standardized, and highly efficient output of business card production, significantly improving the efficiency and stability of large-scale business card generation.

[0050] The batch business card generation method provided by this invention automatically acquires business information and templates from multiple target users, verifies the integrity of the business information, and automatically determines the text and image layout according to the target template and completes image rendering to generate target business cards for each target user. This invention enables fully automated business card generation without manual intervention in layout and production. The process is standardized, concise, and smooth, with accurate and reliable information processing, effectively avoiding errors caused by manual data entry and proofreading. Batch processing efficiency is significantly improved, and standardized business cards with uniform layout, standardized format, and consistent visual appearance are stably and efficiently output in batches, significantly improving the overall efficiency and consistency of business card generation.

[0051] This embodiment provides a method for batch generating business cards, which can be used on the aforementioned mobile terminals, such as computers. Figure 4 This is a flowchart of a method for batch generating business cards according to an embodiment of the present invention, such as... Figure 4 As shown, the process includes the following steps: Step S401: Obtain the target user's business information and the corresponding target business template. There must be at least one target user. For details, please refer to [link to relevant documentation]. Figure 3 Step S301 of the illustrated embodiment will not be described again here.

[0052] Step S402: Based on the local material library, perform integrity verification on the business information corresponding to each target user in sequence.

[0053] Specifically, step S402 includes: Step S4021: Sequentially extract the business information of each target user in the target file in a structured manner to obtain the business fields of the target user. There is at least one business field.

[0054] Specifically, in this embodiment of the invention, the system iterates through and reads the business information of one or more target users contained in the target file one by one. According to the preset data structure and parsing rules, the system splits, organizes and standardizes the business information of the target user currently being processed, transforming the original unstructured data into clear, independent and system-recognizable structured data, thereby obtaining at least one business field corresponding to the target user, such as: teacher's real name, teacher's nickname, years of experience, award rate, pass rate, number of students tutored and teacher's company name, etc.

[0055] The aforementioned business fields are used to uniquely identify target users, represent the content displayed on business cards, and associate the required material resources. Through structured extraction, subsequent material matching, information verification, and graphic layout can all be performed based on standardized fields, effectively improving the accuracy, consistency, and efficiency of data processing.

[0056] Step S4022: Based on the triple degradation matching strategy, the preset materials in the local material library are matched according to the business fields to determine whether there are target materials corresponding to the business fields, and / or the business fields are verified for compliance.

[0057] Specifically, in this embodiment of the invention, business fields can be divided into two categories: The first category is text-based fields that do not require materials and are only used for displaying text on the business card. They do not require access to local material library resources, such as name, job title, teaching subjects, contact information, and introduction text. These fields are only checked for emptiness and whether the character format is compliant, and no material matching process is executed. The second category is resource-based fields that require materials and must rely on corresponding image resources in the local material library to complete the business card rendering. Examples include teacher portraits, personal QR codes, skill radar charts, qualification certificate images, and brand decorative icons. These fields must undergo a triple-downgrade matching strategy to retrieve the corresponding target materials.

[0058] Therefore, for text-based applications that do not require material fields (such as name, job title, etc.), only the completeness and integrity of the content are verified, and the character format is valid and free of garbled text; no material matching is required. For resource-based applications that require material fields (such as teacher's photo, QR code, etc.), the system uses the business fields extracted from the structured database as the matching basis and employs a triple-downgrade matching strategy. It performs a step-by-step, orderly, and highly fault-tolerant search and matching of various preset materials required for business card generation in the local material library. Figure 5 As shown.

[0059] During the matching process, the system performs matching judgments sequentially according to preset priorities. If the corresponding material is not successfully obtained by the previous matching method, it automatically downgrades and starts the next matching method to continue searching. Without forcing that the file names be completely uniform or the format be completely fixed, the system maximizes the success rate of material recognition and resource compatibility, ensuring that it can accurately determine whether there are available target materials corresponding to the business fields, and providing a reliable basis for subsequent integrity judgment.

[0060] In some optional implementations, step S4022 above includes: Step a1: Determine the key identifiers of the target user based on the business fields.

[0061] Step a2: Match the key identifier with the filenames of preset format files in the local material library to determine the target file corresponding to the key identifier.

[0062] Step a3: If a target file in the preset format cannot be matched, the key identifier is traversed and matched with the filenames of various preset extended format files in the local material library.

[0063] Step a4: If no target file with the preset extended format can be matched, the key identifier is matched with the filenames of all files in the local material library using regular expressions to determine the target file.

[0064] Specifically, in this embodiment of the invention, the system selects information that can uniquely identify the target user from the business fields extracted through structured processing as key identifiers. These key identifiers are used to match files in the local resource library, ensuring a one-to-one correspondence between resources and target users, providing a unified and accurate retrieval basis for subsequent precise searches. For example, the system obtains information that can uniquely identify a teacher, such as their name, nickname, and WeChat official account name, from the structured extracted business fields and uses this information as a key identifier. If a teacher's name in the business fields is "Zhang San," their nickname is "Deep Space Teacher," and their WeChat official account name is "Zhang San-Programming," then the system will use "Zhang San" as the key identifier for this resource matching.

[0065] In some optional implementations, the system uses a key identifier as the retrieval object and prioritizes performing exact matching of filenames with a preset format in the local media library. It compares the key identifier with the filenames in the library to ensure complete consistency. If a file is found with a name exactly matching the key identifier and a format that meets preset requirements, that file is directly identified as the target file corresponding to the business field, thus completing the media matching. For example, if the system's preset format is .png, it searches for media with the filename "Zhang San.png". If this file exists in the media library, the match is successful, and it is identified as the target media.

[0066] Furthermore, if no target file is found in the preset format, the system automatically expands the matching scope, traversing and searching for files in various preset extended formats in the local material library. It compares the key identifier sequentially with file names of different extensions, ensuring compatibility with multiple common image formats. This increases the probability of file matching without altering the key identifier, further identifying the target file corresponding to the key identifier. For example, if "Zhang San.png" is not found, the system automatically traverses various common image formats such as .jpg, .jpeg, and .webp, i.e., "Zhang San.jpg", "Zhang San.jpeg", "Zhang San.webp", etc., attempting to match them sequentially. If any of these formats, such as "Zhang San.jpg", is found, the match is considered successful.

[0067] Furthermore, if no match is found after traversing the extended formats, the system activates a regular expression matching mechanism. This mechanism performs standardized cleaning and fuzzy matching on the filenames of all files in the local media library. By using rule matching, it identifies files containing key identifiers, prefixes / suffixes / separators, or other non-standard naming conventions, maximizing compatibility with irregular naming scenarios. Finally, it determines the target file corresponding to the key identifier, completing the triple-downgrade matching process. For example, the media library may not contain files like "Zhang San.png" or "Zhang San.jpg," but it may contain files like "Zhang San_Avatar.png," "Zhang San-New Version.jpg," and "Deep Space Teacher_Zhang San.png." The system uses regular expression matching to identify files whose filenames contain "Zhang San" and determines them as the target media.

[0068] Through the above-mentioned step-by-step downgrade matching, the system can still stably and accurately match the required materials even when there are various materials such as avatars, QR codes, skill radar charts, PTA certificates, NCT / IOI / CCF / NOI certificates with non-standard naming and inconsistent formats, thereby improving the verification success rate and system fault tolerance.

[0069] Step S4023: If all business fields meet the verification requirements, the integrity verification of the business information is deemed to have passed; otherwise, the verification is deemed to have failed.

[0070] Specifically, in this embodiment of the invention, when all resource-type business fields match the corresponding target material, and all text-type business fields are complete and in a valid format, the system determines that the target user's business information is complete and the resources are sufficient, meeting the data requirements for business card generation, and the integrity verification of the business information passes.

[0071] If any resource field fails to match the corresponding target material, or if any required text field is empty or has an invalid format, the business information of the target user is directly determined to be unsuitable for generation, and the integrity check of the business information fails. This enables early identification and effective interception of abnormal data, preventing incomplete data from entering the subsequent rendering process and ensuring a stable and reliable business card generation process.

[0072] For example, in a teacher's business field, if the "Name" is "Zhang San" (the content is complete and the format is valid, so no material matching is required), the "Teacher Avatar" finds the corresponding material through triple-downgrade matching, and the "Qualification Certificate" also matches the corresponding image, then the verification is deemed to have passed; if the "Name" field is empty, or the "Teacher Avatar" does not match any material, then the verification is deemed to have failed.

[0073] Step S403: If the verification passes, determine the graphic layout result based on the target business template and business information. For details, please refer to [link to relevant documentation]. Figure 3 Step S303 of the illustrated embodiment will not be described again here.

[0074] In step S404, if the verification fails, the missing information is determined based on the business fields and the material type of the missing material, and a visual error list is generated based on the missing information of all target users.

[0075] Specifically, in this embodiment of the invention, when the system determines that the integrity verification of any target user's business information fails, it will automatically start the abnormal information aggregation and visualization processing flow to accurately locate each missing information or abnormal content, ensuring that the user can quickly identify the problem and efficiently complete the correction.

[0076] In some optional implementations, the system reviews all business fields of the target user that failed the verification one by one. Combining the differentiated verification logic described above, it distinguishes between text-based fields that do not require materials and resource-based fields that require materials, and determines the specific type and detailed content of the missing information: For text-based fields that do not require materials, if there are missing content or illegal formats (such as garbled characters, character length exceeding the limit, or formats that do not conform to preset specifications), the system marks the field as an abnormal field, clearly recording the abnormal type (such as "missing content" or "illegal format") and the corresponding field name (such as "name" or "contact information"); For resource-based fields that require materials, if the corresponding target material is still not matched after the triple downgrade matching strategy, the system marks the field as a missing field, clearly recording the specific type of missing material (such as "teacher's portrait", "PTA qualification certificate", "personal QR code", or "skill radar chart"), the corresponding business field name, and the specific reason for the material matching failure (such as "no format file matching the key identifier was found").

[0077] Furthermore, the system summarizes the verification results of all target users (including those who passed and those who failed verification), extracts only the missing and abnormal information of users who failed verification, and records each target user who failed verification as an independent entry according to a preset list format. Each entry includes the target user's unique identifier (such as name, nickname, user ID, etc.), the name of the missing / abnormal field, the type of missing / abnormal field, a detailed description, and correction suggestions, ensuring that each missing information can be accurately located to a specific user and specific field.

[0078] The system generates a visual error list from all the aggregated missing information. This list is presented in a clear and intuitive format, supporting categorization by user and missing type. It can be viewed and exported directly from the system interface, allowing users to quickly filter different types of missing information and selectively supplement missing materials and correct abnormal fields. Simultaneously, the visual error list also marks the corresponding verification steps for each missing piece of information, helping users quickly locate the root cause of the problem, shorten the correction cycle, improve overall verification and correction efficiency, and avoid duplicate verifications and invalid operations caused by unclear missing information.

[0079] For example, after verifying three target users, the system found that user "Zhang San" failed verification due to missing information: "Teacher's Avatar (No file matching the key identifier 'Zhang San' found)" and "Contact Information (Content missing)". User "Li Si" failed verification due to missing information: "PTA Qualification Certificate (No file matching the key identifier 'Li Si' found)". User "Wang Wu" passed verification with no missing information. The system will automatically generate a visual error list, which records the missing fields, missing types, and specific descriptions for "Zhang San" and "Li Si" according to user categories. Users can directly view the list, supplement "Zhang San" with avatar material and complete the contact information, and supplement "Li Si" with PTA qualification certificate material. After correction, they can resubmit for verification to ensure the smooth progress of the subsequent business card generation process.

[0080] Step S405: Render the image based on the text and image layout to generate the target user's business card. For details, please refer to [link to relevant documentation]. Figure 3 Step S304 of the illustrated embodiment will not be described again here.

[0081] The batch business card generation method provided by this invention automatically acquires business information and templates from multiple target users, verifies the integrity of the business information, and automatically determines the text and image layout according to the target template and completes image rendering to generate target business cards for each target user. This invention enables fully automated business card generation without manual intervention in layout and production. The process is standardized, concise, and smooth, with accurate and reliable information processing, effectively avoiding errors caused by manual data entry and proofreading. Batch processing efficiency is significantly improved, and standardized business cards with uniform layout, standardized format, and consistent visual appearance are stably and efficiently output in batches, significantly improving the overall efficiency and consistency of business card generation.

[0082] This embodiment provides a method for batch generating business cards, which can be used on the aforementioned mobile terminals, such as computers. Figure 6 This is a flowchart of a method for batch generating business cards according to an embodiment of the present invention, such as... Figure 6 As shown, the process includes the following steps: Step S601: Obtain the target user's business information and the corresponding target business template. There must be at least one target user. For details, please refer to [link to relevant documentation]. Figure 4 Step S401 of the illustrated embodiment will not be described again here.

[0083] Step S602: Based on the local media library, perform integrity verification on the business information corresponding to each target user in sequence. For details, please refer to [link to relevant documentation]. Figure 4 Step S402 of the illustrated embodiment will not be described again here.

[0084] Step S603: If the verification passes, determine the graphic layout result based on the target business template and business information.

[0085] Specifically, step S603 above includes: Step S6031: Obtain the template parameters of the target business template. The template parameters include at least: position parameters, font parameters, font size parameters, element size, text anchor points, border rounded corners, layer level, and conditional dependency rules.

[0086] Specifically, in this embodiment of the invention, the system automatically retrieves a target business template that matches the target user's business scenario, reads all the template parameters built into the template, and the template parameters are preset standardized configuration parameters used to precisely constrain the display format and layout rules of each element on the business card, ensuring that the batch-generated business cards have a uniform and standardized layout. The specific meanings of each template parameter are as follows: Position parameters define the specific coordinate position of each element (text, image, icon, etc.) on the business card, clarifying the placement area of ​​each element on the business card canvas and avoiding element overlap or misalignment; Font parameters specify the font type of various text contents (such as name, title, contact information, etc.) to ensure that the text display style is consistent with the overall tone of the business template; Font size parameters set the font size of different text contents to achieve text hierarchy differentiation and highlight core information (such as name, title); Element size limits the aspect ratio and specific size of non-text elements such as images, icons, and borders to ensure that the elements fit the overall size of the business card; Anchor points are used to fix the baseline position of text, ensuring that the text will not shift or misalign during the layout process and guaranteeing the alignment accuracy of the text with other elements; rounded corners are used to set the size of the rounded corners of the overall business card and each element (such as images and text boxes), optimizing the visual effect of the business card; layer hierarchy is used to define the display priority of each element, clarifying the stacking order of background, images, text, and decorative elements, and avoiding obscuring the core content; conditional dependency rules are used to define the relationship between different business fields and template elements, ensuring that specific business fields are only displayed in the corresponding template positions, adapting to the layout needs of different business scenarios (such as teacher qualification certificate images are only displayed when the corresponding qualification field exists).

[0087] For example, for the target business template of a teacher's business card, the template parameters obtained by the system include: the position parameter sets the "Name" field to be centered in the upper half of the business card, with coordinates (100px, 50px); the font parameter sets the name to use SimSun and the title to use Heiti; the font size parameter sets the name to 24pt and the title to 18pt; the element size sets the teacher's portrait to 80px × 80px; the text anchor point sets the name to be centered horizontally and vertically; the border rounded corners set the overall rounded corners of the business card to 8px, and the rounded corners of the portrait to 40px; the layer hierarchy sets the background layer to the bottom layer, and the portrait material to be above the background layer and below the text layer; and the conditional dependency rule sets the "PTA Certificate" image to be displayed only when the "PTA Qualification" information exists in the business field, and displayed in a specified area on the right side of the business card.

[0088] Step S6032: Convert the business fields into intermediate layout descriptions, and determine the graphic layout result based on the template parameters and intermediate layout descriptions.

[0089] Specifically, in this embodiment of the invention, the system performs format conversion and standardization processing on the verified business fields, transforming the structured business fields (including text-based fields that do not require materials and resource-based fields that require materials) into intermediate layout descriptions that the system can recognize and parse. These intermediate layout descriptions serve as a bridge connecting business information and template parameters, clarifying the display content, display format, and associated resources corresponding to each business field, and clearly recording key information such as text content, image paths, and element types, facilitating subsequent layout completion in conjunction with template parameters.

[0090] Furthermore, the system precisely matches and integrates the intermediate layout description with the template parameters of the target business template. Following the preset rules for position, font, font size, and layer level in the template parameters, each item in the intermediate layout description is individually formatted: text-based business fields (such as name, title, and subject of instruction) are rendered according to the font and font size parameters and placed at specified coordinates based on the position parameters and text anchor points; target materials corresponding to resource-based business fields (such as teacher avatars, QR codes, and qualification certificates) are resized according to element size parameters and placed in the corresponding areas based on the position parameters and layer level; simultaneously, based on conditional dependency rules, elements that need to be displayed are selected, while unnecessary content is hidden, ensuring that the layout conforms to template specifications and accurately presents the target user's business information. Finally, the system integrates all layout elements to form a logically clear, reasonably laid out, uniformly formatted, and visually harmonious graphic layout, providing a complete and accurate layout basis for subsequent image rendering.

[0091] For example, the system transforms the business fields of teacher "Zhang San" (name: Zhang San, title: programming instructor, subject taught: Python programming, avatar: Zhang San.png, PTA certificate: Zhang San_PTA.png) into a middle layout description, clarifying the content and associated resources of each field; then, combined with template parameters, it places "Zhang San" (SimSun, 24pt) in the upper center, "Programming Instructor" (Bold, 18pt) in the center below the name, and "Python Programming" (SimSun, 16pt) below the title; it places the avatar (80px×80px, 40px rounded corners) in the designated position on the left side of the business card, and the PTA certificate image (60px×80px) in the designated position on the right side of the business card, completing the element overlay according to the layer hierarchy, and finally forming the graphic layout result of teacher Zhang San's business card.

[0092] Step S604: Render the image based on the text and image layout results to generate the target user's business card.

[0093] Specifically, step S604 above includes: Step S6041: Construct scalable vector graphics from the text information in the intermediate layout description according to the template parameters.

[0094] Specifically, in this embodiment of the invention, for complex business cards with multiple layers (including the underlying background, QR code bitmap, dynamically formatted text, etc.), the system performs asynchronous hybrid rendering. Specifically, for dynamically formatted text, the system extracts all text information from the intermediate layout description (including dynamic text-based business fields such as name, title, course subjects, contact information, and years of experience), and combines this with template parameters such as font, size, and color of the target business template to construct each piece of text information into an independent scalable vector graphic (SVG) in real time. Scalable vector graphics are resolution-independent and do not lose quality when scaled up, ensuring that text remains clear, unblurred, and jagged at different sizes and output scenarios, effectively improving the display quality of business card text. Simultaneously, constructing text as vector graphics facilitates subsequent integration with bitmap resources (such as avatars and QR codes), ensuring the text's compatibility with other elements and avoiding problems such as blurred or misaligned text edges.

[0095] For example, the system constructs scalable vector graphics for text information such as "Zhang San", "Programming Instructor", and "Python Programming" according to the SimSun, HeiTi, corresponding font size and color in the template parameters, ensuring that the text is clear and legible, and that the text will not become blurry or distorted even if the business card size is adjusted later.

[0096] Step S6042: Based on the image processing library, perform pipeline orchestration on the bitmap resources and scalable vector graphics in the intermediate layout description to determine the pixel array.

[0097] Specifically, in this embodiment of the invention, the system calls the Sharp and Jimp image processing libraries to perform unified pipeline orchestration on the bitmap resources (including static background bitmaps, teacher portraits read from the local material library, QR codes, qualification certificate images, and other resource-related business fields) in the intermediate layout description and the aforementioned constructed scalable vector graphics (text). During the pipeline orchestration process, the system preprocesses all elements sequentially according to the preset rendering flow: it optimizes the clarity and corrects the color of the bitmap resources to ensure that the bitmap display effect is consistent with the overall style of the template; it optimizes the outline and performs anti-aliasing on the scalable vector graphics to improve the text display quality; subsequently, the system maps all preprocessed elements to a unified pixel coordinate system according to the position and proportion requirements in the graphic layout result, integrating them into a complete pixel array. This pixel array completely records the color, brightness, and other information of each pixel on the business card, providing basic data support for subsequent layer compositing. This embodiment of the invention completes the precise mixing calculation of the pixel array at the memory buffer level, avoiding frequent disk I / O operations, and compressing the compositing rendering time of a single business card to the sub-second level.

[0098] For example, the system calls the image processing library to perform color correction and sharpness optimization on Zhang San's portrait material, fine-tune the size of the PTA certificate image, and perform anti-aliasing on the text vector graphics. Then, the portrait, certificate image, and text vector graphics are mapped to the pixel coordinate system according to their layout positions to form a pixel array containing all elements of the business card, ensuring that the pixel information of each element is accurate.

[0099] Step S6043: Perform multi-layer hierarchical scheduling based on the pixel array to obtain image buffer data for each layer.

[0100] Specifically, in this embodiment of the invention, the system performs layered splitting and scheduling of all elements in the pixel array according to the layer hierarchy parameters of the target business template, assigning different types of elements to corresponding layers, including background layers, bitmap layers (avatars, QR codes, etc.), text layers, and decorative layers, ensuring that the display priority of each layer is consistent with the template preset. Subsequently, the system performs independent rendering processing on each layer, converting the pixel information corresponding to that layer into image buffer data. The image buffer data is used to temporarily store the rendering results of each layer, recording key information such as the pixel distribution, transparency, and overlay rules of the layer, facilitating subsequent layer-by-layer compositing, while avoiding mutual interference between elements in different layers, ensuring a stable and efficient rendering process.

[0101] For example, the system assigns the business card background to the background layer, the teacher's portrait and PTA certificate to the bitmap layer, all text vector graphics to the text layer, and the business card border and decorative icons to the decoration layer according to the layer hierarchy parameters. Then, the system renders the four layers respectively and generates image buffer data corresponding to each layer. The background layer buffer data records the background color and texture information, the bitmap layer buffer data records the pixel distribution and transparency of the portrait and certificate, and the text layer buffer data records the pixel information of the text.

[0102] Step S6044: Based on the position parameters of the target template, the image buffer data is synthesized layer by layer to obtain the target business card.

[0103] Specifically, in this embodiment of the invention, the system performs layer-by-layer superposition and compositing of the image buffer data of each layer according to the position parameters, layer levels, and superposition rules of the target business template. During the compositing process, starting from the bottom background layer, the system sequentially merges the image buffer data of the bitmap layer, text layer, and decoration layer according to preset positions and transparency, ensuring that the elements of each layer are accurately aligned and without overlap or misalignment. At the same time, based on parameters such as border rounded corners, the system performs rounded corner processing and edge optimization on the overall image after compositing, correcting pixel deviations that occur during the compositing process. After compositing is completed, the system generates a complete image file (such as PNG or JPG format), which serves as the target user's business card. The image is complete, the content is accurate, the layout is standardized, and the image quality is clear, making it suitable for direct display, printing, or distribution.

[0104] For example, the system renders the background layer first, according to the position parameters and layer levels, and then overlays the bitmap layer (avatar, PTA certificate) on the background layer to ensure that the avatar and certificate are located at preset coordinates; then, the text layer is overlaid on the bitmap layer to ensure that the text is clearly visible and not obscured; finally, the decorative layer (border, decorative icon) is overlaid, and the business card is processed into a rounded corner style according to the border rounded corner parameters, completing the synthesis of all layers and generating the target business card of Teacher Zhang San, which can be directly saved and printed for use.

[0105] In some optional implementations, embodiments of the present invention use a batch business card generation system to perform sequential generation, temporary file writing, result archiving, and naming output control for multiple target users, and output the target business cards to a specified directory.

[0106] Specifically, when there are multiple target users, in order to ensure that the batch generation process is orderly and efficient, avoid file conflicts and data loss, and achieve standardized management of business card files, this embodiment of the invention uses a business card generation system to manage the entire process of business card generation, file processing, and output for all target users. The detailed process is as follows: ① Execute multi-user sequential generation control. Based on the storage order of target users in the target file, preset user priority, or user ID sorting rules, the system determines the generation order of business cards for multiple target users. Following a sequential logic of "generating one at a time, completing one, and then starting the next," the system sequentially performs the preceding business information structure extraction, compliance verification, graphic layout, and image rendering processes for each target user. During the sequential generation process, the system allocates an independent processing thread for each user's generation process to avoid resource conflicts, layout errors, or rendering failures caused by concurrent multi-user operations. This ensures that the business card generation process for each target user is independent and stable, and the generated results are accurate, while also considering the efficiency of batch processing, achieving a balance between order and efficiency.

[0107] ② Perform temporary file writing operations. For each target user, after image rendering is complete and temporary image data for the target business card is generated, the system will write this temporary image data to a preset temporary file directory, generating a temporary image file. Temporary files use temporary naming rules and include unique user identifiers (such as name, user ID), generation timestamps, etc., to distinguish temporary files from different users and avoid name conflicts. Temporary file writing uses an incremental writing method, saving data during the rendering process in real time. If a user's generation process is abnormally interrupted, rendering can be resumed based on the temporary file without re-executing the entire process, reducing repetitive operations and improving the fault tolerance and efficiency of batch generation. Simultaneously, the system will monitor the temporary files in real time to ensure their integrity and availability, providing a reliable foundation for subsequent archiving and output.

[0108] ③ Execution Result Archiving. Once the target business card for a single user is generated and the temporary file is verified to be correct, the system automatically initiates the result archiving process, migrating the target business card file in the temporary file directory to the preset archiving directory. The archiving directory adopts a hierarchical classification management structure, which can be divided into folders according to the user's department, business type, generation date, etc. For example, teacher business cards can be divided into archiving folders according to teaching subjects, grade levels, etc., facilitating subsequent searching, retrieval, and management. During the archiving process, the system records metadata such as the business card's archiving path, generation time, and user information, forming an archiving log. This allows for the traceability of the batch generation and archiving records of each business card at any time, improving the standardization and traceability of file management. At the same time, the system will back up the archived files to prevent file loss and ensure the safety and reliability of the batch-generated business card resources.

[0109] ④ Execute naming output control. To achieve standardized naming of business card files and facilitate identification and use, the system uniformly names the archived target business card files according to preset naming rules. The naming rules are flexibly configurable, and the core includes key information such as the user's unique identifier (e.g., name, nickname), business identifier (e.g., teacher, lecturer), and material version (e.g., new version, V1), for example, "Zhang San - Programming Lecturer - Business Card - V1.png". This ensures that each business card file has a unique and easily identifiable name, allowing for quick location of the corresponding user and business scenario through the filename. Simultaneously, the system supports user-defined naming rules, allowing adjustments to the naming format based on actual business needs, enhancing usability.

[0110] ⑤ Output to the specified directory. The system batch outputs the archived and named target business cards to the specified directory according to the user-preset output directory path. During the output process, the system performs permission checks and space checks on the specified directory. If directory permissions are insufficient, the system automatically prompts the user to adjust permissions; if directory space is insufficient, the system stops output and issues a warning to ensure successful completion. After output is complete, the system generates an output report, clearly showing the number of business cards output, the list of users who successfully output the cards, the output path, and other information for user verification. For business cards that fail to output, the system marks the reason for the failure (such as insufficient directory permissions or insufficient space) and includes it in the exception handling process, facilitating subsequent troubleshooting and re-output by the user.

[0111] For example, when three teacher users, Zhang San, Li Si, and Wang Wu, need to generate business cards in batches, the system executes the rendering process sequentially in the order of "Zhang San → Li Si → Wang Wu," generating temporary business card files for each teacher and writing them to a temporary directory. The temporary files are then archived to the corresponding archive folders for "Python Programming Instructor" and "Mathematics Instructor," and named according to the rule "Name-Title-Business Card-V1.png" as "Zhang San-Programming Instructor-Business Card-V1.png," "Li Si-Mathematics Instructor-Business Card-V1.png," and "Wang Wu-English Instructor-Business Card-V1.png." All named business card files are then batch-output to the user-preset "Batch Output of Teacher Business Cards" directory, and an output report is generated, confirming that all three business cards have been successfully output. Users can directly obtain and use all teacher business cards from this directory.

[0112] This invention, through automated batch energy storage, reduces the processing time for a single business card to the second level. Compared to manual processing, the overall efficiency of the entire process is improved by over 95%, representing an exponential leap in effectiveness. Furthermore, the batch business card generation system provides a user-friendly interface for non-technical personnel, allowing a single person to complete the entire closed loop from initiation to receipt, completely eliminating reliance on cross-departmental communication and achieving a zero-barrier self-service closed loop. After the system went live, it successfully reduced the post-production procurement costs from external suppliers to zero, significantly saving on the company's operating costs and achieving remarkable cost reduction and efficiency improvement. It transforms passive "missing out" into proactive "prevention," with intelligent verification effectively avoiding process stagnation caused by generating defective cards and resource shortages. Therefore, with a 95%+ improvement in business card generation efficiency, it has become a core tool for the operations team's daily work. Through technological innovation and productized operation, a dual-engine efficiency improvement system of "self-service + intelligent verification" has been successfully built, perfectly covering all business lines across the platform (with over 1500 cards generated cumulatively), and its architecture has excellent compatibility, allowing for rapid iteration with brand visual upgrades.

[0113] The batch business card generation method provided by this invention automatically acquires business information and templates from multiple target users, verifies the integrity of the business information, and automatically determines the text and image layout according to the target template and completes image rendering to generate target business cards for each target user. This invention enables fully automated business card generation without manual intervention in layout and production. The process is standardized, concise, and smooth, with accurate and reliable information processing, effectively avoiding errors caused by manual data entry and proofreading. Batch processing efficiency is significantly improved, and standardized business cards with uniform layout, standardized format, and consistent visual appearance are stably and efficiently output in batches, significantly improving the overall efficiency and consistency of business card generation.

[0114] The business card batch generation device provided in this embodiment is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used above, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the system described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0115] This embodiment provides a device for batch generating business cards, such as... Figure 7 As shown, it includes: The information acquisition module 701 is used to acquire the business information of the target user and the corresponding target business template, wherein the target user is at least one.

[0116] The information verification module 702 is used to perform integrity verification on the business information corresponding to each target user in turn based on the local material library.

[0117] The graphic layout module 702 is used to determine the graphic layout result based on the target business template and the business information if the verification passes.

[0118] The business card generation module 703 is used to perform image rendering based on the graphic layout result to generate the target business card of the target user.

[0119] The business card batch generation device provided in this embodiment of the invention can execute the business card batch generation method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.

[0120] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0121] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.

[0122] The following is a detailed reference. Figure 8This diagram illustrates a suitable structural schematic for implementing an electronic device according to embodiments of the present invention. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 801, which can perform various appropriate actions and processes based on a program stored in read-only memory (ROM) 802 or a program loaded from memory 808 into random access memory (RAM) 803. The RAM 803 also stores various programs and data required for the operation of the electronic device. The processor 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0123] Typically, the following devices can be connected to I / O interface 805: input devices 806 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 807 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 808 including, for example, magnetic tapes, hard disks, etc.; and communication devices 809. Communication device 809 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 8 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.

[0124] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 809, or installed from a memory 808, or installed from a ROM 802. When the computer program is executed by the processor 801, it performs the functions defined in the batch business card generation method of the embodiments of the present invention.

[0125] Figure 8 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.

[0126] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code originally stored on a remote storage medium or a non-transitory machine-readable storage medium and subsequently stored on a local storage medium after being downloaded via a network. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the batch business card generation method shown in the above embodiments is implemented.

[0127] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0128] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A method for batch generating business cards, characterized in that, The method includes: Obtain the business information of the target user and the corresponding target business template, wherein the target user is at least one; The integrity of the business information corresponding to each target user is checked sequentially based on the local material library. If the verification passes, the graphic layout result is determined based on the target business template and the business information; Based on the graphic layout results, image rendering is performed to generate the target business card for the target user.

2. The method according to claim 1, characterized in that, All business information corresponding to the target users is stored in the target file. The step of performing integrity verification on the business information corresponding to each target user based on the local material library includes: The business information of each target user in the target file is extracted in a structured manner to obtain the business field of the target user, wherein there is at least one business field; Based on a triple-downgrade matching strategy, the preset materials in the local material library are matched according to the business field to determine whether there is a target material corresponding to the business field, and / or to perform compliance verification on the business field; If all the business fields meet the verification requirements, the integrity verification of the business information is deemed to have passed; otherwise, the verification is deemed to have failed.

3. The method according to claim 2, characterized in that, The method further includes: If the verification fails, the missing information is determined based on the business fields and the material type of the missing material, and a visual error list is generated based on the missing information of all the target users.

4. The method according to claim 2, characterized in that, The triple-downgrade matching strategy matches preset materials in the local material library based on the business field to determine whether there is a target material corresponding to the business field, including: The key identifier of the target user is determined based on the business fields; The key identifier is matched with the filenames of preset format files in the local material library to determine the target file corresponding to the key identifier; If a target file in a preset format cannot be matched, the key identifier is traversed and matched with the filenames of various preset extended format files in the local material library to determine the target file corresponding to the key identifier. If a target file with a preset extended format cannot be matched, the key identifier is matched with the filenames of all files in the local material library using regular expressions to determine the target file.

5. The method according to claim 2, characterized in that, The step of determining the graphic layout result based on the target business template and the business information includes: Obtain the template parameters of the target business template. The template parameters include at least: position parameters, font parameters, font size parameters, element size, text anchor points, border rounded corners, layer level, and conditional dependency rules. The business fields are converted into intermediate layout descriptions, and the graphic layout result is determined based on the template parameters and the intermediate layout descriptions.

6. The method according to claim 5, characterized in that, The step of rendering the image based on the text and image layout result to generate the target business card for the target user includes: Based on the template parameters, the text information in the intermediate layout description is constructed into a scalable vector graphic; Based on the image processing library, the bitmap resources in the intermediate layout description and the scalable vector graphics are pipelined and arranged to determine the pixel array; Based on the pixel array, multi-layer hierarchical scheduling is performed to obtain image buffer data for each layer; The image buffer data is synthesized layer by layer according to the position parameters of the target template to obtain the target business card.

7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: The system performs sequential generation, temporary file writing, result archiving, and naming output control on the multiple target users, and outputs the target business cards to the specified directory.

8. A device for mass production of business cards, characterized in that, The device includes: The information acquisition module is used to acquire the business information of the target user and the corresponding target business template, wherein the target user is at least one. The information verification module is used to perform integrity verification on the business information corresponding to each target user in turn based on the local material library; The graphic layout module is used to determine the graphic layout result based on the target business template and the business information if the verification passes. The business card generation module is used to render images based on the graphic layout results and generate target business cards for the target user.

9. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory storing computer instructions, and the processor executing the computer instructions to perform the batch generation method of business cards according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to perform the method for batch generating business cards according to any one of claims 1 to 7.