Picture processing method, electronic equipment, storage medium and product

By integrating the information input area and operation toolbar into the image processing interface, efficient text entry is achieved, solving the problem of low image processing efficiency in the existing technology, simplifying the operation process and improving data processing efficiency.

CN120672555APending Publication Date: 2025-09-19BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510879533.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-26
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

The existing technology for entering text into images has low processing efficiency, resulting in inconvenient operation.

Method used

Provided is an image processing method that displays an image processing interface, including an information input area and an operation toolbar, responds to user input operations, obtains the image to be processed and the target file, and enters text into the image based on display configuration parameters. It supports drag-and-drop operations and preview functions, optimizing the text entry process.

Benefits of technology

It improves the efficiency of image processing, simplifies the text entry process, reduces the complexity of user operations, and improves data processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120672555A_ABST
    Figure CN120672555A_ABST
Patent Text Reader

Abstract

The invention relates to a picture processing method and device, a medium and a product, in response to a picture processing request, a picture processing interface is displayed, and the picture processing interface comprises an information input area and an operation toolbar; in response to an information input operation on the information input area, obtaining a to-be-processed picture and a target file; and in response to a trigger operation on the operation toolbar, inputting a text in the target file into the to-be-processed picture to obtain a target picture, so that the picture processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an image processing method, electronic device, storage medium and product. Background Art

[0002] It is common to need to enter text into an image. For example, the name of the person to receive the certificate, the issuing unit, and the date of issuance can be entered into the certificate. After the entry is completed, the certificate can be printed out for distribution.

[0003] Currently, it is usually necessary to use image processing tools to enter text into images, which has the problem of low processing efficiency. Summary of the Invention

[0004] The embodiments of the present application provide an image processing method that can improve processing efficiency and at least partially solve the above-mentioned technical problems.

[0005] To achieve the above objectives, according to a first aspect of the present application, a method for processing an image is provided, comprising:

[0006] In response to the image processing request, displaying an image processing interface, the image processing interface including an information input area and an operation toolbar;

[0007] In response to an information input operation on the information input area, obtaining a picture to be processed and a target file;

[0008] In response to a triggering operation on the operation toolbar, the text in the target file is entered into the image to be processed to obtain a target image.

[0009] Optionally, the information input area includes a picture input area and a file input area, and the step of obtaining the picture to be processed and the target file in response to the information input operation in the information input area includes:

[0010] In response to a picture input operation triggered on the picture input area, obtaining a picture to be processed;

[0011] In response to a file input operation triggered on the file input area, a target file is acquired.

[0012] Optionally, the image input operation includes dragging the image to be processed to the image input area, and the file input operation includes dragging the target file to the file input area.

[0013] Optionally, the target file includes multiple fields and at least one set of field data corresponding to the fields. In response to a trigger operation on the operation toolbar, the text in the target file is entered into the image to be processed to obtain the target image, including:

[0014] In response to a triggering operation on the operation toolbar, determining display configuration parameters of each field in the target file on the image to be processed;

[0015] Based on the display configuration parameters corresponding to each field, at least one set of the field data is entered into the image to be processed to obtain a target image.

[0016] Optionally, the operation toolbar includes a field selection box, and the determination of display configuration parameters of each field in the target file on the image to be processed in response to a triggering operation on the operation toolbar includes:

[0017] Display each field in the target file in the field selection box;

[0018] In response to a field selection operation triggered on the field selection box, taking the selected field as a target field;

[0019] In response to a triggering operation on the operation toolbar, display configuration parameters of the target field on the image to be processed are determined.

[0020] Optionally, the image processing interface includes a content display area, the image to be processed is displayed in the content display area, the operation toolbar includes a coordinate configuration box, the display configuration parameters include position display parameters, and the determination of the display configuration parameters of the target field on the image to be processed in response to a triggering operation on the operation toolbar includes:

[0021] In response to a touch operation on a certain position on the image to be processed displayed in the content display area, the coordinate information of the position is entered in the coordinate configuration box as a position display parameter of the target field.

[0022] Optionally, the display configuration parameters include text display parameters, the operation toolbar includes a text parameter operation bar, and the determining, in response to a triggering operation on the operation toolbar, the display configuration parameters of the target field on the image to be processed includes:

[0023] In response to a triggering operation on the text parameter operation bar, a text display parameter of the target field on the image to be processed is determined.

[0024] Optionally, the text display parameters include at least one of font type, font color, and font size.

[0025] Optionally, the operation toolbar further includes an entry and addition button and a configuration parameter display area. Before entering at least one set of field data into the image to be processed based on the display configuration parameters corresponding to each field to obtain the target image, the method further includes:

[0026] In response to the triggering operation of the entry addition button, the display configuration parameters corresponding to each field are displayed in the configuration parameter display area.

[0027] Optionally, the image processing interface includes a preview button, and the method further includes:

[0028] In response to the triggering operation of the preview button, based on the display configuration parameters corresponding to each field, a group of the field data is displayed in the image to be processed for preview.

