WO2023093694A1 - 图像处理方法、装置、设备和存储介质 - Google Patents

图像处理方法、装置、设备和存储介质 Download PDF

Info

Publication number
WO2023093694A1
WO2023093694A1 PCT/CN2022/133375 CN2022133375W WO2023093694A1 WO 2023093694 A1 WO2023093694 A1 WO 2023093694A1 CN 2022133375 W CN2022133375 W CN 2022133375W WO 2023093694 A1 WO2023093694 A1 WO 2023093694A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
target
size
typesetting
images
Prior art date
Application number
PCT/CN2022/133375
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 WO2023093694A1 publication Critical patent/WO2023093694A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Definitions

  • the present application belongs to the technical field of image processing, and specifically relates to an image processing method, device, equipment and storage medium.
  • the purpose of the embodiments of the present application is to provide an image processing method, device, device, and storage medium, which can solve the problems of relatively difficult manual image size adjustment and low image processing efficiency in the related art.
  • the embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor.
  • the program or instruction is executed by the processor, the The steps of the image processing method of the first aspect.
  • 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 image processing method in the first aspect are implemented.
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the image processing method in the first aspect.
  • an embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the steps of the image processing method as described in the first aspect.
  • the electronic device when the electronic device receives the first input that the user inserts multiple first images into the target document, in response to the first input, the first image corresponding to the target object in each first image can be obtained. size, and according to the first size corresponding to the target object in each first image, determine the typesetting information of the multiple first images in the target document. Based on this, the electronic device can adjust the size of the first image according to the typesetting information and the page size of the target document. In this way, the user does not need to manually adjust the image size after inserting multiple images, and the electronic device can flexibly adjust the image size according to the layout information of the multiple images to align all the images in the target document, reducing the difficulty of user operation and effectively improving image processing efficiency.
  • Fig. 1 is one of the schematic flow charts of the image processing method provided by the embodiment of the present application.
  • Fig. 2 is one of the schematic diagrams of the example of the first image provided by the embodiment of the present application.
  • Fig. 3 is the second schematic diagram of an example of the first image provided by the embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an example of an edge detection model provided by an embodiment of the present application.
  • Fig. 5 is a schematic diagram of the image processing flow of the first image provided by the embodiment of the present application.
  • Fig. 6 is a schematic diagram of an example of a typesetting style provided by an embodiment of the present application.
  • Fig. 7 is the second schematic flow diagram of the image processing method provided by the embodiment of the present application.
  • Fig. 8 is a schematic diagram of an example of image layout provided by the embodiment of the present application.
  • FIG. 9 is the third schematic flow diagram of the image processing method provided by the embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of an image processing device provided by an embodiment of the present application.
  • Fig. 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the embodiment of the present application provides an image processing method, when the electronic device receives the first input from the user to insert multiple first images in the target document, in response to the first input, it can Acquire the first size corresponding to the target object in each first image, and determine the typesetting information of the multiple first images in the target document according to the first size corresponding to the target object in each first image. Based on this, the electronic device can adjust the size of the first image according to the typesetting information and the page size of the target document.
  • the electronic device can flexibly adjust the image size according to the typesetting information of the multiple images to align all the images in the target document, reducing the difficulty of user operation, effectively improving image processing efficiency, and solving It solves the problems in the related art that it is difficult to manually adjust the size of the image and the efficiency of image processing is low.
  • FIG. 1 is a schematic flowchart of an image processing method provided by an embodiment of the present application, and the execution body of the image processing method may be an electronic device. It should be noted that the above-mentioned executors do not constitute a limitation of the present application.
  • the image processing method provided by the embodiment of the present application may include step 110 - step 140 .
  • Step 110 receiving a first input of a plurality of first images.
  • the first input is used to indicate to insert multiple first images in the target document, and the first input may select multiple first images for the user, and insert multiple first images into the target document by clicking or dragging input , long-press input, double-click input, slide input, or a combination of at least two of the above-mentioned inputs, etc., which are not specifically limited in this application.
  • the first image may include image A, image B, and image C
  • the first input may include a click input for the user to select the image A-C, and a drag input for moving the image A-C to the target document.
  • Step 120 in response to the first input, acquire the first size corresponding to the target object in each first image.
  • the target object may be a salient object in the first image, such as a table, a graph, a coordinate map, a text, a person, an animal, a car, a food, a building, etc., which are not specifically limited in this application.
  • the first size may be a size corresponding to the target object in the first image.
  • the first image may be an image 201
  • the first size may be the size of an edge range 202 corresponding to the target object “bar graph” in the image 201 .
  • the first size is the size of the first image.
  • the image 301 shown in FIG. 3 includes the target object "graph", since the edge range of "graph” coincides with the edge range 302 of the image 301, the first size can be the size of the image 301, that is, the edge range 302 size of.
  • Step 130 Determine the typesetting information of each first image in the target document according to the first size corresponding to the target object in each first image.
  • Step 140 adjusting the size of the first image according to the typesetting information and the second size.
  • the second size may be the page size of the target document, such as A2, A3, A4 and so on.
  • the electronic device when the electronic device receives the first input of the user inserting multiple first images in the target document, in response to the first input, it can obtain the corresponding information of the target object in each first image. , and according to the first size corresponding to the target object in each first image, determine the typesetting information of the multiple first images in the target document. Based on this, the electronic device can adjust the size of the first image according to the typesetting information and the page size of the target document. In this way, the user does not need to manually adjust the image size after inserting multiple images, and the electronic device can flexibly adjust the image size according to the typesetting information of the multiple images to align all the images in the target document, reducing the difficulty of user operation and effectively improving image processing efficiency.
  • step 120 - step 140 will be described in detail below in conjunction with a specific embodiment.
  • the first size may be the size of the border frame corresponding to the target object.
  • step 120 acquires the size information of the target object in each first image, which may specifically include: responding to The first input is to identify each first image through the edge detection model to obtain the first size of the edge frame corresponding to the target object in each first image; for each first image, remove the edge frame in the first image Outer image portion to get the first image of the first size.
  • the edge detection model may include a feature extraction module and an edge detection module.
  • Feature extraction module used to obtain the advanced features of the first image through the convolutional neural network, and calculate the gradient loss of each feature dimension.
  • Edge detection module mainly includes a residual block, a fully connected layer and a softmax layer, used to determine the edge frame of the target object in the first image, and output edge information, which may include the first size of the edge frame.
  • FIG. 4 is an example of an edge detection model.
  • the edge detection model 400 may include a feature extraction module 401 and an edge detection module 402 .
  • an image 201 can be obtained, wherein the image 201 can include an edge box 202 of the target object "bar graph", and the size of the edge box 202 is the first size.
  • removing the image part outside the border frame in the first image to obtain the first image of the first size may include: cropping the image part outside the border frame in the first image to obtain the first size the first image of .
  • part of the image outside the border frame 202 may be cropped to obtain a first image 501 of a first size.
  • the electronic device can remove the blank area in the image, reducing Unused area, to ensure the validity of the inserted image in the target document.
  • Step 130 is involved, determining the typesetting information of each first image in the target document according to the first size corresponding to the target object in each first image.
  • the typesetting information may include a typesetting direction
  • the typesetting direction may include a first direction and a second direction
  • step 130 may specifically include: when the first ratio corresponding to the first image is smaller than the first preset threshold In this case, it is determined that the typesetting direction of the first image is the first direction; when the first ratio corresponding to the first image is greater than or equal to the first preset threshold, it is determined that the typesetting direction of the first image is the second direction; wherein, The first ratio is a ratio of the first height value corresponding to the first image to the first width value.
  • the first size may include a first width value and a first height value
  • the first width value is the width of the border frame corresponding to the target object in the first image
  • the first height value is the height of the border frame
  • the first ratio may be is the ratio of the first height value corresponding to the first image to the first width value.
  • the first preset threshold can be set according to specific requirements, which is not specifically limited in this application.
  • the first preset threshold is 0.6
  • the first size (h, w) of image A is (50, 110)
  • the first size of image B is (30, 25)
  • the first size of image C is (30 , 50)
  • the first ratios corresponding to images A-C are 0.45, 1.2, 0.6 respectively.
  • the first ratio of image A is less than 0.6
  • the typesetting direction of image A is the first direction
  • the first ratio of image B is greater than 0.6
  • the first ratio of image C is equal to 0.6
  • the typesetting direction of image B and image C is the second direction.
  • the first direction may be different from the second direction, and the first direction and the second direction may form a preset angle, and the preset angle may be specifically set according to document size and/or requirements.
  • the first direction can form a 90-degree angle with the second direction
  • the first direction can be vertical
  • the second direction can be horizontal, so that the "slender” first images can be arranged horizontally, Arrange the "short and wide” first image vertically to achieve reasonable layout.
  • Figure 6 provides four layout styles (a), (b), (c), and (d) that display three images on the same page, and the first direction and the second direction in the four layout styles can be It is at an angle of 90 degrees.
  • the aspect ratio of each first image can be determined by comparing the aspect ratio of each first image with the first preset threshold.
  • Typesetting direction Specifically, if the aspect ratio corresponding to the first image is less than the first preset threshold, it means that the first image is relatively "slender", and if the aspect ratio of the first image is not less than the first preset threshold , indicating that the first image is relatively "short and wide”.
  • the typesetting direction adapted to each type of shape can be determined separately. Typesetting based on two completely different layout directions can display as many images as possible on the same page, and the layout is relatively neat, which can improve the display effect of all images in the target document.
  • the typesetting information may include the typesetting direction and the typesetting position.
  • FIG. 7 is a schematic flowchart of another image processing method provided in the embodiment of the present application. Step 130 may specifically include step 710 shown in FIG. 7 and step 720.
  • Step 710 Determine the typesetting direction corresponding to each first image according to the first size corresponding to each first image.
  • the first size includes a first height value and a first width value
  • the typesetting information includes a typesetting direction
  • the typesetting direction includes a first direction and a second direction.
  • Step 710 may specifically include: when the first ratio corresponding to the first image is less than In the case of the first preset threshold, it is determined that the typesetting direction of the first image is the first direction; when the first ratio corresponding to the first image is greater than or equal to the first preset threshold, it is determined that the typesetting direction of the first image is The second direction; wherein, the first ratio is the ratio of the first height value corresponding to the first image to the first width value.
  • Step 720 Determine the typesetting position of each first image in the target document according to the first size, typesetting direction, image insertion sequence corresponding to the first input, and second size corresponding to each first image.
  • the image insertion order corresponding to the first input may be the insertion order when the user inserts multiple first images in the target document, and the insertion order is the typesetting order of all the first images in the target document; the typesetting position may include The display position in the target document.
  • the second size is (120, 100), and the image insertion sequence is image A-image E respectively.
  • the electronic device After obtaining the first size and typesetting direction corresponding to the images A-E, the electronic device first determines the first image that can be displayed on the first page of the target document.
  • the first sizes corresponding to images A-E are (50, 110), (30, 25), (30, 50), (80, 40), (80, 40), and the first sizes corresponding to images A-E are respectively Portrait, landscape, landscape, landscape, landscape. Since the size of the page 801 shown in FIG.
  • the electronic device can determine the first image in each display page, as well as the typesetting order and typesetting direction of all first images, it can be determined based on the typesetting order and typesetting direction of all first images in the same page.
  • the display position of each first image on the display page that is, the display position in the target document.
  • the electronic device may determine the typesetting direction corresponding to each first image according to the first size corresponding to each first image, and determine the typesetting direction corresponding to each first image according to the first size, typesetting direction, and image size corresponding to each first image.
  • the insertion order and second size determine where each first image appears in the target document.
  • the electronic device can obtain the adapted layout direction corresponding to each image based on the size information of the target object in each image, and based on the adapted layout direction and image layout sequence (that is, the image insertion sequence) and the page size of the target document, determine the typesetting position for each first image, and realize automatic rational typesetting based on the typesetting position. Problems such as the inability to align images have improved the orderliness of image layout.
  • Step 140 is involved, adjusting the size of the first image according to the typesetting information and the second size.
  • the second size may include a second height value and a second width value.
  • FIG. 9 is a flow chart of another image processing method provided in the embodiment of the present application In the schematic diagram, step 140 may specifically include steps 910-960 shown in FIG. 9 .
  • Step 910 determine the first target image and the second target image in the multiple first images of the same display page.
  • the first target image is typesetting based on the first direction
  • the second target image is typesetting based on the second direction
  • image A is the first target image
  • images B and C are the second target images.
  • Step 920 Calculate a first sum according to the first height values of all the first target images, the first height values of the third target image and the second preset threshold in the same display page.
  • the third target image may be the second target image with the largest height value among the second target images in each row on the same display page.
  • the second preset threshold is used to characterize the distance between each row of images, which can be specifically set according to requirements.
  • the first target image is image A
  • the second target images are image B and image C. Since there is only one first target image on page 801, the first sum may be the sum of the first height value 50 of image A, the first height value of the third target image, and the second preset threshold 5.
  • Step 930 based on the second ratio of the second height value to the first sum value, adjust the height values of all the first target images and the second target images in the same display page.
  • the electronic device may adjust the height values of all first target images and second target images on the same display page to a target height, where the target height may be a product of the first height value and the second ratio.
  • the second size is (120, 100), and the second ratio is 1.4, which is the ratio of the second height value 120 to the first sum value 85.
  • the electronic device may adjust the height value of image A to be the product 70 of the first height value 50 and the second ratio 1.4.
  • Step 940 Calculate the second sum corresponding to each row according to the first width value and the third preset threshold of all second target images in each row on the same display page.
  • the third preset threshold is used to characterize the distance between each column of images, which can be specifically set according to requirements.
  • the third preset threshold may be the same as or different from the second preset threshold.
  • the second target image on page 801 may include image B and image C, then the second sum value is 25 for the first width of image B, 50 for the first width of image C, and the third preset threshold The sum of 5 is 80.
  • Step 950 based on the third ratio between the second width value and the second sum value corresponding to each row, adjust the width values of all second target images in each row on the same display page.
  • a second sum can be calculated, and based on each second sum, a third ratio can be obtained, that is, each row of the second target can be Corresponding to a third ratio, the width of each row of second target objects can be adjusted based on the corresponding third ratio, specifically the product of the first width and the third ratio.
  • the second size is (120, 100)
  • the third ratio is 1.25, which is the ratio of the second width value 100 to the third sum value 80.
  • the electronic device may adjust the height value of image B to be the product 31 of the first width value 25 and the third ratio value 1.25.
  • Step 960 Adjust the width of the first target image based on the fourth ratio corresponding to each first target image.
  • the fourth ratio may be a ratio of the first width value to the second width value of the first target image.
  • the size of all the first images can be adjusted, and the size of the same image can be adjusted as much as possible. All the first images on the display page are aligned to improve the orderliness and aesthetics of image display. At the same time, there is no need for users to manually adjust the image size, which simplifies user operation steps and improves user experience.
  • the method may further include: displaying the adjusted first target image and the second target image in the target document, wherein the first target image and the second target image are in Typesetting is performed in the target document based on the typesetting information.
  • the image processing method provided in the embodiment of the present application may be executed by an image processing device, or a control module in the image processing device for executing the image processing method.
  • the method for performing image processing by the image processing device is taken as an example to describe the image processing device provided in the embodiment of the present application.
  • the image processing device will be described in detail below.
  • FIG. 10 is a schematic structural diagram of an image processing device provided by the present application.
  • the receiving module 1010 is configured to receive a first input of a plurality of first images, wherein the first input is used to insert a plurality of first images in the target document; the obtaining module 1020 is configured to respond to the first input, Obtain the first size corresponding to the target object in each first image; the determination module 1030 is used to determine the typesetting information of each first image in the target document according to the first size corresponding to the target object in each first image; The processing module 1040 is configured to adjust the size of the first image according to the typesetting information and the second size, wherein the second size is the page size of the target document.
  • the first size is the size of the edge frame corresponding to the target object
  • the acquisition module 1020 includes: an identification unit, configured to identify each first image through an edge detection model in response to the first input , to obtain the first size of the border frame corresponding to the target object in each first image; the removal unit is used to remove the image part outside the border frame in the first image for each first image, and obtain the first size of the first size an image.
  • the first size includes a first height value and a first width value
  • the typesetting information includes a typesetting direction
  • the typesetting direction includes a first direction and a second direction
  • the determining module 1030 is specifically configured to: When the first ratio corresponding to the image is less than the first preset threshold, determine that the typesetting direction of the first image is the first direction; when the first ratio corresponding to the first image is greater than or equal to the first preset threshold, determine The typesetting direction of the first image is the second direction; wherein, the first ratio is the ratio of the first height value corresponding to the first image to the first width value.
  • the typesetting information includes a typesetting direction and a typesetting position
  • the determining module 1030 is specifically configured to: determine the typesetting direction corresponding to each first image according to the first size corresponding to each first image; The first size corresponding to the first image, the typesetting direction, the image insertion order corresponding to the first input, and the second size determine the typesetting position of each first image in the target document, and the typesetting position includes the display position in the target document .
  • the second size includes a second height value and a second width value
  • the processing module 1040 includes: a determining unit, configured to determine the first target image and the The second target image, wherein, the first target image is typesetting based on the first direction, and the second target image is typesetting based on the second direction; the calculation unit is configured to use the first height value, the third The first height value and the second preset threshold of the target image calculate the first sum value, wherein the third target image is the second target image with the largest height value among the second target images of each row in the same display page; the adjustment unit, It is used to adjust the height values of all first target images and second target images in the same display page based on the second ratio of the second height value to the first sum value; the calculation unit is also used to adjust the height values of all first target images and second target images in the same display page The first width value of the second target image and the third preset threshold value are used to calculate the second sum value corresponding to each row; the adjustment unit is also used for
  • the device further includes: a display module, configured to display the adjusted first target image and the second target image in the target document, wherein the first target image and the second target image are in the target Typesetting is performed in the document based on the typesetting information.
  • the image processing apparatus provided in the embodiment of the present application can implement various processes implemented by the electronic device in the method embodiments in FIGS. 1-9 , and details are not repeated here to avoid repetition.
  • the image processing apparatus in the embodiment of the present application may be an electronic device, or may be a component, an integrated circuit, or a chip in the electronic device.
  • the electronic device may be a terminal, or other devices other than the terminal.
  • the electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) ) equipment, robots, wearable devices, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc.
  • the image processing device in the embodiment of the present application may be a device with 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 this embodiment of the present application.
  • the embodiment of the present application further provides an electronic device 1100, including a processor 1101, a memory 1102, and a program or instruction stored in the memory 1102 and operable on the processor 1101.
  • the program when the instructions are executed by the processor 1101, each process of the above-mentioned image processing method embodiment can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 12 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
  • the electronic device 1200 includes, but is not limited to: a radio frequency unit 1201, a network module 1202, an audio output unit 1203, an input unit 1204, a sensor 1205, a display unit 1206, a user input unit 1207, an interface unit 1208, a memory 1209, and a processor 1210, etc. part.
  • the user input unit 1207 is configured to receive a first input to a plurality of first images, wherein the first input is used to insert a plurality of first images in the target document; the processor 1210 is configured to respond to the first input , to obtain the first size corresponding to the target object in each first image; the processor 1210 is configured to determine the typesetting information of each first image in the target document according to the first size corresponding to the target object in each first image The processor 1210 is further configured to adjust the size of the first image according to the typesetting information and the second size, where the second size is the page size of the target document.
  • the electronic device when the electronic device receives the first input that the user inserts multiple first images into the target document, in response to the first input, the first image corresponding to the target object in each first image can be obtained. size, and according to the first size corresponding to the target object in each first image, determine the typesetting information of the multiple first images in the target document. Based on this, the electronic device can adjust the size of the first image according to the typesetting information and the page size of the target document. In this way, the user does not need to manually adjust the image size after inserting multiple images, and the electronic device can flexibly adjust the image size according to the typesetting information of the multiple images to align all the images in the target document, reducing the difficulty of user operation and effectively improving image processing efficiency.
  • the first size is the size of the edge frame corresponding to the target object
  • the processor 1210 is specifically configured to: in response to the first input, identify each first image through an edge detection model, and obtain each The first size of the border frame corresponding to the target object in the first image; for each first image, the image part outside the border frame in the first image is removed to obtain the first image of the first size.
  • the typesetting information includes a typesetting direction and a typesetting position
  • the processor 1210 is specifically configured to: determine the typesetting direction corresponding to each first image according to the first size corresponding to each first image; The first size corresponding to the first image, the typesetting direction, the image insertion order corresponding to the first input, and the second size determine the typesetting position of each first image in the target document, and the typesetting position includes the display position in the target document .
  • the second size includes a second height value and a second width value
  • the typesetting direction includes a first direction and a second direction
  • the processor 1210 is specifically configured to: determine multiple first The first target image and the second target image in the image, wherein the first target image is typesetting based on the first direction, and the second target image is typesetting based on the second direction; according to the first height value of all the first target images in the same display page , the first height value and the second preset threshold of the third target image, calculating the first sum value, wherein the third target image is the second target image with the largest height value among the second target images in each row of the same display page; Based on the second ratio of the second height value to the first sum value, adjust the height values of all the first target images and the second target images in the same display page; according to the first width of all the second target images in each row in the same display page value and the third preset threshold value, calculate the second sum value corresponding to each row; based on the third ratio of the second
  • the display unit 1206 is configured to display the adjusted first target image and the second target image in the target document, wherein the first target image and the second target image are based on the typesetting in the target document Information is typed.
  • the input unit 1204 may include a graphics processor (Graphics Processing Unit, GPU) 12041 and a microphone 12042, and the graphics processor 12041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1207 includes at least one of a touch panel 12071 and other input devices 12072 . Touch panel 12071, also called touch screen.
  • the touch panel 12071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 12072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the memory 1209 can be used to store software programs as well as various data.
  • the memory 1209 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required by at least one function (such as a sound playing function, image playback function, etc.), etc.
  • memory 1209 may include volatile memory or nonvolatile memory, or, memory 1209 may include both volatile and nonvolatile memory.
  • the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash.
  • ROM Read-Only Memory
  • PROM programmable read-only memory
  • Erasable PROM Erasable PROM
  • EPROM erasable programmable read-only memory
  • Electrical EPROM Electrical EPROM
  • EEPROM electronically programmable Erase Programmable Read-Only Memory
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM , SLDRAM) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM Double Data Rate SDRAM
  • DDRSDRAM double data rate synchronous dynamic random access memory
  • Enhanced SDRAM, ESDRAM enhanced synchronous dynamic random access memory
  • Synch link DRAM , SLDRAM
  • Direct Memory Bus Random Access Memory Direct Rambus
  • the processor 1210 may include one or more processing units; optionally, the processor 1210 integrates an application processor and a modem processor, wherein the application processor mainly handles operations related to the operating system, user interface, and application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the foregoing modem processor may not be integrated into the processor 1210 .
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned image processing method embodiment is realized, and the same technology can be achieved. Effect, in order to avoid repetition, will not repeat them here.
  • the processor is the processor in the electronic device in the foregoing embodiments.
  • Readable storage media including computer-readable storage media
  • examples of computer-readable storage media include non-transitory computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks wait.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, 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 image processing method embodiments, and can achieve the same Technical effects, in order to avoid repetition, will not be repeated here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above image processing method embodiment, and can achieve the same technical effect , to avoid repetition, it will not be repeated here.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • 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 reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

