Batch automatic generation method and device for medical commodity posters, storage medium and computer equipment

By using a poster management system and thread pool rendering technology, medical product posters are automatically generated, solving the problems of low production efficiency and insufficient flexibility, and achieving efficient and unified poster production and management.

CN121708149APending Publication Date: 2026-03-20PING AN HEALTH CLOUD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610147545.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-02-02
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

Existing technologies for producing medical product posters are inefficient and lack flexibility, failing to meet the needs for large-scale, rapid production and flexible modifications.

Method used

The poster management system obtains poster configuration information, generates poster generation tasks, and submits them to the thread pool. The threads in the thread pool are used to render preset poster templates, generate and upload medical product posters, and support automated rendering and template configuration of parameters such as price and image.

Benefits of technology

It enables the batch automated generation of medical product posters, improving production efficiency, meeting the timeliness requirements of large-scale publicity and promotion, and ensuring the consistency of poster style and quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121708149A_ABST
    Figure CN121708149A_ABST
Patent Text Reader

Abstract

The invention discloses a medical commodity poster batch automatic generation method and device, a storage medium and computer equipment, and the method comprises the steps: providing a poster parameter configuration interface through a poster management system, and obtaining poster configuration information of a plurality of medical commodities inputted through the poster parameter configuration interface, determining poster generation parameters based on the poster configuration information; according to the poster generation parameter of each medical commodity, generating a poster generation task of each medical commodity, and submitting the poster generation task to a thread pool; a preset poster template is rendered according to the poster generation parameters of the medical commodities through threads in the thread pool, so that the poster generation parameters of different types are rendered to corresponding positions of the preset poster template to obtain medical commodity posters of the medical commodities, and the medical commodity posters are uploaded to a poster management system; and responding to the operation on the medical commodity poster based on the poster management system. The method can be applied to medical health scenes.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of image processing, and in particular to a method and device for batch automatic generation of medical commodity posters, a storage medium and a computer device. BACKGROUND

[0002] In the current rapid development of the medical industry, the promotion and sales of medical commodities are becoming increasingly important, and as a key promotional tool for directly displaying commodity information and attracting consumer attention, the production efficiency and quality of medical commodity posters directly affect the promotional effect and market competitiveness of commodities.

[0003] At present, the traditional production method of medical commodity posters is mostly manual design, and the designer needs to manually create a poster in a poster design software according to the characteristics, promotional focus and other information of each medical commodity. This method has many obvious defects.

[0004] On the one hand, manual production of posters is inefficient. For a large number of medical commodities of different types and specifications, the designer needs to design posters one by one, from collecting commodity information, designing style to completing poster drawing, which is time-consuming and laborious. Especially when faced with large-scale production of medical commodity posters, such as new product launches and promotional activities, manual production is difficult to complete the production of a large number of posters in a short time, and cannot meet the timeliness requirements of market promotion.

[0005] On the other hand, the flexibility of manual production of posters is poor. Once the poster is produced, if some information in the poster needs to be modified, such as the price of the commodity, the content of the promotional activity, etc., the designer needs to reopen the design file for modification, which is not only cumbersome, but also easy to affect the overall quality of the poster due to improper modification. At the same time, for some temporary poster needs, such as emergency promotional activity posters, manual production is difficult to quickly respond and complete production.

[0006] Therefore, there is an urgent need for a method that can efficiently, batch and flexibly generate medical commodity posters to solve the problems of low efficiency and insufficient flexibility of manual production of posters in the prior art, and to meet the needs of the medical industry for production of medical commodity posters. SUMMARY

[0007] Therefore, the embodiments of the present application provide a method and device for batch automatic generation of medical commodity posters, a storage medium and a computer device.

[0008] According to one aspect of the present application, a method for batch automatic generation of medical commodity posters is provided, the method comprising: The poster parameter configuration interface is provided through the poster management system, poster configuration information of a plurality of medical commodities entered through the poster parameter configuration interface is acquired, and poster generation parameters are determined based on the poster configuration information; According to the poster generation parameters of each medical commodity, a poster generation task of each medical commodity is generated respectively, and the poster generation task is submitted to a thread pool; Through the thread in the thread pool, a preset poster template is rendered according to the poster generation parameters of each medical commodity, so that different types of poster generation parameters are rendered to the corresponding positions of the preset poster template to obtain a medical commodity poster of each medical commodity, and the medical commodity poster is uploaded to the poster management system; Based on the poster management system, the operation on the medical commodity poster is responded.

[0009] Optionally, before the poster parameter configuration interface is provided through the poster management system, the method further comprises: A preset poster template is configured in the poster management system, wherein the preset poster template comprises a poster mask, different types of poster parameter display areas, and corresponding poster parameter rendering rules, and the types at least include a price and a commodity image; The different types of poster generation parameters are rendered to the corresponding positions of the preset poster template to obtain a medical commodity poster of each medical commodity, comprising: For any poster generation task, the price parameter in the poster generation parameter is analyzed, whether the last digit after the decimal point in the price parameter is zero is identified, if it is zero, the last zero is deleted so that the last digit after the decimal point is not zero, and a price unit is added to the price parameter; The processed price parameter is rendered to the price parameter display area of the preset poster template according to the price parameter rendering rule, and the medical commodity image in the poster generation parameter is rendered to the image parameter display area of the preset poster template according to the image parameter rendering rule, to obtain the medical commodity poster containing the poster mask and the rendered poster parameter display area of each type.

[0010] Optionally, the poster configuration information comprises commodity identification information; the poster generation parameters are determined based on the poster configuration information, comprising: According to each commodity identification information, SKU information and a medical commodity image of each medical commodity are acquired in a commodity system; After analyzing the price parameter in the poster generation parameter, the method further comprises: If the SKU information comprises a plurality of, the lowest price corresponding to the plurality of SKU information is identified as the price parameter, or the price interval corresponding to the plurality of SKU information is identified as the price parameter. if the SKU information is one, then the unique price corresponding to the SKU information is taken as the price parameter; The price parameter rendering rule includes: if the price parameter is the lowest price, then the lowest price is added with a lowest price identifier, and the lowest price added with the lowest price identifier is rendered to the price parameter display area of the preset poster template according to the price parameter rendering rule; if the price parameter is the price interval, then the processed price interval is rendered to the price parameter display area of the preset poster template according to the price parameter rendering rule; if the price parameter is the unique price, then the processed unique price is rendered to the price parameter display area of the preset poster template according to the price parameter rendering rule.