[0029] Optionally, the image processing interface further includes a create button, and the step of entering at least one set of field data into the image to be processed based on the display configuration parameters corresponding to each field to obtain a target image includes:

[0030] In response to the triggering operation of the create button, based on the display configuration parameters corresponding to each field, each set of field data in the target file is respectively entered into the image to be processed to obtain the target image corresponding to each set of field data.

[0031] Optionally, the image processing interface includes a save configuration button, and the method further includes:

[0032] In response to a triggering operation on the save configuration button, the display configuration parameters corresponding to the fields are saved as a display configuration file, where the display configuration file includes the display configuration parameters and the picture indication information of the picture to be processed.

[0033] Optionally, the operation toolbar includes a read configuration button, and the determining of display configuration parameters of each field in the target file on the image to be processed in response to a triggering operation on the operation toolbar includes:

[0034] In response to a triggering operation on the read configuration button, determining a target display configuration file that matches the image to be processed based on image indication information in a pre-stored display configuration file;

[0035] Based on the display configuration parameters in the target display configuration file, the display configuration parameters of each field in the target file on the to-be-processed picture are determined.

[0036] Optionally, determining a target display configuration file that matches the image to be processed based on image indication information in a pre-stored display configuration file includes:

[0037] Performing a matching operation based on the hash value of the picture template in the picture indication information in the pre-stored display configuration file and the hash value of the picture to be processed to obtain a target display configuration file; and / or

[0038] Performing a matching operation based on the image template name in the image indication information in the pre-stored display configuration file and the name of the image to be processed to obtain a target display configuration file; and / or

[0039] A matching operation is performed based on the picture template storage path in the picture indication information in the pre-stored display configuration file and the storage path of the picture to be processed to obtain a target display configuration file.

[0040] Optionally, before displaying the image processing interface, the method further includes:

[0041] Obtaining display parameters of the current display device, wherein the display parameters include at least one of a screen size and a resolution of the display device;

[0042] The display parameters of the image processing interface are adjusted based on the display parameters so that the adjusted image processing interface is compatible with the current display device.

[0043] Optionally, the target file includes: a table file.

[0044] According to a second aspect of the present application, there is provided an image processing device, comprising:

[0045] A display module, configured to display an image processing interface in response to an image processing request, wherein the image processing interface includes an information input area and an operation toolbar;

[0046] an acquisition module, configured to acquire the image to be processed and the target file in response to an information input operation on the information input area;

[0047] An input module is used to input the text in the target file into the image to be processed in response to a trigger operation on the operation toolbar to obtain a target image.

[0048] According to a third aspect of the present application, an electronic device is provided, comprising one or more processors and a memory, wherein the memory stores a computer program. When the computer program is executed by the processor, the processor executes any one of the image processing methods provided in the embodiments of the present application.

[0049] According to a fourth aspect of the present application, a computer-readable storage medium is provided, comprising a computer program. When the computer program runs on a controller, the computer program is used to enable the controller to execute any one of the image processing methods provided in the embodiments of the present application.

[0050] According to a fifth aspect of the present application, a computer program product is provided, comprising a computer program or instructions, which, when executed by a processor, implements any one of the image processing methods provided in the embodiments of the present application.

[0051] In the image processing method of the embodiment of the present application, in response to an image processing request, an image processing interface is displayed, and the image processing interface includes an information input area and an operation toolbar; in response to the information input operation on the information input area, the image to be processed and the target file are obtained; in response to the triggering operation on the operation toolbar, the text in the target file is entered into the image to be processed to obtain the target image, thereby improving the image processing efficiency.

[0052] Other features and advantages of the present application will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. Those skilled in the art can also derive other drawings based on these drawings without inventive effort.

[0054] In order to more completely understand the present application and its beneficial effects, the following description will be given in conjunction with the accompanying drawings, wherein the same drawing numbers represent the same parts in the following description.

[0055] Figure 1 is a flowchart of a picture processing method provided in an exemplary embodiment of the present disclosure;

[0056] Figure 2 is a schematic diagram of an image processing interface provided in an exemplary embodiment of the present disclosure;

[0057] Figure 3 is a schematic diagram of another image processing interface provided in an exemplary embodiment of the present disclosure;

[0058] Figure 4 is a schematic diagram of another image processing interface provided in an exemplary embodiment of the present disclosure;

[0059] Figure 5 is a schematic diagram of another image processing interface provided in an exemplary embodiment of the present disclosure;

[0060] Figure 6 is a schematic diagram of another image processing interface provided in an exemplary embodiment of the present disclosure;

[0061] Figure 7 is a schematic diagram of another image processing interface provided in an exemplary embodiment of the present disclosure;

[0062] Figure 8 is a schematic diagram of a preset file provided in an exemplary embodiment of the present disclosure;

[0063] Figure 9 is a schematic diagram of an image processing system provided in an exemplary embodiment of the present disclosure;

[0064] Figure 10 is a structural diagram of an image processing device provided in an exemplary embodiment of the present disclosure;