一种图像处理方法、装置、设备和存储介质,属于图像处理技术领域。图像处理方法包括:接收对多张第一图像的第一输入(110),其中,第一输入用于指示在目标文档中***多张第一图像;响应于第一输入,获取每张第一图像中目标对象对应的第一尺寸(120);根据每张第一图像中目标对象对应的第一尺寸,确定每张第一图像在目标文档中的排版信息(130);根据排版信息和第二尺寸,调整第一图像的尺寸,其中,第二尺寸为目标文档的页面尺寸(140)。

Description

图像处理方法、装置、设备和存储介质
相关申请的交叉引用
本申请主张2021年11月29日在中国提交的中国专利申请号202111436523.7的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于图像处理技术领域,具体涉及一种图像处理方法、装置、设备和存储介质。
背景技术
随着移动互联网的蓬勃发展和电子设备的不断普及,通过电子设备进行文档编辑已经成为日常生活中用户的常规操作。
相关技术中,在编辑文档时,经常需要***很多图像,而在多张图像尺寸不完全一致的情况下,为了在文档中尽可能地将图像对齐,需要用户对多张图像的尺寸进行手动调整,操作难度较大,导致图像处理的效率较低。
发明内容
本申请实施例的目的是提供一种图像处理方法、装置、设备和存储介质,能够解决相关技术中手动调整图像尺寸操作难度较大,图像处理的效率较低的问题。
第一方面,本申请实施例提供了一种图像处理方法,该方法包括:接收对多张第一图像的第一输入,其中,第一输入用于指示在目标文档中***多张第一图像;响应于第一输入,获取每张第一图像中目标对象对应的第一尺寸;根据每张第一图像中目标对象对应的第一尺寸,确定每张第一图像在目标文档中的排版信息;根据排版信息和第二尺寸,调整第一图像的尺寸,其 中,第二尺寸为目标文档的页面尺寸。
第二方面,本申请实施例提供了一种图像处理装置,该装置包括:接收模块,用于接收对多张第一图像的第一输入,其中,第一输入用于指示在目标文档中***多张第一图像;获取模块,用于响应于第一输入,获取每张第一图像中目标对象对应的第一尺寸;确定模块,用于根据每张第一图像中目标对象对应的第一尺寸,确定每张第一图像在目标文档中的排版信息;处理模块,用于根据排版信息和第二尺寸,调整第一图像的尺寸,其中,第二尺寸为目标文档的页面尺寸。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面的图像处理方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,该可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如第一方面的图像处理方法的步骤。
第五方面,本申请实施例提供了一种芯片,该芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现如第一方面的图像处理方法的步骤。
第六方面,本申请实施例提供了一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的图像处理方法的步骤。
在本申请实施例中,当电子设备接收到用户在目标文档中***多张第一图像的第一输入时,响应于该第一输入,可以获取每张第一图像中目标对象对应的第一尺寸,并根据每张第一图像中目标对象对应的第一尺寸,确定多张第一图像在目标文档中的排版信息。基于此,电子设备可以根据该排版信息和目标文档的页面尺寸,调整第一图像的尺寸。这样,用户***多张图像后无需手动调整图像大小,电子设备可以根据多张图像的排版信息灵活调整图像尺寸,以在目标文档中对齐所有图像,降低用户操作难度,有效提升图 像处理效率。
附图说明
图1是本申请实施例提供的图像处理方法的流程示意图之一;
图2是本申请实施例提供的第一图像的示例的示意图之一;
图3是本申请实施例提供的第一图像的示例的示意图之二;
图4是本申请实施例提供的边缘检测模型的示例的结构示意图;
图5是本申请实施例提供的第一图像的图像处理流程的示意图;
图6是本申请实施例提供的排版样式的示例的示意图;
图7是本申请实施例提供的图像处理方法的流程示意图之二;
图8是本申请实施例提供的图像排版的示例的示意图;
图9是本申请实施例提供的图像处理方法的流程示意图之三;
图10是本申请实施例提供的一种图像处理装置的结构示意图;
图11是本申请实施例提供的一种电子设备的结构示意图;
图12是本申请实施例的一种电子设备的硬件结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此 外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
如背景技术,在编辑文档时,经常需要***很多图像,而在多张图像尺寸不完全一致的情况下,为了在文档中尽可能地将图像对齐,需要用户对多张图像的尺寸进行手动调整,操作难度较大,导致图像处理的效率较低。
针对相关技术中出现的问题,本申请实施例提供了一种图像处理方法,当电子设备接收到用户在目标文档中***多张第一图像的第一输入时,响应于该第一输入,可以获取每张第一图像中目标对象对应的第一尺寸,并根据每张第一图像中目标对象对应的第一尺寸,确定多张第一图像在目标文档中的排版信息。基于此,电子设备可以根据该排版信息和目标文档的页面尺寸,调整第一图像的尺寸。这样,用户***多张图像后无需手动调整图像大小,电子设备可以根据多张图像的排版信息灵活调整图像尺寸,以在目标文档中对齐所有图像,降低用户操作难度,有效提升图像处理效率,解决了相关技术中手动调整图像尺寸操作难度较大,图像处理的效率较低的问题。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的图像处理方法进行详细地说明。
图1是本申请实施例提供的一种图像处理方法的流程示意图,该图像处理方法的执行主体可以为电子设备。需要说明的是,上述执行主体并不构成对本申请的限定。
如图1所示,本申请实施例提供的图像处理方法可以包括步骤110-步骤140。
步骤110,接收对多张第一图像的第一输入。
其中,第一输入用于指示在目标文档中***多张第一图像,第一输入可以为用户选取多张第一图像,并在目标文档中***多张第一图像的点击输入、拖拽输入、长按输入、双击输入、滑动输入,或者至少两个上述输入的组合等,本申请在此不做具体限定。
示例性地,第一图像可以包括图像A、图像B和图像C,第一输入可以包括用户选取图像A-C的点击输入,以及将图像A-C移动至目标文档的拖拽输入。
步骤120,响应于第一输入,获取每张第一图像中目标对象对应的第一尺寸。
其中,目标对象可以为第一图像中的显著物,例如表格、曲线图、坐标图、文字、人、动物、汽车、美食、建筑物等,本申请在此不做具体限定。
第一尺寸可以为第一图像中目标对象对应的尺寸。
在一个示例中,如图2所示,第一图像可以为图像201,第一尺寸可以为图像201中目标对象“条形图”对应的边缘范围202的尺寸。
需要说明的是,在目标对象的边缘范围与第一图像的边缘范围重合的情况下,第一尺寸即为第一图像的尺寸。
例如,图3所示的图像301中包括目标对象“曲线图”,由于“曲线图”的边缘范围与图像301的边缘范围302重合,因此第一尺寸可以为图像301的尺寸,即边缘范围302的尺寸。
步骤130,根据每张第一图像中目标对象对应的第一尺寸,确定每张第一图像在目标文档中的排版信息。
步骤140,根据排版信息和第二尺寸,调整第一图像的尺寸。
其中,第二尺寸可以为目标文档的页面尺寸,例如A2,A3,A4等。
本申请实施例提供的图像处理方法,当电子设备接收到用户在目标文档中***多张第一图像的第一输入时,响应于该第一输入,可以获取每张第一图像中目标对象对应的第一尺寸,并根据每张第一图像中目标对象对应的第一尺寸,确定多张第一图像在目标文档中的排版信息。基于此,电子设备可以根据该排版信息和目标文档的页面尺寸,调整第一图像的尺寸。这样,用户***多张图像后无需手动调整图像大小,电子设备可以根据多张图像的排版信息灵活调整图像尺寸,以在目标文档中对齐所有图像,降低用户操作难度,有效提升图像处理效率。
下面结合具体的实施例,详细介绍上述步骤120-步骤140。
涉及步骤120,响应于第一输入,获取每张第一图像中目标对象对应的第一尺寸。
在本申请的一些实施例中,第一尺寸可以为目标对象对应的边缘框的尺寸,步骤120响应于第一输入,获取每张第一图像中目标对象的尺寸信息,可以具体包括:响应于第一输入,通过边缘检测模型对每张第一图像进行识别,得到每张第一图像中目标对象对应的边缘框的第一尺寸;对于每张第一图像,去除第一图像中边缘框之外的图像部分,得到第一尺寸的第一图像。
具体地,边缘检测模型可以包括特征提取模块和边缘检测模块。特征提取模块:用于通过卷积神经网络获取第一图像的高级特征,并计算每个特征维度的梯度损失。边缘检测模块:主要包括残差块、全连接层和softmax层,用于确定第一图像中目标对象的边缘框,输出边缘信息,该边缘信息可以包括边缘框的第一尺寸。
示例性地,图4为边缘检测模型的示例,如图4所示,边缘检测模型400可以包括特征提取模块401和边缘检测模块402。向边缘检测模型400输入第一图像403之后,可以得到图像201,其中,图像201中可以包括目标对象“条形图”的边缘框202,该边缘框202的尺寸即为第一尺寸。
对于每张第一图像,去除第一图像中边缘框之外的图像部分,得到第一尺寸的第一图像,可以包括:裁剪掉第一图像中边缘框之外的图像部分,得到第一尺寸的第一图像。
例如,如图5所示,对于图像201,可以将边缘框202之外的图像部分裁剪掉,得到第一尺寸的第一图像501。
在本申请实施例中,由于图像本身可能存在空白区域,例如一些图像的四周白边部分,对于这类图像,由于空白区域与图像内容无关,因此电子设备可以去除掉图像中的空白区域,减少无用区域,保证目标文档中所***图像的有效性。
涉及步骤130,根据每张第一图像中目标对象对应的第一尺寸,确定每张第一图像在目标文档中的排版信息。
在本申请的一些实施例中,排版信息可以包括排版方向,排版方向可以包括第一方向和第二方向,步骤130可以具体包括:在第一图像对应的第一比值小于第一预设阈值的情况下,确定第一图像的排版方向为第一方向;在第一图像对应的第一比值大于或等于第一预设阈值的情况下,确定第一图像的排版方向为第二方向;其中,第一比值为第一图像对应的第一高度值与第一宽度值的比值。
其中,第一尺寸可以包括第一宽度值和第一高度值,第一宽度值为第一图像中目标对象对应的边缘框的宽,第一高度值为该边缘框的高,第一比值可以为第一图像对应的第一高度值与第一宽度值的比值。第一预设阈值可以根据具体需求进行设置,本申请在此不做具体限定。
例如,第一预设阈值为0.6,图像A的第一尺寸(h,w)为(50,110),图像B的第一尺寸为(30,25),图像C的第一尺寸为(30,50),则图像A-C对应的第一比值分别为0.45、1.2、0.6。图像A的第一比值小于0.6,图像A的排版方向为第一方向,图像B的第一比值大于0.6,图像C的第一比值等于0.6,图像B和图像C的排版方向为第二方向。
在这里,第一方向可以与第二方向不同,第一方向与第二方向可以呈预设角度,该预设角度具体可以根据文档尺寸和/或需求进行设置。
例如,文档尺寸为A4,则第一方向可以与第二方向呈90度夹角,第一方向可以为纵向,第二方向可以为横向,这样可以将“细长”的第一图像横向排列,将“短宽”的第一图像纵向排列,实现合理排版。
示例性地,图6提供了在同一页面显示3张图像的四种排版样式(a)、(b)、(c)、(d),四种排版样式中的第一方向与第二方向可以呈90度夹角。
在本申请实施例中,在需要将多张第一图像***目标文档的场景下,可以通过将每张第一图像的高宽比与第一预设阈值进行比较,确定每张第一图 像的排版方向。具体地,在第一图像对应的高宽比小于第一预设阈值的情况下,说明第一图像比较“细长”,在第一图像的高宽比不小于第一预设阈值的情况下,说明第一图像比较“短宽”,对于两类形状不同的第一图像,可以分别确定每类形状适配的排版方向。基于两种完全不同的排版方向进行排版,可以在同一页面中尽量显示较多的图像,且排版比较整齐,能够提升所有图像在目标文档中的显示效果。
在本申请的一些实施例中,排版信息可以包括排版方向和排版位置,图7是本申请实施例提供的另一种图像处理方法的流程示意图,步骤130可以具体包括图7所示的步骤710和步骤720。
步骤710,根据每张第一图像对应的第一尺寸,确定每张第一图像对应的排版方向。
具体地,第一尺寸包括第一高度值和第一宽度值,排版信息包括排版方向,排版方向包括第一方向和第二方向,步骤710可以具体包括:在第一图像对应的第一比值小于第一预设阈值的情况下,确定第一图像的排版方向为第一方向;在第一图像对应的第一比值大于或等于第一预设阈值的情况下,确定第一图像的排版方向为第二方向;其中,第一比值为第一图像对应的第一高度值与第一宽度值的比值。
步骤720,根据每张第一图像对应的第一尺寸、排版方向、第一输入对应的图像***顺序和第二尺寸,确定每张第一图像在目标文档中的排版位置。
其中,第一输入对应的图像***顺序可以为,用户在目标文档中***多张第一图像时的***顺序,该***顺序即为所有第一图像在目标文档中的排版顺序;排版位置可以包括在目标文档中的显示位置。
在一个示例中,第二尺寸为(120,100),图像***顺序分别为图像A-图像E。电子设备在得到图像A-E对应的第一尺寸和排版方向之后,先确定目标文档的第一页能够显示的第一图像。例如,图像A-E对应的第一尺寸分别为(50,110),(30,25),(30,50),(80,40),(80,40),图像A-E对应的第一尺寸分别为纵向、横向、横向、横向、横向。由于图8所示的 页面801的尺寸为(120,100),因此页面801在显示图像A、B、C之后,剩余的高度值为120-50-30=40,而下一张图像D的高度值为80,因此页面801无法完全显示图像D,因此图像D和图像E可以横向排列在页面801的下一页802。
需要说明的是,由于电子设备可以确定每张显示页面中的第一图像,以及所有第一图像的排版顺序和排版方向,因此可以基于同一页面中所有第一图像的排版顺序和排版方向,确定每张第一图像在显示页面中的显示位置,即在目标文档中的显示位置。
在本申请实施例中,电子设备可以根据每张第一图像对应的第一尺寸,确定每张第一图像对应的排版方向,并根据每张第一图像对应的第一尺寸、排版方向、图像***顺序和第二尺寸,确定每张第一图像在目标文档中的显示位置。如此,当用户在目标文档中***多张图像时,电子设备可以基于每张图像中目标对象的尺寸信息,得到每张图像对应的适配排版方向,并基于该适配排版方向、图像排版顺序(即图像***顺序)和目标文档的页面尺寸,确定每张第一图像适配的排版位置,基于该排版位置实现自动合理化排版,在简化用户操作、提升排版效率的同时,避免用户手动排版导致图像无法对齐等问题,提升了图像排版的整齐度。
涉及步骤140,根据排版信息和第二尺寸,调整第一图像的尺寸。
在本申请的一些实施例中,为了提升排版后的图像显示效果,第二尺寸可以包括第二高度值和第二宽度值,图9是本申请实施例提供的再一种图像处理方法的流程示意图,步骤140可以具体包括图9所示的步骤910-步骤960。
步骤910,确定同一显示页面的多张第一图像中的第一目标图像和第二目标图像。
其中,第一目标图像基于第一方向排版,第二目标图像基于第二方向排版。
参照上述示例,在页面801显示的图像A-C中,图像A为第一目标图像,图像B和图像C为第二目标图像。
步骤920,根据同一显示页面中所有第一目标图像的第一高度值、第三目标图像的第一高度值和第二预设阈值,计算第一和值。
其中,第三目标图像可以为同一显示页面中每行第二目标图像中高度值最大的第二目标图像。第二预设阈值用于表征每行图像之间的间距,具体可以根据需求进行设置。
继续参照上述示例,第一目标图像为图像A,第二目标图像为图像B和图像C。由于页面801中仅有一张第一目标图像,因此第一和值可以为图像A的第一高度值50、第三目标图像的第一高度值和第二预设阈值5的和值。图像B和图像C的高度值相同,因此第一和值为50+30+5=85。
步骤930,基于第二高度值与第一和值的第二比值,调整同一显示页面中所有第一目标图像和第二目标图像的高度值。
具体地,电子设备可以将同一显示页面中所有第一目标图像和第二目标图像的高度值调整为目标高度,该目标高度可以为第一高度值与第二比值的乘积。
示例性地,第二尺寸为(120,100),第二比值为第二高度值120与第一和值85的比值1.4。以图像A为例,电子设备可以将图像A的高度值调整为第一高度值50与第二比值1.4的乘积70。
步骤940,根据同一显示页面中每行所有第二目标图像的第一宽度值和第三预设阈值,计算每行对应的第二和值。
其中,第三预设阈值用于表征每一列图像之间的间距,具体可以根据需求进行设置。第三预设阈值可以与第二预设阈值相同,也可以不同。
继续参照上述示例,页面801中的第二目标图像可以包括图像B和图像C,则第二和值为图像B的第一宽度值25、图像C的第一宽度值50和第三预设阈值5的和值80。
步骤950,基于第二宽度值与每行对应的第二和值的第三比值,调整同一显示页面中每行所有第二目标图像的宽度值。
具体地,对于同一显示页面中的每行第二目标图像,均可以计算得到一 个第二和值,基于每个第二和值,均可以得到一个第三比值,即每行第二目标对象可以对应一个第三比值,每行第二目标对象均可以基于对应的第三比值进行宽度调整,具体可以调整为第一宽度值与第三比值的乘积。
示例性地,第二尺寸为(120,100),第三比值为第二宽度值100与第三和值80的比值1.25。以图像B为例,电子设备可以将图像B的高度值调整为第一宽度值25与第三比值1.25的乘积31。
步骤960,基于每张第一目标图像对应的第四比值,调整第一目标图像的宽度值。
其中,第四比值可以为第一目标图像的第一宽度值与第二宽度值的比值。
在本申请实施例中,电子设备确定多张第一图像的排版信息之后,为了提升排版后的图像显示效果,可以对所有第一图像的尺寸大小进行调整,通过尺寸调整,尽可能地将同一显示页面中所有第一图像对齐,提升图像显示的整齐度和美观度。同时,无需用户手动调整图像大小,简化用户操作步骤,提升用户体验。
在本申请的一些实施例中,在步骤960之后,该方法还可以包括:在目标文档中显示调整后的第一目标图像和第二目标图像,其中,第一目标图像和第二目标图像在目标文档中基于排版信息进行排版。
在本申请实施例中,用户***多张图像后无需进行手动排版,多张图像可以在目标文档中基于排版信息自动排版,电子设备可以直接显示图像排版后的目标文档,避免用户通过肉眼对多张图像手动排版时图像排版的效率较低,降低用户操作难度,有效提升图像排版效率。
需要说明的是,本申请实施例提供的图像处理方法,执行主体可以为图像处理装置,或者该图像处理装置中的用于执行图像处理的方法的控制模块。本申请实施例中以图像处理装置执行图像处理的方法为例,说明本申请实施例提供的图像处理装置。下面对图像处理装置进行详细介绍。
图10是本申请提供的一种图像处理装置的结构示意图。
如图10所示,本申请实施例提供一种图像处理装置1000,该图像处理装置1000包括:接收模块1010、获取模块1020、确定模块1030和处理模块1040。
其中,接收模块1010,用于接收对多张第一图像的第一输入,其中,第一输入用于在目标文档中***多张第一图像;获取模块1020,用于响应于第一输入,获取每张第一图像中目标对象对应的第一尺寸;确定模块1030,用于根据每张第一图像中目标对象对应的第一尺寸,确定每张第一图像在目标文档中的排版信息;处理模块1040,用于根据排版信息和第二尺寸,调整第一图像的尺寸,其中,第二尺寸为目标文档的页面尺寸。
本申请实施例提供的图像处理装置,当电子设备接收到用户在目标文档中***多张第一图像的第一输入时,响应于该第一输入,可以获取每张第一图像中目标对象对应的第一尺寸,并根据每张第一图像中目标对象对应的第一尺寸,确定多张第一图像在目标文档中的排版信息。基于此,电子设备可以根据该排版信息和目标文档的页面尺寸,调整第一图像的尺寸。这样,用户***多张图像后无需手动调整图像大小,电子设备可以根据多张图像的排版信息灵活调整图像尺寸,以在目标文档中对齐所有图像,降低用户操作难度,有效提升图像处理效率。
在本申请的一些实施例中,第一尺寸为目标对象对应的边缘框的尺寸,获取模块1020包括:识别单元,用于响应于第一输入,通过边缘检测模型对每张第一图像进行识别,得到每张第一图像中目标对象对应的边缘框的第一尺寸;去除单元,用于对于每张第一图像,去除第一图像中边缘框之外的图像部分,得到第一尺寸的第一图像。
在本申请的一些实施例中,第一尺寸包括第一高度值和第一宽度值,排版信息包括排版方向,排版方向包括第一方向和第二方向,确定模块1030具体用于:在第一图像对应的第一比值小于第一预设阈值的情况下,确定第一图像的排版方向为第一方向;在第一图像对应的第一比值大于或等于第一预设阈值的情况下,确定第一图像的排版方向为第二方向;其中,第一比值为 第一图像对应的第一高度值与第一宽度值的比值。
在本申请的一些实施例中,排版信息包括排版方向和排版位置,确定模块1030具体用于:根据每张第一图像对应的第一尺寸,确定每张第一图像对应的排版方向;根据每张第一图像对应的第一尺寸、排版方向、第一输入对应的图像***顺序和第二尺寸,确定每张第一图像在目标文档中的排版位置,排版位置包括在目标文档中的显示位置。
在本申请的一些实施例中,第二尺寸包括第二高度值和第二宽度值,处理模块1040包括:确定单元,用于确定同一显示页面的多张第一图像中的第一目标图像和第二目标图像,其中,第一目标图像基于第一方向排版,第二目标图像基于第二方向排版;计算单元,用于根据同一显示页面中所有第一目标图像的第一高度值、第三目标图像的第一高度值和第二预设阈值,计算第一和值,其中,第三目标图像为同一显示页面中每行第二目标图像中高度值最大的第二目标图像;调整单元,用于基于第二高度值与第一和值的第二比值,调整同一显示页面中所有第一目标图像和第二目标图像的高度值;计算单元,还用于根据同一显示页面中每行所有第二目标图像的第一宽度值和第三预设阈值,计算每行对应的第二和值;调整单元,还用于基于第二宽度值与每行对应的第二和值的第三比值,调整同一显示页面中每行所有第二目标图像的宽度值;调整单元,还用于基于每张第一目标图像对应的第四比值,调整第一目标图像的宽度值,其中,第四比值为第一目标图像的第一宽度值与第二宽度值的比值。
在本申请的一些实施例中,该装置还包括:显示模块,用于在目标文档中显示调整后的第一目标图像和第二目标图像,其中,第一目标图像和第二目标图像在目标文档中基于排版信息进行排版。
本申请实施例提供的图像处理装置能够实现图1-图9的方法实施例中电子设备所实现的各个过程,为避免重复,这里不再赘述。
本申请实施例中的图像处理装置可以是电子设备,也可以是电子设备中的部件、集成电路、或芯片。该电子设备可以是终端,也可以为除终端之外 的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(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操作***,还可以为其他可能的操作***,本申请实施例不作具体限定。
可选地,如图11所示,本申请实施例还提供一种电子设备1100,包括处理器1101,存储器1102,存储在存储器1102上并可在处理器1101上运行的程序或指令,该程序或指令被处理器1101执行时实现上述图像处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要注意的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。
图12为本申请实施例的一种电子设备的硬件结构示意图。
该电子设备1200包括但不限于:射频单元1201、网络模块1202、音频输出单元1203、输入单元1204、传感器1205、显示单元1206、用户输入单元1207、接口单元1208、存储器1209、以及处理器1210等部件。
本领域技术人员可以理解,电子设备1200还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理***与处理器1210逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。图12中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,用户输入单元1207,用于接收对多张第一图像的第一输入,其中, 第一输入用于在目标文档中***多张第一图像;处理器1210,用于响应于第一输入,获取每张第一图像中目标对象对应的第一尺寸;处理器1210,用于根据每张第一图像中目标对象对应的第一尺寸,确定每张第一图像在目标文档中的排版信息;处理器1210,还用于根据排版信息和第二尺寸,调整第一图像的尺寸,其中,第二尺寸为目标文档的页面尺寸。
在本申请实施例中,当电子设备接收到用户在目标文档中***多张第一图像的第一输入时,响应于该第一输入,可以获取每张第一图像中目标对象对应的第一尺寸,并根据每张第一图像中目标对象对应的第一尺寸,确定多张第一图像在目标文档中的排版信息。基于此,电子设备可以根据该排版信息和目标文档的页面尺寸,调整第一图像的尺寸。这样,用户***多张图像后无需手动调整图像大小,电子设备可以根据多张图像的排版信息灵活调整图像尺寸,以在目标文档中对齐所有图像,降低用户操作难度,有效提升图像处理效率。
在本申请的一些实施例中,第一尺寸为目标对象对应的边缘框的尺寸,处理器1210具体用于:响应于第一输入,通过边缘检测模型对每张第一图像进行识别,得到每张第一图像中目标对象对应的边缘框的第一尺寸;对于每张第一图像,去除第一图像中边缘框之外的图像部分,得到第一尺寸的第一图像。
在本申请的一些实施例中,第一尺寸包括第一高度值和第一宽度值,排版信息包括排版方向,排版方向包括第一方向和第二方向,处理器1210具体用于:在第一图像对应的第一比值小于第一预设阈值的情况下,确定第一图像的排版方向为第一方向;在第一图像对应的第一比值大于或等于第一预设阈值的情况下,确定第一图像的排版方向为第二方向;其中,第一比值为第一图像对应的第一高度值与第一宽度值的比值。
在本申请的一些实施例中,排版信息包括排版方向和排版位置,处理器1210具体用于:根据每张第一图像对应的第一尺寸,确定每张第一图像对应的排版方向;根据每张第一图像对应的第一尺寸、排版方向、第一输入对应 的图像***顺序和第二尺寸,确定每张第一图像在目标文档中的排版位置,排版位置包括在目标文档中的显示位置。
在本申请的一些实施例中,第二尺寸包括第二高度值和第二宽度值,排版方向包括第一方向和第二方向,处理器1210具体用于:确定同一显示页面的多张第一图像中的第一目标图像和第二目标图像,其中,第一目标图像基于第一方向排版,第二目标图像基于第二方向排版;根据同一显示页面中所有第一目标图像的第一高度值、第三目标图像的第一高度值和第二预设阈值,计算第一和值,其中,第三目标图像为同一显示页面中每行第二目标图像中高度值最大的第二目标图像;基于第二高度值与第一和值的第二比值,调整同一显示页面中所有第一目标图像和第二目标图像的高度值;根据同一显示页面中每行所有第二目标图像的第一宽度值和第三预设阈值,计算每行对应的第二和值;基于第二宽度值与每行对应的第二和值的第三比值,调整同一显示页面中每行所有第二目标图像的宽度值;基于每张第一目标图像对应的第四比值,调整第一目标图像的宽度值,其中,第四比值为第一目标图像的第一宽度值与第二宽度值的比值。
在本申请的一些实施例中,显示单元1206,用于在目标文档中显示调整后的第一目标图像和第二目标图像,其中,第一目标图像和第二目标图像在目标文档中基于排版信息进行排版。
应理解的是,本申请实施例中,输入单元1204可以包括图形处理器(Graphics Processing Unit,GPU)12041和麦克风12042,图形处理器12041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1206可包括显示面板12061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板12061。用户输入单元1207包括触控面板12071以及其他输入设备12072中的至少一种。触控面板12071,也称为触摸屏。触控面板12071可包括触摸检测装置和触摸控制器两个部分。其他输入设备12072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
存储器1209可用于存储软件程序以及各种数据。存储器1209可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作***、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1209可以包括易失性存储器或非易失性存储器,或者,存储器1209可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(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)。本申请实施例中的存储器1209包括但不限于这些和任意其它适合类型的存储器。
处理器1210可包括一个或多个处理单元;可选地,处理器1210集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作***、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1210中。
本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述图像处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质,包括计算机可读存储介质,计算机可读存储介质的示例包括非暂态计算机可读存储介质,如计算机只读存储器(ROM)、随机存取存储器(RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述图像处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为***级芯片、***芯片、芯片***或片上***芯片等。
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述图像处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上 述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (17)

  1. 一种图像处理方法,包括:
    接收对多张第一图像的第一输入,其中,所述第一输入用于指示在目标文档中***所述多张第一图像;
    响应于所述第一输入,获取每张第一图像中目标对象对应的第一尺寸;
    根据所述每张第一图像中目标对象对应的第一尺寸,确定所述每张第一图像在所述目标文档中的排版信息;
    根据所述排版信息和第二尺寸,调整所述第一图像的尺寸,其中,所述第二尺寸为所述目标文档的页面尺寸。
  2. 根据权利要求1所述的方法,其中,所述第一尺寸为所述目标对象对应的边缘框的尺寸,所述响应于所述第一输入,获取每张第一图像中目标对象的尺寸信息,包括:
    响应于所述第一输入,通过边缘检测模型对每张第一图像进行识别,得到每张第一图像中目标对象对应的边缘框的第一尺寸;
    对于所述每张第一图像,去除所述第一图像中边缘框之外的图像部分,得到第一尺寸的第一图像。
  3. 根据权利要求1所述的方法,其中,所述第一尺寸包括第一高度值和第一宽度值,所述排版信息包括排版方向,所述排版方向包括第一方向和第二方向,所述根据所述每张第一图像中目标对象对应的第一尺寸,确定所述每张第一图像在所述目标文档中的排版信息,包括:
    在所述第一图像对应的第一比值小于第一预设阈值的情况下,确定所述第一图像的排版方向为所述第一方向;
    在所述第一图像对应的第一比值大于或等于所述第一预设阈值的情况下,确定所述第一图像的排版方向为所述第二方向;
    其中,所述第一比值为所述第一图像对应的第一高度值与第一宽度值的比值。
  4. 根据权利要求1所述的方法,其中,所述排版信息包括排版方向和排版 位置,所述根据所述每张第一图像中目标对象对应的第一尺寸,确定所述每张第一图像在所述目标文档中的排版信息,包括:
    根据所述每张第一图像对应的第一尺寸,确定每张第一图像对应的排版方向;
    根据每张第一图像对应的第一尺寸、排版方向、所述第一输入对应的图像***顺序和所述第二尺寸,确定所述每张第一图像在所述目标文档中的排版位置,所述排版位置包括在所述目标文档中的显示位置。
  5. 根据权利要求1所述的方法,其中,所述第二尺寸包括第二高度值和第二宽度值,所述根据所述排版信息和第二尺寸,调整所述第一图像的尺寸,包括:
    确定同一显示页面的多张第一图像中的第一目标图像和第二目标图像,其中,所述第一目标图像基于第一方向排版,所述第二目标图像基于第二方向排版;
    根据同一显示页面中所有第一目标图像的第一高度值、第三目标图像的第一高度值和第二预设阈值,计算第一和值,其中,所述第三目标图像为所述同一显示页面中每行第二目标图像中高度值最大的第二目标图像;
    基于所述第二高度值与所述第一和值的第二比值,调整所述同一显示页面中所有第一目标图像和第二目标图像的高度值;
    根据同一显示页面中每行所有第二目标图像的第一宽度值和第三预设阈值,计算每行对应的第二和值;
    基于所述第二宽度值与所述每行对应的第二和值的第三比值,调整所述同一显示页面中每行所有第二目标图像的宽度值;
    基于每张第一目标图像对应的第四比值,调整所述第一目标图像的宽度值,其中,所述第四比值为所述第一目标图像的第一宽度值与所述第二宽度值的比值。
  6. 根据权利要求5所述的方法,所述方法还包括:
    在所述目标文档中显示调整后的第一目标图像和第二目标图像,其中, 所述第一目标图像和第二目标图像在所述目标文档中基于所述排版信息进行排版。
  7. 一种图像处理装置,包括:
    接收模块,用于接收对多张第一图像的第一输入,其中,所述第一输入用于指示在目标文档中***所述多张第一图像;
    获取模块,用于响应于所述第一输入,获取每张第一图像中目标对象对应的第一尺寸;
    确定模块,用于根据所述每张第一图像中目标对象对应的第一尺寸,确定所述每张第一图像在所述目标文档中的排版信息;
    处理模块,用于根据所述排版信息和第二尺寸,调整所述第一图像的尺寸,其中,所述第二尺寸为所述目标文档的页面尺寸。
  8. 根据权利要求7所述的装置,其中,所述第一尺寸为所述目标对象对应的边缘框的尺寸,所述获取模块包括:
    识别单元,用于响应于所述第一输入,通过边缘检测模型对每张第一图像进行识别,得到每张第一图像中目标对象对应的边缘框的第一尺寸;
    去除单元,用于对于所述每张第一图像,去除所述第一图像中边缘框之外的图像部分,得到第一尺寸的第一图像。
  9. 根据权利要求7所述的装置,其中,所述第一尺寸包括第一高度值和第一宽度值,所述排版信息包括排版方向,所述排版方向包括第一方向和第二方向,所述确定模块具体用于:
    在所述第一图像对应的第一比值小于第一预设阈值的情况下,确定所述第一图像的排版方向为所述第一方向;
    在所述第一图像对应的第一比值大于或等于所述第一预设阈值的情况下,确定所述第一图像的排版方向为所述第二方向;
    其中,所述第一比值为所述第一图像对应的第一高度值与第一宽度值的比值。
  10. 根据权利要求7所述的装置,其中,所述排版信息包括排版方向和排 版位置,所述确定模块具体用于:
    根据所述每张第一图像对应的第一尺寸,确定每张第一图像对应的排版方向;
    根据每张第一图像对应的第一尺寸、排版方向、所述第一输入对应的图像***顺序和所述第二尺寸,确定所述每张第一图像在所述目标文档中的排版位置,所述排版位置包括在所述目标文档中的显示位置。
  11. 根据权利要求7所述的装置,其中,所述第二尺寸包括第二高度值和第二宽度值,所述处理模块包括:
    确定单元,用于确定同一显示页面的多张第一图像中的第一目标图像和第二目标图像,其中,所述第一目标图像基于第一方向排版,所述第二目标图像基于第二方向排版;
    计算单元,用于根据同一显示页面中所有第一目标图像的第一高度值、第三目标图像的第一高度值和第二预设阈值,计算第一和值,其中,所述第三目标图像为所述同一显示页面中每行第二目标图像中高度值最大的第二目标图像;
    调整单元,用于基于所述第二高度值与所述第一和值的第二比值,调整所述同一显示页面中所有第一目标图像和第二目标图像的高度值;
    所述计算单元,还用于根据同一显示页面中每行所有第二目标图像的第一宽度值和第三预设阈值,计算每行对应的第二和值;
    所述调整单元,还用于基于所述第二宽度值与所述每行对应的第二和值的第三比值,调整所述同一显示页面中每行所有第二目标图像的宽度值;
    所述调整单元,还用于基于每张第一目标图像对应的第四比值,调整所述第一目标图像的宽度值,其中,所述第四比值为所述第一目标图像的第一宽度值与所述第二宽度值的比值。
  12. 根据权利要求11所述的装置,所述装置还包括:
    显示模块,用于在所述目标文档中显示调整后的第一目标图像和第二目标图像,其中,所述第一目标图像和第二目标图像在所述目标文档中基于所 述排版信息进行排版。
  13. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-6任一项所述的图像处理方法的步骤。
  14. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-6任一项所述的图像处理方法的步骤。
  15. 一种计算机程序产品,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1-6任一项所述的图像处理方法的步骤。
  16. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-6任一项所述的图像处理方法的步骤。
  17. 一种电子设备,用于执行如权利要求1-6任一项所述的图像处理方法的步骤。
PCT/CN2022/133375 2021-11-29 2022-11-22 图像处理方法、装置、设备和存储介质 WO2023093694A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111436523.7 2021-11-29
CN202111436523.7A CN114118029A (zh) 2021-11-29 2021-11-29 图像处理方法、装置、设备和存储介质

Publications (1)

Publication Number Publication Date
WO2023093694A1 true WO2023093694A1 (zh) 2023-06-01

Family

ID=80367746

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/133375 WO2023093694A1 (zh) 2021-11-29 2022-11-22 图像处理方法、装置、设备和存储介质

Country Status (2)

Country Link
CN (1) CN114118029A (zh)
WO (1) WO2023093694A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114118029A (zh) * 2021-11-29 2022-03-01 维沃移动通信有限公司 图像处理方法、装置、设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105701082A (zh) * 2016-01-13 2016-06-22 刘敏 演示文档的自动排版方法及***
CN106920141A (zh) * 2015-12-28 2017-07-04 阿里巴巴集团控股有限公司 页面展示内容处理方法及装置
US20180150433A1 (en) * 2016-11-28 2018-05-31 Google Inc. Image grid with selectively prominent images
CN112667835A (zh) * 2020-12-23 2021-04-16 北京达佳互联信息技术有限公司 作品处理方法、装置、电子设备及存储介质
CN114118029A (zh) * 2021-11-29 2022-03-01 维沃移动通信有限公司 图像处理方法、装置、设备和存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106920141A (zh) * 2015-12-28 2017-07-04 阿里巴巴集团控股有限公司 页面展示内容处理方法及装置
CN105701082A (zh) * 2016-01-13 2016-06-22 刘敏 演示文档的自动排版方法及***
US20180150433A1 (en) * 2016-11-28 2018-05-31 Google Inc. Image grid with selectively prominent images
CN112667835A (zh) * 2020-12-23 2021-04-16 北京达佳互联信息技术有限公司 作品处理方法、装置、电子设备及存储介质
CN114118029A (zh) * 2021-11-29 2022-03-01 维沃移动通信有限公司 图像处理方法、装置、设备和存储介质

Also Published As

Publication number Publication date
CN114118029A (zh) 2022-03-01

Similar Documents

Publication Publication Date Title
US10074217B2 (en) Position identification method and system
US10698597B2 (en) Reflow of handwriting content
US8907984B2 (en) Generating slideshows using facial detection information
EP3547218B1 (en) File processing device and method, and graphical user interface
WO2016041425A1 (zh) 输入法虚拟键盘的调整方法和输入法装置
WO2019154197A1 (zh) 电子书手写笔记的显示方法、计算设备及计算机存储介质
CN108898082B (zh) 图片处理方法、图片处理装置及终端设备
WO2022007934A1 (zh) 应用图标控制方法、装置及电子设备
CN108509142B (zh) 一种书写软件交互方法、装置、终端设备及存储介质
WO2017032078A1 (zh) 一种界面控制方法及移动终端
EP4318204A1 (en) Image processing method and apparatus, and device and storage medium
WO2017206248A1 (zh) 一种信息输入方法和装置
WO2023093694A1 (zh) 图像处理方法、装置、设备和存储介质
WO2021233291A1 (zh) 截屏方法、装置和电子设备
WO2022166893A1 (zh) 信息显示方法、装置、电子设备和存储介质
CN112269522A (zh) 图像处理方法、装置、电子设备和可读存储介质
US11770603B2 (en) Image display method having visual effect of increasing size of target image, mobile terminal, and computer-readable storage medium
WO2023241612A1 (zh) 文件选择方法、装置、电子设备及可读存储介质
WO2023045922A1 (zh) 信息输入方法、装置
WO2023216976A1 (zh) 显示方法、装置、电子设备及存储介质
CN106354381B (zh) 图像文件的处理方法及装置
WO2023160453A1 (zh) 显示控制方法、装置、电子设备及存储介质
WO2022143337A1 (zh) 显示控制方法、装置、电子设备和存储介质
US20170017370A1 (en) Device and method for processing data
CN111638844A (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: 22897777

Country of ref document: EP

Kind code of ref document: A1