Image editing method, device, equipment and medium

By using preset outline templates and size processing in the image editing method, the problem that the mobile phone back mask in the prior art cannot be adapted to multiple printer sizes is solved, personalized customization and flexible image editing are realized, and multiple devices are adapted to .

CN117252956BActive Publication Date: 2024-11-26SHENZHEN JINGWEI LINE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311138763.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-04
Publication Date
2024-11-26
Estimated Expiration
2043-09-04

AI Technical Summary

Technical Problem

The existing mobile phone back mask cannot flexibly adapt to the size of multiple printers, resulting in the inability to personalize image editing and losing its personalized characteristics.

Method used

By acquiring the image to be processed, image processing is performed according to the preset outline template box selection and preset size, target images are generated, and equally scaled and placed images are achieved to ensure the integrity of the image displayed on non-standard size devices.

Benefits of technology

It improves the flexibility of image editing, allows users to personalize the customization according to preset templates and sizes, and adapts to multiple devices, solving the problem of size mismatch between devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117252956B_ABST
    Figure CN117252956B_ABST
Patent Text Reader

Abstract

The present application provides an image editing method, which first obtains an image to be processed, and then selects a first image in the image to be processed according to a preset contour template, moves the image to be processed to the area corresponding to the preset contour template, and finally performs image processing on the first image according to a preset size to obtain a target image. The preset contour template in this solution can be used to select an area of ​​the image to be processed, and the local area image selected in the image to be processed is selected according to the preset contour template, and then the size of the selected local image is adjusted, so as to obtain a user-customized size image, thereby improving the flexibility of image editing. In addition, an image editing device, equipment and medium are also proposed.
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, and in particular to a method, apparatus, device and medium suitable for image editing. Background Art

[0002] Nowadays, young people have higher and higher requirements for the individuality of their electronic devices, and they expect to be able to show their direct individuality and the mobile phone back film they want. However, the existing back films are all printed in batches with fixed patterns, and the back film patterns do not have the personalized characteristics that users want. In addition, because they are printed in batches, there are many of them, which loses the personalized characteristics. In addition, the back films edited by traditional software cannot be flexibly adapted to a variety of printers. Currently, mobile phones and computer printing can only print in the size specified by the printer manufacturer. There is no size matching the back film of mobile phones and tablets.

[0003] Therefore, a method for image editing is urgently needed. Summary of the invention

[0004] In response to the above-mentioned problem of being unable to edit images, an image editing method, device, equipment and medium are proposed. The method can effectively solve the problem of images not being able to be fully personalized due to size mismatch between devices.

[0005] In a first aspect, an embodiment of the present invention provides an image editing method, the method comprising:

[0006] Acquiring an image to be processed, wherein the image to be processed is displayed on a display interface of the electronic device;

[0007] A first image is obtained by selecting a frame according to a preset contour template in the image to be processed, and the image to be processed moves in an area corresponding to the preset contour template;

[0008] The first image is processed according to a preset size to obtain a target image.

[0009] Optionally, before obtaining the first image in the image to be processed according to the preset contour template, the method further includes: obtaining a device identifier of the electronic device; and querying a preset database to determine a preset contour template in the preset database that matches the device identifier.

[0010] Optionally, the preset size includes at least one preset back film size, and performing image processing on the first image according to the preset size to obtain a target image includes: receiving the preset back film size;

[0011] The first image is proportionally scaled according to the preset backing film size to obtain a second image; a first canvas is created; the second image is placed in the first canvas according to a preset image placement rule to obtain a target image, which is an image of the first canvas combined with the second image.

[0012] Optionally, placing the second image in the first canvas according to a preset image placement rule to obtain a target image includes: obtaining a first center point of the first canvas; obtaining a second center point of the second image; and placing the second image in the first canvas based on the coincidence of the first center point with the second center point to obtain the target image.

[0013] Optionally, after performing proportional image scaling processing on the entire area of ​​the first image according to the preset back film size to obtain the second image, the method further includes: acquiring at least one object in the second image; finding the corresponding original object in the first image according to the at least one object; analyzing the degree of deformation of the at least one object and the original object to obtain the deformation variable corresponding to each object; if there is a deformation variable exceeding the preset deformation variable among the deformation variables corresponding to each object, determining that the object corresponding to the deformation variable is the object to be processed; locally scaling the object to be processed according to the proportion of the original object to obtain an object that meets the preset deformation variable.