[0065] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application; DETAILED DESCRIPTION

[0066] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.

[0067] The present invention provides an image processing method, apparatus, electronic device, computer-readable storage medium, and computer program product. The image processing method can be integrated into electronic devices such as terminal devices and / or cloud servers. For example, the terminal device can be a vehicle control terminal, an on-board data processing system, an on-board communication system, a drone controller (such as a handle), a smartphone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smartwatch, and the like.

[0068] In addition, the term "a plurality of" in the embodiments of the present application refers to two or more than two. The terms "first" and "second" in the embodiments of the present application are used to distinguish descriptions and should not be understood to imply relative importance.

[0069] It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments.

[0070] See also Figure 1 , Figure 1 This is a flow chart of an image processing method provided in an embodiment of the present application. For ease of description, the present application embodiment is described using a terminal device, that is, the above-mentioned image processing method may include:

[0071] Step S101: In response to a picture processing request, display a picture processing interface, wherein the picture processing interface includes an information input area and an operation toolbar;

[0072] Step S102: Responding to the information input operation in the information input area, obtaining the image to be processed and the target file;

[0073] Step S103: In response to the triggering operation on the operation toolbar, the text in the target file is entered into the image to be processed to obtain a target image.

[0074] Specifically, in some embodiments, the image processing request may be a user clicking on an image processing application. After receiving the image processing request, an image processing interface is displayed to facilitate the user to operate on the image processing interface to enter text on the image.

[0075] In some embodiments, the information input area includes a picture input area and a file input area, and the obtaining of the picture to be processed and the target file in response to the information input operation on the information input area includes: obtaining the picture to be processed in response to the picture input operation triggered on the picture input area; obtaining the target file in response to the file input operation triggered on the file input area.

[0076] like Figure 2 The figure shows a schematic diagram of an image processing interface provided by an embodiment of the present application. The background color of the image processing interface can be gray or other colors. An information input area is provided in the upper left corner of the image processing interface. The information input area includes an image input area and a file input area. In response to a user input operation in the image input area, an image to be processed is obtained. In response to a user input operation in the file input area, a target file is obtained.

[0077] Users can click the Browse button below the Image Path in the Image Processing interface to select the storage path of the image to be processed and import it. Users can click the Browse button below the File Path in the Image Processing interface to select the storage path of the target file and import it.

[0078] In some embodiments, the target file includes a spreadsheet file, for example, an Excel file or a Word file. This solution does not limit the file type of the target file. It is understood that the target file contains text to be entered, and by operating the image processing interface, the text in the target file can be entered into the image to be processed.

[0079] In some embodiments, the image input operation includes dragging the image to be processed to the image input area, and the file input operation includes dragging the target file to the file input area.

[0080] Specifically, the user can open the folder where the picture to be processed is located, drag the picture to be processed from the folder to the picture input area to import the picture to be processed into the picture processing interface. This picture input method is more convenient than clicking the browse button to select the storage path of the picture to be processed.

[0081] In some embodiments, the target file includes multiple fields and at least one set of field data corresponding to the fields. In response to the triggering operation of the operation toolbar, the text in the target file is entered into the image to be processed to obtain the target image, including: in response to the triggering operation of the operation toolbar, determining the display configuration parameters of each field in the target file on the image to be processed; based on the display configuration parameters corresponding to each field, entering at least one set of the field data into the image to be processed to obtain the target image.

[0082] Specifically, if the image to be processed is an honorary certificate image, it is necessary to enter the name of the person who received the honorary certificate, the year corresponding to the honorary certificate, the name of the company that issued the honorary certificate, and the date of issuance of the honorary certificate on the honorary certificate image. The name, year, company name and date are fields, and the name field corresponds to the specific name of one or more persons who received the honorary certificate.

[0083] An operation toolbar is provided on the image processing interface. Based on the user's triggering operation on the operation toolbar, the display configuration parameters corresponding to each field can be determined. According to the display configuration parameters, the field data can be entered into the image to be processed.

[0084] like Figure 3 As shown, it is a schematic diagram of the image processing interface provided by another embodiment of the present application. The image processing interface also includes a content display area, which is located in the lower left corner of the image processing interface and is used to display images obtained through the information input area. Figure 3 The example shows a situation where a picture of an honorary certificate is displayed in the content display area. In this embodiment, the size of the content display area has been pre-set, for example, the width of the content display area is set to 300px and the height is set to 400px, where px (Pixel) is the basic unit of digital images and screen displays.

[0085] In some embodiments, the operation toolbar includes a field selection box, and the display configuration parameters of each field in the target file on the image to be processed are determined in response to the triggering operation of the operation toolbar, including: displaying each field in the target file in the field selection box; in response to the field selection operation triggered by the field selection box, using the selected field as the target field; in response to the triggering operation of the operation toolbar, determining the display configuration parameters of the target field on the image to be processed.

[0086] Specifically, after obtaining the target file, the target file is parsed to extract the fields in the target file, and the fields are displayed in a field selection box of the operation toolbar so that the user can select the target field from the field selection box.