[0011] Optionally, the image parameter rendering rule includes: if the medical commodity image includes multiple images, then the target medical commodity image with the highest matching degree is selected from the multiple images according to the color information and the texture information of the poster mask; if the medical commodity image is one, then the medical commodity image is taken as the target medical commodity image; the target medical commodity image is rendered to the image parameter display area of the preset poster template according to the image parameter rendering rule.

[0012] Optionally, the preset poster template includes three layers, the layers include a parameter layer from top to bottom, a mask layer and a commodity image layer, the parameter layer includes various types of poster parameter display areas; the various types of poster parameter display areas are overlapped with the positions of the mask images of the mask layer; the image parameter rendering rule includes: the foreground position coordinates of the foreground in the target medical commodity image are identified, and based on the foreground position coordinates, it is identified that if the foreground is mapped to the mask layer, the first shortest distance between the foreground and each edge of the mask layer; the second shortest distance between the mask image of the mask layer and each edge is obtained, the difference between the second shortest distance corresponding to each edge and the first shortest distance is calculated, and the position offset of the target medical commodity image is determined according to the difference corresponding to each edge; determine whether the offset mask image can completely cover each edge of the offset target medical commodity image according to the first shortest distance corresponding to each side and the position offset; if the offset target medical commodity image can be completely covered, render the offset target medical commodity image into the commodity image layer according to the image parameter rendering rule; if the offset target medical commodity image cannot be completely covered, extend the background image to the direction of the edge that cannot be completely covered, and render the offset and extended target medical commodity image into the commodity image layer according to the image parameter rendering rule.

[0013] Optionally, the poster configuration information further includes a star rating field; the type of the poster parameter display area includes an evaluation display area; and the obtaining of the SKU information and the medical commodity image of each medical commodity in the commodity system according to the commodity identification information further includes: if the star rating field of any medical commodity indicates that the evaluation is to be displayed, obtaining the highest heat evaluation corresponding to the any medical commodity as a star rating parameter in the commodity system according to the commodity identification information; the rendering of the different types of poster generation parameters to the corresponding positions of the preset poster template to obtain the medical commodity poster of each medical commodity further includes: rendering the star rating parameter to the evaluation display area of the preset poster template according to the star rating rendering rule.

[0014] Optionally, after the rendering of the preset poster template according to the poster generation parameters of each medical commodity by the threads in the thread pool, the method further includes: in response to a poster generation progress query operation based on the poster management system, determining the poster generation progress according to the number of remaining poster generation tasks in the thread pool, and obtaining the task processing time length of each thread in the thread pool for the completed poster generation tasks, determining the average task processing time length according to the task processing time length, estimating the remaining processing time length according to the number of threads in the thread pool, the average task processing time length and the number of remaining poster generation tasks; and feeding back the poster generation progress and the remaining processing time length through the poster management system; in response to a poster generation state query operation for a target medical commodity based on the poster management system, determining the poster generation state of the target medical commodity according to the state of the poster generation task of the target medical commodity in the thread pool.

[0015] According to another aspect of the present application, a batch automatic generation device of a medical commodity poster is provided, which includes: The parameter obtaining module is configured to provide a poster parameter configuration interface through the poster management system, obtain poster configuration information of a plurality of medical commodities input through the poster parameter configuration interface, and determine poster generation parameters based on the poster configuration information. The task creating module is configured to generate a poster generation task for each medical commodity based on the poster generation parameters of each medical commodity, and submit the poster generation task to a thread pool. The poster generation module is configured to render a preset poster template according to the poster generation parameters of each medical commodity through threads in the thread pool, to render different types of poster generation parameters to corresponding positions of the preset poster template to obtain medical commodity posters of each medical commodity, and upload the medical commodity posters to the poster management system. The poster management module is configured to respond to operations on the medical commodity posters based on the poster management system.

[0016] Optionally, the apparatus further comprises a template configuration module configured to: configure a preset poster template in the poster management system, wherein the preset poster template comprises a poster mask, poster parameter display areas of different types, and corresponding poster parameter rendering rules, and the types at least include a price and a commodity image; The poster generation module is specifically configured to: for any poster generation task, analyze a price parameter in the poster generation parameters, identify whether the last digit after a decimal point in the price parameter is zero, delete the last zero if the last digit is zero, so that the last digit after the decimal point is not zero, and add a price unit to the price parameter; render the processed price parameter to a price parameter display area of the preset poster template according to a price parameter rendering rule, and render a medical commodity image in the poster generation parameters to an image parameter display area of the preset poster template according to an image parameter rendering rule, to obtain the medical commodity poster comprising the poster mask and the rendered poster parameter display areas of different types.

[0017] Optionally, the poster configuration information comprises commodity identification information; and the parameter obtaining module is further configured to: obtain SKU information and medical commodity images of each medical commodity in a commodity system according to each commodity identification information; if the SKU information comprises a plurality of pieces, identify the lowest price corresponding to the plurality of pieces of SKU information as the price parameter, or identify a price interval corresponding to the plurality of pieces of SKU information as the price parameter; if the SKU information is one piece, identify a unique price corresponding to the one piece of SKU information as the price parameter; The poster generation module is specifically configured to: If the price parameter is a minimum price, a minimum price identifier is added to the price parameter, and the minimum price with the minimum price identifier is rendered to the price parameter display area of the preset poster template according to a price parameter rendering rule; If the price parameter is a price interval, the processed price interval is rendered to the price parameter display area of the preset poster template according to the price parameter rendering rule; If the price parameter is a unique price, the processed unique price is rendered to the price parameter display area of the preset poster template according to the price parameter rendering rule.

[0018] Optionally, the poster generation module is specifically configured to: If the medical commodity image includes multiple images, a target medical commodity image with the highest matching degree is selected from the multiple medical commodity images according to color information and texture information of the poster mask; If the medical commodity image is one, the medical commodity image is taken as the target medical commodity image; The target medical commodity image is rendered to the image parameter display area of the preset poster template according to an image parameter rendering rule.

