WO2024078490A1 - 图片处理方法、装置、电子设备及介质 - Google Patents

图片处理方法、装置、电子设备及介质 Download PDF

Info

Publication number
WO2024078490A1
WO2024078490A1 PCT/CN2023/123765 CN2023123765W WO2024078490A1 WO 2024078490 A1 WO2024078490 A1 WO 2024078490A1 CN 2023123765 W CN2023123765 W CN 2023123765W WO 2024078490 A1 WO2024078490 A1 WO 2024078490A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
picture
operation interface
input
preview operation
Prior art date
Application number
PCT/CN2023/123765
Other languages
English (en)
French (fr)
Inventor
缪文龙
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2024078490A1 publication Critical patent/WO2024078490A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1208Improving or facilitating administration, e.g. print management resulting in improved quality of the output result, e.g. print layout, colours, workflows, print preview
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • G06F3/1257Configuration of print job parameters, e.g. using UI at the client by using pre-stored settings, e.g. job templates, presets, print styles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • G06V10/267Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds

Definitions

  • the present application belongs to the field of communication technology, and specifically relates to a method, device, electronic equipment and medium for image processing.
  • the purpose of the embodiments of the present application is to provide an image processing method, device, electronic device and medium, which can solve the problem of low quality of images printed by electronic devices.
  • an embodiment of the present application provides an image processing method, the method comprising: receiving a first input of a first image; in response to the first input, when the image size of the first image is larger than a preset size, displaying a preview operation interface according to the target printing parameters corresponding to the first input, wherein the first image and at least one dividing line are displayed in the preview operation interface; dividing the first image into N second pre-printed images according to the display position of the at least one dividing line on the first image; and printing the N second pre-printed images respectively according to the target printing parameters; wherein N is an integer greater than 1.
  • an embodiment of the present application provides an image processing device, the device comprising: a receiving module, a display module, an execution module and a printing module, wherein: the above-mentioned receiving module is used to receive a first input of a first image; the above-mentioned display module is used to respond to the above-mentioned first input received by the receiving module, and when the image size of the above-mentioned first image is larger than a preset size, display a preview operation interface according to the target printing parameters corresponding to the above-mentioned first input, wherein the above-mentioned first image and at least one dividing line are displayed in the preview operation interface; the above-mentioned execution module is used to print the above-mentioned first image according to the above-mentioned at least one dividing line.
  • the display position on the film is used to divide the above-mentioned first picture into N second pre-printed pictures; the above-mentioned printing module is used to print the above-mentioned N second pre-printed pictures respectively according to the above-mentioned target printing parameters; wherein N is an integer greater than 1.
  • an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
  • an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
  • an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
  • an embodiment of the present application provides a computer 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.
  • the electronic device after receiving a first input of a first picture, can, in response to the first input, display a preview operation interface according to the target printing parameters corresponding to the first input when the picture size of the first picture is larger than the preset size, wherein the first picture and at least one dividing line are displayed in the preview operation interface; the first picture is divided into N second pre-printed pictures according to the display position of the at least one dividing line on the first picture; and the N second pre-printed pictures are printed respectively according to the target printing parameters.
  • the electronic device can divide the pictures into multiple pictures matching the printing paper size according to the at least one dividing line, so that the picture content of each divided picture can be clearly displayed, thereby improving the quality of the printed pictures.
  • FIG1 is a schematic diagram of a flow chart of an image processing method provided in an embodiment of the present application.
  • FIG2 is one of the schematic diagrams of an example interface used by a picture processing method provided in an embodiment of the present application
  • FIG3 is a second schematic diagram of an interface example used by a picture processing method provided in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of an example interface used by an image processing method provided in an embodiment of the present application. three;
  • FIG5 is one of schematic diagrams of a picture printed by a picture processing method provided in an embodiment of the present application.
  • FIG6 is a second schematic diagram of a picture printed by a picture processing method provided in an embodiment of the present application.
  • FIG. 7 is a third schematic diagram of a picture printed by a picture processing method provided in an embodiment of the present application.
  • FIG8 is a fourth schematic diagram of a picture printed by a picture processing method provided in an embodiment of the present application.
  • FIG9 is a fifth schematic diagram of a picture printed by a picture processing method provided in an embodiment of the present application.
  • FIG10 is a schematic diagram of the structure of an image processing device provided in an embodiment of the present application.
  • FIG11 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • FIG. 12 is a hardware schematic diagram of an electronic device provided in an embodiment of the present application.
  • first, second, etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first”, “second”, etc. are generally of one type, and the number of objects is not limited.
  • the first object can be one or more.
  • “and/or” in the specification and claims represents at least one of the connected objects, and the character “/" generally indicates that the objects associated with each other are in an "or” relationship.
  • the image processing method provided in the embodiment of the present application is applied to the scenario of printing large-size images.
  • the specific application scenario can be determined according to usage requirements and is not limited by the present application.
  • Exemplarily take the scenario of printing Picture 1 (i.e., the first picture) as an example.
  • Picture 1 i.e., the first picture
  • the user wants to print Picture 1 on a paper of a specific size (such as A4 paper)
  • the size of Picture 1 is much larger than the size of the A4 paper.
  • the user wants to print an image on a paper of a specific size (such as A4 paper)
  • the size of the picture 1 is much larger than the size of the A4 paper.
  • the user can input the picture 1 to trigger the electronic device to display the preview operation interface corresponding to the picture 1, and display a dividing line in the preview operation interface according to the size of the A4 paper, and then divide the picture 1 into multiple sub-pictures (i.e., the second pre-printed pictures) matching the size of the A4 paper according to the dividing line, and finally print the multiple sub-pictures respectively. Therefore, the contents of the divided multiple sub-pictures can be clearly displayed, thereby improving the quality of the printed pictures.
  • sub-pictures i.e., the second pre-printed pictures
  • the execution subject of the picture processing method provided in this embodiment may be a picture processing device, which may be an electronic device, or a control module or a processing module in the electronic device, etc.
  • a picture processing device which may be an electronic device, or a control module or a processing module in the electronic device, etc.
  • the technical solution provided in the embodiment of this application is described below using an electronic device as an example.
  • the present application provides a method for processing an image.
  • the method for processing an image may include the following steps 201 to 204:
  • Step 201 The electronic device receives a first input of a first picture.
  • the first picture mentioned above may be any picture stored in the electronic device.
  • the image type of any of the above-mentioned images may include document images and non-document images.
  • the above-mentioned document-type images may be images containing text, such as mind maps, promotional slogan images, article screenshots, etc.
  • the non-document image may be an image that does not contain text, such as a landscape image, a selfie image, and the like.
  • the first input is used to set the printing parameters corresponding to the first image.
  • the above-mentioned first input can be a click input of the user on the above-mentioned first image, or other feasible input, which is not limited in the embodiment of the present application.
  • Step 202 In response to the first input, the electronic device displays a preview operation interface according to the target printing parameters corresponding to the first input when the image size of the first image is larger than a preset size.
  • the first image and at least one dividing line are displayed in the preview operation interface.
  • the preview operation interface is used to preview the printing effect of the first image and receive user input for adjusting the at least one dividing line.
  • the at least one dividing line is used to divide the first image into a plurality of areas.
  • multiple areas may include a core display area and an edge blank area.
  • the electronic device can identify the core display area and the edge blank area of the above-mentioned first image through image recognition technology.
  • the preview operation interface 10 displays core display areas (such as area A, area B, area C, and area D), edge blank areas (such as area E, area F, area G, and area H), and dividing lines 11, 12, 13, and 14.
  • core display areas such as area A, area B, area C, and area D
  • edge blank areas such as area E, area F, area G, and area H
  • the preset size may be a default printing paper size of the electronic device, or may be a printing paper size manually set by the user.
  • the electronic device may set different target printing parameters according to the type of the first picture.
  • the target printing parameters include the desired printing paper size, the desired printing font size, and the desired printing direction.
  • the electronic device can recognize the main text in the first image through optical character recognition technology (OCR). Then, the zoom ratio corresponding to the first image is calculated according to the desired printing font size and the desired printing paper size.
  • OCR optical character recognition technology
  • the text size in the first image is not uniform, the text with the largest number of the same font size is used as the basis for calculation.
  • the target printing parameters include a desired printing paper size and a desired printing direction, etc.
  • the electronic device calculates the zoom ratio corresponding to the first image according to the resolution information of the first image.
  • the electronic device can determine whether the first image is a large image (i.e., whether the image size is larger than a preset size) based on the first image and the target printing parameters, and display a preview operation interface if the first image is a large image.
  • whether the same picture is a large picture is determined based on the size of the preset size. For example, if the size of the first picture is A4, if the preset size is greater than or equal to A4, then the first picture is not a large picture; if the preset size is less than A4, then the first picture is a large picture.
  • Step 203 The electronic device divides the first picture into N second pre-printed pictures according to the display position of at least one dividing line on the first picture.
  • N is an integer greater than 1.
  • the image sizes of the N second pre-printed images match the preset size.
  • Step 204 The electronic device prints N second pre-printed pictures respectively according to the target printing parameters.
  • the electronic device can send the N second pre-printed images to a printing program according to target printing parameters, and print the N second pre-printed images.
  • the electronic device after receiving a first input of a first picture, the electronic device can, in response to the first input, process the first picture when the picture size of the first picture is larger than a preset size.
  • a preview operation interface is displayed, in which the above first picture and at least one dividing line are displayed; according to the display position of the at least one dividing line on the above first picture, the above first picture is divided into N second pre-printed pictures; according to the above target printing parameters, the above N second pre-printed pictures are printed respectively.
  • the electronic device can divide the pictures into multiple pictures matching the printing paper size according to the at least one dividing line, so that the picture content of each divided picture can be clearly displayed, thereby improving the quality of the printed pictures.
  • step 202 “the electronic device displays a preview operation interface according to the target printing parameter corresponding to the first input” may include the following step 202a:
  • Step 202a the electronic device displays a preview operation interface according to the first dividing line template and based on target printing parameters.
  • the preview operation interface displays the dividing lines in the first dividing line template.
  • the first dividing line template may be automatically generated by the electronic device according to the target printing parameters.
  • each second pre-printed image divided by the dividing lines in the first dividing line template matches the expected printing size in the target printing parameters.
  • the electronic device can automatically generate a dividing line template according to the printing parameters corresponding to the first input, thereby improving the efficiency of the electronic device in dividing the first picture.
  • the image processing method provided in the embodiment of the present application may further include the following step 202b:
  • Step 202b The electronic device receives a second input for moving the first picture displayed in the preview operation interface.
  • the second input is used to move a display position of the at least one dividing line on the first picture.
  • the second input may be a user's dragging input of the first image, or other feasible input, which is not limited in the embodiment of the present application.
  • the dragging input may be a user pinching and dragging the first image, and at this time, the dividing line in the preview operation interface will change its display position in the first image as the first image moves.
  • the dividing line in the preview operation interface can be hidden or displayed, and this application does not limit this.
  • the above step 203 of "the electronic device divides the first image into N second pre-printed images according to the display position of at least one dividing line on the first image” may include the following step 203a:
  • Step 203a In response to the second input, the electronic device divides the first picture into N second pre-printed pictures according to the display position of at least one dividing line on the moved first picture.
  • the electronic device can receive input for moving the first image to achieve the effect of indirectly moving the at least one dividing line.
  • the electronic device can then divide the first image into multiple pre-printed images according to the dividing effect of the moved dividing line on the first image.
  • the electronic device can also adjust the display position of the dividing line on the first picture by receiving user input to change the dividing position, thereby increasing the flexibility of the electronic device in dividing the first picture.
  • the image processing method provided in the embodiment of the present application may further include the following steps 202c and 202d:
  • Step 202c The electronic device receives a third input to the preview operation interface.
  • the third input is used to update the dividing line displayed on the preview operation interface.
  • the third input may be a click input by the user on the preview operation interface, or other feasible input, which is not limited in the embodiment of the present application.
  • a dividing line template switching control is also displayed in the above-mentioned preview operation interface.
  • the above-mentioned dividing line template switching control is used to trigger the electronic device to display different dividing line templates.
  • Step 202d the electronic device responds to the third input and updates the preview operation interface according to the second dividing line template corresponding to the third input.
  • the updated preview operation interface displays the dividing line in the second dividing line template.
  • the second dividing line template may be a dividing line template preset in the electronic device.
  • a switch control 15 is also displayed in the preview operation interface 10. After the user clicks the switch control 15 (that is, the above-mentioned dividing line template switch control), as shown in Figure 3, dividing lines 21, 22, 23, and 24 are displayed in the preview operation interface 10.
  • the updating preview operation interface may be to switch the first dividing line template in the preview operation interface to the second dividing line template. After the template is applied, the user can still adjust the display position of the dividing line corresponding to the second dividing line template on the first picture.
  • the image processing method provided in the embodiment of the present application may further include the following steps 205 and 206:
  • Step 205 The electronic device receives a fourth input to the preview operation interface.
  • the fourth input is used to trigger the electronic device to save the preview segmentation result image corresponding to the first image.
  • the preview segmentation result image is used to indicate the current segmentation effect of the segmentation line displayed on the first image in the preview operation interface (such as the relative display position of the segmentation line and the first image, the number of segmentation lines, etc.).
  • the fourth input may be a click input by the user on the preview operation interface, or other feasible input, which is not limited in the embodiment of the present application.
  • Step 206 In response to the fourth input, the electronic device saves the preview segmentation result image corresponding to the first image in the preview operation interface.
  • the preview segmentation result image of the first image by the at least one dividing line can be saved in the electronic device, so that when the electronic device subsequently reprints the first image, the segmentation effect of the preview segmentation result image can be directly used for printing.
  • the target printing parameters include a first printing format
  • the step 204 of “the electronic device prints N second pre-printed images respectively according to the target printing parameters” may include the following step 204a:
  • Step 204a The electronic device prints N second pre-printed pictures respectively based on the first printing format.
  • the first printing format is: the first side edge of the second pre-printed image is printed in a manner close to the edge of the paper.
  • the first printing format is an edge-to-edge printing format.
  • the first side edge is a side edge divided by a dividing line in the second pre-printed image.
  • the side edge divided by the dividing line in each second pre-printed picture can be aligned with the corresponding side edge of the printing paper, so that there is no inner margin between the printed second picture and the edge of the paper; and each of the above-mentioned second pre-printed pictures is printed according to the above-mentioned target printing parameters, so that each frame of the printed second picture is consistent with the second pre-printed picture in the preview operation interface.
  • the image processing method provided in the embodiment of the present application may further include the following step 301:
  • Step 301 the electronic device prints a preview segmentation result image of the first image in the preview operation interface in response to a first input and according to target printing parameters.
  • the electronic device can also print out the preview segmentation result image of the first image in the preview operation interface according to the target printing parameters and use it as the cover.
  • the image processing method provided in the embodiment of the present application may further include the following steps 302 and 303:
  • Step 302 In response to the first input, the electronic device increases a number at a preset position of each second pre-printed image in the preview segmentation result image based on the display positions of the N second pre-printed images in the preview segmentation result image to generate a directory image.
  • the preset position may be any position in the second pre-printed image.
  • the electronic device may number the second pre-printed images according to the display position order of the second pre-printed images in the preview segmentation result image to generate a directory image.
  • the display position sequence may be the sequence of the N second pre-printed images in the preview segmentation result image from left to right and from top to bottom.
  • Step 303 The electronic device prints the catalog image according to the target printing parameters.
  • the electronic device can also number the above-mentioned N second pre-printed pictures in the preview operation interface to generate a directory picture, and print out the directory picture according to the target printing parameters, so that after printing out the N second pictures, the above-mentioned N second pictures can be used as sub-picture sets according to the respective numbers in the directory picture for easy sorting and classification.
  • the electronic device can directly splice the N second pictures according to the number of each second picture to restore the above first picture, making the splicing more efficient.
  • the preview operation interface 10 also displays the corresponding numbers (such as number (1), number (2), number (3), number (4)) in area A, area B, area C, and area D. Then, the user clicks the print control 16 to print out the preview segmentation result image (the image composed of area A, area B, area C, and area D as a whole) displayed in the preview operation interface 10 as the cover; the second pre-printed images corresponding to area A, area B, area C, and area D are also printed out as the sub-images in the sub-image set.
  • the above-mentioned cover is shown in FIG. 5
  • the sub-image corresponding to the above-mentioned area A is shown in FIG.
  • the sub-image corresponding to the above-mentioned area B is shown in FIG. 7
  • the sub-image corresponding to the above-mentioned area C is shown in FIG. 8
  • the sub-image corresponding to the above-mentioned area D is shown in FIG. 9 .
  • area A, area B, area C, and area D are the above-mentioned second pre-printed pictures, and the above-mentioned sub-pictures are all printed according to the edge-to-edge printing format.
  • the picture processing method provided in the embodiment of the present application can be executed by a picture processing device.
  • the picture processing device provided in the embodiment of the present application is described by taking the picture processing device executing the picture processing method as an example.
  • the image processing device 400 includes: a receiving module 401, a display module 402, an execution module 403 and a printing module 404, wherein: the above-mentioned receiving module 401 is used to receive a first input of a first image; the above-mentioned display module 402 is used to respond to the above-mentioned first input received by the receiving module 401, and when the image size of the above-mentioned first image is larger than the preset size, the preview operation interface is displayed according to the target printing parameter corresponding to the above-mentioned first input, and the above-mentioned first image and at least one dividing line are displayed in the preview operation interface; the above-mentioned execution module 403 is used to divide the above-mentioned first image into N second pre-printed images according to the display position of the above-mentioned at least one dividing line on the above-mentioned first image; the above-mentioned printing module
  • the display module 402 is specifically configured to display a preview operation interface according to the first dividing line template and based on the target printing parameters, wherein the preview operation interface displays the dividing lines in the first dividing line template.
  • the receiving module 401 is further configured to display the According to the first dividing line template and based on the target printing parameters, after displaying the preview operation interface, a second input for moving the first image displayed in the preview operation interface is received; the execution module 403 is specifically used to respond to the second input received by the receiving module 401, and divide the first image into N second pre-printed images according to the display position of the at least one dividing line on the first image after the move.
  • the above-mentioned receiving module 401 is also used to receive a third input to the above-mentioned preview operation interface after the display module 402 displays the preview operation interface according to the first dividing line template and based on the above-mentioned target printing parameters; the above-mentioned display module 402 is also used to respond to the above-mentioned third input received by the receiving module 401, and update the above-mentioned preview operation interface according to the second dividing line template corresponding to the above-mentioned third input, so that the dividing line in the above-mentioned second dividing line template is displayed in the updated above-mentioned preview operation interface.
  • the above-mentioned receiving module 401 is also used to receive a fourth input to the above-mentioned preview operation interface after the display module 402 displays the preview operation interface; the above-mentioned execution module 403 is also used to save the preview segmentation result image corresponding to the above-mentioned first image in the above-mentioned preview operation interface in response to the above-mentioned fourth input received by the receiving module 401.
  • the target printing parameters include a first printing format
  • the printing module 404 is specifically used to print the N second pre-printed pictures respectively based on the first printing format
  • the first printing format is: the first side edge of the second pre-printed picture is printed in a manner close to the edge of the paper; the first side edge is the side edge divided by the dividing line in the second pre-printed picture.
  • the printing module 404 is further configured to print a preview segmentation result image of the first image in the preview operation interface in accordance with the target printing parameters in response to the first input received by the receiving module 401 .
  • the above-mentioned execution module 403 is also used to respond to the above-mentioned first input received by the receiving module 401, based on the display positions of the above-mentioned N second pre-printed images in the above-mentioned preview segmentation result image, add a number at the preset position of each of the above-mentioned second pre-printed images in the above-mentioned preview segmentation result image to generate a directory image; the above-mentioned printing module 404 is also used to print the above-mentioned directory image according to the above-mentioned target printing parameters.
  • a preview operation interface is displayed, wherein the first picture and at least one dividing line are displayed in the preview operation interface; according to the at least one dividing line
  • the first image is divided into N second pre-printed images according to the display position of the cutting line on the first image; and the N second pre-printed images are printed respectively according to the target printing parameters.
  • the image processing device can divide the first image into multiple images matching the printing paper size according to the at least one cutting line, so that the image content of each divided image can be clearly displayed, thereby improving the quality of the printed image.
  • the image processing device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip.
  • the electronic device can be a terminal or other devices other than a terminal.
  • the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc.
  • NAS Network Attached Storage
  • PC personal computer
  • TV television
  • teller machine a self-service machine
  • the image processing device in the embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
  • the image processing device provided in the embodiment of the present application can implement each process implemented by the method embodiments of Figures 1 to 9. To avoid repetition, they will not be described here.
  • an embodiment of the present application also provides an electronic device 600, including a processor 601 and a memory 602, and the memory 602 stores a program or instruction that can be executed on the processor 601.
  • the program or instruction is executed by the processor 601
  • the various steps of the above-mentioned image processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
  • FIG. 12 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 100 includes but is not limited to components such as 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.
  • components such as 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.
  • the electronic device 100 may also include a power supply for supplying power to each component.
  • the power source (such as a battery) can be logically connected to the processor 110 through the power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
  • the electronic device structure shown in FIG12 does not constitute a limitation on the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently, which will not be described in detail here.
  • the above-mentioned user input unit 107 is used to receive a first input of the first image; the above-mentioned display unit 106 is used to respond to the above-mentioned first input received by the user input unit 107, and when the image size of the above-mentioned first image is larger than the preset size, display a preview operation interface according to the target printing parameters corresponding to the above-mentioned first input, and the above-mentioned first image and at least one dividing line are displayed in the preview operation interface; the above-mentioned processor 110 is used to divide the above-mentioned first image into N second pre-printed images according to the display position of the above-mentioned at least one dividing line on the above-mentioned first image; the above-mentioned processor 110 is also used to print the above-mentioned N second pre-printed images respectively according to the above-mentioned target printing parameters.
  • the display unit 106 is specifically configured to display a preview operation interface according to the first dividing line template and based on the target printing parameters, wherein the preview operation interface displays the dividing lines in the first dividing line template.
  • the user input unit 107 is further used to receive a second input for moving the first image displayed in the preview operation interface after the display unit 106 displays the preview operation interface according to the first dividing line template and based on the target printing parameters; the processor 110 is specifically used to respond to the second input received by the user input unit 107, and divide the first image into N second pre-printed images according to the display position of the at least one dividing line on the first image after the move.
  • the user input unit 107 is further used to receive a third input to the preview operation interface after the display unit 106 displays the preview operation interface according to the first dividing line template based on the target printing parameters; the display unit 106 is further used to respond to the third input received by the user input unit 107, update the preview operation interface according to the second dividing line template corresponding to the third input, and display the dividing line in the second dividing line template in the updated preview operation interface.
  • the above-mentioned user input unit 107 is also used to receive a fourth input to the above-mentioned preview operation interface after the display unit 106 displays the preview operation interface; the above-mentioned processor 110 is also used to save the preview segmentation result image corresponding to the above-mentioned first image in the above-mentioned preview operation interface in response to the above-mentioned fourth input received by the user input unit 107.
  • the target printing parameters include a first printing format; the processor 110 is specifically configured to print the N second pre-printed sheets based on the first printing format.
  • the above-mentioned first printing format is: the first side edge of the above-mentioned second pre-printed picture is printed in a manner close to the edge of the paper; the above-mentioned first side edge is the side edge divided by the dividing line in the above-mentioned second pre-printed picture.
  • the processor 110 is further configured to print a preview segmentation result image of the first image in the preview operation interface in accordance with the target printing parameters in response to the first input received by the user input unit 107 .
  • the processor 110 is further used to respond to the first input received by the user input unit 107, based on the display positions of the N second pre-printed images in the preview segmentation result image, add a number at a preset position of each of the second pre-printed images in the preview segmentation result image to generate a directory image; and print the directory image according to the target printing parameters.
  • the electronic device after receiving the first input of the first picture, in response to the first input, the electronic device can display a preview operation interface according to the target printing parameters corresponding to the first input when the picture size of the first picture is larger than the preset size, wherein the first picture and at least one dividing line are displayed in the preview operation interface; the first picture is divided into N second pre-printed pictures according to the display position of the at least one dividing line on the first picture; and the N second pre-printed pictures are printed respectively according to the target printing parameters.
  • the electronic device can divide the pictures into multiple pictures matching the printing paper size according to the at least one dividing line, so that the picture content of each divided picture can be clearly displayed, thereby improving the quality of the printed pictures.
  • the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video 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, etc.
  • the user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072.
  • the touch panel 1071 is also called a touch screen.
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
  • the memory 109 can be used to store software programs and various data.
  • the memory 109 can mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area can store an operating system, an application program or instruction required for at least one function (such as a sound playback function, an image Playback function, etc.).
  • the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories.
  • 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 (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM).
  • the memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
  • the processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.
  • An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored.
  • a program or instruction is stored.
  • the program or instruction is executed by a processor, each process of the above-mentioned image processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiment.
  • the readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
  • An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned image processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
  • An embodiment of the present application provides a computer program product, which is stored in a storage medium.
  • the program product is executed by at least one processor to implement the various processes of the above-mentioned image processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • the technical solution of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
  • a storage medium such as ROM/RAM, a magnetic disk, or an optical disk
  • a terminal which can be a mobile phone, a computer, a server, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Multimedia (AREA)
  • Facsimiles In General (AREA)