[0087] like Figure 4As shown, this is a schematic diagram of the image processing interface provided by another embodiment of the present application. The operation toolbar is located on the right side of the image processing interface. The operation toolbar includes a field selection box. The field list obtained by parsing the target file will be displayed in the field selection box. For example, the fields such as name, year, company, and date are displayed in the field selection box. The field selection box can be a drop-down box. The user can operate the drop-down box to select the target field. After determining the target field, the operation toolbar can be operated to determine the display configuration parameters of the target field on the image to be processed.

[0088] In some embodiments, the image processing interface includes a content display area, the image to be processed is displayed in the content display area, the operation toolbar includes a coordinate configuration box, the display configuration parameters include position display parameters, and the determination of the display configuration parameters of the target field on the image to be processed in response to a triggering operation on the operation toolbar includes:

[0089] In response to a touch operation on a certain position on the image to be processed displayed in the content display area, the coordinate information of the position is entered in the coordinate configuration box as a position display parameter of the target field.

[0090] Specifically, the coordinate configuration box is located in the upper right corner of the image processing interface. After determining the target field, when the user touches the image to be processed displayed in the content display area of ​​the image display interface, for example, by right-clicking a location, the coordinate information of this location will be entered in the coordinate configuration box, and then this coordinate information will be used as the position display parameter of the target field. This position information can be the starting position of the target field in the image to be processed.

[0091] In some embodiments, the display configuration parameters include text display parameters, the operation toolbar includes a text parameter operation bar, and the determining, in response to a triggering operation on the operation toolbar, the display configuration parameters of the target field on the image to be processed includes:

[0092] In response to a triggering operation on the text parameter operation bar, a text display parameter of the target field on the image to be processed is determined.

[0093] Specifically, a text parameter operation bar is provided at the upper right side of the image processing interface for determining text display parameters. In some embodiments, the text display parameters include at least one of font type, font color, and font size.

[0094] Specifically, the text parameter operation bar includes at least one of a font type selection box, a font color selection box, and a font size selection box. For example, if the target field is determined to be a name, the user selects Songti in the font type selection box, black in the font color selection box, and size 32 in the font size selection box, then the text display parameters of the name on the image to be processed are Songti, black, and size 32.

[0095] In some embodiments, the operation toolbar further includes an entry and addition button and a configuration parameter display area. Before entering at least one set of field data into the image to be processed based on the display configuration parameters corresponding to each field to obtain the target image, the method further includes:

[0096] In response to the triggering operation of the entry addition button, the display configuration parameters corresponding to each field are displayed in the configuration parameter display area.

[0097] Specifically, the Add Entry button can be located in the middle of the right side of the image processing interface, and the configuration parameter display area can be located in the lower right side of the image processing interface. After determining the display configuration parameters corresponding to a target field, the display configuration parameters corresponding to the target field can be displayed in the configuration parameter display area based on the user's triggering operation of the Add Entry button. Then, the display configuration parameters corresponding to another target field can be configured, until the display configuration parameters corresponding to the target field are configured.

[0098] like Figure 5 The figure shows another image processing interface diagram provided by an embodiment of the present application. After selecting name as the target field and configuring the display configuration parameters for the name, if the user clicks the Add button, the display configuration parameters corresponding to the name will be displayed in the configuration parameter display area. The display configuration parameters can be displayed in the configuration parameter display area in the form of a table, with the first row of the table displaying the various fields and the second row displaying the display configuration parameters corresponding to the first field. After the display configuration parameters for the second field are configured, the display configuration parameters corresponding to the second field can be displayed in the third row of the table in the configuration parameter display area.

[0099] In some embodiments, the operation toolbar further includes a delete selected row button and a clear table button, and the delete selected row button and the clear table button may be located to the right of the add entry button. The method further includes: in response to a selection operation on a row of data in the configuration parameter display area table and a triggering operation on the delete selected row button, deleting the selected row of data from the configuration parameter display area table.

[0100] The method further includes: clearing the table in the configuration parameter display area in response to a triggering operation on the clear table button.

[0101] In some embodiments, the image processing interface includes a preview button, and the method further includes:

[0102] In response to the triggering operation of the preview button, based on the display configuration parameters corresponding to each field, a group of the field data is displayed in the image to be processed for preview.

[0103] Specifically, a preview button can be located below the content display area of ​​the image processing interface. Based on the display configuration parameters corresponding to each field in the table in the configuration parameter display area, after the user clicks the preview button, a set of field data is displayed in the image to be processed, allowing the user to preview and confirm the effect of the data entry. Specifically, the first set of field data can be displayed in the image to be processed. In other embodiments, the word length of each field data can be obtained, and the field data with the longest word length can be displayed in the image to be processed.