[0019] Optionally, the preset poster template includes three layers, the layers include a parameter layer from top to bottom, a mask layer and a commodity image layer, the parameter layer includes various types of poster parameter display areas; the various types of poster parameter display areas overlap with positions of mask images of the mask layer; the poster generation module is specifically configured to: identify foreground position coordinates of a foreground in the target medical commodity image, and identify a first shortest distance between the foreground and each edge of the mask layer if the foreground is mapped to the mask layer based on the foreground position coordinates; obtain a second shortest distance between a mask image of the mask layer and each edge, calculate a difference value between the second shortest distance and the first shortest distance corresponding to each edge, and determine a position offset of the target medical commodity image according to the difference value corresponding to each edge; determine whether the mask image after offset can completely cover edges of the target medical commodity image after offset according to the first shortest distance corresponding to each edge and the position offset; If the mask image after offset can completely cover the edges of the target medical commodity image after offset, the target medical commodity image after offset is rendered to the commodity image layer according to an image parameter rendering rule; If the mask image after offset cannot completely cover the edges of the target medical commodity image after offset, a background image is expanded to the edge direction of the target medical commodity image that cannot be completely covered, and the target medical commodity image after offset and expansion is rendered to the commodity image layer according to the image parameter rendering rule.

[0020] Optionally, the poster configuration information further comprises a star rating field; the type of the poster parameter display area comprises an evaluation display area; and the parameter acquisition module is further configured to: if the star rating field of any medical commodity indicates to display the evaluation, then the star rating parameter corresponding to the medical commodity with the highest heat in the commodity system is acquired according to the commodity identification information; The poster generation module is further configured to: render the star rating parameter to the evaluation display area of the preset poster template according to a star rating rendering rule.

[0021] Optionally, the poster management module is further configured to: in response to a poster generation progress query operation based on the poster management system, determine the poster generation progress according to the number of remaining poster generation tasks in the thread pool, and acquire the task processing time length of the completed poster generation tasks of each thread in the thread pool, determine the average task processing time length according to the task processing time length, estimate the remaining processing time length according to the number of threads in the thread pool, the average task processing time length and the number of remaining poster generation tasks, and feed back the poster generation progress and the remaining processing time length through the poster management system; in response to a poster generation state query operation for a target medical commodity based on the poster management system, determine the poster generation state of the target medical commodity according to the state of the poster generation task of the target medical commodity in the thread pool.

[0022] According to another aspect of the present application, a storage medium having a computer program stored thereon is provided, and the program is executed by a processor to implement the above-mentioned method for batch automatic generation of medical commodity posters.

[0023] According to another aspect of the present application, a computer device is provided, which comprises a storage medium, a processor and a computer program stored in the storage medium and executable on the processor, and the processor implements the above-mentioned method for batch automatic generation of medical commodity posters when executing the program.

[0024] By means of the technical solutions, the method, device, storage medium and computer equipment for batch automatic generation of medical commodity posters provided by the embodiments of the present application can obtain poster configuration information of a plurality of medical commodities through a parameter configuration interface of a poster management system and determine generation parameters, then generate a poster generation task for each commodity and submit it to a thread pool, threads in the thread pool render a preset template according to the parameters, upload each commodity poster to the management system after obtaining the poster, and finally respond to operations on the poster based on the system. The embodiments of the present application realize batch automatic generation of medical commodity posters, improve generation efficiency, help to meet the timeliness demand of large-scale promotion, and ensure the consistency of poster style layout by using a preset template, thereby improving generation quality and stability.

[0025] The above description is only a summary of the technical solutions of the present application. In order to more clearly understand the technical means of the present application, the embodiments of the present application can be implemented according to the content of the description, and in order to make the above and other purposes, characteristics and advantages of the present application more obvious and easy to understand, the following specific embodiments of the present application are described. BRIEF DESCRIPTION OF DRAWINGS

[0026] The drawings described herein are used to provide further understanding of the present application, and form a part of the present application. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings: Figure 1 A flowchart of a method for batch automatic generation of medical commodity posters provided by an embodiment of the present application is shown; Figure 2 A flowchart of another method for batch automatic generation of medical commodity posters provided by an embodiment of the present application is shown; Figure 3 A structure diagram of a device for batch automatic generation of medical commodity posters provided by an embodiment of the present application is shown; Figure 4 A device structure diagram of a computer equipment provided by an embodiment of the present application is shown. DETAILED DESCRIPTION

[0027] In the following, the present application will be described in detail with reference to the drawings and in combination with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0028] In the present embodiment, a method for batch automatic generation of medical commodity posters is provided, as shown in Figure 1 The method comprises: Step 101: providing a poster parameter configuration interface through a poster management system, obtaining poster configuration information of a plurality of medical commodities input through the poster parameter configuration interface, and determining poster generation parameters based on the poster configuration information.

[0029] In the embodiments of the present application, on the interface provided by the poster management system and specially used for poster parameter configuration, a user (such as a medical enterprise related staff) can input poster configuration information of multiple medical commodities. After obtaining the input poster configuration information, specific parameters for generating a poster are further determined based on the information. Specifically, the specific parameters can include the name, efficacy, promotion activity content, publicity focus, supplier and other types of data of the medical commodity. Through the configuration interface provided by the poster management system, the user can conveniently and quickly input the related information of the medical commodity without professional design knowledge or programming skills.

[0030] In step 102, a poster generation task of each medical commodity is respectively generated according to the poster generation parameters of each medical commodity, and the poster generation task is submitted to a thread pool.

[0031] In the embodiments of the present application, an independent poster generation task is respectively generated for each medical commodity according to the determined poster generation parameters of each medical commodity. The tasks contain all parameter information required for generating the poster of the corresponding medical commodity. Then, the poster generation tasks are submitted to the thread pool. The poster generation tasks are submitted to the thread pool for asynchronous execution, which avoids the blocking of the main thread and improves the concurrent processing capability and response speed of the system.

[0032] In step 103, a preset poster template is rendered according to the poster generation parameters of each medical commodity by a thread in the thread pool, so as to render different types of poster generation parameters to corresponding positions of the preset poster template to obtain a medical commodity poster of each medical commodity, and the medical commodity poster is uploaded to the poster management system.