[0014] Optionally, obtaining a first image by selecting a preset contour template in the image to be processed includes: obtaining a first area of ​​the preset contour template; in response to an interface operation, placing the image to be processed in the first area, selecting a local image of the image to be processed in the first area, and obtaining a first image.

[0015] Optionally, obtaining a first image by selecting in the image to be processed according to a preset contour template includes: identifying at least one scene image in the image to be processed; obtaining a color value of the at least one scene image; screening out the scene image with the largest color value as the image to be selected; and placing the image to be selected in the first area of ​​the preset contour template to obtain the first image.

[0016] In a second aspect, an embodiment of the present invention provides an image editing device, the device comprising:

[0017] An acquisition unit, used for acquiring an image to be processed;

[0018] A selection unit is used to select a first image in the image to be processed according to a preset contour template, and the image to be processed moves to an area corresponding to the preset contour template.

[0019] The processing unit is used to perform image processing on the first image according to a preset size to obtain a target image.

[0020] In a third aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:

[0021] Acquiring an image to be processed, wherein the image to be processed is displayed on a display interface of the electronic device;

[0022] A first image is obtained by selecting a frame according to a preset contour template in the image to be processed, and the image to be processed moves in an area corresponding to the preset contour template;

[0023] The first image is processed according to a preset size to obtain a target image.

[0024] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor performs the following steps:

[0025] Acquiring an image to be processed, wherein the image to be processed is displayed on a display interface of the electronic device;

[0026] A first image is obtained by selecting a frame according to a preset contour template in the image to be processed, and the image to be processed moves in an area corresponding to the preset contour template;

[0027] The first image is processed according to a preset size to obtain a target image.

[0028] The above-mentioned image editing method, device, computer equipment and storage medium first obtain an image to be processed, then select a first image in the image to be processed according to a preset contour template, move the image to be processed to the area corresponding to the preset contour template, and finally perform image processing on the first image according to a preset size to obtain a target image. The preset contour template in this scheme can be used to select an area of ​​the image to be processed, select a local area image selected in the image to be processed according to the preset contour template, and then resize the selected local image, so as to obtain a user-customized size image, thereby improving the flexibility of image editing. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative work.

[0030] in:

[0031] Figure 1 is a flow chart of an image editing method in one embodiment;

[0032] Figure 2A A schematic diagram of a scene of image editing in one embodiment;

[0033] Figure 2B A schematic diagram of a contour template for image editing in one embodiment;

[0034] Figure 2C A schematic diagram of image placement for image editing in one embodiment;

[0035] Figure 3 is a flow chart of an image editing method in another embodiment;

[0036] Figure 4 A structural block diagram of an image editing device in one embodiment;

[0037] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0038] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0040] like Figure 1As shown, an image editing method is proposed. The method is applied to electronic devices. The electronic devices can be mobile phones, tablets and other devices with communication functions. The electronic devices are connected to the printing device, and the printing device is connected to the film cutter. After the image is edited by the electronic device, the image is sent to the printing device, and the printing device prints out the required non-standard size image, which is the image of the back film of the mobile phone. The printed image is placed in the film cutter for cutting and then pasted to the back of the mobile phone. For specific scene diagrams, please refer to Figure 2A .

[0041] Based on the above scenario, the method includes:

[0042] Step 101: Acquire an image to be processed, and display the image to be processed on a display interface of the electronic device.

[0043] The above-mentioned images to be processed may be images of various sizes, and the size and content of the accepted images to be processed are not limited in any way.

[0044] Step 102: A first image is obtained by selecting a frame in the image to be processed according to a preset contour template, and the image to be processed is moved in an area corresponding to the preset contour template.

[0045] The preset profile template may include profile templates matching multiple model devices, each profile template corresponding to a model device, such as Figure 2B shown.

[0046] Among them, the preset contour template can be stored in the first layer, the image to be processed can be stored in the second layer, and the first image is a selected image that can be stored in the third layer. In this solution, the image of the third layer is locked, and the image of the third layer is subsequently processed, and the target image after image processing is transmitted to the target device, and the target device can be a printer or a film cutter.

[0047] Among them, the area size of the above-mentioned first layer remains unchanged, and the image in the second layer can be freely moved or the image can be adjusted within the display range of the first layer according to the operation instructions. After the part to be selected in the image to be processed is determined, it is locked as the third layer.

[0048] Among them, the above-mentioned preset contour template adds a contour cutting line in the layer editing, so that the user can know the cutting position and move the desired pattern into the contour line, adjust the position, and achieve the same effect of preview and cutting.