[0104] like Figure 6 As shown, it is another picture processing interface schematic diagram provided by an embodiment of the present application. If there are 100 field data corresponding to a name, after the user clicks the preview button, based on the display configuration parameters corresponding to the name in the configuration parameter display area table, the first field data of the name "Zhang San" can be displayed on the honor certificate picture. If the effect is not good after previewing, the display configuration parameters can be adjusted.

[0105] In some embodiments, the image processing interface further includes a create button, and the step of entering at least one set of field data into the image to be processed based on the display configuration parameters corresponding to each field to obtain a target image includes:

[0106] In response to the triggering operation of the create button, based on the display configuration parameters corresponding to each field, each set of field data in the target file is respectively entered into the image to be processed to obtain the target image corresponding to each set of field data.

[0107] Specifically, the Create button can be located below the Preview button. After the user clicks the Create button, each set of field data is entered into the image to be processed based on the display configuration parameters corresponding to each field in the configuration parameter display area table, resulting in a target image corresponding to each set of data. For example, if a total of 100 individuals need to be issued honorary certificates, 100 sets of field data are stored in the target file, and after clicking the Create button, 100 target images are generated.

[0108] In some embodiments, the image processing interface includes a save configuration button, and the method further includes:

[0109] In response to a triggering operation on the save configuration button, the display configuration parameters corresponding to the fields are saved as a display configuration file, where the display configuration file includes the display configuration parameters and the picture indication information of the picture to be processed.

[0110] Specifically, a save configuration button may be located above the configuration parameter display area. After the user clicks the save configuration button, the display configuration parameters in the table of the configuration parameter display area are saved as a display configuration file. The display configuration file may be a JSON file that stores image indication information of the image to be processed and the display configuration parameters corresponding to each field. The image indication information includes an image template, an image template name, and an image template storage path.

[0111] like Figure 7 As shown, it is another picture processing interface diagram provided by an embodiment of the present application. After clicking the Save Configuration button, the display configuration parameters corresponding to the honor certificate image can be stored in test.json.

[0112] In some embodiments, the operation toolbar includes a read configuration button, and determining the display configuration parameters of each field in the target file on the image to be processed in response to the triggering operation of the operation toolbar includes: in response to the triggering operation of the read configuration button, determining the target display configuration file that matches the image to be processed based on the image indication information in the pre-stored display configuration file; and determining the display configuration parameters of each field in the target file on the image to be processed based on the display configuration parameters in the target display configuration file.

[0113] Specifically, the read configuration button may be located on the right side of the save configuration button, and the user may reuse the display configuration parameters in the pre-stored display configuration file by clicking the read configuration button.

[0114] In some embodiments, determining a target display configuration file that matches the image to be processed based on the image indication information in the pre-stored display configuration file includes:

[0115] Performing a matching operation based on the hash value of the picture template in the picture indication information in the pre-stored display configuration file and the hash value of the picture to be processed to obtain a target display configuration file; and / or

[0116] Performing a matching operation based on the image template name in the image indication information in the pre-stored display configuration file and the name of the image to be processed to obtain a target display configuration file; and / or

[0117] A matching operation is performed based on the picture template storage path in the picture indication information in the pre-stored display configuration file and the storage path of the picture to be processed to obtain a target display configuration file.

[0118] Specifically, the picture template hash value, and / or picture template name, and / or picture template storage path can be matched with the hash value, name, and storage path of the picture to be processed. When any one of the matches is successful, the display profile in the successfully matched display profile can be used as the target display profile.

[0119] In some embodiments, before displaying the image processing interface, the method further includes:

[0120] Obtaining display parameters of the current display device, wherein the display parameters include at least one of a screen size and a resolution of the display device;

[0121] The display parameters of the image processing interface are adjusted based on the display parameters so that the adjusted image processing interface is compatible with the current display device.

[0122] Specifically, by adjusting the display parameters of the image processing interface through the display parameters of the current display device, for example, adjusting the layout and element size, it is possible to ensure that the image processing interface provides a consistent user experience for users on different display devices.

[0123] In some embodiments, before displaying the image to be processed in the content display area, the method further includes: adjusting pixels of the image to be processed to fit the size of the content display area.

[0124] The height and width of the content display area are fixed, while the size of the image to be processed is not fixed. Before displaying the image to be processed in the content display area, the pixels of the image to be processed can be adjusted to adapt to the size of the content display area, making it easier to enter field data in the image to be processed.

[0125] In some embodiments, after obtaining the target image corresponding to each set of field data, the method further includes: storing the target image in a preset file; and performing a printing process on the preset file to obtain a printed target image.

[0126] Specifically, the preset file can be an Excel file. If 100 target images are generated, each target image can be stored in a separate worksheet, making it convenient for users to view and print them in separate pages. This solution improves data processing efficiency, reduces user manual operation time, and reduces operational complexity.

[0127] like Figure 8As shown, this is a schematic diagram of the preset file provided by an embodiment of the present application. If the image to be processed is an image of an honorary certificate, the name in the target file includes two field data, Zhang San and Li Si. By operating the image processing interface, two target images can be generated and stored in an Excel file.