[0033] In the embodiments of the present application, after receiving the poster generation task, the thread in the thread pool performs a rendering operation on the preset poster template according to the poster generation parameters of each medical commodity carried in the task. The preset poster template is a poster framework with a fixed layout and basic design elements. The thread accurately renders corresponding text, pictures and other information to corresponding positions of the template according to different poster generation parameters. For example, the name of the medical commodity is rendered to the title position, and the price information is rendered to the price area. After the rendering, the complete medical commodity poster corresponding to each medical commodity is obtained, and finally the generated poster is uploaded to the poster management system for storage and management. The use of the preset poster template for rendering ensures the consistency of the generated poster in overall style and layout. At the same time, the rendering and uploading operations are automatically completed by the threads in the thread pool, which realizes the automation and intelligentization of poster generation, reduces manual intervention, reduces the error probability, and improves the quality and stability of poster generation.

[0034] In step 104, the poster management system responds to the operation on the medical commodity poster.

[0035] In the embodiment, the poster is uploaded to the poster management system, and subsequent unified management and use of the poster, such as query, modification, download, etc., are facilitated.

[0036] By applying the technical solution of the embodiment, the poster configuration information of a plurality of medical commodities is obtained through the parameter configuration interface of the poster management system, and the generation parameters are determined. Then, a poster generation task is generated for each commodity and submitted to a thread pool. The threads in the thread pool render the preset template according to the parameters. After obtaining the poster of each commodity, the poster is uploaded to the management system. Finally, the system responds to the operation on the poster. The embodiment realizes the batch automatic generation of the medical commodity poster, improves the generation efficiency, helps to meet the timeliness demand of large-scale promotion, and ensures the consistency of the poster style layout by using the preset template, thereby improving the generation quality and stability.

[0037] In the embodiment, before the poster management system provides the poster parameter configuration interface, the method further includes: configuring a preset poster template in the poster management system, wherein the preset poster template includes a poster mask, different types of poster parameter display areas, and corresponding poster parameter rendering rules, and the types at least include price and commodity image. The rendering of the different types of poster generation parameters to the corresponding positions of the preset poster template to obtain the medical commodity poster of each medical commodity includes: for any poster generation task, analyzing the price parameter in the poster generation parameter, identifying whether the last digit after the decimal point in the price parameter is zero, deleting the last zero if the last digit is zero so that the last digit after the decimal point is not zero, and adding a price unit to the price parameter; rendering the processed price parameter to the price parameter display area of the preset poster template according to the price parameter rendering rule, and rendering the medical commodity image in the poster generation parameter to the image parameter display area of the preset poster template according to the image parameter rendering rule to obtain the medical commodity poster containing the poster mask and the rendered poster parameter display area of each type.

[0038] In this embodiment, a poster template is pre-set in the poster management system. This template includes a poster mask, which can be understood as the overall framework and basic style of the poster, and it determines the shape, background style and other basic visual elements of the poster. At the same time, different types of poster parameter display areas are also divided in the template, such as areas for displaying price information, areas for displaying product images, etc. And for each type of display area, corresponding poster parameter rendering rules are formulated, which specify how to accurately present the corresponding parameters into the display area, ensuring that the final generated poster meets the design requirements in terms of layout and information display. There are at least price display areas and product image display areas in the template, as well as corresponding price parameter rendering rules and image parameter rendering rules, and there may be other types of display areas and rules. In the poster generation process, when starting to process a specific poster generation task, the price parameter is extracted from the poster generation parameters carried by the task. Then the price parameter is analyzed to check whether the last digit after the decimal point is zero. For example, the price parameter is "19.90", and the last digit after the decimal point is zero at this time. If the price parameter is "19.95", the last digit after the decimal point is not zero. If the last digit after the decimal point is zero, the last zero is deleted to make the last digit after the decimal point not zero, and a price unit is added to the price parameter. If it is found through analysis that the last digit after the decimal point of the price parameter is zero, it is deleted. For example, "19.90" is processed to "19.9". At the same time, in order to make the price parameter more complete and standardized, it is also necessary to add appropriate price units such as "yuan" "dollar" etc. to it, which may become "19.9 yuan" after processing. Further, according to the price parameter rendering rules formulated in advance in the preset poster template, the price parameter after the above processing (deleting the last zero and adding the unit) is accurately placed in the area in the template that is specifically used to display price information. For example, "19.9 yuan" is placed in the position of the price label in the poster template according to the rules, ensuring that the presentation of the price information meets the design requirements. The image of the medical product is obtained from the poster generation parameters, and then the image is accurately rendered to the area in the template that is specifically used to display the product image according to the rendering rules formulated in the preset poster template for the image parameter. For example, the picture of the medical product is adjusted to the appropriate size and proportion according to the rules, and placed in the product picture display frame in the poster template, so that the display effect of the image meets the design style of the overall poster.

[0039] In the embodiments of the present application, optionally, the poster configuration information includes product identification information; the poster generation parameters are determined based on the poster configuration information, including: obtaining SKU information and medical product images of each medical product according to each product identification information in the product system; After analyzing the price parameter in the poster generation parameter, the method further comprises: if the SKU information comprises a plurality of, identifying the lowest price corresponding to the plurality of SKU information as the price parameter, or identifying the price interval corresponding to the plurality of SKU information as the price parameter; if the SKU information is one, taking the unique price corresponding to the SKU information as the price parameter; The rendering of the processed price parameter to the price parameter display area of the preset poster template according to the price parameter rendering rule comprises: if the price parameter is the lowest price, adding a lowest price identifier to the lowest price, and rendering the lowest price added with the lowest price identifier to the price parameter display area of the preset poster template according to the price parameter rendering rule; if the price parameter is the price interval, rendering the processed price interval to the price parameter display area of the preset poster template according to the price parameter rendering rule; if the price parameter is the unique price, rendering the processed unique price to the price parameter display area of the preset poster template according to the price parameter rendering rule.

[0040] In this embodiment, the SKU (Stock Keeping Unit) information and the product image of the corresponding medical product are queried and obtained in the product system through the product identification information (such as product ID, barcode, etc.). If the product has multiple SKUs (such as different specifications of medical masks), the system identifies the prices corresponding to these SKUs, and selects the lowest price as the “lowest price” displayed on the poster, or directly displays the price interval of all SKUs (such as “19.9-29.9 yuan”). If the product has only one SKU, the unique price of the SKU is directly used as the poster price parameter. When rendering, the lowest price is added with an identifier such as “from” (such as “19.9 yuan from”), which clearly conveys the price attribute and avoids the consumer's misunderstanding that it is a unique price. Or directly render the price interval according to the rules (such as “19.9-29.9 yuan”), keeping the integrity of the interval information. And, the unique price can be directly rendered (such as “24.9 yuan”), without additional identification. Through identification and format specification, the display of price information in the poster is ensured to be accurate and clear, in line with the reading habits and cognitive logic of consumers, reducing consumer doubts caused by ambiguous price information, and improving the promotional effect.

