Image printing method and device
By segmenting and selectively printing the image, the image blur problem caused by the size limitation of the photo paper is solved, and a higher quality image printing effect is achieved.
Patent Information
- Application Number
- CN202510270843.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-07
- Publication Date
- 2025-07-04
AI Technical Summary
In the prior art, due to the limited size of the photo paper used by the printer, when printing images containing multiple characters, the original image needs to be compressed, resulting in blurred image content in the photo and poor display effect.
By receiving segmentation input, the image is segmented based on the image elements, multiple image areas are obtained, and the user is allowed to select and print the required areas to avoid overall image compression.
It improves the flexibility and display effect of image printing, meets users' printing needs, and improves the display quality of images in print output objects.
Smart Images

Figure CN120259337A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of image technology, and particularly relates to an image printing method and apparatus thereof. Background Art
[0002] With the development of the shooting function of electronic devices, many manufacturers have launched printers that can be directly connected to electronic devices to meet the printing needs of the images captured by users. Thus, users can input to the electronic device, so that the electronic device can perform a printing operation on the image to be printed through the connected printer, and thus obtain the corresponding photo.
[0003] However, since the size of the photo paper used for printing is limited, during the photo printing process, if the original image to be printed contains a large amount of image content, for example, contains multiple people, the electronic device needs to compress the original image according to the size of the photo paper to ensure the printing of the original image. In this way, the image content in the photo will be blurred, resulting in a poor display effect of the image content in the printed photo. Summary of the Invention
[0004] The purpose of the embodiments of this application is to provide an image printing method and apparatus thereof, which can improve the display effect of the image in the object printed by the electronic device.
[0005] In a first aspect, the embodiments of this application provide an image printing method, which includes: receiving a segmentation input for a first image; in response to the segmentation input, segmenting the first image based on the image elements in the first image to obtain and display at least two segmented image regions; receiving a first input for a first image region among the at least two image regions; and in response to the first input, performing a printing operation on the image of the first image region.
[0006] In a second aspect, the embodiments of this application provide an image printing apparatus, which includes: a receiving module, a processing module, and an execution module; the receiving module is configured to receive a segmentation input for a first image; the processing module is configured to, in response to the segmentation input received by the receiving module, segment the first image based on the image elements in the first image to obtain and display at least two segmented image regions; the receiving module is further configured to receive a first input for a first image region among the at least two image regions obtained by the segmentation module; and the execution module is configured to, in response to the first input received by the receiving module, perform a printing operation on the image of the first image region.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory. The memory stores a program or instructions that can run on the processor. When the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instructions are stored. When the program or instructions are executed by a processor, the steps of the method described in the first aspect are implemented.
[0009] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run a program or instructions to implement the method described in the first aspect.
[0010] In a sixth aspect, an embodiment of the present application provides a computer program / program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0011] In the embodiment of the present application, the electronic device can receive a segmentation input for a first image; and in response to the segmentation input, based on the image elements in the first image, segment the first image to obtain and display at least two segmented image regions; then, the electronic device can receive a first input for a first image region among the at least two image regions; and in response to the first input, perform a printing operation on the image of the first image region. In this solution, after the user inputs a segmentation for the first image, the electronic device can segment the first image to obtain at least two segmented image regions, and then the user can select the first image region from the at least two image regions according to the printing requirement for the first image, so that the electronic device can perform a printing operation on the image of the first image region, thereby enabling the image included in the printed output object to meet the user's printing requirement. In this way, the flexibility of image printing through the electronic device can be improved; and since the image included in the printed output object is the image region selected by the user from the first image and there is no need to compress the entire first image according to the photo paper size, the display effect of the image in the object printed out through the electronic device can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is one of the flowcharts of an image printing method provided by an embodiment of the present application;
[0013] Figure 2A is one of the schematic diagrams of an example of a mobile phone displaying an image provided by an embodiment of the present application;
[0014] Figure 2BIt is one of the schematic diagrams of the image area after the mobile phone display is segmented provided by the embodiments of the present application;
[0015] Figure 3A It is the second of the schematic diagrams of the mobile phone display image provided by the embodiments of the present application;
[0016] Figure 3B It is the second of the schematic diagrams of the image area after the mobile phone display is segmented provided by the embodiments of the present application;
[0017] Figure 4 It is the second of the flowcharts of the image printing method provided by the embodiments of the present application;
[0018] Figure 5 It is the schematic diagram of the instance of the display printing option provided by the embodiments of the present application;
[0019] Figure 6A It is the first of the schematic diagrams of the instance of the display printing preview image provided by the embodiments of the present application;
[0020] Figure 6B It is the first of the schematic diagrams of the instance of the photo provided by the embodiments of the present application;
[0021] Figure 7 It is the third of the flowcharts of the image printing method provided by the embodiments of the present application;
[0022] Figure 8A It is the first of the schematic diagrams of the instance of adjusting the image area provided by the embodiments of the present application;
[0023] Figure 8B It is the second of the schematic diagrams of the instance of adjusting the image area provided by the embodiments of the present application;
[0024] Figure 9A It is the third of the schematic diagrams of the instance of adjusting the image area provided by the embodiments of the present application;
[0025] Figure 9B It is the fourth of the schematic diagrams of the instance of adjusting the image area provided by the embodiments of the present application;
[0026] Figure 10A It is the fifth of the schematic diagrams of the instance of adjusting the image area provided by the embodiments of the present application;
[0027] Figure 10B It is the sixth of the schematic diagrams of the instance of adjusting the image area provided by the embodiments of the present application;
[0028] Figure 10C It is the seventh of the schematic diagrams of the instance of adjusting the image area provided by the embodiments of the present application;
[0029] Figure 11AIt is the second example schematic diagram of displaying a print preview image provided by an embodiment of the present application;
[0030] Figure 11B It is the third example schematic diagram of displaying a print preview image provided by an embodiment of the present application;
[0031] Figure 12 It is the second example schematic diagram of a photo provided by an embodiment of the present application;
[0032] Figure 13 It is the fourth flowchart of an image printing method provided by an embodiment of the present application;
[0033] Figure 14 It is the fifth flowchart of an image printing method provided by an embodiment of the present application;
[0034] Figure 15 It is the structural schematic diagram of an image printing device provided by an embodiment of the present application;
[0035] Figure 16 It is the first hardware structural schematic diagram of an electronic device provided by an embodiment of the present application;
[0036] Figure 17 It is the second hardware structural schematic diagram of an electronic device provided by an embodiment of the present application. Specific embodiments
[0037] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.
[0038] The terms "first", "second", etc. in the specification of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. generally belong to the same category, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the specification means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after.
[0039] The terms "at least one (item)", "at least one of", etc. in the specification of this application refer to any one, any two or more combinations of its included objects. For example, at least one (item) of a, b, and c can represent: "a", "b", "c", "a and b", "a and c", "b and c", and "a, b, and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" means two or more, and its meaning is similar to that of "at least one (item)". The identifiers in this application are words, symbols, images, etc. used to indicate information, and can use controls or other containers as the carriers for displaying information, including but not limited to text identifiers, symbol identifiers, and image identifiers.
[0040] The following will combine the accompanying drawings and, through specific embodiments and their application scenarios, elaborate in detail on the image printing method provided by the embodiments of this application.
[0041] The image printing method provided by the embodiments of this application can be applied to scenarios where a user needs to print an image stored in an electronic device.
[0042] The following will take some specific scenarios as examples to exemplarily illustrate the image printing method provided by the embodiments of this application. For example, a user wants to print a partial image area in an image.
[0043] Scenario 1: A user wants to print an image area in an image as a photo.
[0044] Suppose the first image that the user wants to print contains 6 people, such as Person 1 to Person 6. If the user wants to print the image area corresponding to Person 1 among these 6 people, the user can perform a segmentation input on the first image to trigger the electronic device to segment the first image into 6 image areas based on the 6 people included in the first image. Then, the user can select the image area corresponding to Person 1, that is, perform a first input on the first image area to trigger the electronic device to perform a printing operation on the image of the image area corresponding to Person 1, thereby printing out a photo.
[0045] Scenario 2: A user wants to print multiple image areas in an image as multiple photos.
[0046] Suppose the first image that the user wants to print contains 6 persons, such as Person 1 to Person 6. If the user wants to print the image regions corresponding to Person 1 and Person 3 among the 6 persons respectively, the user can perform a segmentation input on the first image to trigger the electronic device to segment the first image into 6 image regions based on the 6 persons included in the first image. Then, the user can select the image regions corresponding to Person 1 and Person 3, that is, perform a first input on the first image region to trigger the electronic device to perform printing operations on the image of the image region corresponding to Person 1 and the image of the image region corresponding to Person 3 respectively, so as to print out two photos.
[0047] Scenario 3: The user wants to print multiple non - adjacent image regions in an image as one photo.
[0048] Suppose the first image that the user wants to print contains 6 persons, such as Person 1 to Person 6. If the user wants to print the non - adjacent image regions corresponding to Person 1 and Person 3 among the 6 persons, the user can perform a segmentation input on the first image to trigger the electronic device to segment the first image into 6 image regions based on the 6 persons included in the first image. Then, the user can select the image regions corresponding to Person 1 and Person 3, that is, perform a first input on the first image region to trigger the electronic device to perform a printing operation on the image regions corresponding to Person 1 and Person 3 together, so as to print out one photo.
[0049] It should be noted that the above Scenarios 1 to 3 only exemplarily list some scenarios where the embodiments of the present application may be applied. In actual implementation, the embodiments of the present application can also be applied to more arbitrary possible scenarios of performing printing operations on at least partial image regions of an image. The embodiments of the present application are not limited herein.
[0050] Based on the above scenarios to which the embodiments of the present application are applied, for the image printing method provided by the embodiments of the present application, an electronic device can receive a segmentation input for a first image; and in response to the segmentation input, based on the image elements in the first image, segment the first image to obtain and display at least two segmented image regions; then, the electronic device can receive a first input for a first image region among the at least two image regions; and in response to the first input, perform a printing operation on the image of the first image region. In this solution, after the user performs a segmentation input on the first image, the electronic device can segment the first image to obtain at least two segmented image regions, and then the user can select the first image region from the at least two image regions according to the printing requirements for the first image, so that the electronic device can perform a printing operation on the image of the first image region, thereby enabling the image included in the printed object to meet the user's printing requirements. In this way, the flexibility of image printing through the electronic device can be improved; and since the image included in the printed object is the image region selected by the user from the first image and there is no need to compress the entire first image according to the photo paper size, the display effect of the image in the object printed through the electronic device can be improved.
[0051] The execution subject of the image printing method provided by the embodiments of the present application is an image printing device, which can be an electronic device, or a functional module or entity in the electronic device. The embodiments of the present application do not make any limitations in this regard. Hereinafter, the image printing method provided by the embodiments of the present application will be exemplarily described by taking an electronic device as an example.
[0052] The embodiments of the present application provide an image printing method, Figure 1 which shows a flowchart of an image printing method provided by the embodiments of the present application. As Figure 1 shown, the image printing method provided by the embodiments of the present application may include the following steps 201 to 204.
[0053] Step 201: The electronic device receives a segmentation input for a first image.
[0054] It should be noted that the electronic device involved in the embodiments of the present application can be connected to a printing device; or it can be an electronic device with a printing function.
[0055] In some embodiments of the present application, when the electronic device is connected to a printing device, the connection can include a wired connection or a wireless connection; wherein, the wireless connection can include but is not limited to any one of the following: a connection in the same local area network, a connection through Bluetooth.
[0056] The above printing device can be a device that prints the data in the electronic device on an object such as photo paper, photo, etc. in a user-identifiable form. For example, a printer.
[0057] Among them, the above printer may include, but is not limited to, any one of the following types of printers: laser printer, inkjet printer, thermal printer.
[0058] In some embodiments of the present application, when the electronic device is an electronic device with a printing function, the electronic device may include, but is not limited to, any one of the following: instant camera, printer with a multi-functional touch screen.
[0059] In some embodiments of the present application, the above first image may be any image stored locally or in the cloud of the electronic device.
[0060] In some embodiments of the present application, the above segmentation input is used to trigger the electronic device to segment the first image to obtain at least two image regions.
[0061] In some embodiments of the present application, the above segmentation input may include, but is not limited to: input by the user on the display screen of the electronic device, input by the user on the physical keys of the electronic device.
[0062] In some embodiments of the present application, the above segmentation input may include, but is not limited to, any one of the following: click input, swipe input, gesture input, long press input, or other feasible inputs, which are not limited in the embodiments of the present application.
[0063] In some embodiments of the present application, when a print control is displayed on the electronic device, the above segmentation input may be a click input on the print control.
[0064] Step 202: In response to the segmentation input, the electronic device segments the first image based on the image elements in the first image, and obtains and displays at least two segmented image regions.
[0065] In some embodiments of the present application, the above image elements may include, but are not limited to, at least one of the following: person, animal, plant, building, object.
[0066] In some embodiments of the present application, during the process of the electronic device segmenting the first image based on the image elements, the segmented image regions may be irregularly shaped image regions segmented based on the edges of the image elements, or regularly shaped image regions segmented based on the regions where the image elements are located. For example, the electronic device may segment the first image based on the rectangular region where the image element is located.
[0067] Exemplarily, assume that a person is included in the first image. Then, the electronic device can first determine the display position corresponding to the person, and then determine the leftmost position point and the rightmost position point of the person horizontally in the first image to determine the width of the image area corresponding to the person, and determine the highest position point and the lowest position point of the person vertically in the first image to determine the length of the image area corresponding to the person. Thus, based on the determined width and length of the image area, the rectangular image area corresponding to the person can be determined.
[0068] In some embodiments of the present application, the area sizes of any two of the above at least two image areas may be the same or different.
[0069] Exemplarily, take the electronic device as a mobile phone for illustration. As Figure 2A shown, the mobile phone can display the image 11 in the interface 10, that is, the above first image. Among them, the image 11 contains 6 persons, and the standing positions of the 6 persons are two rows and three columns. At the same time, an "Exit" control is displayed in the upper left corner area of the interface 10; three controls, such as an "Edit" control, a "Delete" control, and a "Print" control, are displayed in the bottom area of the interface 10. Then, when the user needs to print the image 11, the user can click the "Print" control displayed in the interface 10, that is, the above split input, to trigger the mobile phone to split the image 11 based on the 6 persons included in the image 11. As Figure 2B shown, the mobile phone can obtain and display 6 image areas, such as the image area 111 to the image area 116. Each image area contains one person. At the same time, the mobile phone can display a preview window 12 to display the print preview image and display a "Confirm Print" control 13.
[0070] In some embodiments of the present application, there may be partial area overlap between adjacent ones of the above at least two image areas.
[0071] Exemplarily, as Figure 3A shown, the mobile phone can display the image 21 in the interface 20, that is, the above first image. Among them, the image 21 contains 3 persons and a building. Among them, the 3 persons are a "little girl", a "little boy", and a "lady" respectively. At the same time, an "Exit" control is displayed in the upper left corner area of the interface 20; three controls, such as an "Edit" control, a "Delete" control, and a "Print" control, are displayed in the bottom area of the interface 20. Then, when the user needs to print the image 21, the user can double-click in the blank area in the interface 20, that is, the above split input, to trigger the mobile phone to split based on the image elements included in the image 21. As Figure 3BAs shown, the mobile phone can obtain and display four image regions, such as image region 211 to image region 215. Among them, image region 211 and image region 212 respectively contain a building in image 21, and there is partial overlap between image region 211 and image region 212; image region 213 contains the "little girl" in image 21, image region 214 contains the "little boy" in image 21, image region 215 contains the "lady" in image 21, and there is partial overlap between image region 213 and image region 214. At the same time, the mobile phone can display a preview window 22 to display a print preview image, and display an "OK to Print" control 23.
[0072] In some embodiments of the present application, during the process of the electronic device segmenting the first image based on image elements, the electronic device can also combine at least one of parameters such as the color, brightness, and position of pixel points in the first image to obtain at least two image regions.
[0073] In some embodiments of the present application, the color of the above pixel points may include, but is not limited to, the values corresponding to any of the following color spaces: RGB, LAB, HSV.
[0074] In some embodiments of the present application, if the electronic device combines information related to the color of pixel points during the process of segmenting the first image, the electronic device can obtain the color corresponding to the pixel points in the first image and calculate the color difference between the pixel points. Then, the electronic device can use the calculated color difference ΔE as a reference condition for segmenting the first image.
[0075] It should be noted that when the color difference ΔE is less than 2, it is usually difficult for the human eye to perceive the difference between colors; when the color difference ΔE is greater than 2, the human eye's perception of color difference will increase as the value of the color difference ΔE increases.
[0076] Exemplarily, the electronic device can calculate the color difference between the pixel points of the first image through the color difference formula and using the data of the first image in the LAB color space. Thus, when the color difference between two pixel points is greater than or equal to the preset color difference value, the electronic device can segment the adjacent pixel points into two different image regions. Among them, the preset color difference value can be set to any value greater than 2, and the specific preset color difference value can be determined according to the user's needs, and the embodiments of the present application do not limit this here.
[0077] In some embodiments of the present application, if the electronic device combines information related to the brightness value of pixel points during the process of segmenting the first image, the electronic device can use the magnitude relationship between the difference between brightness values and the preset brightness value as a reference condition for segmenting the first image. Among them, the specific preset brightness value can be determined according to the user's needs, and the embodiments of the present application do not limit this here.
[0078] In some embodiments of the present application, in combination with Figure 1 , such as Figure 4 shown, before "segmenting the first image based on the image elements in the first image to obtain and display at least two segmented image regions" in step 202 above, the image printing method provided by the embodiments of the present application may further include the following step 301 and step 302. And "segmenting the first image based on the image elements in the first image to obtain and display at least two segmented image regions" in step 202 above may be specifically implemented through the following step 202a.
[0079] Step 301: The electronic device displays a segmentation printing control in response to a segmentation input.
[0080] In some embodiments of the present application, the electronic device may display at least one printing control in response to a segmentation input, and the at least one printing control includes the above-mentioned segmentation printing control.
[0081] Exemplarily, in combination with Figure 2A , such as Figure 5 shown, when the user wants to trigger the mobile phone to segment the displayed Image 11, the user can click the "Print" control displayed in the interface 10, that is, the above-mentioned segmentation input, to trigger the mobile phone to display a floating window 14 in the area corresponding to the "Print" control to display a "Direct Print" control 141 and a "Segmentation Print" control 142. Then, the mobile phone can provide a corresponding printing method according to the user's subsequent selection.
[0082] It should be noted that if the user selects the "Direct Print" control 141, the mobile phone can directly perform a printing operation on Image 11 through the connected printing device, and the specific printing solution is not elaborated in the present application.
[0083] Step 302: The electronic device receives a second input to the segmentation printing control.
[0084] In some embodiments of the present application, the above-mentioned second input is used to trigger the electronic device to segment the first image.
[0085] In some embodiments of the present application, the above-mentioned second input may be a click input to the segmentation printing control.
[0086] Step 202a: The electronic device segments the first image based on the image elements in the first image in response to the second input, and obtains and displays at least two image regions.
[0087] It should be noted that for the solution where the electronic device segments the first image based on the image elements in the first image and obtains and displays at least two image regions, reference may specifically be made to the relevant description in step 202 above, and details are not elaborated in the embodiments of the present application herein.
[0088] Exemplarily, in combination with Figure 5 , if the user selects the "Split and Print" control 142, the mobile phone can segment the image 11 based on the 6 people included in the image 11 and obtain and display the image regions 111 to 116 as shown in Figure 2B .
[0089] In the embodiments of the present application, the electronic device can display the split and print control, so that the electronic device can determine whether to segment the first image according to the user's selection of the print control, that is, the electronic device can learn the user's printing requirement for the first image and perform corresponding printing operations subsequently. In this way, the flexibility and diversity of the printing operations performed by the electronic device can be improved.
[0090] Step 203: The electronic device receives a first input for the first image region among at least two image regions.
[0091] In some embodiments of the present application, the above first image region may be any one or more of the at least two image regions.
[0092] In some embodiments of the present application, the above first input may include but is not limited to any one of the following: click input, swipe input, gesture input, long press input, or other feasible inputs, which are not limited in the embodiments of the present application.
[0093] Step 204: The electronic device performs a printing operation on the image of the first image region in response to the first input.
[0094] In some embodiments of the present application, the above first input may be used to select the first image region.
[0095] In some embodiments of the present application, when the above first input includes multiple selection sub-inputs, the first image region may include multiple image regions, where one selection sub-input is used to select one image region.
[0096] In some embodiments of the present application, before the above "performing a printing operation on the image of the first image region", the electronic device may edit the first image region and display a print preview image corresponding to the first image region, and then, after receiving the input from the user for determining printing, perform a printing operation on the image of the first image region.
[0097] In some embodiments of the present application, the above-mentioned form of marking the first image area may include but is not limited to at least one of the following: adjusting border display parameters, adding a color transparent layer, and enlarging the image content contained in the image area.
[0098] The border display parameters may include but are not limited to at least one of the following: border reality, border thickness, border color, and border shape.
[0099] In some embodiments of the present application, the object obtained after the above printing operation is completed may be a photograph.
[0100] In some embodiments of the present application, the photo may include but is not limited to any of the following: Polaroid photo, 5-inch photo, 6-inch photo. The photo paper size of the Polaroid photo may include but is not limited to any of the following: 86mm×54mm, 86mm×72mm, 108mm×86mm.
[0101] In some embodiments of the present application, when the electronic device is connected to a printing device, the electronic device can trigger the connected printing device to perform a printing operation on the image of the first image area.
[0102] For example, in combination Figure 2B If the user wants to print the image area 115, the user can long press the image area 115, so that Figure 6A As shown in FIG. 1 , the mobile phone can adjust the dotted border of the image area 115 to a solid border and bold the border to prompt the user that the image area has been selected. At the same time, the mobile phone can display the preview image corresponding to the image area 115 in the preview window 12. Further, the user can click the "Confirm Print" control 13, and then the mobile phone can send a print instruction to the connected printer to perform a print operation on the image of the first image area through the printer. Thus, the user can finally obtain the following Figure 6B Photos shown.
[0103] In some embodiments of the present application, before executing a printing operation through a printing device, the electronic device may further display a setting interface, which may include at least one setting option for the user to select relevant parameters for printing.
[0104] In some embodiments of the present application, the above setting options may include but are not limited to at least one of the following: connected printing device, paper size, image quality, number of prints, printing direction, whether to adapt to border printing, whether to remove background. The printing direction can be horizontal printing or vertical printing.
[0105] In the image printing method provided in the embodiments of the present application, after the user inputs the segmentation of the first image, the electronic device can segment the first image to obtain at least two segmented image regions. Then, the user can select a first image region from the at least two image regions according to the printing requirement of the first image, so that the electronic device can perform a printing operation on the image in the first image region, thereby enabling the image included in the printed object to meet the user's printing requirement. In this way, the flexibility of image printing through the electronic device can be improved; moreover, since the image included in the printed object is the image region selected by the user from the first image and there is no need to compress the entire first image according to the photo paper size, the display effect of the image in the object printed by the electronic device can be improved.
[0106] In some embodiments of the present application, in combination with Figure 1 , such as Figure 7 shown, before the above step 203, the image printing method provided in the embodiments of the present application may further include the following step 401 and step 402.
[0107] Step 401: The electronic device receives a third input for N image regions among the at least two image regions.
[0108] Wherein, N is an integer greater than 1.
[0109] In the embodiments of the present application, the above N image regions are partial image regions among the at least two image regions.
[0110] Step 402: The electronic device merges the N image regions in response to the third input to obtain a first image region.
[0111] In some embodiments of the present application, the above third input can be used to trigger the electronic device to edit the image region.
[0112] In some embodiments of the present application, the above third input may include, but is not limited to, any one of the following: click input, slide input, box selection input, or other feasible inputs, which are not limited in the embodiments of the present application.
[0113] In some embodiments of the present application, any two of the above N image regions may be adjacent or non - adjacent.
[0114] Exemplarily, in combination with Figure 2B , if the user wants to trigger the mobile phone to merge the characters included in the adjacent image regions 114 and 115 into one image region, such as Figure 8AAs shown, the user can draw a circle 14 on the image areas 114 and 115, which is the above-mentioned third input, to trigger the mobile phone to merge the image areas 114 and 115 into one image area, as Figure 8B the image area 151 shown.
[0115] Exemplarily, in combination with Figure 2B , if the user wants to trigger the mobile phone to merge the people included in the non-adjacent image areas 114 and 116 into one image area, as Figure 9A shown, the user can long-press the image area 114 to trigger the mobile phone to display the thumbnail corresponding to the image area 114 and drag the thumbnail into the display range of the image area 116, which is the above-mentioned third input, to trigger the mobile phone to adjust the positions of the image areas 114 and 115 and merge the image areas 114 and 116 into one image area, as Figure 9B the image area 152 shown, and the mobile phone can synchronously update the image content displayed in the preview window 12.
[0116] It should be noted that during the dragging process of the thumbnail corresponding to the image area 114, if the thumbnail is dragged to the left half area of the image area 116, the mobile phone can move the image area 114 to the left of the image area 116, that is, as Figure 9B shown, to adjust the display positions of the image areas 114 and 115; if the thumbnail is dragged to the right half area of the image area 116, the mobile phone can move the image area 114 to the right of the image area 116, that is, to adjust the display positions of the image areas 114, 115 and 116. At this time, the display order of these 3 image areas from left to right is: image area 115, image area 116, and image area 114; if the thumbnail is dragged to the upper half area of the image area 116, the mobile phone can move the image area 114 to the upper part of the image area 116, that is, to adjust the display positions of the image areas 114 and 113; if the thumbnail is dragged to the lower half area of the image area 116, the mobile phone can move the image area 114 to the lower part of the image area 116, that is, to adjust the display positions of the image areas 113, 114 and 116. At this time, the image area 113 is in the first position of the second row in the image 11, the image 114 is in the third position of the second row in the image 11, and the image area 116 is in the third position of the first row in the image 11.
[0117] In some embodiments of the present application, if an object included in a certain image area among the above N image areas is incomplete, the electronic device can perform filling processing on the image through the automatic filling function.
[0118] In some embodiments of the present application, the above filling process may include, but is not limited to, any one of the following:
[0119] Filling the incomplete area based on the image content of the object itself;
[0120] Filling the incomplete area of the object based on other objects included in the image, where the types of the object and the other object are the same or similar.
[0121] Exemplarily, in the process of adjusting the display positions of image area 113 and image area 114 in the above example, since the person image included in image area 113 does not include the image content of the lower body, the mobile phone can complete the clothing of the person in this image area 113 based on the clothing of the person included in other image areas in image 11. For example, the mobile phone can supplement the clothing of the person in image area 113 based on the clothing of the person included in image area 114. At this time, for the user, the content seen may be that the mobile phone has adjusted the head images or upper body images of the persons in image area 113 and image area 114.
[0122] In some embodiments of the present application, in the process of the electronic device adjusting the display position of the image area based on the user's input, the electronic device may only adjust the display position of the object included in the image area, or may also adjust the display positions of the object included in the image area and the background image simultaneously.
[0123] In some embodiments of the present application, in the process of the electronic device adjusting the display position of the image area based on the user's input, the electronic device may perform adaptive adjustment on the adjusted image area based on image parameters such as the color and brightness of the first image.
[0124] In some embodiments of the present application, in the process of the electronic device adjusting the display position of the image area based on the user's input, the electronic device may synchronously adjust the size of the adjusted image area according to the user's needs.
[0125] In some embodiments of the present application, when the electronic device displays a special control, such as a merge editing control for the image area, the above third input may be an input to the special control.
[0126] In some embodiments of the present application, the above editing control may be used to trigger the electronic device to merge N image areas based on factors such as the object type and display position of the objects included in the first image.
[0127] In some embodiments of the present application, the above object type may include, but is not limited to, at least one of the following: person, animal, building, plant, item.
[0128] Exemplarily, in combination with Figure 3B , as Figure 10A shown, if the interface 20 includes a special control, such as the "merge" control 24, the user can click on the "merge" control 24, which is the above-mentioned third input, to trigger the mobile phone to merge based on the object types of the objects respectively included in the image regions 211 to 215. For example, the image regions 211 and 212 that contain buildings as objects are merged into one image region, and the image regions 213 to 215 that contain people as objects are merged into one image region, so that as Figure 10B shown, the merged image regions 251 and 252 are displayed.
[0129] Alternatively, the user can click on the "merge" control 24, which is the above-mentioned third input, to trigger the mobile phone to merge based on the display positions of the objects respectively included in the image regions 211 to 215. For example, the overlapping image regions 211 and 212 are merged into one image region, and the overlapping image regions 213 and 214 are merged into one image region, so that as Figure 10C shown, the merged image regions 253 and 254 are displayed.
[0130] In some embodiments of the present application, in the case where multiple people are included in the above-mentioned at least two image regions, the electronic device can also merge N image regions based on at least one of factors such as the gender, age group, skin color, clothing, and actions of the multiple people.
[0131] In some embodiments of the present application, in the case where multiple animals are included in the above-mentioned at least two image regions, the electronic device can also merge N image regions based on at least one of factors such as the species, color, and body size of the multiple animals.
[0132] In some embodiments of the present application, in the case where multiple buildings are included in the above-mentioned at least two image regions, the electronic device can also merge N image regions based on at least one of factors such as the shape, color, and function of the multiple buildings.
[0133] In some embodiments of the present application, in the case where multiple plants are included in the above-mentioned at least two image regions, the electronic device can also merge N image regions based on at least one of factors such as the variety, shape, and color of the multiple plants.
[0134] In some embodiments of the present application, in the case where multiple items are included in the above-mentioned at least two image regions, the electronic device can also merge N image regions based on at least one of factors such as the type, function, color, shape, and material of the multiple items.
[0135] In the embodiments of the present application, the electronic device can combine N image regions into one image region according to the user's input. Thus, during the subsequent process of performing a printing operation on the image region, the electronic device can print multiple objects onto the same object. In this way, the actual needs of the user can be more accurately met, and the flexibility and diversity of the electronic device performing the printing operation can be improved through the user's input.
[0136] In some embodiments of the present application, in combination with the above steps 401 and 402, at least two image regions involved in the above steps 203 and 204 may include the image regions after moving or combining processing.
[0137] Exemplarily, in combination with Figure 9B , if the user wants to print the image region 152, the user can long-press the image region 152 and long-press the image region 115. Then, as Figure 11A shown, the mobile phone can adjust the dashed border of the image region 115 and the image region 152 to a solid border and thicken the border to prompt the user of the selected image regions. At the same time, the mobile phone can display the preview image corresponding to the image region 115 in the preview window 12. Among them, in the preview window 12, there may also be numbers indicating the number and arrangement position of the preview images. For example, "1 / 2" can indicate that the user can view 2 preview images through the preview window 12, and the currently displayed is the first preview image. And, in the preview window 12, there may also be an identifier for viewing the next preview image. Then, the user can click on this identifier. As Figure 11B shown, the mobile phone can display the image region corresponding to the image region 152 in the preview window 12. At this time, "1 / 2" displayed in the preview window 12 can indicate that the user can view 2 preview images through the preview window 12, and the currently displayed is the second preview image. Further, the user can click on the "Confirm Printing" control 13. Then, the mobile phone can perform printing operations on the image region 115 and the image region 152 respectively through the connected printing device. Finally, the user can obtain two photos as Figure 6B and Figure 12 shown.
[0138] In some embodiments of the present application, the above first image region may include at least two image elements. Before the "performing a printing operation on the image of the first image region" in the above step 204, the image printing method provided by the embodiments of the present application may further include the following steps 501 to 503.
[0139] Step 501: The electronic device responds to the first input and displays at least one printing template based on the number of image elements included in the first image region.
[0140] In some embodiments of the present application, the above-mentioned at least one printing template may be a template preset by the electronic device or a template customized by the user in advance.
[0141] Exemplarily, if the number of image elements included in the first image area is 4, the at least one printing template displayed by the electronic device may include, but is not limited to: a four-grid template, a horizontally arranged template, a vertically arranged template, and a U-shaped template.
[0142] Step 502: The electronic device receives a selection input for a first template among the at least one printing template.
[0143] In some embodiments of the present application, the above-mentioned selection input may be a click input, a long-press input, or other feasible inputs for the first template, which are not limited in the embodiments of the present application.
[0144] Step 503: In response to the selection input, the electronic device adjusts the display parameters of the image elements included in the first image area based on the first template.
[0145] In some embodiments of the present application, the above-mentioned display parameters may include, but are not limited to, any one of the following: display position, display size, color of the image element, and brightness of the image element.
[0146] In the embodiments of the present application, after the user determines the first image area, the electronic device can provide the user with the ability to adjust the display parameters of the first image area according to the number of image elements included in the first image area, and then perform a printing operation on the adjusted first image area, so that the image finally subjected to the printing operation can more accurately meet the actual needs of the user. At the same time, it can also improve the flexibility and diversity of the electronic device in performing the printing operation.
[0147] In some embodiments of the present application, the above-mentioned first image area may include at least two image elements. Combining Figure 1 , as Figure 13 shown, before the "performing a printing operation on the image in the first image area" in the above step 204, the image printing method provided by the embodiments of the present application may further include the following step 601. And the "performing a printing operation on the image in the first image area" in the above step 204 may be implemented through the following step 204a.
[0148] Step 601: The electronic device adds a label in the first image area in response to the first input.
[0149] In the embodiments of the present application, the above-mentioned label is used to indicate the image information of the first image.
[0150] In some embodiments of the present application, the above image information may include, but is not limited to, at least one of the following: storage path, storage time, shooting location, and information about the image elements included.
[0151] In some embodiments of the present application, when the above tag can indicate the information about the image elements included in the first image, the electronic device may first detect the feature points in the first image based on an image recognition model, and then describe the first image based on the detected feature points, so as to obtain the information about the image elements included in the first image.
[0152] Exemplarily, in combination with Figure 2A , the mobile phone can describe based on the 6 people included in Image 11 to obtain the image information of Image 11. For example, taking the first and second people in the first row of Image 11 as an example for illustration, the image information corresponding to this person can be: "Image 11 includes 6 people, and the standing positions of these 6 people are two rows and three columns. Among them, the first person in the first row is a girl with long shawl hair wearing a hat, and her hair is light-colored; the second person in the first row has long black shawl hair and wears a hair accessory on her head."
[0153] In some embodiments of the present application, the electronic device can obtain the feature points in the image content included in the first object through a Convolutional Neural Networks (CNN), and based on the feature points, obtain the information about the image elements of the first object.
[0154] Step 204a: The electronic device performs a printing operation on the image of the first image area after adding the tag.
[0155] It should be noted that for the specific description of the electronic device performing the printing operation through the printing device, reference can be made to the description of the above step 204, and the embodiments of the present application will not elaborate herein.
[0156] In the embodiments of the present application, the electronic device can add a tag to the first image. Then, in subsequent steps, the electronic device can obtain the image information of the first image based on the tag, which can facilitate the user's subsequent operation on the first image and improve the convenience of the electronic device performing operations on the image.
[0157] In some embodiments of the present application, the above electronic device includes a camera, or the above electronic device is connected to an electronic device with a camera. After the above step 204a, the image printing method provided by the embodiments of the present application may further include the following step 602 and step 603.
[0158] Step 602: The electronic device scans the first object through the camera to obtain the image information of the first image indicated by the tag.
[0159] In the embodiments of the present application, the above-mentioned first object is an object obtained after performing a printing operation on the first image area after adding a label.
[0160] In some embodiments of the present application, the image content of the above-mentioned first object may include symbols or identifiers that are invisible to users but can be scanned by the electronic device. Then, the electronic device can scan the first object to obtain the symbol or identifier. Then, the electronic device can obtain the corresponding label based on the scanned symbol or identifier, and obtain the image information indicated by the label.
[0161] In some embodiments of the present application, the electronic device can use the camera to obtain an image through the camera application or any application with a shooting function in the electronic device to achieve scanning of the first object.
[0162] Step 603: The electronic device displays the first image based on the image information of the first image.
[0163] In some embodiments of the present application, when the image information of the above-mentioned first image includes a storage path, the electronic device can search for the first image from the images stored in the electronic device based on the storage path, and after successful search, display the first image.
[0164] In some embodiments of the present application, when the image information of the above-mentioned first image includes information of image elements included in the first image, the electronic device generates and displays an image, such as a second image, based on the obtained information of the image elements. Then, the electronic device can match the second image with the images stored in the electronic device, and after the matching is completed, display the matching result, that is, the above-mentioned first image.
[0165] It should be noted that since the above-mentioned second image is generated based on the image information of the first image, the similarity between the second image and the first image can be greater than or equal to a preset ratio, such as 95%.
[0166] In the embodiments of the present application, the electronic device can obtain the image information of the first image based on the scanned label, so that it can more conveniently search for the original image corresponding to the image content of the first object, that is, the first image. In this way, the convenience of the electronic device for searching images can be improved. Further, since the image content of the first object is the first image area in the first image, after the electronic device displays the first image, the user can obtain information of other image areas outside the first image area based on the first image. In this way, the user can obtain more image information based on the first object, and the flexibility and diversity of the information displayed by the electronic device are improved.
[0167] In some embodiments of the present application, the above-mentioned electronic device includes a camera, or the above-mentioned electronic device is connected to an electronic device having a camera. Combining Figure 1 , such as Figure 14 As shown, after the above-mentioned step 204, the image printing method provided by the embodiments of the present application may further include the following step 701 and step 702.
[0168] Step 701: The electronic device scans the second object through the camera to obtain the feature information of the first image area included in the second object.
[0169] In the embodiments of the present application, the above-mentioned second object is an object obtained after performing a printing operation on the image of the first image area.
[0170] In some embodiments of the present application, the above-mentioned feature information may describe various significant characteristics in the image that can be used to distinguish, describe, or identify the objects included in the image.
[0171] In some embodiments of the present application, the above-mentioned significant characteristics may include, but are not limited to, at least one of the following: shape, color, texture, type.
[0172] In some embodiments of the present application, after the electronic device scans the second object, the electronic device may obtain the feature points in the first image area included in the second object through CNN, and based on the feature points, obtain the feature information of the first image area included in the second object.
[0173] Exemplarily, a mobile phone can scan Figure 11B the photo shown, that is, the second object, and obtain the feature information of the photo through CNN, for example: "There are two girls in the photo. The girl on the left wears a headscarf and a knee-length dress. The girl on the right has shoulder-length black hair and wears a short-sleeved shirt with a bow".
[0174] In some embodiments of the present application, the above-mentioned step 701 may be specifically implemented by the following step 701a and step 701b.
[0175] Step 701a: The electronic device scans the second object through the camera to obtain the feature points included in the first image area, and obtains M feature points.
[0176] Wherein, M is a positive integer.
[0177] In some embodiments of the present application, the above-mentioned feature points may be local areas in the image with uniqueness, repeatability, and good distinguishability, and usually have obvious features such as edges, corners, or textures.
[0178] Exemplarily, when the first image region is an image containing a person, the M feature points may include, but are not limited to, any of the following: head feature points, body feature points.
[0179] Among them, the above head feature points may include, but are not limited to, at least one of the following: eye feature points, mouth feature points, ear feature points, eyebrow feature points, face contour feature points;
[0180] The above body feature points may include, but are not limited to, at least one of the following: shoulder feature points, elbow feature points, hand feature points, knee feature points, foot feature points.
[0181] Step 701b: The electronic device obtains feature information based on the description information of each of the M feature points.
[0182] In some embodiments of the present application, when the feature points include the head feature points of a person, the electronic device may determine the appearance and expression of the person according to the head feature points.
[0183] Exemplarily, when the feature points include eye feature points, the description information of the feature points may represent the position and shape of the person's eyes; for example, the eye shape may include, but is not limited to: almond eyes, phoenix eyes, fox eyes, willow leaf eyes;
[0184] When the feature points include mouth feature points, the description information of the feature points may represent the position, shape and color of the person's mouth; for example, the size and thickness of the upper lip and the lower lip;
[0185] When the feature points include eyebrow feature points, the description information of the feature points may represent the position, shape and color of the person's eyebrows; for example, the eyebrow shape may include, but is not limited to: standard eyebrows, willow leaf eyebrows, flat eyebrows, knife-shaped eyebrows, sword-shaped eyebrows, distant mountain eyebrows and high-arched eyebrows;
[0186] When the feature points include face contour feature points, the description information of the feature points may represent the shape of the person's face; for example, the face shape may include, but is not limited to: round face, square face, diamond face.
[0187] In some embodiments of the present application, when the feature points include body feature points, the electronic device may determine the body information and posture of the person according to the body feature points.
[0188] Exemplarily, when the feature points include shoulder feature points, the description information of the feature points may represent the position and shape of the person's shoulders to represent the body type and posture of the person;
[0189] In the case where the feature points include elbow feature points or hand feature points, the description information of the feature points can represent the position and bending degree of the human elbow, or can represent the human hand posture, so as to represent the posture and movement of the human arm;
[0190] In the case where the feature point is a knee feature point, the description information of the feature point can represent the position and bending degree of the human knee, so as to represent the posture and movement of the human leg;
[0191] In the case where the feature point is a foot feature point, the description information of the feature point can represent the position of the human foot, so as to represent the standing or walking posture of the human.
[0192] In some embodiments of the present application, the electronic device can combine the description information corresponding to M feature points to merge and obtain the feature information corresponding to the first image area.
[0193] In the embodiments of the present application, the electronic device can determine the feature information of the entire image based on the feature points included in the scanned image. In this way, the accuracy of the electronic device for obtaining the feature information can be prompted, and thus it is convenient for the electronic device to perform subsequent other operations based on the obtained feature information.
[0194] Step 702: The electronic device searches for the first image that matches the feature information from the electronic device based on the feature information and displays the first image.
[0195] In some embodiments of the present application, when the electronic device stores a new image, the electronic device can directly obtain the feature information corresponding to the new image through an image recognition model and store it in association with the new image.
[0196] In some embodiments of the present application, the electronic device can match the feature information based on the feature information with the feature information stored in association with the images stored in the electronic device. Thus, when the feature information of the third image stored in the electronic device meets the preset conditions, the third image is determined as the first image and the first image is displayed.
[0197] In some embodiments of the present application, the above preset conditions may include but are not limited to any one of the following:
[0198] The similarity degree between the feature information of the first image area and at least part of the feature information of the third image is greater than or equal to a preset ratio, such as 95%;
[0199] The difference degree between the feature information of the first image area and at least part of the feature information of the third image is less than or equal to a preset ratio, such as 5%.
[0200] It should be noted that, since the first image region is at least a partial image region in the first image, it can be understood that the feature information of the first image region is the feature description information of at least a partial image region in the first image.
[0201] Exemplarily, a mobile phone can scan a photo as shown in Figure 11B to obtain the feature information about the two girls included in the photo, that is, the second object. Then, based on the feature information corresponding to each image stored in the mobile phone, the mobile phone can match the feature information of the two girls, and after determining that the feature information of one image includes the feature information of the two girls, the mobile phone can determine the one image as the first image and display Image 11 as shown in Figure 2A shown.
[0202] In some embodiments of the present application, if the electronic device matches multiple images based on the feature information, the electronic device can determine the image with the highest similarity degree as the first image based on the numerical values of the similarity degrees corresponding to the multiple images.
[0203] In some embodiments of the present application, if the electronic device matches multiple images based on the feature information, the electronic device can determine the above-mentioned first image according to the image parameters. The image parameters may include, but are not limited to, at least one of the following: image clarity, image structure, image color relationship, and image brightness.
[0204] In the embodiments of the present application, the electronic device can determine the first image corresponding to the second object based on the feature information of the scanned image. In this way, the convenience of the electronic device for identifying and displaying images can be improved, and it is also convenient for the electronic device to perform other subsequent operations based on the obtained feature information.
[0205] For each scenario applicable to the embodiments of the present application, combined with the above-mentioned implementation solutions of the embodiments of the present application, specific examples are given below to illustrate the implementation process in each scenario of the embodiments of the present application. Among them, taking the electronic device as a mobile phone, and the mobile phone is connected to a printer, and the first image is Image 11 as shown in Figure 2A as an example for illustration.
[0206] Example 1: If the user wants to print the image area corresponding to Person 1 among the 6 persons, the user can click the "Print" control displayed on the mobile phone to trigger the mobile phone to display the "Direct Print" control and the "Split Print" control. Then, the user can select the "Split Print" control to trigger the mobile phone to split the image 11 into 6 image areas based on the 6 persons included in the image 11, where each image area can contain one person. Thus, the user can select the image area 1 corresponding to Person 1 to trigger the mobile phone to mark the image area 1 corresponding to Person 1 and display the preview image corresponding to the image area 1 for the user to confirm. Then, after the user clicks the "Confirm Print" control displayed on the interface, the mobile phone can perform a printing operation on the image in the image area 1 through the connected printing device to obtain Photo 1.
[0207] Furthermore, if before the mobile phone performs the printing operation through the printing device, the mobile phone adds a label indicating the storage path of the image 11 to the image area 1, then subsequently the user can scan Photo 1 with the mobile phone to obtain the storage path of the image 11 indicated by the label, and based on this storage path, search for the image 11 from the images stored in the electronic device, and after the search is successful, display the image 11.
[0208] Example 2: If the user wants to print the image areas corresponding to Person 1 and Person 3 among the 6 persons respectively, the user can click the "Print" control displayed on the mobile phone to trigger the mobile phone to display the "Direct Print" control and the "Split Print" control. Then, the user can select the "Split Print" control to trigger the mobile phone to split the image 11 into 6 image areas based on the 6 persons included in the image 11, where each image area can contain one person. Thus, the user can select the image area 1 corresponding to Person 1 and the image area 3 corresponding to Person 3 to trigger the mobile phone to mark the image area 1 corresponding to Person 1 and the image area 3, and display the preview images corresponding to the image area 1 and the image area 3 respectively for the user to confirm. Then, after the user clicks the "Confirm Print" control displayed on the interface, the mobile phone can perform a printing operation on the image in the image area 1 through the connected printing device to obtain Photo 1, and perform a printing operation on the image in the image area 3 to obtain Photo 2.
[0209] Furthermore, if before the mobile phone performs the printing operation through the printing device, the mobile phone adds a label indicating the information of the image elements of the image 11 to the image area 3, then subsequently the user can scan Photo 2 with the mobile phone to obtain the information of the image elements of the image 11 indicated by the label, generate and display an image, and then the electronic device can match the generated image with the images stored in the electronic device, so that after the matching is completed, the matching result, that is, the above-mentioned image 11, is displayed.
[0210] Example 3. If the user wants to print the image areas corresponding to non - adjacent Person 1 and Person 3 among the 6 persons as a photo, the user can click the "Print" control displayed on the mobile phone to trigger the display of the "Direct Print" control and the "Split Print" control on the mobile phone. Then, the user can select the "Split Print" control to trigger the mobile phone to divide the image 11 into 6 image areas based on the 6 persons included in the image 11, where each image area can contain one person. There is Person 2 between Person 1 and Person 3. Then, the user can long - press the image area 1 of Person 1 and drag it into the range of the image area 3 corresponding to Person 3 to trigger the mobile phone to adjust the display positions of the image area 1 of Person 1 and the image area 2 of Person 2, so that the image area 1 of Person 1 and the image area 3 of Person 3 are adjacent. Then, the mobile phone can merge the image area 1 and the image area 3 into one image area. Then, the user can select the image area A containing Person 1 and Person 3 to trigger the mobile phone to mark the image area A and display the corresponding preview image for the user to confirm respectively. Then, after the user clicks the "Confirm Print" control displayed in the interface, the mobile phone can perform a printing operation on the image of the image area A through the connected printing device to obtain Photo 3.
[0211] Furthermore, the user can scan Photo 3 with the mobile phone to obtain the feature points contained in the image area displayed in Photo 3 through the image recognition device to obtain the feature information of Person 1 and Person 3, such as Feature Information B. Then, the mobile phone can match the feature information corresponding to each image stored with the Feature Information B. After determining that there is one image whose feature information contains the Feature Information B, the mobile phone can determine that one image as the first image, that is, the above - mentioned image 11, and display the image 11.
[0212] It should be noted that the above - mentioned various method embodiments, or various possible implementation manners in the various method embodiments, can be executed separately, or, on the premise of no contradiction, can also be executed in combination with each other, which can be specifically determined according to actual usage requirements. The embodiments of the present application do not limit this.
[0213] It should be noted that for the image printing method provided by the embodiments of the present application, the execution subject can be an image printing device. In the embodiments of the present application, taking the image printing device executing the image printing method as an example, the image printing device provided by the embodiments of the present application is described.
[0214] Figure 15 Shows a possible structural schematic diagram of the image printing device involved in the embodiments of the present application. As Figure 15 shown, the image printing device 80 may include: a receiving module 81, a processing module 82, a display module 83, and an execution module 84;
[0215] Among them, a receiving module 81 is configured to receive a segmentation input for a first image;
[0216] A processing module 82 is configured to, in response to the segmentation input received by the receiving module 81, segment the first image based on image elements in the first image to obtain at least two segmented image regions;
[0217] A display module 83 is configured to display the at least two image regions obtained by the processing module;
[0218] The receiving module 81 is further configured to receive a first input for a first image region among the at least two image regions displayed by the display module 83;
[0219] An execution module 84 is configured to, in response to the first input received by the receiving module 81, perform a printing operation on the image of the first image region.
[0220] In a possible implementation manner, the above-mentioned display module 83 is further configured to display a segmentation and printing control before segmenting the first image based on image elements in the first image to obtain and display at least two segmented image regions; the above-mentioned receiving module 81 is further configured to receive a second input for the segmentation and printing control displayed by the display module 83; specifically, the processing module 82 is configured to, in response to the second input received by the receiving module 81, segment the first image based on image elements in the first image to obtain and display at least two image regions.
[0221] In a possible implementation manner, the above-mentioned receiving module 81 is further configured to receive a third input for N image regions among the at least two image regions before receiving the first input for the first image region among the at least two image regions, where the N image regions are partial image regions among the at least two image regions, and N is an integer greater than 1; the processing module 82 is further configured to, in response to the third input received by the receiving module 81, merge the N image regions to obtain the first image region.
[0222] In a possible implementation manner, the above-mentioned first image region includes at least two image elements; the above-mentioned display module 83 is further configured to display at least one printing template based on the number of image elements included in the first image region before performing a printing operation on the image of the first image region; the above-mentioned receiving module 81 is further configured to receive a selection input for a first template among the at least one printing template displayed by the display module 83; the above-mentioned processing module 82 is further configured to, in response to the selection input received by the receiving module 81, adjust the display parameters of the image elements included in the first image region based on the first template.
[0223] In a possible implementation, the image printing device 80 provided in the embodiments of the present application further includes: an adding module; the adding module is configured to add a label in the first image area before performing a printing operation on the image in the first image area, and the label is used to indicate the image information of the first image; the execution module 84 is specifically configured to perform a printing operation on the image in the first image area after the label is added.
[0224] In the image printing device provided in the embodiments of the present application, after the user inputs a segmentation of the first image, the image printing device can segment the first image to obtain at least two segmented image areas, and then the user can select the first image area from the at least two image areas according to the printing requirement of the first image, so that the image printing device can perform a printing operation on the image in the first image area, thereby enabling the image included in the printed object to meet the user's printing requirement. In this way, the flexibility of image printing through the image printing device can be improved; and since the image included in the printed object is the image area selected by the user from the first image and there is no need to compress the entire first image according to the photo paper size, the display effect of the image in the object printed through the image printing device can be improved.
[0225] The image printing device in the embodiments of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than terminals. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.
[0226] The image printing device in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.
[0227] The image printing apparatus provided by the embodiments of the present application can implement each process implemented by the above method embodiments. To avoid repetition, it will not be described herein again.
[0228] Optionally, as Figure 16 shown, the embodiments of the present application further provide an electronic device 90, including a processor 91 and a memory 92. A program or instruction that can run on the processor 91 is stored on the memory 92. When the program or instruction is executed by the processor 91, each step of the above image printing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described herein again.
[0229] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0230] Figure 17 FIG. is a schematic hardware structure diagram of an electronic device for implementing an embodiment of the present application.
[0231] The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110 and other components.
[0232] The electronic device 100 can be connected to a printing device.
[0233] Those skilled in the art can understand that the electronic device 100 may further include a power source (such as a battery) for supplying power to each component. The power source can be logically connected to the processor 110 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. Figure 17 The structure of the electronic device shown in does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be described herein again.
[0234] Among them, the user input unit 107 is used to receive the segmentation input of the first image;
[0235] The processor 110 is configured to, in response to the segmentation input, segment the first image based on the image elements in the first image, and obtain and display at least two segmented image regions;
[0236] The user input unit 107 is further configured to receive a first input to the first image region among the at least two image regions;
[0237] The processor 110 is further configured to, in response to the first input, perform a printing operation on the image of the first image region.
[0238] Optionally, a display unit 106, configured to display a segmentation printing control before segmenting a first image based on image elements in the first image to obtain and display at least two segmented image regions; a user input unit 107, configured to receive a second input to the segmentation printing control; a processor 110, further configured to segment the first image based on the image elements in the first image in response to the second input to obtain at least two image regions; and the display unit 106, further configured to display the at least two image regions.
[0239] Optionally, the user input unit 107 is further configured to receive a third input to N image regions among the at least two image regions before receiving a first input to a first image region among the at least two image regions, where the N image regions are partial image regions among the at least two image regions, and N is an integer greater than 1; and the processor 110 is further configured to merge the N image regions in response to the third input to obtain the first image region.
[0240] Optionally, the above-mentioned first image region includes at least two image elements; the display unit 106 is further configured to display at least one printing template based on the number of image elements included in the first image region before performing a printing operation on the image of the first image region; the user input unit 107 is further configured to receive a selection input to a first template among the at least one printing template; and the processor 110 is further configured to adjust display parameters of the image elements included in the first image region based on the first template in response to the selection input.
[0241] Optionally, the processor 110 is further configured to add a label to the first image region before performing a printing operation on the image of the first image region, where the label is used to indicate image information of the first image; and the processor 110 is specifically configured to perform a printing operation on the image of the first image region after adding the label.
[0242] In the electronic device provided in the embodiment of the present application, after the user performs a segmentation input on a first image, the electronic device can segment the first image to obtain at least two segmented image regions, and then the user can select a first image region from the at least two image regions according to the printing requirement for the first image, so that the electronic device can perform a printing operation on the image of the first image region, thereby enabling the image included in the printed output object to meet the user's printing requirement. In this way, the flexibility of image printing through the electronic device can be improved; and since the image included in the printed output object is the image region selected by the user from the first image and there is no need to compress the entire first image according to the photo paper size, the display effect of the image in the object printed and output by the electronic device can be improved.
[0243] The electronic device provided by the embodiments of the present application can implement each process implemented by the above method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein again.
[0244] For the beneficial effects of various implementation manners in this embodiment, reference may specifically be made to the beneficial effects of the corresponding implementation manners in the above method embodiments. To avoid repetition, details are not described herein again.
[0245] It should be understood that in the embodiments of the present application, the input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042. The graphics processor 1041 processes the image data of static pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. The other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
[0246] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area may store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 109 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.
[0247] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 110 either.
[0248] The embodiments of the present application also provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the above method embodiments and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0249] Among them, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media such as computer read-only memory ROM, random access memory RAM, magnetic disks, or optical discs, etc.
[0250] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above method embodiments and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0251] It should be understood that the chip mentioned in the embodiments of the present application can also be referred to as a system-on-chip, system chip, chip system, or system-on-a-chip, etc.
[0252] The embodiments of the present application provide a computer program product. The program product is stored in a storage medium and is executed by at least one processor to implement each process of the above method embodiments and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0253] It should be noted that in this article, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, the features described with reference to certain examples may be combined in other examples.
[0254] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence or the part that contributes to the prior art, can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to enable a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
[0255] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific implementation manners. The above specific implementation manners are merely illustrative rather than restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.
Claims
1. An image printing method, characterized in that, Performed by an electronic device, the method includes: Receiving a segmentation input for a first image; In response to the segmentation input, segmenting the first image based on image elements in the first image to obtain and display at least two segmented image regions; Receiving a first input for a first image region among the at least two image regions; In response to the first input, performing a printing operation on the image of the first image region.
2. The method according to claim 1, wherein Before segmenting the first image based on image elements in the first image to obtain and display at least two segmented image regions, the method further includes: Displaying a segmentation and printing control; Receiving a second input for the segmentation and printing control; The segmenting the first image based on image elements in the first image to obtain and display at least two segmented image regions includes: In response to the second input, segmenting the first image based on image elements in the first image to obtain and display the at least two image regions.
3. According to the method of claim 1, before receiving the first input for the first image region among the at least two image regions, the method further includes: Receiving a third input for N image regions among the at least two image regions, the N image regions being partial image regions among the at least two image regions, and N being an integer greater than 1; In response to the third input, merging the N image regions to obtain the first image region.
4. The method according to claim 1, characterized in that, The first image region includes at least two image elements; Before performing the printing operation on the image of the first image region, the method further includes: Displaying at least one printing template based on the number of image elements included in the first image region; Receiving a selection input for a first template among the at least one printing templates; In response to the selection input, adjusting display parameters of the image elements included in the first image region based on the first template.
5. The method according to claim 1, characterized in that, Before performing the printing operation on the image of the first image region, the method further includes: Adding a label in the first image region, the label being used to indicate image information of the first image; Performing the printing operation on the first image region includes: Performing the printing operation on the image of the first image region after adding the label.
6. An image printing apparatus, characterized in that, The image printing device includes: a receiving module, a processing module, a display module, and an execution module; The receiving module is configured to receive a segmentation input for a first image; The processing module is configured to, in response to the segmentation input received by the receiving module, segment the first image based on image elements in the first image to obtain at least two segmented image regions; The display module is configured to display the at least two image regions obtained by the processing module; The receiving module is further configured to receive a first input for a first image region among the at least two image regions displayed by the display module; The execution module is configured to, in response to the first input received by the receiving module, perform a printing operation on the image of the first image region.
7. The device according to claim 6, characterized in that, The display module is further configured to display a segmentation and printing control before segmenting the first image based on the image elements in the first image to obtain and display at least two segmented image regions; The receiving module is further configured to receive a second input to the segmentation and printing control displayed by the display module; The processing module is specifically configured to, in response to the second input received by the receiving module, segment the first image based on the image elements in the first image to obtain and display the at least two image regions.
8. The apparatus according to claim 6, wherein the receiving module is further configured to receive a third input to N image regions among the at least two image regions before receiving a first input to a first image region among the at least two image regions, the N image regions being partial image regions among the at least two image regions, and N being an integer greater than 1; The processing module is further configured to, in response to the third input received by the receiving module, merge the N image regions to obtain the first image region.
9. The device according to claim 6, wherein The first image region includes at least two image elements; The display module is further configured to display at least one printing template based on the number of image elements included in the first image region before performing a printing operation on the image of the first image region; The receiving module is further configured to receive a selection input to a first template among the at least one printing template displayed by the display module; The processing module is further configured to, in response to the selection input received by the receiving module, adjust the display parameters of the image elements included in the first image region based on the first template.
10. The device according to claim 6, characterized in that, The image printing apparatus further includes: an adding module; The adding module is configured to add a label to the first image region before performing a printing operation on the image of the first image region, the label being used to indicate the image information of the first image; The execution module is specifically configured to perform a printing operation on the image of the first image region after adding the label.
Citation Information
Cited By
Image processing method and device, electronic equipment and storage medium
CN121166045A