Method and device for generating batch pictures, electronic equipment and computer readable medium
By generating material application forms and detailed tables, obtaining configuration information and grouping processing of pending image data, the problem of time-consuming use of users during the application process of materials is solved, and batch images are automatically processed, saving costs and shortening waiting time.
Patent Information
- Application Number
- CN202311346074.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-17
- Publication Date
- 2025-04-18
AI Technical Summary
In the prior art, the process from the user applying for materials to the user receiving materials takes a long time, mainly because each material picture requires manual processing, which consumes a lot of manpower and time.
By receiving the material application information submitted by the user, generating the material application form and material list, obtaining configuration information from the configuration center, generating multiple pending picture data, and grouping these data, encapsulating the pending picture data in the same group into a drawing task and sending it to the task queue, so that the drawing system can process the tasks in the task queue. At the same time, the monitor message queue obtains the drawing completion message of the pending picture data, and updates the material application form and the material list.
By automatically processing batch pictures, a lot of manual processing costs and time is saved, the generation time of material surface pictures and the waiting time after users apply for materials are shortened, and the generated pictures are more accurate, achieving cost reduction and efficiency improvement.
Smart Images

Figure CN119850284A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automatic program design technology, and in particular to a method, device, electronic device and computer-readable medium for generating batch images. Background Art
[0002] Currently, users can apply for physical materials online. The process from application to receipt of physical materials mainly includes: users fill in material application information online, export the material application information list in the background, manually process the images according to the image templates of different materials and user information, generate material images, and then notify the material manufacturer to produce the materials.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0004] Since the user information on the materials applied for by different users is different, each material image needs to be processed manually, which consumes a lot of manpower and time. Therefore, the process from the user applying for the material to the user receiving the material takes a long time. Summary of the invention
[0005] In view of this, embodiments of the present invention provide a method, device, electronic device and computer-readable medium for generating batch images to solve the technical problem that the process from a user applying for a material to the user receiving the material takes a long time.
[0006] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for generating batch images is provided, comprising:
[0007] Receive material application information submitted by the user, thereby generating a material application form and a material details table associated with the material application form;
[0008] According to the material application form and its corresponding material list, configuration information is obtained from the configuration center, thereby generating multiple pieces of image data to be processed;
[0009] Grouping the plurality of pieces of to-be-processed picture data, encapsulating the to-be-processed picture data in the same group into a drawing task and sending the drawing task to a task queue, so that the drawing system processes the tasks in the task queue;
[0010] The message queue is monitored to obtain a drawing completion message corresponding to the image data to be processed, so as to update the material application form and its corresponding material list according to the drawing completion message.
[0011] Optionally, the fields in the material application form include material application identification, material application status, user identification and the number of images to be processed, and the fields in the material details table include material application form identification, material identification and storage links for each material page image.
[0012] Optionally, according to the material application form and its corresponding material list, configuration information is obtained from the configuration center, thereby generating multiple pieces of image data to be processed, including:
[0013] Obtain the material application form with the material application status of approved and its corresponding material details list;
[0014] The user information corresponding to the user identification and the material surface image template corresponding to the material identification are obtained from the configuration center, thereby generating multiple pieces of image data to be processed; wherein each piece of image data to be processed includes a material application identification, a material identification, a material surface identification, a material surface image template, and user information.
[0015] Optionally, grouping the plurality of pieces of to-be-processed image data, encapsulating the to-be-processed image data in the same group into a drawing task and sending the drawing task to a task queue so that the drawing system processes the tasks in the task queue, includes:
[0016] The plurality of pieces of to-be-processed image data are grouped based on the material application identifier, so that the to-be-processed image data with the same material application identifier are in the same group;
[0017] The to-be-processed picture data in the same group are encapsulated as a drawing task and sent to the delayed task queue, so that the drawing system processes the tasks in the delayed task queue.
[0018] Optionally, monitoring a message queue to obtain a drawing completion message corresponding to the image data to be processed, thereby updating the material application form and its corresponding material list according to the drawing completion message, including:
[0019] Monitor the message queue to obtain a drawing completion message corresponding to the image data to be processed, wherein the drawing completion message includes a material application identifier, a material identifier, a material surface identifier, and a material surface image storage link;
[0020] The number of pictures to be processed in the material application form and the material surface picture storage link in the material list are updated according to the drawing completion message.
[0021] In addition, according to another aspect of an embodiment of the present invention, a device for generating batch images is provided, including:
[0022] A receiving module, used to receive material application information submitted by a user, thereby generating a material application form and a material list associated with the material application form;
[0023] A generation module, used to obtain configuration information from a configuration center according to the material application form and its corresponding material list, thereby generating a plurality of pieces of image data to be processed;
[0024] A grouping module, used for grouping the plurality of pieces of to-be-processed picture data, encapsulating the to-be-processed picture data in the same group into a drawing task and sending the drawing task to a task queue, so that the drawing system processes the tasks in the task queue;
[0025] The update module is used to monitor the message queue to obtain the drawing completion message corresponding to the image data to be processed, so as to update the material application form and its corresponding material list according to the drawing completion message.
[0026] Optionally, the fields in the material application form include material application identification, material application status, user identification and the number of images to be processed, and the fields in the material details table include material application form identification, material identification and storage links for each material page image.
[0027] Optionally, the generating module is further used for:
[0028] Obtain the material application form with the material application status of approved and its corresponding material details list;
[0029] The user information corresponding to the user identification and the material surface image template corresponding to the material identification are obtained from the configuration center, thereby generating multiple pieces of image data to be processed; wherein each piece of image data to be processed includes a material application identification, a material identification, a material surface identification, a material surface image template, and user information.
[0030] Optionally, the grouping module is further used for:
[0031] The plurality of pieces of to-be-processed image data are grouped based on the material application identifier, so that the to-be-processed image data with the same material application identifier are in the same group;
[0032] The to-be-processed picture data in the same group are encapsulated as a drawing task and sent to the delayed task queue, so that the drawing system processes the tasks in the delayed task queue.
[0033] Optionally, the update module is further used for:
[0034] Monitor the message queue to obtain a drawing completion message corresponding to the image data to be processed, wherein the drawing completion message includes a material application identifier, a material identifier, a material surface identifier, and a material surface image storage link;
[0035] The number of pictures to be processed in the material application form and the material surface picture storage link in the material list are updated according to the drawing completion message.
[0036] In addition, according to another aspect of an embodiment of the present invention, a system for generating batch images is provided, including:
[0037] A material system is used to receive material application information submitted by a user, thereby generating a material application form and a material detail list associated with the material application form; according to the material application form and its corresponding material detail list, obtain configuration information from a configuration center, thereby generating multiple pieces of image data to be processed; group the multiple pieces of image data to be processed, encapsulate the image data to be processed in the same group into a drawing task and send the drawing task to a task queue, so that the drawing system processes the tasks in the task queue; monitor the message queue to obtain a drawing completion message corresponding to the image data to be processed, thereby updating the material application form and its corresponding material detail list according to the drawing completion message;
[0038] A drawing system is used to monitor the task queue to obtain the image data to be processed in the task, so as to process the image according to the image data to be processed, store the processed image in the image storage system, generate a drawing completion message corresponding to the image data to be processed, and send the drawing completion message to the message queue.
[0039] Optionally, the material system is also used for:
[0040] Obtain the material application form with the material application status of approved and its corresponding material details list;
[0041] The user information corresponding to the user identification and the material surface image template corresponding to the material identification are obtained from the configuration center, thereby generating multiple pieces of image data to be processed; wherein each piece of image data to be processed includes a material application identification, a material identification, a material surface identification, a material surface image template, and user information.
[0042] Optionally, the material system is also used for:
[0043] The plurality of pieces of to-be-processed image data are grouped based on the material application identifier, so that the to-be-processed image data with the same material application identifier are in the same group;
[0044] The to-be-processed picture data in the same group are encapsulated as a drawing task and sent to the delayed task queue, so that the drawing system processes the tasks in the delayed task queue.
[0045] Optionally, the material system is also used for:
[0046] Monitor the message queue to obtain a drawing completion message corresponding to the image data to be processed, wherein the drawing completion message includes a material application identifier, a material identifier, a material surface identifier, and a material surface image storage link;
[0047] The number of pictures to be processed in the material application form and the material surface picture storage link in the material list are updated according to the drawing completion message.
[0048] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, including:
[0049] one or more processors;
[0050] a storage device for storing one or more programs,
[0051] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of the above embodiments.
[0052] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described in any one of the above embodiments is implemented.
[0053] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the method described in any one of the above embodiments is implemented.
[0054] One embodiment of the above invention has the following advantages or beneficial effects: because the configuration information is obtained from the configuration center according to the material application form and its corresponding material list, thereby generating multiple pieces of image data to be processed, grouping the multiple pieces of image data to be processed, encapsulating the image data to be processed in the same group into a drawing task and sending the drawing task to the task queue, so that the drawing system processes the tasks in the task queue, the technical problem that the process from the user applying for materials to the user receiving the materials is very time-consuming in the prior art is overcome. The embodiment of the present invention integrates and optimizes the drawing scheme in the user's material application process, and completes the automatic drawing of batch images by decomposing tasks, asynchronously, and batching without affecting the normal system load of the drawing system, saving a lot of manpower costs and time costs consumed by manually processing material surface images, thereby shortening the generation time of material surface images and the waiting time after the user applies for materials; moreover, the generated batch images are more accurate, which not only achieves cost reduction, but also achieves the technical effect of increasing efficiency.
[0055] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0057] Figure 1 is a flowchart of a method for generating batch images according to an embodiment of the present invention;
[0058] Figure 2 is a flowchart of a method for generating batch images according to a reference embodiment of the present invention;
[0059] Figure 3 is a flowchart of a method for generating batch images according to another reference embodiment of the present invention;
[0060] Figure 4 is a flowchart of a method for generating batch images according to yet another reference embodiment of the present invention;
[0061] Figure 5 is a schematic diagram of a device for generating batch images according to an embodiment of the present invention;
[0062] Figure 6 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0063] Figure 7 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0064] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0065] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.
[0066] Figure 1 is a flow chart of a method for generating batch images according to an embodiment of the present invention. As an embodiment of the present invention, Figure 1 As shown, the method for generating batch images is applied to a material system and may include:
[0067] Step 101: receiving material application information submitted by a user, thereby generating a material application form and a material list associated with the material application form.
[0068] The user fills in the material application information through the client, and submits the filled-in material application information to the material system of the server through the client. The material application information may include user ID, mailing address, material ID, material name, application quantity of each material, etc. The user can fill in multiple material IDs and their corresponding material names as needed. For example, the user can apply for 100 T-shirts, 200 business cards, 10 table cards, 500 report cards, 500 fans and other types of materials. It should be noted that different types of materials have their corresponding material IDs, and they are unique. The material system receives the material application information uploaded by the client, thereby generating a material application form and a material list associated with the material application form.
[0069] Optionally, the fields in the material application form include material application identification, material application status, user identification and the number of images to be processed, and the fields in the material details table include material application form identification, material identification and storage links for each material page image. Among them, the material application identification is generated by the material system after receiving the material application information submitted by the user, and is globally unique. The material system parses the material application information submitted by the user to generate a material application form and a material details table associated with the material application form. Since the material application information submitted by the user may contain multiple material types, two tables (material application table material_apply and material details table material_apply_detail) are established for data storage.
[0070] The important fields of the material requisition form are as follows:
[0071] Material application form: material_apply
[0072] Fields Interpretation apply_id Material application identification apply_status Material application status user_id User ID address mailing address pic_number_to_generate Number of images to be processed
[0073] Material details list: material_apply_detail
[0074]
[0075]
[0076] It should be noted that a material application form is associated with at least one material list through a material application identifier, which is a one-to-many relationship. Moreover, different material types have different numbers of material faces. For example, a T-shirt has two material faces, and a Rubik's Cube has six material faces. In addition, users can select the material faces that need to be processed in the material application information according to actual needs. For example, users can choose the material faces that need to be processed as the front of a T-shirt, the five faces of a Rubik's Cube, and the two faces of a table card. Accordingly, the fields of the material list include image storage links for these material faces. In other words, if the user selects several material faces, then the fields of the material list will have image storage links for these material faces. If the user does not select the material face that needs to be processed, the material face configured by the system will be selected by default.
[0077] Step 102, according to the material application form and its corresponding material list, obtain configuration information from the configuration center, thereby generating multiple pieces of image data to be processed;
[0078] In an embodiment of the present invention, steps 102 to 104 can be executed by a scheduled task. For example, the material system automatically executes steps 102 to 104 at midnight, 2:00, 6:00 or 8:00 every day. The asynchronous method can avoid affecting other business functions that rely on the drawing system.
[0079] Optionally, step 102 may include: obtaining a material application form with a material application status of approved and its corresponding material details list; obtaining user information corresponding to the user identifier and a material interface image template corresponding to the material identifier from the configuration center, thereby generating multiple pieces of image data to be processed; wherein each piece of image data to be processed includes a material application identifier, a material identifier, a material interface identifier, a material interface image template, and user information. The auditor reviews the material application form and its corresponding material details list, and if the review is passed, the material application status is marked as approved. Figure 2 As shown, the material system scans the material application form, obtains the material application form with the material application status of approved and its corresponding material details table, and then obtains the corresponding user information (i.e., the user information that needs to be displayed on the material surface picture) from the configuration center according to the user ID, and obtains the corresponding material surface picture template from the configuration center according to the material ID, thereby generating multiple pieces of image data to be processed. Each piece of image data to be processed includes the material application ID, the material ID, the material surface ID (such as the front ID, the back ID, the first side ID, the second side ID, the third side ID, etc.), the material surface picture template, and the user information.
[0080] It should be noted that the configuration center is pre-configured with user information of each user, and also with material surface image templates of each material surface of each material. If the user selects a material surface whose image needs to be processed in the material application information, the material surface image template of the corresponding material surface identification is obtained from the configuration center according to the material identification and material surface identification selected by the user.
[0081] Step 103, grouping the plurality of pieces of to-be-processed picture data, encapsulating the to-be-processed picture data in the same group into a drawing task and sending the drawing task to a task queue, so that the drawing system processes the tasks in the task queue.
[0082] like Figure 2 As shown, the material system groups multiple pieces of image data to be processed, then encapsulates the image data to be processed in the same group into a drawing task, and sends the drawing task to the task queue, which can reduce the drawing pressure of the drawing system and ensure the stability of the system. The drawing system monitors the task queue to obtain each piece of image data to be processed in the task, and then processes the image according to the material surface image template and user information in the image data to be processed, and then stores the processed image to the image storage system. The image storage system will send the image storage link to the drawing system, and the drawing system generates a drawing completion message corresponding to the image data to be processed, and finally sends the drawing completion message to the message queue (MQ). Among them, the drawing completion message includes the material application identifier, material identifier, material surface identifier, and material surface image storage link.
[0083] Optionally, the drawing system uploads the drawn picture to the image storage system for storage, which may be valid for 1 month, thereby ensuring that the material surface picture is sufficient to support material production without wasting precious storage resources.
[0084] Optionally, step 103 may include: grouping the plurality of to-be-processed image data based on the material application identification so that the to-be-processed image data with the same material application identification are in the same group; encapsulating the to-be-processed image data in the same group into a drawing task and sending it to the delayed task queue so that the drawing system consumes the tasks in the delayed task queue. The material system groups the plurality of to-be-processed image data based on the material application identification, divides the to-be-processed image data with the same material application identification into the same group, and then encapsulates the to-be-processed image data in the same group into a drawing task and sends it to the delayed task queue. Therefore, the material system encapsulates the to-be-processed image data with the same material application identification into a drawing task and sends it to the delayed task queue. The task elements in the delayed task queue will specify a delay time (for example, 4 seconds, 6 seconds, 8 seconds or 10 seconds, etc.) when entering the queue, indicating that it hopes to be processed after the specified time has passed. Taking the delay time of 6 seconds as an example, the first task in the delayed task queue is delayed by 1 minute, the second task is delayed by 1 minute and 6 seconds, and so on, and the nth task is delayed by 1 minute + (n-1)*6 seconds.
[0085] It should be noted that the delay time can be set according to the maximum number of images to be processed in the material application form. The greater the maximum number of images to be processed in the material application form, the longer the delay time, and the smaller the maximum number of images to be processed in the material application form, the shorter the delay time. This can prevent batch requests to the drawing system, thereby reducing the drawing pressure of the drawing system and ensuring system stability.
[0086] Step 104 , monitoring the message queue to obtain a drawing completion message corresponding to the image data to be processed, thereby updating the material application form and its corresponding material list according to the drawing completion message.
[0087] like Figure 2 As shown, the material system monitors the message queue to obtain the drawing completion message corresponding to the image data to be processed, and the drawing completion message includes the material application identification, material identification, material surface identification, and material surface image storage link, and then updates the corresponding material application form and material details table according to the drawing completion message.
[0088] Optionally, step 104 may include: monitoring the message queue to obtain the drawing completion message corresponding to the image data to be processed, the drawing completion message including the material application identification, material identification, material surface identification, and material surface image storage link; updating the number of images to be processed in the material application table and the material surface image storage link in the material details table according to the drawing completion message. The material system monitors the message queue, takes out the drawing completion message from the head of the message queue and parses it, thereby obtaining the material application identification, material identification, material surface identification, and material surface image storage link, and then uses the material application identification, material identification, and material surface identification as the basis for idempotent judgment to prevent repeated consumption from causing errors in the actual number of drawings. The material system updates the material surface image storage link in the material details table, and at the same time subtracts 1 from the number of images to be processed in the material application table.
[0089] It should be noted that if the number of pending images in the material application form is zero, the material application status in the material application form is changed to pending shipment, indicating that the processing of all material surface images in the material application form has been completed.
[0090] After completing the processing of all material surface images in the material application form and saving the storage links of each material surface image, asynchronously complete the drawing of dynamically generated batch images, and persist the updated material application form and material details table.
[0091] According to the various embodiments described above, it can be seen that the embodiment of the present invention obtains configuration information from the configuration center according to the material application form and its corresponding material details table, thereby generating multiple pieces of image data to be processed, grouping the multiple pieces of image data to be processed, encapsulating the image data to be processed in the same group into a drawing task and sending the drawing task to the task queue, so that the drawing system processes the tasks in the task queue. This technical means solves the technical problem in the prior art that the process from the user applying for materials to the user receiving the materials takes a long time. The embodiment of the present invention integrates and optimizes the drawing scheme in the user's material application process, and completes the automatic drawing of batch images by decomposing tasks, asynchronously, and in batches without affecting the normal system load of the drawing system, saving a lot of manpower costs and time costs consumed by manually processing material surface images, thereby shortening the generation time of material surface images and the waiting time after the user applies for materials; moreover, the generated batch images are more accurate, which not only achieves cost reduction, but also achieves the technical effect of increasing efficiency.
[0092] Figure 3 is a flow chart of a method for generating batch images according to a reference embodiment of the present invention. As another embodiment of the present invention, Figure 3 As shown, the method for generating batch images is applied to a material system and may include:
[0093] Step 301: receiving material application information submitted by a user, thereby generating a material application form and a material list associated with the material application form.
[0094] The user fills in the material application information through the client and submits the filled-in material application information to the material system of the server through the client. The material application information may include user ID, mailing address, material ID, material name, application quantity of each material, etc. The user can fill in multiple material IDs and their corresponding material names as needed.
[0095] The material system parses the material application information submitted by the user to generate a material application form and a material detail table associated with the material application form. The fields in the material application form include the material application ID, material application status, user ID, and the number of images to be processed, and the fields in the material detail table include the material application form ID, material ID, and storage links for each material page image.
[0096] Step 302, obtaining a material application form with a material application status of approved and its corresponding material details form.
[0097] The auditor reviews the material application form and its corresponding material details. If the review is passed, the material application status is marked as approved. The material system scans the material application form and obtains the material application form with a material application status of approved and its corresponding material details.
[0098] Step 303, obtaining user information corresponding to the user identification and a material surface image template corresponding to the material identification from a configuration center, thereby generating a plurality of image data to be processed.
[0099] The material system obtains the corresponding user information from the configuration center according to the user ID, and obtains the corresponding material surface image template from the configuration center according to the material ID, thereby generating multiple pieces of image data to be processed. Each piece of image data to be processed includes material application ID, material ID, material surface ID, material surface image template, and user information.
[0100] It should be noted that the configuration center is pre-configured with user information of each user, and also with material surface image templates of each material surface of each material. If the user selects a material surface whose image needs to be processed in the material application information, the material surface image template of the corresponding material surface identification is obtained from the configuration center according to the material identification and material surface identification selected by the user.
[0101] Step 304: group the plurality of pieces of to-be-processed image data based on the material application identifier, so that the to-be-processed image data with the same material application identifier are in the same group.
[0102] Step 305 , encapsulate the to-be-processed picture data in the same group into a drawing task and send it to the delayed task queue, so that the drawing system processes the tasks in the delayed task queue.
[0103] The material system groups multiple pieces of image data to be processed based on the material application identifier, divides the image data to be processed with the same material application identifier into the same group, and then encapsulates the image data to be processed in the same group into a drawing task and sends it to the delayed task queue. The drawing system monitors the task queue to obtain each piece of image data to be processed in the task, and then processes the image according to the material surface image template and user information in the image data to be processed, and then stores the processed image in the image storage system. The image storage system will send the image storage link to the drawing system, and the drawing system generates a drawing completion message corresponding to the image data to be processed, and finally sends the drawing completion message to the message queue (MQ). Among them, the drawing completion message includes the material application identifier, material identifier, material surface identifier, and material surface image storage link.
[0104] Step 306: monitor the message queue to obtain a drawing completion message corresponding to the image data to be processed.
[0105] Step 307: update the number of to-be-processed pictures in the material application form and the material surface picture storage link in the material list according to the drawing completion message.
[0106] The material system monitors the message queue, takes out the drawing completion message from the head of the message queue and parses it to obtain the material application ID, material ID, material surface ID, and material surface image storage link. Then the material application ID, material ID, and material surface ID are used as the basis for idempotence judgment to prevent repeated consumption from causing errors in the actual number of drawings. The material system updates the material surface image storage link in the material details table, and at the same time subtracts 1 from the number of pending images in the material application table. If the number of pending images in the material application table is zero, the material application status in the material application table is changed to pending shipment, indicating that the processing of all material surface images in the material application table has been completed.
[0107] In addition, the specific implementation content of the method for generating batch images in a reference embodiment of the present invention has been described in detail in the method for generating batch images described above, so the repeated content will not be described here.
[0108] Figure 4 is a flow chart of a method for generating batch images according to another reference embodiment of the present invention. As another embodiment of the present invention, Figure 4 As shown, the method for generating batch images may include:
[0109] Step 401: the material system receives material application information submitted by a user, thereby generating a material application form and a material list associated with the material application form.
[0110] Step 402, the material system obtains a material application form with a material application status of approved and its corresponding material details form.
[0111] Step 403: the material system obtains the user information corresponding to the user identification and the material surface image template corresponding to the material identification from the configuration center, thereby generating a plurality of image data to be processed.
[0112] Step 404: the material system groups the plurality of pieces of to-be-processed image data based on the material application identifier, so that the to-be-processed image data with the same material application identifier are in the same group.
[0113] Step 405: the material system encapsulates the to-be-processed image data in the same group into a drawing task and sends it to the delayed task queue, so that the drawing system processes the tasks in the delayed task queue.
[0114] Step 406, the drawing system monitors the task queue to obtain the image data to be processed in the task, thereby processing the image according to the image data to be processed, storing the processed image to the image storage system, generating a drawing completion message corresponding to the image data to be processed, and sending the drawing completion message to the message queue.
[0115] The drawing system monitors the task queue to obtain the various unprocessed image data in the task, and then processes the image according to the material surface image template and user information in the unprocessed image data, and then stores the processed image to the image storage system. The image storage system sends the image storage link to the drawing system, and the drawing system generates a drawing completion message corresponding to the unprocessed image data, and finally sends the drawing completion message to the message queue (MQ). The drawing completion message includes the material application identifier, material identifier, material surface identifier, and material surface image storage link.
[0116] Step 407: the material system monitors the message queue to obtain a drawing completion message corresponding to the image data to be processed.
[0117] Step 408: The material system updates the number of pending images in the material application form and the material surface image storage link in the material details form according to the drawing completion message.
[0118] In addition, the specific implementation content of the method for generating batch images in another reference embodiment of the present invention has been described in detail in the method for generating batch images described above, so the repeated content will not be described here.
[0119] Figure 5 is a schematic diagram of an apparatus for generating batch images according to an embodiment of the present invention. Figure 5 As shown, the device 500 for generating batch images includes a receiving module 501, a generating module 502, a grouping module 503 and an updating module 504; wherein the receiving module 501 is used to receive the material application information submitted by the user, thereby generating a material application form and a material list associated with the material application form; the generating module 502 is used to obtain configuration information from the configuration center according to the material application form and its corresponding material list, thereby generating a plurality of image data to be processed; the grouping module 503 is used to group the plurality of image data to be processed, encapsulate the image data to be processed in the same group into a drawing task and send the drawing task to the task queue, so that the drawing system processes the tasks in the task queue; the updating module 504 is used to monitor the message queue to obtain the drawing completion message corresponding to the image data to be processed, thereby updating the material application form and its corresponding material list according to the drawing completion message.
[0120] Optionally, the fields in the material application form include material application identification, material application status, user identification and the number of images to be processed, and the fields in the material details table include material application form identification, material identification and storage links for each material page image.
[0121] Optionally, the generating module 502 is further configured to:
[0122] Obtain the material application form with the material application status of approved and its corresponding material details list;
[0123] The user information corresponding to the user identification and the material surface image template corresponding to the material identification are obtained from the configuration center, thereby generating multiple pieces of image data to be processed; wherein each piece of image data to be processed includes a material application identification, a material identification, a material surface identification, a material surface image template, and user information.
[0124] Optionally, the grouping module 503 is further configured to:
[0125] The plurality of pieces of to-be-processed image data are grouped based on the material application identifier, so that the to-be-processed image data with the same material application identifier are in the same group;
[0126] The to-be-processed picture data in the same group are encapsulated as a drawing task and sent to the delayed task queue, so that the drawing system processes the tasks in the delayed task queue.
[0127] Optionally, the updating module 504 is further configured to:
[0128] Monitor the message queue to obtain a drawing completion message corresponding to the image data to be processed, wherein the drawing completion message includes a material application identifier, a material identifier, a material surface identifier, and a material surface image storage link;
[0129] The number of pictures to be processed in the material application form and the material surface picture storage link in the material list are updated according to the drawing completion message.
[0130] In addition, according to another aspect of an embodiment of the present invention, a system for generating batch images is provided, including:
[0131] A material system is used to receive material application information submitted by a user, thereby generating a material application form and a material detail list associated with the material application form; according to the material application form and its corresponding material detail list, obtain configuration information from a configuration center, thereby generating multiple pieces of image data to be processed; group the multiple pieces of image data to be processed, encapsulate the image data to be processed in the same group into a drawing task and send the drawing task to a task queue, so that the drawing system processes the tasks in the task queue; monitor the message queue to obtain a drawing completion message corresponding to the image data to be processed, thereby updating the material application form and its corresponding material detail list according to the drawing completion message;
[0132] A drawing system is used to monitor the task queue to obtain the image data to be processed in the task, so as to process the image according to the image data to be processed, store the processed image in the image storage system, generate a drawing completion message corresponding to the image data to be processed, and send the drawing completion message to the message queue.
[0133] Optionally, the material system is also used for:
[0134] Obtain the material application form with the material application status of approved and its corresponding material details list;
[0135] The user information corresponding to the user identification and the material surface image template corresponding to the material identification are obtained from the configuration center, thereby generating multiple pieces of image data to be processed; wherein each piece of image data to be processed includes a material application identification, a material identification, a material surface identification, a material surface image template, and user information.
[0136] Optionally, the material system is also used for:
[0137] The plurality of pieces of to-be-processed image data are grouped based on the material application identifier, so that the to-be-processed image data with the same material application identifier are in the same group;
[0138] The to-be-processed picture data in the same group are encapsulated as a drawing task and sent to the delayed task queue, so that the drawing system processes the tasks in the delayed task queue.
[0139] Optionally, the material system is also used for:
[0140] Monitor the message queue to obtain a drawing completion message corresponding to the image data to be processed, wherein the drawing completion message includes a material application identifier, a material identifier, a material surface identifier, and a material surface image storage link;
[0141] The number of pictures to be processed in the material application form and the material surface picture storage link in the material list are updated according to the drawing completion message.
[0142] It should be noted that the specific implementation content of the device for generating batch images in the present invention has been described in detail in the method for generating batch images described above, so the repeated content will not be described here.
[0143] Figure 6 An exemplary system architecture 600 is shown to which the method for generating batch images or the apparatus for generating batch images according to the embodiments of the present invention can be applied.
[0144] like Figure 6 As shown, system architecture 600 may include terminal devices 601, 602, 603, network 604 and server 605. Network 604 is used to provide a medium for communication links between terminal devices 601, 602, 603 and server 605. Network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0145] Users can use terminal devices 601, 602, and 603 to interact with server 605 through network 604 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 601, 602, and 603, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
[0146] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0147] The server 605 may be a server that provides various services, such as a backend management server (for example only) that provides support for shopping websites browsed by users using the terminal devices 601, 602, and 603. The backend management server may analyze and process the received data such as the item information query request, and feed back the processing results to the terminal device.
[0148] It should be noted that the method for generating batch images provided in the embodiment of the present invention is generally executed by the server 605 , and accordingly, the device for generating batch images is generally set in the server 605 .
[0149] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0150] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of a terminal device suitable for implementing an embodiment of the present invention. Figure 7 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0151] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0152] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.
[0153] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.
[0154] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0155] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0156] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as follows: a processor includes a receiving module, a generating module, a grouping module and an updating module, wherein the names of these modules do not constitute limitations on the modules themselves in some cases.
[0157] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device implements the following method: receiving material application information submitted by a user, thereby generating a material application form and a material list associated with the material application form; obtaining configuration information from a configuration center according to the material application form and its corresponding material list, thereby generating multiple pieces of image data to be processed; grouping the multiple pieces of image data to be processed, encapsulating the image data to be processed in the same group into a drawing task and sending the drawing task to a task queue, so that the drawing system processes the tasks in the task queue; monitoring the message queue to obtain the drawing completion message corresponding to the image data to be processed, thereby updating the material application form and its corresponding material list according to the drawing completion message.
[0158] As another aspect, an embodiment of the present invention further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method described in any of the above embodiments is implemented.
[0159] According to the technical solution of the embodiment of the present invention, the configuration information is obtained from the configuration center according to the material application form and its corresponding material details table, thereby generating multiple pieces of image data to be processed, grouping the multiple pieces of image data to be processed, encapsulating the image data to be processed in the same group into a drawing task and sending the drawing task to the task queue, so that the drawing system processes the tasks in the task queue. Therefore, the technical problem that the process from the user applying for materials to the user receiving the materials in the prior art is very time-consuming is overcome. The embodiment of the present invention integrates and optimizes the drawing scheme in the user's material application process, and completes the automatic drawing of batch images by decomposing tasks, asynchronously, and in batches without affecting the normal system load of the drawing system, saving a lot of manpower costs and time costs consumed by manually processing material surface images, thereby shortening the generation time of material surface images and the waiting time after the user applies for materials; moreover, the generated batch images are more accurate, which not only achieves cost reduction, but also achieves the technical effect of increasing efficiency.
[0160] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for generating batch images, characterized in that: include: Receive material application information submitted by the user, thereby generating a material application form and a material details table associated with the material application form; According to the material application form and its corresponding material list, configuration information is obtained from the configuration center, thereby generating multiple pieces of image data to be processed; Grouping the plurality of pieces of to-be-processed picture data, encapsulating the to-be-processed picture data in the same group into a drawing task and sending the drawing task to a task queue, so that the drawing system processes the tasks in the task queue; The message queue is monitored to obtain a drawing completion message corresponding to the image data to be processed, so as to update the material application form and its corresponding material list according to the drawing completion message.
2. The method according to claim 1, characterized in that The fields in the material application form include material application identification, material application status, user identification and the number of images to be processed, and the fields in the material details table include material application form identification, material identification and storage links for each material surface image.
3. The method according to claim 2, characterized in that According to the material application form and its corresponding material list, configuration information is obtained from the configuration center, thereby generating multiple pieces of image data to be processed, including: Obtain the material application form with the material application status of approved and its corresponding material details list; The user information corresponding to the user identification and the material surface image template corresponding to the material identification are obtained from the configuration center, thereby generating multiple pieces of image data to be processed; wherein each piece of image data to be processed includes a material application identification, a material identification, a material surface identification, a material surface image template, and user information.
4. The method according to claim 3, characterized in that The plurality of pieces of to-be-processed picture data are grouped, the to-be-processed picture data in the same group are encapsulated into a drawing task, and the drawing task is sent to a task queue, so that the drawing system processes the tasks in the task queue, including: The plurality of pieces of to-be-processed image data are grouped based on the material application identifier, so that the to-be-processed image data with the same material application identifier are in the same group; The to-be-processed picture data in the same group are encapsulated as a drawing task and sent to the delayed task queue, so that the drawing system processes the tasks in the delayed task queue.
5. The method according to claim 4, characterized in that Monitoring the message queue to obtain the drawing completion message corresponding to the image data to be processed, thereby updating the material application form and its corresponding material list according to the drawing completion message, including: Monitor the message queue to obtain a drawing completion message corresponding to the image data to be processed, wherein the drawing completion message includes a material application identifier, a material identifier, a material surface identifier, and a material surface image storage link; The number of pictures to be processed in the material application form and the material surface picture storage link in the material list are updated according to the drawing completion message.
6. A device for generating batch images, characterized in that: include: A receiving module, used to receive material application information submitted by a user, thereby generating a material application form and a material list associated with the material application form; A generation module, used to obtain configuration information from a configuration center according to the material application form and its corresponding material list, thereby generating a plurality of pieces of image data to be processed; A grouping module, used for grouping the plurality of pieces of to-be-processed picture data, encapsulating the to-be-processed picture data in the same group into a drawing task and sending the drawing task to a task queue, so that the drawing system processes the tasks in the task queue; The update module is used to monitor the message queue to obtain the drawing completion message corresponding to the image data to be processed, so as to update the material application form and its corresponding material list according to the drawing completion message.
7. A system for generating batch images, characterized in that: include: A material system is used to receive material application information submitted by a user, thereby generating a material application form and a material detail list associated with the material application form; according to the material application form and its corresponding material detail list, obtain configuration information from a configuration center, thereby generating multiple pieces of image data to be processed; group the multiple pieces of image data to be processed, encapsulate the image data to be processed in the same group into a drawing task and send the drawing task to a task queue, so that the drawing system processes the tasks in the task queue; monitor the message queue to obtain a drawing completion message corresponding to the image data to be processed, thereby updating the material application form and its corresponding material detail list according to the drawing completion message; A drawing system is used to monitor the task queue to obtain the image data to be processed in the task, so as to process the image according to the image data to be processed, store the processed image in the image storage system, generate a drawing completion message corresponding to the image data to be processed, and send the drawing completion message to the message queue.
8. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.