[0041] In the embodiments of the present application, optionally, the poster configuration information further comprises a star rating field; the type of the poster parameter display area comprises an evaluation display area; the obtaining of the SKU information and the medical product image of each medical product in the product system according to each product identification information further comprises: If any medical product is indicated to display the evaluation by the star rating field, the star rating parameter corresponding to the medical product with the highest heat is obtained in the product system according to the product identification information. The rendering of the different types of poster generation parameters to the corresponding positions of the preset poster template obtains a medical commodity poster of each medical commodity, and further comprises: According to the star rating rendering rule, the star rating parameter is rendered to the evaluation display area of the preset poster template.

[0042] In this embodiment, after obtaining the poster configuration information, the star rating field contained therein is checked. This field is used to indicate whether the evaluation information of the commodity is to be displayed in the generated poster. If the value of the star rating field indicates that the evaluation needs to be displayed, the system will proceed to the next operation; if it indicates that the evaluation is not to be displayed, the subsequent evaluation-related processing steps are skipped. For example, the star rating field is a Boolean value, and when the value is true, it indicates that the evaluation is to be displayed, and when the value is false, it indicates that the evaluation is not to be displayed. If the value of the field obtained is true, the operation of obtaining the highest-heat evaluation is continued. After determining that the evaluation needs to be displayed, the corresponding highest-heat evaluation of the medical commodity is obtained as the star rating parameter according to the query of the commodity identification information (such as commodity ID, commodity code, etc. unique identification) in the commodity system. The highest-heat evaluation is usually calculated according to a certain algorithm, and factors such as the number of likes, the number of comments, and the evaluation time are considered to reflect the evaluation content that is most concerned and recognized by the commodity. According to the pre-set star rating rendering rule, the obtained star rating parameter is accurately rendered to the evaluation display area of the preset poster template. The star rating rendering rule can specifically include the font, font size, color, layout method, etc. of the evaluation content, so as to ensure that the evaluation information is clearly and beautifully displayed in the poster.

[0043] In the embodiments of the present application, the preset poster template can include three layers, the layers include a parameter layer from top to bottom, a mask layer and a commodity image layer, the parameter layer includes various types of poster parameter display areas; the various types of poster parameter display areas are overlapped with the position of the mask image of the mask layer; as shown in Figure 2 The method comprises the following steps: Step 103-1, if the medical commodity image includes multiple, according to the color information and texture information of the poster mask, the target medical commodity image with the highest matching degree is selected from the multiple medical commodity images; if the medical commodity image is one, the medical commodity image is taken as the target medical commodity image.

[0044] In this embodiment, in the process of automatic generation of medical commodity posters, the first problem to be solved is the adaptation of commodity images to the preset mask. When there are multiple images of a medical commodity, the target image that best matches the style of the mask is selected through a dual matching mechanism of color and texture: color matching selects an image with consistent color tone by analyzing the color tone distribution (such as RGB or HSV values) of the mask and the color features of the commodity image, and avoids color conflicts; texture matching extracts the surface details (such as smoothness or graininess) of the mask and the commodity image using algorithms such as gray level co-occurrence matrix or Gabor filter, to ensure that the two are coordinated in texture (for example, if the mask is a rough background, select a commodity image with fabric packaging). If there is only one image of the commodity, the image is used directly without screening to simplify the process and avoid misjudgment.

[0045] Step 103-2, identify the foreground position coordinates of the foreground in the target medical commodity image, and based on the foreground position coordinates, identify the first shortest distance between the foreground and each edge of the mask layer if the foreground is mapped to the mask layer.

[0046] In this embodiment, after determining the target image, the position of the commodity in the mask is located. The foreground (subject) and background of the commodity are identified by image segmentation algorithms such as U-Net or Mask R-CNN, a binary mask is generated and the minimum bounding rectangle of the foreground is extracted, and then the shortest distance (first shortest distance) from the edge to each edge of the mask is calculated. For example, if the distance from the top of the foreground to the top edge of the mask is 10 pixels and the distance from the bottom to the bottom edge is 20 pixels, these values are recorded as positioning reference.

[0047] Step 103-3, obtain the second shortest distance between the mask image in the mask layer and each edge, calculate the difference between the second shortest distance and the first shortest distance corresponding to each edge, and determine the position offset of the target medical commodity image according to the difference corresponding to each edge.

[0048] Step 103-4, according to the first shortest distance corresponding to each edge and the position offset, determine whether the mask image after offset can completely cover the edges of the target medical commodity image after offset.

[0049] Step 103-5, if it can be completely covered, render the target medical commodity image after offset to the commodity image layer according to the image parameter rendering rule.

[0050] Step 103-6, if it cannot be completely covered, perform background image expansion on the target medical commodity image in the direction of the edge that cannot be completely covered, and render the target medical commodity image after offset and expansion to the commodity image layer according to the image parameter rendering rule.