[0128] From the above, it can be seen that the image processing method provided by the present application displays an image processing interface in response to an image processing request, and the image processing interface includes an information input area and an operation toolbar; in response to the information input operation on the information input area, the image to be processed and the target file are obtained; in response to the triggering operation on the operation toolbar, the text in the target file is entered into the image to be processed to obtain the target image, thereby improving the image processing efficiency.

[0129] like Figure 9 FIG. 1 is a schematic diagram of an image processing system according to an embodiment of the present application, wherein the image processing system includes:

[0130] Image processing interface unit 901, used to display the image processing interface and obtain the image to be processed and the target file;

[0131] The parsing unit 902 is configured to parse the target file after acquiring the target file, and acquire the fields in the target file and at least one set of field data corresponding to the fields;

[0132] The processing unit 903 inputs the at least one set of field data into the image to be processed based on the parsed fields and the at least one set of field data corresponding to the fields, in response to an operation on the image processing interface, to obtain a target image corresponding to the at least one set of field data;

[0133] The printing unit 904 is configured to print the target image.

[0134] To facilitate better implementation of the image processing method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above image processing method. The meanings of the terms are the same as those in the above image processing method, and the specific implementation details can be referred to the description in the method embodiment.

[0135] For example, Figure 10 As shown, the image processing device may include:

[0136] A display module 1001 is configured to display an image processing interface in response to an image processing request, wherein the image processing interface includes an information input area and an operation toolbar;

[0137] An acquisition module 1002 is configured to acquire a to-be-processed image and a target file in response to an information input operation in the information input area;

[0138] The input module 1003 is used to input the text in the target file into the image to be processed in response to a trigger operation on the operation toolbar to obtain a target image.

[0139] Optionally, the information input area includes a picture input area and a file input area, and the acquisition module 1002 is further configured to:

[0140] In response to a picture input operation triggered on the picture input area, obtaining a picture to be processed;

[0141] In response to a file input operation triggered on the file input area, a target file is acquired.

[0142] Optionally, the image input operation includes dragging the image to be processed to the image input area, and the file input operation includes dragging the target file to the file input area.

[0143] Optionally, the target file includes multiple fields and at least one set of field data corresponding to the fields, and the input module 1003 is further configured to:

[0144] In response to a triggering operation on the operation toolbar, determining display configuration parameters of each field in the target file on the image to be processed;

[0145] Based on the display configuration parameters corresponding to each field, at least one set of the field data is entered into the image to be processed to obtain a target image.

[0146] Optionally, the operation toolbar includes a field selection box, and the input module 1003 is further used to:

[0147] Display each field in the target file in the field selection box;

[0148] In response to a field selection operation triggered on the field selection box, taking the selected field as a target field;

[0149] In response to a triggering operation on the operation toolbar, display configuration parameters of the target field on the image to be processed are determined.

[0150] Optionally, the image processing interface includes a content display area, the image to be processed is displayed in the content display area, the operation toolbar includes a coordinate configuration box, the display configuration parameters include position display parameters, and the input module 1003 is further used to:

[0151] In response to a touch operation on a certain position on the image to be processed displayed in the content display area, the coordinate information of the position is entered in the coordinate configuration box as a position display parameter of the target field.

[0152] Optionally, the display configuration parameters include text display parameters, the operation toolbar includes a text parameter operation bar, and the input module 1003 is further configured to:

[0153] In response to a triggering operation on the text parameter operation bar, a text display parameter of the target field on the image to be processed is determined.

[0154] Optionally, the text display parameters include at least one of font type, font color, and font size.

[0155] Optionally, the operation toolbar further includes an input and add button and a configuration parameter display area, and the input module 1003 is further used to:

[0156] In response to the triggering operation of the entry addition button, the display configuration parameters corresponding to each field are displayed in the configuration parameter display area.

[0157] Optionally, the image processing interface includes a preview button, and the image processing device further includes:

[0158] Preview module 1004: In response to the triggering operation of the preview button, based on the display configuration parameters corresponding to each field, a group of the field data is displayed in the image to be processed for preview.

[0159] Optionally, the image processing interface further includes a create button, and the input module 1003 is used to:

[0160] In response to the triggering operation of the create button, based on the display configuration parameters corresponding to each field, each set of field data in the target file is respectively entered into the image to be processed to obtain the target image corresponding to each set of field data.

[0161] Optionally, the image processing interface includes a save configuration button, and the image processing device further includes:

[0162] The saving module 1005 is configured to save the display configuration parameters corresponding to the fields as a display configuration file in response to a triggering operation on the save configuration button. The display configuration file includes the display configuration parameters and the picture indication information of the picture to be processed.

[0163] Optionally, the operation toolbar includes a read configuration button, and the input module 1003 is further used to:

[0164] In response to a triggering operation on the read configuration button, determining a target display configuration file that matches the image to be processed based on image indication information in a pre-stored display configuration file;

[0165] Based on the display configuration parameters in the target display configuration file, the display configuration parameters of each field in the target file on the to-be-processed picture are determined.