Abstract

本申请公开了一种图片处理方法、装置、电子设备及介质,属于通信技术领域。该图片处理方法包括:接收对第一图片的第一输入;响应于该第一输入,在上述第一图片的图片尺寸大于预设尺寸的情况下,按照上述第一输入对应的目标打印参数,显示预览操作界面,该预览操作界面中显示上述第一图片以及至少一条分割线;按照该至少一条分割线在上述第一图片上的显示位置,将上述第一图片划分为N张第二预打印图片;按照上述目标打印参数,分别打印上述N张第二预打印图片;其中,N为大于1的整数。

Description

图片处理方法、装置、电子设备及介质
相关申请的交叉引用
本申请主张在2022年10月13日在中国提交的申请号为202211252707.2的中国专利的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于通信技术领域,具体涉及一种图片处理方法、装置、电子设备及介质。
背景技术
随着通信技术的发展,电子设备也具备了打印功能,其支持单张或多张图片的打印。
在相关技术中,电子设备在打印图片时,是按照纸张的预设尺寸,将图片缩放到与预设尺寸相匹配的尺寸,然后再进行打印。而在图片的尺寸过大,或者图片的宽高比例较大时,采用上述方案缩放后的图片,内容显示不清晰,从而导致打印出的图片的质量较低。
发明内容
本申请实施例的目的是提供一种图片处理方法、装置、电子设备及介质,能够解决电子设备打印出的图片的质量较低的问题。
第一方面,本申请实施例提供了一种图片处理方法,该方法包括:接收对第一图片的第一输入;响应于该第一输入,在上述第一图片的图片尺寸大于预设尺寸的情况下,按照上述第一输入对应的目标打印参数,显示预览操作界面,该预览操作界面中显示上述第一图片以及至少一条分割线;按照该至少一条分割线在上述第一图片上的显示位置,将上述第一图片划分为N张第二预打印图片;按照上述目标打印参数,分别打印上述N张第二预打印图片;其中,N为大于1的整数。
第二方面,本申请实施例提供了一种图片处理装置,该装置包括:接收模块、显示模块、执行模块和打印模块,其中:上述接收模块,用于接收对第一图片的第一输入;上述显示模块,用于响应于接收模块接收到的上述第一输入,在上述第一图片的图片尺寸大于预设尺寸的情况下,按照上述第一输入对应的目标打印参数,显示预览操作界面,该预览操作界面中显示上述第一图片以及至少一条分割线;上述执行模块,用于按照上述至少一条分割线在上述第一图 片上的显示位置,将上述第一图片划分为N张第二预打印图片;上述打印模块,用于按照上述目标打印参数,分别打印上述N张第二预打印图片;其中,N为大于1的整数。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。
在本申请实施例中,电子设备在接收对第一图片的第一输入后;响应于该第一输入,可以在上述第一图片的图片尺寸大于预设尺寸的情况下,按照上述第一输入对应的目标打印参数,显示预览操作界面,该预览操作界面中显示上述第一图片以及至少一条分割线;按照该至少一条分割线在上述第一图片上的显示位置,将上述第一图片划分为N张第二预打印图片;按照上述目标打印参数,分别打印上述N张第二预打印图片。如此,通过在预览操作界面中显示用于划分第一图片的至少一条分割线,使得电子设备可以按照该至少一条分割线划分出与打印纸张尺寸相匹配的多张图片,从而使得划分出的每张图片的图片内容能够清晰显示,进而提高了打印出的图片的质量。
附图说明
图1是本申请实施例提供的一种图片处理方法的流程示意图;
图2是本申请实施例提供的一种图片处理方法所应用的界面实例示意图之一;
图3是本申请实施例提供的一种图片处理方法所应用的界面实例示意图之二;
图4是本申请实施例提供的一种图片处理方法所应用的界面实例示意图之 三;
图5是本申请实施例提供的一种图片处理方法所打印的图片示意图之一;
图6是本申请实施例提供的一种图片处理方法所打印的图片示意图之二;
图7是本申请实施例提供的一种图片处理方法所打印的图片示意图之三;
图8是本申请实施例提供的一种图片处理方法所打印的图片示意图之四;
图9是本申请实施例提供的一种图片处理方法所打印的图片示意图之五;
图10是本申请实施例提供的一种图片处理装置的结构示意图;
图11是本申请实施例提供的一种电子设备的结构示意图;
图12是本申请实施例提供的一种电子设备的硬件示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的图片处理方法、装置、电子设备及介质进行详细地说明。
本申请实施例提供的图片处理方法应用于对大尺寸图片进行打印的场景中,具体的应用场景可以根据使用需求而定,本申请不做限定。
示例性地,以对图片1(即第一图片)进行打印的场景为例。在相关技术中,若用户想要在特定尺寸的纸张(如A4纸)上打印图片1,且该图片1的尺寸远大于上述A4纸的尺寸。此时,需要在进入该图片1对应的打印预览界面之后,设置图片1的打印尺寸为A4尺寸,以将该图片1的尺寸缩小到A4尺寸,然后再进行打印。由于,上述缩小图片1的尺寸进行打印的方案,会使缩放后的图片1中的内容显示不清晰,从而导致打印出的图片的质量较低。
在本申请实施例中,若用户想要在特定尺寸的纸张(如A4纸)上打印图 片1,且该图片1的尺寸远大于上述A4纸的尺寸。此时,用户可以对该图片1进行输入,以触发电子设备显示该图片1对应的预览操作界面,并按照上述A4纸的尺寸,在该预览操作界面中显示分割线,然后按照该分割线将图片1划分为多个与上述A4纸的尺寸相匹配的子图片(即第二预打印图片),最后分别打印该多个子图片。因此,使得划分出的多个子图片中的内容能够清晰显示,从而提高了打印出的图片的质量。
本实施例提供的图片处理方法的执行主体可以为图片处理装置,该图片处理装置可以为电子设备,也可以为该电子设备中的控制模块或处理模块等。以下以电子设备为例来对本申请实施例提供的技术方案进行说明。
本申请实施例提供一种图片处理方法,如图1所示,该图片处理方法可以包括如下步骤201至步骤204:
步骤201:电子设备接收对第一图片的第一输入。
在本申请实施例中,上述第一图片可以为电子设备中存储的任一图片。
在本申请实施例中,上述任一图片的图片类型可以包括文档类图片和非文档类图片。
示例性地,上述文档类图片可以为包含文字的图片,例如,思维导图,宣传标语图,文章截图等。
示例性地,上述非文档类图片可以为不包含文字的图片,例如,风景图,自拍图等。
在本申请实施例中,上述第一输入用于设置第一图片对应的打印参数。
在本申请实施例中,上述第一输入可以为用户对上述第一图片的点击输入,或其他可行性输入,本申请实施例对此不作限定。
步骤202:电子设备响应于第一输入,在第一图片的图片尺寸大于预设尺寸的情况下,按照第一输入对应的目标打印参数,显示预览操作界面。
在本申请实施例中,上述预览操作界面中显示上述第一图片以及至少一条分割线。
示例性地,上述预览操作界面用于预览上述第一图片的打印效果,以及接收用户调整上述至少一条分割线的输入。
示例性地,上述至少一条分割线用于将上述第一图片划分出多个区域。
需要说明的是,上述多个区域可以包括核心显示区域和边缘空白区域。
在本申请实施例中,电子设备可以通过图像识别技术,识别出上述第一图片的核心显示区域和边缘空白区域。
举例说明,如图2所示,预览操作界面10中显示有核心显示区域(如区域A、区域B、区域C、区域D)、边缘空白区域(如区域E、区域F、区域G、区域H),以及分割线11、分割线12、分割线13、分割线14。
在本申请实施例中,上述预设尺寸可以为电子设备默认的打印纸张尺寸,也可以为用户手动设置的打印纸张尺寸。
在本申请实施例中,电子设备可以根据第一图片的类型设置不同的目标打印参数。
一种可能的示例中,在上述第一图片为文档类图片时,上述目标打印参数包括期望的打印纸张尺寸,期望的打印字体大小以及期望的打印方向等。此时,电子设备可以通过光学字符识别技术(Optical Character Recognition,OCR),识别出第一图片中的主要文字。然后根据期望的打印字体大小和期望的打印纸张尺寸计算出第一图片对应的缩放比例。此外,在上述第一图片中文字大小不统一时,则以相同字体大小数量最多的文字为基准进行计算。
另一种可能的示例中,在上述第一图片为非文档类图片时,上述目标打印参数包括期望的打印纸张尺寸和期望的打印方向等。此时,电子设备根据第一图片的分辨率信息计算出该第一图片对应的缩放比例。
在本申请实施例中,电子设备可以根据上述第一图片和上述目标打印参数判断上述第一图片是否为大图(即图片尺寸是否大于预设尺寸),且在第一图片为大图的情况下,显示预览操作界面。
需要说明的是,同一张图片是否为大图是基于上述预设尺寸的大小来确定的。例如,第一图片的尺寸为A4,若预设尺寸为大于等于A4,则第一图片不是大图;若预设尺寸为小于A4,则第一图片是大图。
步骤203:电子设备按照至少一条分割线在第一图片上的显示位置,将第一图片划分为N张第二预打印图片。
在本申请实施例中,N为大于1的整数。
在本申请实施例中,上述N张第二预打印图片的图片尺寸与上述预设尺寸相匹配。
步骤204:电子设备按照目标打印参数,分别打印N张第二预打印图片。
在本申请实施例中,电子设备可以按照目标打印参数,将上述N张第二预打印图片发送至打印程序,打印该N张第二预打印图片。
在本申请实施例提供的图片处理方法中,电子设备在接收对第一图片的第一输入后;响应于该第一输入,可以在上述第一图片的图片尺寸大于预设尺寸 的情况下,按照上述第一输入对应的目标打印参数,显示预览操作界面,该预览操作界面中显示上述第一图片以及至少一条分割线;按照该至少一条分割线在上述第一图片上的显示位置,将上述第一图片划分为N张第二预打印图片;按照上述目标打印参数,分别打印上述N张第二预打印图片。如此,通过在预览操作界面中显示用于划分第一图片的至少一条分割线,使得电子设备可以按照该至少一条分割线划分出与打印纸张尺寸相匹配多张图片,从而使得划分出的每张图片的图片内容能够清晰显示,进而提高了打印出的图片的质量。
可选地,在本申请实施例中,上述步骤202中“电子设备按照第一输入对应的目标打印参数,显示预览操作界面”可以包括如下步骤202a:
步骤202a:电子设备按照第一分割线模板,基于目标打印参数,显示预览操作界面。
在本申请实施例中,上述预览操作界面中显示上述第一分割线模板中的分割线。
在本申请实施例中,上述第一分割线模板可以为电子设备根据上述目标打印参数自动生成的。
需要说明的是,上述第一分割线模板中的分割线划分出的每个第二预打印图片的图片尺寸与上述目标打印参数中的期望打印尺寸相匹配。
如此,电子设备可以根据第一输入对应的打印参数自动生成分割线模板,提高了电子设备划分第一图片的效率。
可选地,在本申请实施例中,上述步骤202a之后,本申请实施例提供的图片处理方法还可以包括如下步骤202b:
步骤202b:电子设备接收用于移动预览操作界面中显示的第一图片的第二输入。
在本申请实施例中,上述第二输入用于移动上述至少一条分割线在上述第一图片上显示位置。
在本申请实施例中,上述第二输入可以为用户对上述第一图片的拖动输入,或其他可行性输入,本申请实施例对此不作限定。
示例性地,上述拖动输入可以为用户对第一图片进行双指缩放及拖动,此时预览操作界面中的分割线会随着第一图片的移动改变其在第一图片中的显示位置。
在本申请实施例中,用户在移动第一图片时,预览操作界面中的分割线可以隐藏,也可以显示,本申请不做限定。
进一步地,结合上述步骤202b,上述步骤203中“电子设备按照至少一条分割线在第一图片上的显示位置,将第一图片划分为N张第二预打印图片”可以包括如下步骤203a:
步骤203a:电子设备响应于第二输入,按照至少一条分割线在移动后的第一图片上的显示位置,将第一图片划分为N张第二预打印图片。
在本申请实施例中,由于上述至少一条分割线的显示位置不可移动,电子设备可以接收用于移动上述第一图片的输入,以达到间接移动上述至少一条分割线的效果,然后电子设备可以按照移动后的分割线对第一图片的划分效果,将上述第一图片划分为多张预打印图片。
如此,在显示第一分割线模板之后,电子设备还可以通过接收用户的输入,调整分割线在第一图片上的显示位置,以改变划分位置,增加了电子设备划分第一图片的灵活性。
可选地,在本申请实施例中,上述步骤202a之后,本申请实施例提供的图片处理方法还可以包括如下步骤202c和步骤202d:
步骤202c:电子设备接收对预览操作界面的第三输入。
在本申请实施例中,上述第三输入用于更新上述预览操作界面上显示的分割线。
在本申请实施例中,上述第三输入可以为用户对上述预览操作界面的点击输入,或其他可行性输入,本申请实施例对此不作限定。
在本申请实施例中,上述预览操作界面中还显示有分割线模板切换控件。
示例性地,上述分割线模板切换控件用于触发电子设备显示不同的分割线模板。
步骤202d:电子设备响应于第三输入,按照第三输入对应的第二分割线模板,更新预览操作界面。
在本申请实施例中,更新后的上述预览操作界面中显示上述第二分割线模板中的分割线。
示例性地,上述第二分割线模板可以为电子设备中预设的分割线模板。
举例说明,结合图2,预览操作界面10中还显示有切换控件15,用户在点击该切换控件15(即上述分割线模板切换控件)后,如图3所示,在预览操作界面10中显示有分割线21、分割线22、分割线23、分割线24。
在本申请实施例中,上述更新预览操作界面可以为将上述预览操作界面中的第一分割线模板切换至上述第二分割线模板,此外,在切换至第二分割线模 板后,用户仍可以调整第二分割线模板对应的分割线在第一图片上的显示位置。
如此,通过在电子设备中预设不同的分割线模板,以在接收到用户的切换输入后,切换不同的分割线模板,使得电子设备划分第一图片的选择更加丰富。
可选地,在本申请实施例中,上述步骤202之后,本申请实施例提供的图片处理方法还可以包括如下步骤205和步骤206:
步骤205:电子设备接收对预览操作界面的第四输入。
在本申请实施例中,上述第四输入用于触发电子设备保存第一图片对应的预览分割结果图片。
需要说明的是,上述预览分割结果图片用于指示上述预览操作界面中第一图片上显示的分割线的当前分割效果(如分割线与第一图片的相对显示位置,分割线的数量等)。
在本申请实施例中,上述第四输入可以为用户对上述预览操作界面的点击输入,或其他可行性输入,本申请实施例对此不作限定。
步骤206:电子设备响应于第四输入,保存预览操作界面中第一图片对应的预览分割结果图片。
在本申请实施例中,电子设备在预览操作界面中显示至少一条分割线之后,可以将该至少一条分割线对第一图片的预览分割结果图片保存在电子设备中,以在电子设备后续重新打印该第一图片时,直接采用该预览分割结果图片的分割效果进行打印。
如此,通过保存图片对应的预览分割结果图片,以在重新打印该图片时,直接采用该预览分割结果图片的分割效果打印,提高了电子设备打印图片的效率。
可选地,在本申请实施例中,上述目标打印参数包括第一打印格式,上述步骤204中“电子设备按照目标打印参数,分别打印N张第二预打印图片”可以包括如下步骤204a:
步骤204a:电子设备基于第一打印格式,分别打印N张第二预打印图片。
在本申请实施例中,上述第一打印格式为:上述第二预打印图片的第一侧边边缘以紧贴纸张边缘的方式打印。换句话说,该第一打印格式为贴边打印格式。
需要说明的是,上述第一侧边边缘为上述第二预打印图片中通过分割线所分割出的侧边边缘。
在本申请实施例中,电子设备在打印上述N张第二预打印图片时,可以将每张第二预打印图片中分割线所分割的侧边边缘与打印纸张的对应侧边边缘对齐,以使打印出的第二图片与纸张边缘没有内边距;并且,上述每张第二预打印图片均按照上述目标打印参数进行打印,以使打印出的每帧第二图片与预览操作界面中的第二预打印图片保持一致。
如此,通过将第二预打印图片贴边打印,使得后续打印出的第二图片便于拼接。
可选地,在本申请实施例中,上述步骤201之后,本申请实施例提供的图片处理方法还可以包括如下步骤301:
步骤301:电子设备响应于第一输入,按照目标打印参数,打印预览操作界面中第一图片的预览分割结果图片。
在本申请实施例中,电子设备在将第一图片划分为多张第二预打印图片后,还可以将预览操作界面中第一图片的预览分割结果图片,按照目标打印参数打印出来,将其作为封面。
可选地,在本申请实施例中,结合上述步骤301,上述步骤201之后,本申请实施例提供的图片处理方法还可以包括如下步骤302和步骤303:
步骤302:电子设备响应于第一输入,基于预览分割结果图片中N个第二预打印图片的显示位置,在预览分割结果图片中每个第二预打印图片的预设位置处增加编号,生成目录图片。
在本申请实施例中,上述预设位置可以为上述第二预打印图片中的任意位置。
在本申请实施例中,电子设备可以根据第二预打印图片在预览分割结果图片中的显示位置顺序,在第二预打印图片上进行编号,以生成目录图片。
示例性地,上述显示位置顺序可以为上述预览分割结果图片中N个第二预打印图片从左到右,从上到下的顺序。
需要说明的是,上述目录图片用于指示上述N个第二预打印图片的先后顺序。
步骤303:电子设备按照目标打印参数,打印目录图片。
在本申请实施例中,电子设备还可以在预览操作界面中对上述N张第二预打印图片进行编号,以生成目录图片,并将该目录图片按照目标打印参数打印出来,以使得在打印出N张第二图片后,可以按照该目录图片中的各个编号,将上述N张第二图片作为子图集,方便整理归类。
此外,电子设备在将上述编号之后的N张第二预打印图片打印出来后,可以直接按照每个第二图片的编号将N个第二图片进行拼接,以还原上述第一图片,使得拼接更加高效。
举例说明,结合图2,如图4所示,预览操作界面10中的区域A、区域B、区域C、区域D中还显示有各自对应的编号(如编号(1)、编号(2)、编号(3)、编号(4))。然后,用户点击打印控件16,将预览操作界面10中显示的预览分割结果图片(区域A、区域B、区域C、区域D整体组成的图片)打印出来,作为封面;将区域A、区域B、区域C、区域D分别对应的第二预打印图片也打印出来,作为子图集中的各个子图。其中,上述封面如图5所示,上述区域A对应的子图如图6所示,上述区域B对应的子图如图7所示,上述区域C对应的子图如图8所示,上述区域D对应的子图如图9所示。
需要说明的是,上述区域A、区域B、区域C、区域D即为上述第二预打印图片,上述各个子图均是按照贴边打印格式进行打印的。
如此,用户可以在需要打印大图时,可以快速对大图进行分割处理,以达到最佳的打印效果。并且,不会对大图过度压缩,使得打印出来的图片更加清晰便于查看,并且纸张利用率也更高。
本申请实施例提供的图片处理方法,执行主体可以为图片处理装置。本申请实施例中以图片处理装置执行图片处理方法为例,说明本申请实施例提供的图片处理装置。
本申请实施例提供一种图片处理装置,如图10所示,该图片处理装置400包括:接收模块401、显示模块402、执行模块403和打印模块404,其中:上述接收模块401,用于接收对第一图片的第一输入;上述显示模块402,用于响应于接收模块401接收到的上述第一输入,在上述第一图片的图片尺寸大于预设尺寸的情况下,按照上述第一输入对应的目标打印参数,显示预览操作界面,该预览操作界面中显示上述第一图片以及至少一条分割线;上述执行模块403,用于按照上述至少一条分割线在上述第一图片上的显示位置,将上述第一图片划分为N张第二预打印图片;上述打印模块404,用于按照上述目标打印参数,分别打印上述N张第二预打印图片。
可选地,在本申请实施例中,上述显示模块402,具体用于按照第一分割线模板,基于上述目标打印参数,显示预览操作界面,该预览操作界面中显示上述第一分割线模板中的分割线。
可选地,在本申请实施例中,上述接收模块401,还用于在显示模块402 按照第一分割线模板,基于上述目标打印参数,显示预览操作界面之后,接收用于移动上述预览操作界面中显示的上述第一图片的第二输入;上述执行模块403,具体用于响应于接收模块401接收到的上述第二输入,按照上述至少一条分割线在移动后的上述第一图片上的显示位置,将上述第一图片划分为N张第二预打印图片。
可选地,在本申请实施例中,上述接收模块401,还用于在显示模块402按照第一分割线模板,基于上述目标打印参数,显示预览操作界面之后,接收对上述预览操作界面的第三输入;上述显示模块402,还用于响应于接收模块401接收到的上述第三输入,按照上述第三输入对应的第二分割线模板,更新上述预览操作界面,更新后的上述预览操作界面中显示上述第二分割线模板中的分割线。
可选地,在本申请实施例中,上述接收模块401,还用于在显示模块402显示预览操作界面之后,接收对上述预览操作界面的第四输入;上述执行模块403,还用于响应于接收模块401接收到的上述第四输入,保存上述预览操作界面中上述第一图片对应的预览分割结果图片。
可选地,在本申请实施例中,上述目标打印参数包括第一打印格式;上述打印模块404,具体用于基于上述第一打印格式,分别打印上述N张第二预打印图片,上述第一打印格式为:上述第二预打印图片的第一侧边边缘以紧贴纸张边缘的方式打印;上述第一侧边边缘为上述第二预打印图片中通过分割线所分割出的侧边边缘。
可选地,在本申请实施例中,上述打印模块404,还用于响应于接收模块401接收到的上述第一输入,按照上述目标打印参数,打印上述预览操作界面中上述第一图片的预览分割结果图片。
可选地,在本申请实施例中,上述执行模块403,还用于响应于接收模块401接收到的上述第一输入,基于上述预览分割结果图片中上述N个第二预打印图片的显示位置,在上述预览分割结果图片中每个上述第二预打印图片的预设位置处增加编号,生成目录图片;上述打印模块404,还用于按照上述目标打印参数,打印上述目录图片。
本申请实施例提供的图片处理装置中,该图片处理装置在接收对第一图片的第一输入后;响应于该第一输入,可以在上述第一图片的图片尺寸大于预设尺寸的情况下,按照上述第一输入对应的目标打印参数,显示预览操作界面,该预览操作界面中显示上述第一图片以及至少一条分割线;按照该至少一条分 割线在上述第一图片上的显示位置,将上述第一图片划分为N张第二预打印图片;按照上述目标打印参数,分别打印上述N张第二预打印图片。如此,通过在预览操作界面中显示用于划分第一图片的至少一条分割线,使得上述图片处理装置可以按照该至少一条分割线划分出与打印纸张尺寸相匹配多张图片,从而使得划分出的每张图片的图片内容能够清晰显示,进而提高了打印出的图片的质量。
本申请实施例中的图片处理装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的图片处理装置可以为具有操作***的装置。该操作***可以为安卓(Android)操作***,可以为iOS操作***,还可以为其他可能的操作***,本申请实施例不作具体限定。
本申请实施例提供的图片处理装置能够实现图1至图9的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图11所示,本申请实施例还提供一种电子设备600,包括处理器601和存储器602,存储器602上存储有可在所述处理器601上运行的程序或指令,该程序或指令被处理器601执行时实现上述图片处理方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图12为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电 源(比如电池),电源可以通过电源管理***与处理器110逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。图12中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,上述用户输入单元107,用于接收对第一图片的第一输入;上述显示单元106,用于响应于用户输入单元107接收到的上述第一输入,在上述第一图片的图片尺寸大于预设尺寸的情况下,按照上述第一输入对应的目标打印参数,显示预览操作界面,该预览操作界面中显示上述第一图片以及至少一条分割线;上述处理器110,用于按照上述至少一条分割线在上述第一图片上的显示位置,将上述第一图片划分为N张第二预打印图片;上述处理器110,还用于按照上述目标打印参数,分别打印上述N张第二预打印图片。
可选地,在本申请实施例中,上述显示单元106,具体用于按照第一分割线模板,基于上述目标打印参数,显示预览操作界面,该预览操作界面中显示上述第一分割线模板中的分割线。
可选地,在本申请实施例中,上述用户输入单元107,还用于在显示单元106按照第一分割线模板,基于上述目标打印参数,显示预览操作界面之后,接收用于移动上述预览操作界面中显示的上述第一图片的第二输入;上述处理器110,具体用于响应于用户输入单元107接收到的上述第二输入,按照上述至少一条分割线在移动后的上述第一图片上的显示位置,将上述第一图片划分为N张第二预打印图片。
可选地,在本申请实施例中,上述用户输入单元107,还用于在显示单元106按照第一分割线模板,基于上述目标打印参数,显示预览操作界面之后,接收对上述预览操作界面的第三输入;上述显示单元106,还用于响应于用户输入单元107接收到的上述第三输入,按照上述第三输入对应的第二分割线模板,更新上述预览操作界面,更新后的上述预览操作界面中显示上述第二分割线模板中的分割线。
可选地,在本申请实施例中,上述用户输入单元107,还用于在显示单元106显示预览操作界面之后,接收对上述预览操作界面的第四输入;上述处理器110,还用于响应于用户输入单元107接收到的上述第四输入,保存上述预览操作界面中上述第一图片对应的预览分割结果图片。
可选地,在本申请实施例中,上述目标打印参数包括第一打印格式;上述处理器110,具体用于基于上述第一打印格式,分别打印上述N张第二预打印 图片,上述第一打印格式为:上述第二预打印图片的第一侧边边缘以紧贴纸张边缘的方式打印;上述第一侧边边缘为上述第二预打印图片中通过分割线所分割出的侧边边缘。
可选地,在本申请实施例中,上述处理器110,还用于响应于用户输入单元107接收到的上述第一输入,按照上述目标打印参数,打印上述预览操作界面中上述第一图片的预览分割结果图片。
可选地,在本申请实施例中,上述处理器110,还用于响应于用户输入单元107接收到的上述第一输入,基于上述预览分割结果图片中上述N个第二预打印图片的显示位置,在上述预览分割结果图片中每个上述第二预打印图片的预设位置处增加编号,生成目录图片;按照上述目标打印参数,打印上述目录图片。
在本申请实施例提供的电子设备中,电子设备在接收对第一图片的第一输入后;响应于该第一输入,可以在上述第一图片的图片尺寸大于预设尺寸的情况下,按照上述第一输入对应的目标打印参数,显示预览操作界面,该预览操作界面中显示上述第一图片以及至少一条分割线;按照该至少一条分割线在上述第一图片上的显示位置,将上述第一图片划分为N张第二预打印图片;按照上述目标打印参数,分别打印上述N张第二预打印图片。如此,通过在预览操作界面中显示用于划分第一图片的至少一条分割线,使得电子设备可以按照该至少一条分割线划分出与打印纸张尺寸相匹配多张图片,从而使得划分出的每张图片的图片内容能够清晰显示,进而提高了打印出的图片的质量。
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072中的至少一种。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作***、至少一个功能所需的应用程序或指令(比如声音播放功能、图像 播放功能等)等。此外,存储器109可以包括易失性存储器或非易失性存储器,或者,存储器109可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器109包括但不限于这些和任意其它适合类型的存储器。
处理器110可包括一个或多个处理单元;可选的,处理器110集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作***、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述图片处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述图片处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为***级芯片、***芯片、芯片***或片上***芯片等。
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述图片处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (21)

  1. 一种图片处理方法,所述方法包括:
    接收对第一图片的第一输入;
    响应于所述第一输入,在所述第一图片的图片尺寸大于预设尺寸的情况下,按照所述第一输入对应的目标打印参数,显示预览操作界面,所述预览操作界面中显示所述第一图片以及至少一条分割线;
    按照所述至少一条分割线在所述第一图片上的显示位置,将所述第一图片划分为N张第二预打印图片;
    按照所述目标打印参数,分别打印所述N张第二预打印图片;
    其中,N为大于1的整数。
  2. 根据权利要求1所述的方法,其中,所述按照所述第一输入对应的目标打印参数,显示预览操作界面,包括:
    按照第一分割线模板,基于所述目标打印参数,显示预览操作界面,所述预览操作界面中显示所述第一分割线模板中的分割线。
  3. 根据权利要求2所述的方法,其中,所述按照第一分割线模板,基于所述目标打印参数,显示预览操作界面之后,所述方法还包括:
    接收用于移动所述预览操作界面中显示的所述第一图片的第二输入;
    所述按照所述至少一条分割线在所述第一图片上的显示位置,将所述第一图片划分为N张第二预打印图片,包括:
    响应于所述第二输入,按照所述至少一条分割线在移动后的所述第一图片上的显示位置,将所述第一图片划分为N张第二预打印图片。
  4. 根据权利要求2所述的方法,其中,所述按照第一分割线模板,基于所述目标打印参数,显示预览操作界面之后,所述方法还包括:
    接收对所述预览操作界面的第三输入;
    响应于所述第三输入,按照所述第三输入对应的第二分割线模板,更新所述预览操作界面,更新后的所述预览操作界面中显示所述第二分割线模板中的分割线。
  5. 根据权利要求1所述的方法,其中,所述显示预览操作界面之后,所述方法还包括:
    接收对所述预览操作界面的第四输入;
    响应于所述第四输入,保存所述预览操作界面中所述第一图片对应的预览分割结果图片。
  6. 根据权利要求1所述的方法,其中,所述目标打印参数包括第一打印格式;
    所述按照所述目标打印参数,分别打印所述N张第二预打印图片,包括:
    基于所述第一打印格式,分别打印所述N张第二预打印图片,所述第一打印格式为:所述第二预打印图片的第一侧边边缘以紧贴纸张边缘的方式打印;所述第一侧边边缘为所述第二预打印图片中通过分割线所分割出的侧边边缘。
  7. 根据权利要求1所述的方法,其中,所述接收对第一图片的第一输入之后,所述方法还包括:
    响应于所述第一输入,按照所述目标打印参数,打印所述预览操作界面中所述第一图片的预览分割结果图片。
  8. 根据权利要求7所述的方法,其中,所述接收对第一图片的第一输入之后,所述方法还包括:
    响应于所述第一输入,基于所述预览分割结果图片中所述N个第二预打印图片的显示位置,在所述预览分割结果图片中每个所述第二预打印图片的预设位置处增加编号,生成目录图片;
    按照所述目标打印参数,打印所述目录图片。
  9. 一种图片处理装置,所述装置包括:接收模块、显示模块、执行模块和打印模块,其中:
    所述接收模块,用于接收对第一图片的第一输入;
    所述显示模块,用于响应于所述接收模块接收到的所述第一输入,在所述第一图片的图片尺寸大于预设尺寸的情况下,按照所述第一输入对应的目标打印参数,显示预览操作界面,所述预览操作界面中显示所述第一图片以及至少一条分割线;
    所述执行模块,用于按照所述至少一条分割线在所述第一图片上的显示位置,将所述第一图片划分为N张第二预打印图片;
    所述打印模块,用于按照所述目标打印参数,分别打印所述N张第二预打印图片;
    其中,N为大于1的整数。
  10. 根据权利要求9所述的装置,其中,
    所述显示模块,具体用于按照第一分割线模板,基于所述目标打印参数,显示预览操作界面,所述预览操作界面中显示所述第一分割线模板中的分割线。
  11. 根据权利要求10所述的装置,其中,
    所述接收模块,还用于在所述显示模块按照第一分割线模板,基于所述目标打印参数,显示预览操作界面之后,接收用于移动所述预览操作界面中显示的所述第一图片的第二输入;
    所述执行模块,具体用于响应于所述接收模块接收到的所述第二输入,按照所述至少一条分割线在移动后的所述第一图片上的显示位置,将所述第一图片划分为N张第二预打印图片。
  12. 根据权利要求10所述的装置,其中,
    所述接收模块,还用于在所述显示模块按照第一分割线模板,基于所述目标打印参数,显示预览操作界面之后,接收对所述预览操作界面的第三输入;
    所述显示模块,还用于响应于所述接收模块接收到的所述第三输入,按照所述第三输入对应的第二分割线模板,更新所述预览操作界面,更新后的所述预览操作界面中显示所述第二分割线模板中的分割线。
  13. 根据权利要求9所述的装置,其中,
    所述接收模块,还用于在所述显示模块显示预览操作界面之后,接收对所述预览操作界面的第四输入;
    所述执行模块,还用于响应于所述接收模块接收到的所述第四输入,保存所述预览操作界面中所述第一图片对应的预览分割结果图片。
  14. 根据权利要求9所述的装置,其中,所述目标打印参数包括第一打印格式;
    所述打印模块,具体用于基于所述第一打印格式,分别打印所述N张第二预打印图片,所述第一打印格式为:所述第二预打印图片的第一侧边边缘以紧贴纸张边缘的方式打印;所述第一侧边边缘为所述第二预打印图片中通过分割线所分割出的侧边边缘。
  15. 根据权利要求9所述的装置,其中,
    所述打印模块,还用于响应于所述接收模块接收到的所述第一输入,按照所述目标打印参数,打印所述预览操作界面中所述第一图片的预览分割结果图片。
  16. 根据权利要求15所述的装置,其中,
    所述执行模块,还用于响应于所述接收模块接收到的所述第一输入,基于所述预览分割结果图片中所述N个第二预打印图片的显示位置,在所述预览分割结果图片中每个所述第二预打印图片的预设位置处增加编号,生成目录图 片;
    所述打印模块,还用于按照所述目标打印参数,打印所述目录图片。
  17. 一种电子设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至8任一项所述的图片处理方法的步骤。
  18. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至8任一项所述的图片处理方法的步骤。
  19. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至8任一项所述的图片处理方法。
  20. 一种计算机程序产品,所述程序产品被至少一个处理器执行以实现如权利要求1至8任一项所述的图片处理方法。
  21. 一种电子设备,所述电子设备被配置成用于执行如权利要求1至8任一项所述的图片处理方法。