[0051] In this embodiment, the mask image is specifically an irregular border picture, and each edge of the mask layer is occupied by a colored mask image, and the middle region is transparent. The shortest distance (second shortest distance) of the content (such as patterns or text) of the mask itself to the edge is measured. Based on the distance data, the offset of the product image is calculated. Specifically, the difference between the first shortest distance and the second shortest distance corresponding to each edge can be calculated, wherein the layer is rectangular, the average value of the difference values corresponding to the upper and lower edges is taken, the upward offset = the difference between the difference value corresponding to the upper edge and the average value of the difference value, and the downward offset = the difference between the difference value corresponding to the lower edge and the average value of the difference value; the average value of the difference values corresponding to the left and right edges is taken, the left offset = the difference between the difference value corresponding to the left edge and the average value of the difference value, and the right offset = the difference between the average value of the difference value and the difference value corresponding to the right edge. The above offset makes the foreground of the medical product image located in the center of the mask image. In addition, the relationship between the minimum circumscribed rectangle of the foreground after the offset and the maximum inscribed rectangle of the mask image is compared. If the maximum inscribed rectangle cannot cover the minimum circumscribed rectangle, the target medical product image is scaled based on the minimum circumscribed rectangle and the maximum inscribed rectangle, so that the minimum circumscribed rectangle does not exceed the maximum inscribed rectangle. Further, the coverage is re-verified after the offset to ensure that all edges of the product image are covered by the mask content. If the verification is passed, the system renders the product image to the product image layer according to the preset rule (such as adjusting the transparency or selecting the blending mode), and directly generates the poster. If the verification fails (i.e., the mask image cannot completely cover the edges of the target medical product image), the system performs background expansion on the product image: the background is expanded in the direction that cannot be covered by edge feathering (fuzzy processing of edge pixels) or intelligent filling (generating similar background by using a generative adversarial network), so that the edges of the expanded image can be completely covered by the mask image, and finally the rendering is completed. The embodiments of the application ensure the uniformity of the style of batch posters through color and texture matching, avoiding visual confusion; the precise positioning of the product image is realized by distance calculation and offset adjustment, reducing manual intervention; the background expansion technology solves the size mismatch problem, improving the professionalism and aesthetics of the poster. The whole process takes into account efficiency and quality, and is especially suitable for large-scale batch generation scenarios.

[0052] In the embodiments of the application, after the threads in the thread pool render the preset poster template according to the poster generation parameters of each medical product, the method further comprises: In response to a poster generation progress query operation based on the poster management system, a poster generation progress is determined according to a number of remaining poster generation tasks in the thread pool, and a task processing time length of the poster generation tasks completed by each thread in the thread pool is obtained, a task processing average time length is determined according to the task processing time length, and a remaining processing time length is estimated according to a number of threads in the thread pool, the task processing average time length, and the number of remaining poster generation tasks; and the poster generation progress and the remaining processing time length are fed back through the poster management system; In response to a poster generation progress query operation based on the poster management system, a poster generation progress is determined according to a number of remaining poster generation tasks in the thread pool, and a task processing time length of the poster generation tasks completed by each thread in the thread pool is obtained, a task processing average time length is determined according to the task processing time length, and a remaining processing time length is estimated according to a number of threads in the thread pool, the task processing average time length, and the number of remaining poster generation tasks; and the poster generation progress and the remaining processing time length are fed back through the poster management system;

[0053] In this embodiment, the number of poster generation tasks not yet completed in the thread pool is counted, compared with the total number of tasks, and the proportion of completed tasks is calculated, so that the overall progress of poster generation is intuitively displayed. For example, if there are 100 tasks and 80 have been processed, the progress is 80%. Moreover, the processing time length of the poster generation tasks completed by each thread in the thread pool can be collected, and the average of these time lengths is calculated, which reflects the average processing efficiency of a single task. In combination with the number of threads in the thread pool, the task processing average time length, and the number of remaining tasks, the total time required for completing the remaining tasks is estimated by the formula (number of remaining tasks x task processing average time length) ÷ number of threads. For example, if there are 20 remaining tasks, the average time length is 2 seconds per task, and the number of threads is 4, then the remaining processing time length is about 10 seconds. The calculated poster generation progress and remaining processing time length are fed back to the user through the poster management system, so that the user can keep abreast of the execution of the batch generation task. By feeding back the poster generation progress and the remaining processing time length in real time, the user can clearly understand the execution of the batch generation task, arrange subsequent work reasonably, and avoid anxiety due to uncertainty of waiting time. In addition, the generation state of the poster of a target medical commodity can be determined according to the state of the poster generation task of the target medical commodity in the thread pool (such as waiting, processing, completed, failed, etc.). For example, if the task is being executed in the thread, the state is “processing”; if the rendering and uploading have been successfully completed, the state is “completed”. The generation state of the poster of the target commodity is fed back to the user through the poster management system, so that the user can quickly query the generation of a specific commodity without traversing all tasks. The poster generation state query for a single target commodity is supported, so that the user can quickly locate the generation of a specific commodity.

[0054] It should be noted that the embodiments of the present application can also implement the following functions: in the poster saving and updating process, a transaction control mechanism is adopted to ensure the consistency and integrity of the data. Specifically, when modifying the poster, the system will first delete the old associated data and then insert the new associated data, ensuring the accuracy of the data. Through the fileServiceUtil interface, the uploading, downloading, conversion and other operations of the file are uniformly managed, realizing the centralized management of the file. Whether it is a poster template picture or a generated poster picture, it can be processed through a unified interface, improving the maintainability and scalability of the system. The user permission and data isolation problem is also considered, and through the dataPermissionService service, it is ensured that the user can only access the data within the permission range, ensuring the security of the system and the privacy of the data. The present scheme supports the management of custom tags and general tags, and through the customTag field and the tagCode field, the system can flexibly configure the tag information of the poster according to the needs, meeting the personalized needs in different business scenarios.

[0055] Further, as Figure 1 a specific implementation of the method, the embodiments of the present application provide a device for batch automatic generation of medical commodity posters, as shown in Figure 3 The device comprises: a parameter acquisition module configured to provide a poster parameter configuration interface through a poster management system, acquire poster configuration information of a plurality of medical commodities input through the poster parameter configuration interface, and determine poster generation parameters based on the poster configuration information; a task creation module configured to generate a poster generation task for each medical commodity according to the poster generation parameters of each medical commodity, and submit the poster generation task to a thread pool; a poster generation module configured to render a preset poster template according to the poster generation parameters of each medical commodity through threads in the thread pool, to render different types of poster generation parameters to corresponding positions of the preset poster template to obtain medical commodity posters of each medical commodity, and upload the medical commodity posters to the poster management system; a poster management module configured to respond to operations on the medical commodity posters based on the poster management system.

[0056] Optionally, the device further comprises a template configuration module configured to: configure a preset poster template in the poster management system, wherein the preset poster template comprises a poster mask, different types of poster parameter display areas, and corresponding poster parameter rendering rules, and the types at least include prices and commodity images; The poster generation module is specifically configured to: For any poster generation task, the price parameter in the poster generation parameter is analyzed, whether the last digit after the decimal point in the price parameter is zero is identified, if it is zero, the last zero is deleted, so that the last digit after the decimal point is not zero, and a price unit is added to the price parameter; The processed price parameter is rendered to the price parameter display area of the preset poster template according to the price parameter rendering rule, and the medical commodity image in the poster generation parameter is rendered to the image parameter display area of the preset poster template according to the image parameter rendering rule, to obtain the medical commodity poster containing the poster mask and the rendered poster parameter display area of each type.