[0049] In a possible example, before selecting the first image in the image to be processed according to the preset contour template, the method further includes: obtaining a device identifier of the electronic device; and querying a preset database to determine a preset contour template in the preset database that matches the device identifier.

[0050] Among them, the above-mentioned device identifier can be set by the manufacturer at the factory. The above-mentioned preset database stores the matching relationship between the device identifiers of multiple devices and the contour templates. The above-mentioned matching relationship can be one-to-one, one-to-many or many-to-many, and is not uniquely limited here.

[0051] It can be seen that through the above-mentioned preset contour template, it is possible to flexibly and quickly call up suitable area sizes for multiple different devices, and output the selected image in this area, which can avoid abnormal situations such as incomplete image display or display being too small due to the selected contour template not matching the device model.

[0052] Step 103: performing image processing on the first image according to a preset size to obtain a target image.

[0053] The above-mentioned preset size includes at least one preset back film size, and the back film is the side of the electronic device that is not the display screen, that is, the back side that can be pasted or coated by itself.

[0054] Among them, the above-mentioned preset back film size can be a first back film size (120x180mm, 120x190mm), a second back film size (200x300, 200x297mm), and a third back film size (297×420mm). There is no unique limitation here and it can be updated according to different devices and stored in the preset database. The above-mentioned first back film size can be a mobile phone back film size, the second back film size can be a tablet back film size, and the third back film size can be a computer back film size.

[0055] The above-mentioned image processing may include operable image processing such as copying and pasting, scaling, rotating, adjusting color, etc. of the image.

[0056] Among them, the above-mentioned image processing can be that the electronic device performs image processing on the first image according to a preset setting, places the first image in a preset canvas, and scales it proportionally according to the preset size and the size of the canvas to ensure that the target image will not be deformed.

[0057] Optionally, after performing image processing on the first image according to the preset size to obtain a target image, the method further includes:

[0058] The target image is transmitted to a printing device, and the printing device performs a printing operation according to the target image.

[0059] The printing operation may be print preview or print.

[0060] In a possible example, the preset size includes at least one preset backing film size, and the image processing of the first image according to the preset size to obtain a target image includes: receiving the preset backing film size; performing image scaling processing on the entire area of ​​the first image in proportion according to the preset backing film size to obtain; creating a first canvas; placing the second image in the first canvas according to a preset image placement rule to obtain a target image, wherein the target image is an image of the first canvas merging the second image.

[0061] The first canvas may be a paper size selectable on a common printing device, such as A4, A3, etc., which is not limited here.

[0062] The above-mentioned proportional image scaling can be image enlargement, which is to increase the number of pixels of the image, and image reduction, which is to reduce the number of pixels of the image. The image is a 2D signal, so whether it is increase or decrease, it can be done along the x or y axis. Therefore, the image scaling ratio in the horizontal or vertical direction can be different. For example, a 10*10 (H*V) pixel image can be enlarged to a 20*30 pixel image (Hx2*Vx3).

[0063] Among them, the above-mentioned second image can be stored in the above-mentioned third layer, and the first canvas can be stored in the fourth layer. The fourth layer and the third layer are placed in overlap to obtain a fifth layer. The target image can be stored in the fifth layer, and the image of the fifth layer is transmitted to the target device, and the target device can be a printer or a film cutter.

[0064] Among them, the preset image placement rule can be artificially limited or set according to the manufacturer at the factory. There is no unique limitation here. For example, the preset image placement rule can be that the second image is placed in the center point area of ​​the first canvas, and the above center point is the center point of the interface of the first canvas, that is, the top, vertically centered placement rule.

[0065] For example, take the 120x180mm backing film size as an example to print on the Canon G580 printer model. After synthesizing the 120x180mm image backing film size, create an A4 standard canvas, set the background to white, and then put the synthesized backing image into the canvas, and print it using the principle of top and vertical center. At the same time, configure the printer parameter settings, set the printing effect to high definition, print quantity, print size A4 standard and other configuration parameters, and then put the 120x180 film into the printer to print, and you can print the customized backing film required outside.

[0066] It can be seen that in this example, the selected image is adjusted according to the preset backing film size, and further placed on the first canvas, ensuring that when the selected image does not conform to the printing size of a traditional printing device, the selected image can be printed by placing it on the first canvas.