PCT/CN2023/123765 2022-10-13 2023-10-10 图片处理方法、装置、电子设备及介质 WO2024078490A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211252707.2A CN115454365A (zh) 2022-10-13 2022-10-13 图片处理方法、装置、电子设备及介质
CN202211252707.2 2022-10-13

Publications (1)

Publication Number Publication Date
WO2024078490A1 true WO2024078490A1 (zh) 2024-04-18

Family

ID=84309339

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/123765 WO2024078490A1 (zh) 2022-10-13 2023-10-10 图片处理方法、装置、电子设备及介质

Country Status (2)

Country Link
CN (1) CN115454365A (zh)
WO (1) WO2024078490A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115454365A (zh) * 2022-10-13 2022-12-09 维沃移动通信有限公司 图片处理方法、装置、电子设备及介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110262759A (zh) * 2019-04-30 2019-09-20 小濠(深圳)科技有限公司 文档打印方法、装置、设备及计算机可读存储介质
CN114089931A (zh) * 2022-01-24 2022-02-25 荣耀终端有限公司 图片打印方法、电子设备及计算机可读存储介质
CN115454365A (zh) * 2022-10-13 2022-12-09 维沃移动通信有限公司 图片处理方法、装置、电子设备及介质

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110262759A (zh) * 2019-04-30 2019-09-20 小濠(深圳)科技有限公司 文档打印方法、装置、设备及计算机可读存储介质
CN114089931A (zh) * 2022-01-24 2022-02-25 荣耀终端有限公司 图片打印方法、电子设备及计算机可读存储介质
CN115454365A (zh) * 2022-10-13 2022-12-09 维沃移动通信有限公司 图片处理方法、装置、电子设备及介质