[0166] Optionally, the input module 1003 is further configured to:

[0167] Performing a matching operation based on the hash value of the picture template in the picture indication information in the pre-stored display configuration file and the hash value of the picture to be processed to obtain a target display configuration file; and / or

[0168] Performing a matching operation based on the image template name in the image indication information in the pre-stored display configuration file and the name of the image to be processed to obtain a target display configuration file; and / or

[0169] A matching operation is performed based on the picture template storage path in the picture indication information in the pre-stored display configuration file and the storage path of the picture to be processed to obtain a target display configuration file.

[0170] Optionally, the image processing device further includes:

[0171] Adjustment module 1006 is used to obtain the display parameters of the current display device, where the display parameters include at least one of the screen size and resolution of the display device; and adjust the display parameters of the image processing interface based on the display parameters so that the adjusted image processing interface is compatible with the current display device.

[0172] Optionally, the target file includes: a table file.

[0173] From the above, it can be seen that the image processing device provided by the present application displays an image processing interface in response to an image processing request, and the image processing interface includes an information input area and an operation toolbar; in response to the information input operation on the information input area, the image to be processed and the target file are obtained; in response to the triggering operation on the operation toolbar, the text in the target file is entered into the image to be processed to obtain the target image, thereby improving the image processing efficiency.

[0174] During specific implementation, the above modules can be implemented as independent entities, or they can be arbitrarily combined and implemented as the same or several entities. The specific implementation methods and corresponding beneficial effects of the above modules can be found in the previous method embodiments and will not be repeated here.

[0175] The present application also provides an electronic device, such as Figure 11 , which shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application, specifically:

[0176] The electronic device may include one or more processors 1101 of processing cores, one or more computer-readable storage media memories 1102, a power supply 1103, an input unit 1104 and other components. Those skilled in the art will appreciate that Figure 11 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.

[0177] Processor 1101 is the control center of the electronic device. It connects all parts of the electronic device using various interfaces and circuits. It executes computer programs and / or modules stored in memory 1102 and accesses data stored in memory 1102 to perform various functions of the electronic device and process data. Optionally, processor 1101 may include one or more processing cores. Preferably, processor 1101 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 1101.

[0178] The memory 1102 can be used to store computer programs and modules. The processor 1101 executes various functional applications and data processing by running the computer programs and modules stored in the memory 1102. The memory 1102 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1102 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 1102 may also include a memory controller to provide the processor 1101 with access to the memory 1102.

[0179] The electronic device also includes a power supply 1103 for supplying power to various components. Preferably, the power supply 1103 can be logically connected to the processor 1101 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 1103 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.

[0180] The electronic device may further include an input unit 1104, which may be configured to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0181] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 1101 in the electronic device will load the executable files corresponding to one or more computer program processes into the memory 1102 according to the following instructions, and the processor 1101 will run the computer programs stored in the memory 1102 to implement various functions, such as:

[0182] In response to a request for image processing, an image processing interface is displayed, the image processing interface including an information input area and an operation toolbar; in response to an information input operation on the information input area, the image to be processed and the target file are obtained; in response to a triggering operation on the operation toolbar, the text in the target file is entered into the image to be processed.

[0183] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the image processing method above, which will not be repeated here.

[0184] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0185] To this end, an embodiment of the present application provides a computer-readable storage medium storing a computer program that can be loaded by a processor to execute the steps of any of the image processing methods provided in the embodiments of the present application. For example, the computer program can execute the following steps:

[0186] In response to an image processing request, an image processing interface is displayed, which includes an information input area and an operation toolbar; in response to an information input operation on the information input area, the image to be processed and the target file are obtained; in response to a triggering operation on the operation toolbar, the text in the target file is entered into the image to be processed.

[0187] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the previous embodiments and will not be described in detail here.

[0188] The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0189] Since the computer program stored in the computer-readable storage medium can execute the steps of any image processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any image processing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0190] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the above-described image processing method.

[0191] The above is a detailed introduction to the image processing method, device, equipment, medium and product provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core ideas. At the same time, for technical personnel in this field, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for image processing, characterized in that: The method comprises: In response to the image processing request, displaying an image processing interface, the image processing interface including an information input area and an operation toolbar; In response to an information input operation on the information input area, obtaining a picture to be processed and a target file; In response to a triggering operation on the operation toolbar, the text in the target file is entered into the image to be processed to obtain a target image.

2. The image processing method according to claim 1, wherein: The information input area includes a picture input area and a file input area, and the step of obtaining the picture to be processed and the target file in response to the information input operation in the information input area includes: In response to a picture input operation triggered on the picture input area, obtaining a picture to be processed; In response to a file input operation triggered on the file input area, a target file is acquired.

3. The image processing method according to claim 2, characterized in that: The picture input operation includes dragging the picture to be processed to the picture input area, and the file input operation includes dragging the target file to the file input area.