[0057] Optionally, the poster configuration information includes commodity identification information; the parameter acquisition module is further configured to: According to each commodity identification information, the SKU information and the medical commodity image of each medical commodity are obtained in the commodity system; If the SKU information includes multiple, the lowest price corresponding to the multiple SKU information is identified as the price parameter, or the price interval corresponding to the multiple SKU information is identified as the price parameter; If the SKU information is one, the unique price corresponding to the SKU information is taken as the price parameter; The poster generation module is specifically configured to: If the price parameter is the lowest price, the lowest price identification is added to the price parameter, and the lowest price with the lowest price identification is rendered to the price parameter display area of the preset poster template according to the price parameter rendering rule; If the price parameter is a price interval, the processed price interval is rendered to the price parameter display area of the preset poster template according to the price parameter rendering rule; If the price parameter is a unique price, the processed unique price is rendered to the price parameter display area of the preset poster template according to the price parameter rendering rule.

[0058] Optionally, the poster generation module is specifically configured to: If the medical commodity image includes multiple, the target medical commodity image with the highest matching degree is selected from the multiple medical commodity images according to the color information and the texture information of the poster mask; If the medical commodity image is one, the medical commodity image is taken as the target medical commodity image; The target medical commodity image is rendered to the image parameter display area of the preset poster template according to the image parameter rendering rule.

[0059] Optionally, the preset poster template comprises three layers, the layers comprising a parameter layer from top to bottom, a mask layer and a commodity image layer, the parameter layer comprising various types of poster parameter display areas; the various types of poster parameter display areas overlap with the positions of mask images of the mask layer; the poster generation module is specifically used for: identifying foreground position coordinates of the foreground in the target medical commodity image, and identifying, based on the foreground position coordinates, a first shortest distance between the foreground and each edge of the mask layer if the foreground is mapped to the mask layer; obtaining a second shortest distance between the mask image and each edge of the mask layer, calculating the difference between the second shortest distance and the first shortest distance corresponding to each edge, and determining the position offset of the target medical commodity image according to the difference corresponding to each edge; determining whether the mask image after offset can completely cover the edges of the target medical commodity image after offset according to the first shortest distance corresponding to each edge and the position offset; if so, rendering the target medical commodity image after offset to the commodity image layer according to the image parameter rendering rule; if not, performing background image expansion on the target medical commodity image towards the edge direction that cannot be completely covered, and rendering the target medical commodity image after offset and expansion to the commodity image layer according to the image parameter rendering rule.

[0060] Optionally, the poster configuration information further comprises a star rating field; the type of the poster parameter display area comprises an evaluation display area; the parameter acquisition module is further used for: if any medical commodity is indicated to display evaluation by the star rating field, obtaining, according to the commodity identification information, the highest heat evaluation corresponding to the any medical commodity in the commodity system as the star rating parameter; the poster generation module is further used for: rendering the star rating parameter to the evaluation display area of the preset poster template according to the star rating rendering rule.

[0061] Optionally, the poster management module is further used for: in response to a poster generation progress query operation based on the poster management system, determining the poster generation progress according to the number of remaining poster generation tasks in the thread pool, and obtaining the task processing time length of the completed poster generation tasks by each thread in the thread pool, determining the average task processing time length according to the task processing time length, and estimating the remaining processing time length according to the number of threads in the thread pool, the average task processing time length and the number of remaining poster generation tasks; feeding back the poster generation progress and the remaining processing time length through the poster management system; In response to a poster generation status query operation for a target medical product based on the poster management system, the poster generation status of the target medical product is determined according to the status of the poster generation task for the target medical product in the thread pool.

[0062] It should be noted that for other corresponding descriptions of the functional units involved in the batch automatic generation device for medical product posters provided in this application embodiment, please refer to... Figures 1 to 2 The corresponding descriptions in the method will not be repeated here.

[0063] This application also provides a computer device, which may specifically be a personal computer, a server, a network device, etc. Figure 4 As shown, the computer device includes a bus, a processor, memory, and a communication interface, and may also include an input / output interface and a display device. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores location information. The network interface allows communication with external terminals via a network connection. When the computer program is executed by the processor, it implements the steps in the various method embodiments.

[0064] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0065] In one embodiment, a computer-readable storage medium is provided, which may be non-volatile or volatile, having stored thereon a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0066] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0067] It should be noted that the user personal information involved in the embodiments of the present application is authorized (known and agreed) by the relevant object or fully authorized by all parties. The execution subject can obtain it through various legal and compliant ways. The collection, storage, use, processing, transmission, provision and disclosure of the information, data and signals involved comply with the relevant laws and regulations of the relevant countries and regions, and do not violate public order and good customs. It should be noted that if non-company software tools or components appear in the embodiments of the present application, they are only used for example introduction and do not represent actual use.

[0068] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. In the embodiments provided by the present application, any reference to the memory, database or other medium can include at least one of non-volatile and volatile memory. The non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric memory (FRAM), phase change memory (PCM), graphene memory, etc. The volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, the RAM can be various forms such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided by the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., but is not limited thereto. The processor involved in the embodiments provided by the present application can be a general processor, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0069] Any technical features in the above embodiments can be combined, and for the sake of brevity, not all possible combinations are described above, however, as long as the combinations of technical features do not have contradictions, they shall be considered within the scope of the present disclosure.

[0070] The above embodiments only express several implementation manners of the present application, and the description is relatively specific and detailed, but it shall not be understood as a limitation on the patent scope of the present application. It shall be pointed out that, for ordinary skilled persons in the art, several modifications and improvements can be made without departing from the concept of the present application, and these shall be within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims

1. A method for batch automatic generation of medical product posters, characterized in that, The method includes: The poster management system provides a poster parameter configuration interface, which is used to obtain the poster configuration information of multiple medical products entered through the poster parameter configuration interface, and the poster generation parameters are determined based on the poster configuration information. Based on the poster generation parameters of each medical product, a poster generation task is generated for each medical product, and the poster generation task is submitted to the thread pool. The threads in the thread pool render the preset poster template according to the poster generation parameters of each medical product, so as to render the poster generation parameters of different types to the corresponding positions of the preset poster template to obtain the medical product posters of each medical product, and upload the medical product posters to the poster management system. The poster management system responds to operations on the medical product posters.

2. The method according to claim 1, characterized in that, Before providing the poster parameter configuration interface through the poster management system, the method further includes: Configure preset poster templates in the poster management system. The preset poster templates include poster masks and different types of poster parameter display areas and corresponding poster parameter rendering rules. The types include at least price and product images. The process of rendering different types of poster generation parameters to the corresponding positions of the preset poster template to obtain medical product posters for each medical product includes: For any poster generation task, analyze the price parameter in the poster generation parameters, identify whether the last digit after the decimal point in the price parameter is zero, if it is zero, delete the last zero so that the last digit after the decimal point is not zero, and add a price unit to the price parameter. The processed price parameters are rendered to the price parameter display area of ​​the preset poster template according to the price parameter rendering rules, and the medical product image in the poster generation parameters is rendered to the image parameter display area of ​​the preset poster template according to the image parameter rendering rules, so as to obtain the medical product poster that includes the poster mask and the rendered poster parameter display areas of various types.

3. The method according to claim 2, characterized in that, The poster configuration information includes product identification information; determining the poster generation parameters based on the poster configuration information includes: Based on the product identification information, obtain the SKU information and images of each medical product from the product system; After analyzing the price parameter in the poster generation parameters, the method further includes: If the SKU information includes multiple items, the lowest price corresponding to the multiple SKU information is identified as the price parameter, or the price range corresponding to the multiple SKU information is identified as the price parameter. If the SKU information is a single SKU, then the unique price corresponding to the SKU information is used as the price parameter; The step of rendering the processed price parameters to the price parameter display area of ​​the preset poster template according to the price parameter rendering rules includes: If the price parameter is the lowest price, then a lowest price identifier is added to the price parameter, and the lowest price with the lowest price identifier is rendered to the price parameter display area of ​​the preset poster template according to the price parameter rendering rules; If the price parameter is a price range, then the processed price range will be rendered to the price parameter display area of ​​the preset poster template according to the price parameter rendering rules. If the price parameter is a unique price, then the processed unique price will be rendered to the price parameter display area of ​​the preset poster template according to the price parameter rendering rules.

4. The method according to claim 3, characterized in that, The step of rendering the medical product image from the poster generation parameters to the image parameter display area of ​​the preset poster template according to the image parameter rendering rules includes: If the medical product images include multiple images, then based on the color and texture information of the poster mask, the target medical product image with the highest matching degree is selected from the multiple medical product images; If there is only one image of the medical product, then that image will be used as the target medical product image. The target medical product image is rendered onto the image parameter display area of ​​the preset poster template according to the image parameter rendering rules.

5. The method according to claim 4, characterized in that, The preset poster template includes three layers: a parameter layer, a mask layer, and a product image layer, arranged from top to bottom. The parameter layer includes display areas for various types of poster parameters; the display areas for various types of poster parameters overlap with the mask image of the mask layer. The step of rendering the target medical product image onto the image parameter display area of ​​the preset poster template according to the image parameter rendering rules includes: Identify the foreground position coordinates in the target medical product image, and based on the foreground position coordinates, identify the first shortest distance between the foreground and each side of the mask layer if the foreground is mapped onto the mask layer; Obtain the second shortest distance between the mask image and each edge in the mask layer, calculate the difference between the second shortest distance and the first shortest distance corresponding to each edge, and determine the position offset of the target medical product image based on the difference corresponding to each edge; Based on the first shortest distance corresponding to each edge and the position offset, determine whether the offset mask image can completely cover each edge of the offset target medical product image; If complete coverage is possible, the offset target medical product image will be rendered into the product image layer according to the image parameter rendering rules. If complete coverage is not possible, the target medical product image is extended to the edge direction that cannot be completely covered by the background image, and the offset and extended target medical product image is rendered into the product image layer according to the image parameter rendering rules.

6. The method according to claim 3, characterized in that, The poster configuration information also includes a star rating field; the poster parameter display area type includes an rating display area; the step of obtaining SKU information and medical product images of each medical product from the product system based on each product identification information also includes: If the star rating field of any medical product indicates that a rating is to be displayed, then the highest popularity rating corresponding to that medical product is obtained from the product system based on the product identification information as the star rating parameter. The step of rendering different types of poster generation parameters to the corresponding positions of the preset poster template to obtain medical product posters for each medical product also includes: The star rating parameters are rendered to the rating display area of ​​the preset poster template according to the star rating rendering rules.

7. The method according to any one of claims 1 to 6, characterized in that, After rendering the preset poster template according to the poster generation parameters of each medical product using threads in the thread pool, the method further includes: In response to a poster generation progress query operation based on the poster management system, the poster generation progress is determined according to the number of remaining poster generation tasks in the thread pool, and the task processing time of each thread in the thread pool for the completed poster generation tasks is obtained. The average task processing time is determined according to the task processing time, and the remaining processing time is estimated based on the number of threads in the thread pool, the average task processing time, and the number of remaining poster generation tasks. The poster generation progress and the remaining processing time are then fed back through the poster management system. In response to a poster generation status query operation for a target medical product based on the poster management system, the poster generation status of the target medical product is determined according to the status of the poster generation task for the target medical product in the thread pool.

8. A device for batch automatic generation of medical product posters, characterized in that, The device includes: The parameter acquisition module is used to obtain poster configuration information of multiple medical products entered through the poster parameter configuration interface provided by the poster management system, and determine the poster generation parameters based on the poster configuration information. The task creation module is used to generate poster generation tasks for each medical product based on the poster generation parameters of each medical product, and submit the poster generation tasks to the thread pool. The poster generation module is used to render a preset poster template based on the poster generation parameters of each medical product through threads in the thread pool, so as to render different types of poster generation parameters to the corresponding positions of the preset poster template to obtain medical product posters for each medical product, and upload the medical product posters to the poster management system. The poster management module is used to respond to operations on the medical product posters based on the poster management system.

9. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 7.

10. A computer device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method of any one of claims 1 to 7.