Also Published As

Publication number Publication date
CN115454365A (zh) 2022-12-09

Similar Documents

Publication Publication Date Title
CN111586237B (zh) 一种图像显示方法及电子设备
WO2024078490A1 (zh) 图片处理方法、装置、电子设备及介质
WO2022116886A1 (zh) 截屏方法及截屏装置
US20240004676A1 (en) Screen Capture Method and Apparatus, Electronic Device, and Readable Storage Medium
WO2024037418A1 (zh) 显示方法、装置、电子设备及可读存储介质
US20230244363A1 (en) Screen capture method and apparatus, and electronic device
WO2023155811A1 (zh) 页面布局调整方法、装置
CN114518820A (zh) 图标整理方法、装置和电子设备
US10120637B2 (en) Mirror display system having low data traffic and method thereof
CN112269519A (zh) 文档处理方法、装置及电子设备
US20230345112A1 (en) Image generation method and apparatus, and electronic device
WO2021233291A1 (zh) 截屏方法、装置和电子设备
JP2011086050A (ja) 情報処理端末及びコンピュータプログラム
WO2024099102A1 (zh) 控件显示方法及装置、电子设备和可读存储介质
WO2024078590A1 (zh) 标识显示方法、装置、电子设备及可读存储介质
WO2023241563A1 (zh) 数据处理方法和电子设备
CN112947826A (zh) 信息获取方法、装置及电子设备
WO2023174328A1 (zh) 屏幕控制方法、装置、电子设备及存储介质
WO2023241612A1 (zh) 文件选择方法、装置、电子设备及可读存储介质
WO2023138509A1 (zh) 图片处理方法和装置
WO2023045922A1 (zh) 信息输入方法、装置
WO2022194211A1 (zh) 图像处理方法、装置、电子设备及可读存储介质
WO2023093809A1 (zh) 文件编辑处理方法、装置和电子设备
CN114578898A (zh) 显示方法、电子设备及可读存储介质
CN113362426A (zh) 图像编辑方法和图像编辑装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23876692

Country of ref document: EP

Kind code of ref document: A1