[0067] In a possible example, placing the second image in the first canvas according to a preset image placement rule to obtain a target image includes: obtaining a first center point of the first canvas; obtaining a second center point of the second image; and placing the second image in the first canvas based on the coincidence of the first center point with the second center point to obtain the target image.

[0068] The placement diagram of the first canvas and the second image is as follows: Figure 2C shown.

[0069] It can be seen that by placing the canvas and the second image in equal proportion, images of various sizes can be adapted to the printing device.

[0070] In a possible example, after the first image is proportionally scaled according to the preset back film size to obtain the second image, the method further includes: acquiring at least one object in the second image; finding the corresponding original object in the first image according to the at least one object; analyzing the degree of deformation of the at least one object and the original object to obtain the deformation variable corresponding to each object; if the deformation variable corresponding to each object contains a deformation variable exceeding the preset deformation variable, determining that the object corresponding to the deformation variable is the object to be processed; locally scaling the object to be processed according to the proportion of the original object to obtain an object that meets the preset deformation variable.

[0071] The above-mentioned object is any partial image displayed in the second image.

[0072] Among them, the above-mentioned objects can be used to locate the target of interest from the image by using image processing and pattern recognition methods. It is necessary to accurately determine the specific category of each target and give a bounding box for each target. The above-mentioned objects in the second image can be obtained by an object image segmentation method, such as A dividing the image into regions according to the similarity or homogeneity of the image grayscale values, and the target object is generated by merging some regions, such as threshold method, clustering method, region separation and region fusion, etc.; B finds the position of the target object or its contour according to the discontinuity and mutation of the image grayscale value, and performs spatial extension based on the position, that is, image segmentation is performed by detecting the feature points, lines and surfaces of the image, such as edge detection method.

[0073] Among them, since the second image is obtained by selecting from the first image, all identifiable objects in the second image have corresponding original objects in the first image. Deformation recognition is performed based on the same object between the two images, and the degree and amount of deformation are further determined.

[0074] The preset deformation amount may be manually set or a conventional parameter in the image processing process, and is not artificially limited here.

[0075] Optionally, locally scaling the object to be processed according to the proportion of the original object to obtain an object that meets the preset deformation amount includes: obtaining image elements of the original object in the first image, and determining a first proportion between each element; obtaining image elements in the object to be processed, and determining a second proportion between each element; determining a deformation adjustment amount according to the first proportion and the second proportion; and adjusting the object to be processed according to the deformation adjustment amount to obtain an object that meets the preset deformation amount.

[0076] The above-mentioned image elements are different pixel areas in the object.

[0077] It can be seen that by detecting the deformation, the scaled image is ensured not to be deformed.

[0078] In a possible example, obtaining a first image by selecting a preset contour template in the image to be processed includes: obtaining a first area of ​​the preset contour template; in response to an interface operation, placing the image to be processed in the first area, selecting a local image of the image to be processed in the first area, and obtaining a first image.

[0079] The above-mentioned response interface operation may be performed based on an operation instruction of a user on a display interface of the electronic device.

[0080] In a possible example, obtaining a first image by selecting in the image to be processed according to a preset contour template includes: identifying at least one scene image in the image to be processed; obtaining a color value of the at least one scene image; screening out the scene image with the largest color value as the image to be selected; and placing the image to be selected in the first area of ​​the preset contour template to obtain the first image.

[0081] The maximum color value is the maximum value after comparing multiple color values ​​in the image to be processed.

[0082] Optionally, the step of selecting the scene image with the largest color value as the image to be framed includes: obtaining a region image with the largest color value, performing scene division on the region image according to scene recognition, obtaining an adjacent region image belonging to the same scene as the region image with the largest color value, and splicing the adjacent region image with the region image with the largest color value to obtain the image to be framed. This can ensure the integrity and accuracy of the framed image.

[0083] It can be seen that in this example, the first image can be selected according to the user operation, or the framed area image can be automatically identified according to the color value in the image to be processed, and the image can be flexibly framed in two modes.

[0084] For example, the user selects his own picture and imports it into the Ap p picture editor. The software will display the cutting outline in the editor, making it convenient for the user to display the layer in the specified position. The user can rotate and scale, and use filters to obtain a satisfactory synthesis effect. The processed picture is synthesized into a picture format that supports ordinary printing and UV printers. The software will scan the supported printers in the local area network. The user selects the corresponding printer, and the software will automatically detect the size specifications of the picture (supported specifications: 120x180mm, 120x190m m, 200x300, 200x297mm, 297×420mm), configure the printer device parameters, and send the picture to the printer for printing.