4. The image processing method according to claim 1, wherein: The target file includes a plurality of fields and at least one set of field data corresponding to the fields. In response to a triggering operation on the operation toolbar, the text in the target file is entered into the image to be processed to obtain the target image, including: In response to a triggering operation on the operation toolbar, determining display configuration parameters of each field in the target file on the image to be processed; Based on the display configuration parameters corresponding to each field, the field data corresponding to each field is entered into the image to be processed to obtain a target image.

5. The image processing method according to claim 4, characterized in that: The operation toolbar includes a field selection box, and the display configuration parameters of each field in the target file on the image to be processed are determined in response to a triggering operation on the operation toolbar, including: Display each field in the target file in the field selection box; In response to a field selection operation triggered on the field selection box, taking the selected field as a target field; In response to a triggering operation on the operation toolbar, display configuration parameters of the target field on the image to be processed are determined.

6. The image processing method according to claim 5, characterized in that: The image processing interface includes a content display area, the image to be processed is displayed in the content display area, the operation toolbar includes a coordinate configuration box, the display configuration parameters include position display parameters, and the determination of the display configuration parameters of the target field on the image to be processed in response to a triggering operation on the operation toolbar includes: In response to a touch operation on a certain position on the image to be processed displayed in the content display area, the coordinate information of the position is entered in the coordinate configuration box as a position display parameter of the target field.

7. The image processing method according to claim 5, characterized in that: The display configuration parameters include text display parameters, the operation toolbar includes a text parameter operation bar, and the determining, in response to a triggering operation on the operation toolbar, the display configuration parameters of the target field on the image to be processed includes: In response to a triggering operation on the text parameter operation bar, a text display parameter of the target field on the image to be processed is determined.

8. The image processing method according to claim 7, characterized in that: The text display parameters include at least one of font type, font color, and font size.

9. The image processing method according to claim 4, characterized in that: The operation toolbar further includes an entry and addition button and a configuration parameter display area. Before entering at least one set of field data into the image to be processed based on the display configuration parameters corresponding to each field to obtain the target image, the method further includes: In response to the triggering operation of the entry addition button, the display configuration parameters corresponding to each field are displayed in the configuration parameter display area.

10. The image processing method according to claim 4, characterized in that: The image processing interface includes a preview button, and the method further includes: In response to the triggering operation of the preview button, based on the display configuration parameters corresponding to each field, a group of the field data is displayed in the image to be processed for preview.

11. The image processing method according to claim 4, characterized in that: The image processing interface further includes a create button, and based on the display configuration parameters corresponding to each field, at least one set of field data is entered into the image to be processed to obtain a target image, including: In response to the triggering operation of the create button, based on the display configuration parameters corresponding to each field, each set of field data in the target file is respectively entered into the image to be processed to obtain the target image corresponding to each set of field data.

12. The image processing method according to claim 4, characterized in that: The image processing interface includes a save configuration button, and the method further includes: In response to a triggering operation on the save configuration button, the display configuration parameters corresponding to the fields are saved as a display configuration file, where the display configuration file includes the display configuration parameters and the picture indication information of the picture to be processed.

13. The image processing method according to claim 4, characterized in that: The operation toolbar includes a read configuration button, and the determination of display configuration parameters of each field in the target file on the image to be processed in response to a triggering operation on the operation toolbar includes: In response to a triggering operation on the read configuration button, determining a target display configuration file that matches the image to be processed based on image indication information in a pre-stored display configuration file; Based on the display configuration parameters in the target display configuration file, display configuration parameters of each field in the target file on the to-be-processed picture are determined.

14. The image processing method according to claim 13, wherein: The determining, based on the picture indication information in the pre-stored display configuration file, a target display configuration file that matches the picture to be processed includes: Performing a matching operation based on the hash value of the picture template in the picture indication information in the pre-stored display configuration file and the hash value of the picture to be processed to obtain a target display configuration file; and / or Performing a matching operation based on the image template name in the image indication information in the pre-stored display configuration file and the name of the image to be processed to obtain a target display configuration file; and / or A matching operation is performed based on the picture template storage path in the picture indication information in the pre-stored display configuration file and the storage path of the picture to be processed to obtain a target display configuration file.

15. The image processing method according to any one of claims 1 to 14, characterized in that: Before displaying the image processing interface, the method further includes: Obtaining display parameters of the current display device, wherein the display parameters include at least one of a screen size and a resolution of the display device; The display parameters of the image processing interface are adjusted based on the display parameters so that the adjusted image processing interface is compatible with the current display device.

16. The image processing method according to any one of claims 1 to 14, characterized in that: The target file includes: a table file.

17. An electronic device, characterized in that: The apparatus comprises one or more processors and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the image processing method according to any one of claims 1 to 16.

18. A storage medium, characterized in that The invention comprises a computer program, and when the computer program is run on a controller, the computer program is used to make the controller execute the steps of the image processing method according to any one of claims 1 to 16.

19. A computer program product, characterized in that The method comprises a computer program or instructions, which implements the steps of the image processing method according to any one of claims 1 to 16 when the computer program or instructions are executed by a processor.