[0085] The above-mentioned image editing method, device, computer equipment and storage medium first obtain an image to be processed, then select a first image in the image to be processed according to a preset contour template, move the image to be processed to the area corresponding to the preset contour template, and finally perform image processing on the first image according to a preset size to obtain a target image. The preset contour template in this scheme can be used to select an area of ​​the image to be processed, select a local area image selected in the image to be processed according to the preset contour template, and then resize the selected local image, so as to obtain a user-customized size image, thereby improving the flexibility of image editing.

[0086] like Figure 3 As shown, another image editing method is proposed, which includes:

[0087] Step 301: Obtain an image to be processed.

[0088] Step 302, obtaining a device identifier of the electronic device, querying a preset database, and determining a preset profile template matching the device identifier in the preset database.

[0089] Step 303, obtaining a first area of ​​a preset contour template, responding to an interface operation, placing the image to be processed in the first area, and selecting a partial image of the image to be processed in the first area to obtain a first image.

[0090] Step 304, receiving the preset backing film size, and performing image scaling processing on the entire area of ​​the first image in equal proportion according to the preset backing film size to obtain a second image.

[0091] Step 305: create a first canvas, and place the second image in the first canvas according to a preset image placement rule to obtain a target image.

[0092] The above-mentioned image editing method, device, computer equipment and storage medium first obtain an image to be processed, then select a first image in the image to be processed according to a preset contour template, move the image to be processed to the area corresponding to the preset contour template, and finally perform image processing on the first image according to a preset size to obtain a target image. The preset contour template in this scheme can be used to select an area of ​​the image to be processed, select a local area image selected in the image to be processed according to the preset contour template, and then resize the selected local image, so as to obtain a user-customized size image, thereby improving the flexibility of image editing.

[0093] like Figure 4 As shown, in one embodiment, an image editing device is provided, the device comprising:

[0094] An acquisition unit 401 is used to acquire an image to be processed;

[0095] The selection unit 402 is used to select a first image in the image to be processed according to a preset contour template, and the image to be processed moves in an area corresponding to the preset contour template.

[0096] The processing unit 403 is used to perform image processing on the first image according to a preset size to obtain a target image.

[0097] This solution first obtains the image to be processed, then selects the first image in the image to be processed according to the preset contour template, moves the image to be processed in the area corresponding to the preset contour template, and finally performs image processing on the first image according to the preset size to obtain the target image. The preset contour template in this solution can be used to select the area of ​​the image to be processed, select the local area image selected in the image to be processed according to the preset contour template, and then resize the selected local image, so as to obtain a user-customized size image, which improves the flexibility of image editing.

[0098] In one embodiment, before selecting the first image in the image to be processed according to the preset contour template, the selection unit 402 is further used to: obtain the device identifier of the electronic device; query the preset database to determine the preset contour template matching the device identifier in the preset database.

[0099] In one embodiment, the preset size includes at least one preset backing film size, and the first image is processed according to the preset size to obtain a target image. The processing unit 403 is further used to:

[0100] Receive the preset backing film size; perform image scaling processing on the entire area of ​​the first image in proportion according to the preset backing film size to obtain a second image; create a first canvas; place the second image in the first canvas according to a preset image placement rule to obtain a target image, wherein the target image is an image of the first canvas merging the second image.

[0101] In one embodiment, the second image is placed in the first canvas according to a preset image placement rule to obtain a target image, and the processing unit 403 is further used to: obtain a first center point of the first canvas; obtain a second center point of the second image; and place the second image in the first canvas based on the coincidence of the first center point with the second center point to obtain a target image.

[0102] In one embodiment, after the first image is proportionally scaled according to the preset back film size to obtain the second image, the processing unit 403 is further used to: obtain at least one object in the second image; find the corresponding original object in the first image according to the at least one object; analyze the deformation degree of the at least one object and the original object to obtain the deformation variable corresponding to each object; if there is a deformation variable exceeding the preset deformation variable among the deformation variables corresponding to each object, determine that the object corresponding to the deformation variable is the object to be processed; and locally scale the object to be processed according to the proportion of the original object to obtain an object that meets the preset deformation variable.

[0103] In one embodiment, the first image is obtained by selecting a preset contour template in the image to be processed, and the selection unit 403 is also used to: obtain a first area of ​​the preset contour template; in response to an interface operation, place the image to be processed in the first area, select a local image of the image to be processed in the first area, and obtain a first image.

[0104] In one embodiment, the first image is obtained by selecting in the image to be processed according to a preset contour template, and the selection unit 403 is also used to: identify at least one scene image in the image to be processed; obtain the color value of the at least one scene image; filter out the scene image with the largest color value as the image to be selected; and place the image to be selected in the first area of ​​the preset contour template to obtain the first image.

[0105] Figure 5 FIG. 1 shows an internal structure diagram of a computer device in an embodiment. The computer device may be a terminal. Figure 5 As shown, the computer device includes a processor, a memory and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement the above-mentioned image editing method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can implement the above-mentioned image editing method. Those skilled in the art can understand that Figure 5 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the device to which the scheme of the present application is applied. The specific device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0106] A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the image editing method in any of the above embodiments.

[0107] A computer device comprises a memory and a processor, 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 editing method in any of the above embodiments.

[0108] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0109] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0110] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An image editing method, characterized in that: Applied to an electronic device, the electronic device is communicatively connected to a printing device, the printing device is communicatively connected to a film cutting machine, and the method includes: Acquiring an image to be processed, wherein the image to be processed is displayed on a display interface of the electronic device; Obtaining a device identifier of the electronic device; querying a preset database to determine a preset profile template in the preset database that matches the device identifier; A first image is obtained by selecting a frame according to a preset contour template in the image to be processed, and the image to be processed moves in an area corresponding to the preset contour template; Performing image processing on the first image according to a preset size to obtain a target image; The preset size includes at least one preset backing film size, and the step of performing image processing on the first image according to the preset size to obtain a target image includes: Receiving the preset backing film size; Performing image scaling processing on the entire area of ​​the first image in equal proportion according to the preset backing film size to obtain a second image; Create the first canvas; The second image is placed in the first canvas according to a preset image placement rule to obtain a target image, where the target image is an image obtained by merging the first canvas with the second image.

2. The method according to claim 1, characterized in that: Placing the second image in the first canvas according to a preset image placement rule to obtain a target image includes: Obtaining a first center point of the first canvas; Acquire a second center point of the second image; The second image is placed in the first canvas based on the first center point coinciding with the second center point to obtain a target image.

3. The method according to claim 1, characterized in that: After performing image scaling processing on the entire area of ​​the first image in equal proportion according to the preset backing film size to obtain the second image, the method further includes: acquiring at least one object in the second image; According to the at least one object, finding a corresponding original object in the first image; Analyzing the deformation degree of the at least one object and the original object to obtain the deformation amount corresponding to each object; If there is a deformation variable exceeding a preset deformation variable among the deformation variables corresponding to each object, determining the object corresponding to the deformation variable as an object to be processed; The object to be processed is partially scaled according to the proportion of the original object to obtain an object that meets the preset deformation amount.

4. The method according to claim 1, characterized in that The step of obtaining a first image by selecting a frame according to a preset contour template in the image to be processed includes: Obtaining a first area of ​​a preset contour template; In response to the interface operation, the image to be processed is placed in the first area, and a partial image of the image to be processed in the first area is framed to obtain a first image.

5. The method according to claim 1, characterized in that The step of obtaining a first image by selecting a frame according to a preset contour template in the image to be processed includes: Identifying at least one scene image in the image to be processed; Acquiring a color value of the at least one scene image; Filtering out the scene image with the largest color value as the image to be framed; The image to be framed is placed in the first area of ​​the preset outline template to obtain a first image.

6. An image editing device, characterized in that: Applied to an electronic device, the electronic device is connected to a printing device for communication, the printing device is connected to a film cutting machine for communication, and the device comprises: An acquisition unit, used for acquiring an image to be processed; A selection unit is used to select a first image in the image to be processed according to a preset contour template, and the image to be processed moves to an area corresponding to the preset contour template. A processing unit, configured to perform image processing on the first image according to a preset size to obtain a target image; The preset size includes at least one preset backing film size, and the step of performing image processing on the first image according to the preset size to obtain a target image includes: Receiving the preset backing film size; Performing image scaling processing on the entire area of ​​the first image in equal proportion according to the preset backing film size to obtain a second image; Create the first canvas; The second image is placed in the first canvas according to a preset image placement rule to obtain a target image, where the target image is an image obtained by merging the first canvas with the second image.

7. A computer device comprising a memory and a processor, 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 editing method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the processor is caused to execute the steps of the image editing method according to any one of claims 1 to 5.