CN113296661B - Image processing method, device, electronic equipment and readable storage medium - Google Patents

Image processing method, device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113296661B
CN113296661B CN202110293020.2A CN202110293020A CN113296661B CN 113296661 B CN113296661 B CN 113296661B CN 202110293020 A CN202110293020 A CN 202110293020A CN 113296661 B CN113296661 B CN 113296661B
Authority
CN
China
Prior art keywords
image
content
displayed
target
screen
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202110293020.2A
Other languages
Chinese (zh)
Other versions
CN113296661A (en
Inventor
陈晓玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110293020.2A priority Critical patent/CN113296661B/en
Publication of CN113296661A publication Critical patent/CN113296661A/en
Priority to PCT/CN2022/081208 priority patent/WO2022194211A1/en
Application granted granted Critical
Publication of CN113296661B publication Critical patent/CN113296661B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The application discloses an image processing method, an image processing device, electronic equipment and a readable storage medium, belongs to the technical field of communication, and can solve the problems of complex operation and inconvenience when long screenshot is browsed. The method comprises the following steps: receiving a first input of a target area in a first image under the condition that the first image is displayed, wherein a third image corresponding to the target area is a part of images in the first image and comprises target content in the target area; displaying a second image in response to the first input; wherein the second image includes target content; in the case of displaying the second image, the target content in the second image does not exceed the display range of the screen. The embodiment of the application is applied to the scene of browsing the long screenshot on the electronic equipment by the user.

Description

Image processing method, device, electronic equipment and readable storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to an image processing method, an image processing device, electronic equipment and a readable storage medium.
Background
With the development of electronic device technology, users use electronic devices more frequently, and when the users want to save the display content on the current screen, the users can use the screenshot function of the electronic devices.
In the related art, a user can save content displayed on a screen through a screenshot function of an electronic device. Meanwhile, the user can realize the interception operation of more contents of a larger page in one screenshot operation through the long screenshot function.
However, when a user browses a long shot with a large content, many contents in the long shot cannot be completely displayed on the screen due to the limitation of the display range of the screen. If the user wants to browse more contents, a plurality of panning operations are usually required, and the operation process is complicated.
Disclosure of Invention
The embodiment of the application aims to provide an image processing method, an image processing device, electronic equipment and a readable storage medium, which can solve the problems of complex operation and inconvenience when long screenshot is browsed.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides an image processing method, including: receiving a first input of a target area in a first image under the condition that the first image is displayed, wherein a third image corresponding to the target area is a part of images in the first image and comprises target content in the target area; displaying a second image in response to the first input; wherein the second image includes target content; in the case of displaying the second image, the target content in the second image does not exceed the display range of the screen.
In a second aspect, an embodiment of the present application further provides an image processing apparatus, including: a receiving module and a display module; the receiving module is used for receiving a first input of a target area in the first image under the condition that the first image is displayed, wherein a third image corresponding to the target area is a part of images in the first image and comprises target contents in the target area; a display module for displaying a second image in response to the first input received by the receiving module; wherein the second image includes target content; in the case of displaying the second image, the target content in the second image does not exceed the display range of the screen.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions implementing the steps of the image processing method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In the embodiment of the application, if the first input of the user to the target area is received while the first image is displayed, the second image including the image content of the target area in the first image is displayed, so that the electronic device can completely display the content of the target area in the first image.
Drawings
FIG. 1 is a schematic diagram of a long screenshot provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of an interface to which an image processing method according to an embodiment of the present application is applied;
FIG. 3 is a schematic flow chart of an image processing method according to an embodiment of the present application;
FIG. 4 is a second schematic diagram of an interface to which an image processing method according to an embodiment of the present application is applied;
FIG. 5 is a third schematic diagram of an interface to which an image processing method according to an embodiment of the present application is applied;
FIG. 6 is a schematic diagram of an image processing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The image processing method provided by the embodiment of the application can be applied to a scene of browsing long screenshot on the electronic equipment by a user.
For example, in the related art, as shown in fig. 1, a long screenshot is shown for a scene where a user browses a long screenshot on an electronic device, and when the user browses the long screenshot on the electronic device, the electronic device typically displays the long screenshot in a display manner shown in (a) in fig. 2. In this display manner, the long screenshot content is typically zoomed, and if the user wants to see the content in the long screenshot, the area to be viewed needs to be enlarged by double-click input or double-finger sliding input, so that the electronic device can display the image in the display manner shown in fig. 2 (B). Meanwhile, for long screenshot containing table contents, after an image is enlarged, the contents in the same row or column cannot be completely displayed on the screen due to the limitation of the size of the screen, and a user is required to browse the undisplayed contents in a sliding mode, so that the operation is complicated.
Aiming at the problem, in the technical scheme provided by the embodiment of the application, under the condition of displaying the long screenshot, the electronic equipment can cut and enlarge the content of the target area through the first input of the user to the target area, so that the user can conveniently check the content. Meanwhile, if the cut and enlarged image has the content of which the part is not displayed, the electronic equipment can divide the image and rearrange the divided image, so that a user can clearly browse all the content in the target area.
The image processing method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
As shown in fig. 3, an image processing method provided in an embodiment of the present application may include the following steps 201 and 202:
in step 201, in the case of displaying a first image, the image processing apparatus receives a first input to a target area in the first image.
The third image corresponding to the target area is a part of the images in the first image, and the third image comprises target content in the target area.
The first image may be a long screenshot taken by the user, a long screenshot sent by other electronic devices, or a long graph in a web page or application browsed by the user. When the user browses the first image on the electronic device, the electronic device may display the first image in a display manner as shown in (a) of fig. 2.
It can be appreciated that the first image may also be a picture that may be displayed entirely on the screen.
The third image may be understood as an intermediate image of the image processing apparatus during the generation of the second image, and the image processing apparatus may first acquire the third image of the target area of the first image and obtain the second image after processing the third image.
For example, the first input may be an input to the target area, for example, the first input may be a circling operation to the target area. Specifically, the image corresponding to the circled partial region is a third image, and the target region is an area which the user wants to view in the first image. The target area may be an area of a preset size, or may be an area determined by the user through the first input or other input.
In one possible implementation, the first input may include a first sub-input and a second sub-input. The target area may be determined by displaying a selection frame of a preset size after the image processing apparatus receives the first sub-input from the user, and then adjusting the size and the position of the selection frame by the user through the second sub-input.
For example, as shown in fig. 4 (a), after the image processing apparatus receives a pressing input (i.e., the first sub-input described above) from the user, a selection frame 41 may be displayed, and the user may adjust the selection range of the selection frame. Then, as shown in fig. 4 (B), the image processing apparatus displays a third image corresponding to the selection frame, the third image including the content in the selection frame.
Step 202, the image processing device responds to the first input to display a second image.
Wherein the second image includes content in the target area, and in the case of displaying the second image, the content in the target area in the second image does not exceed the display range of the screen.
For example, the image processing apparatus may perform the target operation after responding to the first input described above, thereby generating the second image.
The above-described target operation may be, for example, a cropping operation of the first image by the image processing apparatus, and/or a zooming (reduction-enlargement) operation. Further, the above-described target operation may further include a segmentation operation of the third image by the image processing apparatus, and, after the segmentation operation, the above-described target operation may further include a stitching operation of the segmented image.
The second image may be an image obtained by clipping and/or scaling a third image by the image processing device, or may be an image obtained by splitting and re-stitching the third image by the image processing device.
The image processing apparatus generates the second image after performing the target operation on the third image, and in the case of displaying the second image, can completely display the target content of the target area described above.
In this way, when the first image is displayed, if the first input of the user to the target area is received, the second image including the content in the target area is displayed, and when the second image is displayed, the content in the target area in the second image does not exceed the display range of the screen, so that the electronic device can completely display the content in the target area in the first image, and the user can clearly browse the content which is wanted to be browsed in the long screenshot on the electronic device without executing other operations.
Alternatively, in order for the image processing apparatus to display the above-described second image without exceeding the display range of the screen, the image processing apparatus may display the above-described second image in a preset display manner.
The image processing method provided by the embodiment of the present application may further include the following step 202a:
in step 202a, the image processing apparatus adjusts the third image to be displayed in the first size, and if the target content in the third image displayed in the first size does not exceed the display range of the screen, determines the adjusted third image as the second image.
The character size of the text content in the second image is greater than or equal to the target character size, and the target character size is the size of the smallest character displayed by the operating system.
It can be understood that, in the case that the target content includes text content, in order to facilitate browsing by the user, the image processing apparatus may adaptively adjust the cropped image (i.e., the third image) to adjust the display size of the third image, so that the size of the text characters in the third image is convenient for the user to browse.
Specifically, the image processing apparatus may determine an acceptable character size during daily use of the user by recording the usage habit of the user, for example, by setting a system font, or setting a web page zoom. The minimum font that the electronic device system can take can also be determined by acquiring it, i.e. the minimum character size that the user can receive is the target character size.
And adjusting the third image to be displayed in the first size, wherein the character size of the text content in the third image is larger than or equal to the character size receivable by the user, namely, the character size of the text content in the third image is larger than or equal to the target character size.
If the target content in the third image after the display size is adjusted does not exceed the display range of the screen, the adjusted third image can be determined as the second image. That is, the character size of the text content in the second image is equal to or larger than the target character size.
It can be understood that, in general, when the electronic device zooms in and out the image, whether the zoomed image affects the browsing of the user is not considered, but the image processing method provided in the embodiment of the application always keeps the character size of the text content in the image larger than or equal to the character size set when the user daily uses the electronic device when zooms in and out the image.
In this way, the size of the third image is adjusted, so that the third image containing text content can be conveniently browsed by a user without the need of amplifying operation by the user, and the browsing efficiency of the user is improved.
In one possible implementation manner, if the first content in the third image displayed by the image processing device in the first size exceeds the display range of the screen, the image processing device may segment the third image displayed in the first size, re-stitch the segmented image, and determine the re-stitched image as the second image.
The third image is not a final displayed image, but is adjusted, and the obtained second image is a final displayed image of the image processing device.
In this embodiment, for some long/wide shots, for example, table contents, it is not usual that the contents in a row or a column of the table cannot be displayed completely even by cutting out the image, and at this time, the image processing apparatus may segment the long shot and re-stitch the segmented image.
Illustratively, before the step 202, the image processing method provided by the embodiment of the present application may further include the following step 202b:
in step 202b, if the first content in the third image exceeds the display range of the screen, the image processing device segments the third image, and re-splices the segmented image, and determines the re-spliced image as the second image.
The target content comprises first content, the segmented image comprises a first sub-image and a second sub-image, and the second sub-image comprises the first content.
Optionally, after the user selects and determines the target area, after the image processing device performs operations such as clipping, zooming (zooming out) and the like, a part of the third image corresponding to the target area still has a content exceeding the display range of the screen, so that the image processing device may clip and split the first content exceeding the display range of the screen, and obtain the second image in a mode of re-stitching, so that the first content can be displayed in the display range of the screen when the image processing device displays the second image.
As described in the above example, after the third image is adjusted to be displayed in the first size, if the first content in the third image exceeds the display range of the screen, that is, the third image displayed in the first size cannot display all the content, the third image is cut and divided, and the second image is obtained by means of re-stitching, so that all the content (target content) in the re-stitched second image can be displayed in the screen.
Specifically, the image processing apparatus divides the third image into a first sub-image and a second sub-image, the second sub-image including the first content, and the first sub-image including the second content other than the first content in the target content.
The image processing apparatus is capable of displaying all contents in the second image entirely, for example, when displaying the second image obtained after performing the target operation. And, the character size of the content contained in the second image is greater than or equal to the target character size. That is, the first sub-image and the second sub-image may be adaptively resized, and the character sizes in the first sub-image and the second sub-image are greater than or equal to the target character size.
The image processing apparatus, when dividing the third image, divides the third image according to the principle of the minimum display unit. Taking the content in the third image as a table as an example, when the third image includes the table content, the image processing apparatus does not divide the content in the same cell into two sub-images when dividing the third image, and at this time, the minimum display unit of the third image is one cell.
For example, in the case where the third image is an image including table contents as shown in fig. 5 (a), the user wants to view names of all developers (i.e., contents in the area 51), the image processing apparatus cannot completely display the contents in the area 51, and at this time, the image processing apparatus may perform image segmentation on the third image and stitch the third image into an image as shown in fig. 5 (B), so that the image processing apparatus may completely display the table contents in the user selection area.
In this way, when the partial content of the third image exceeds the display range of the screen, the image processing device may divide the third image, and re-splice the divided content, and generate the second image, so that the target capacity of the target area can be completely displayed in the display range of the screen when the image processing device displays the second image.
Further alternatively, in the embodiment of the present application, the first content may be located in a lateral direction or a longitudinal direction of the third image, and the image processing apparatus may perform image segmentation on the third image according to the following principle, where the content in different directions cannot be completely displayed.
Illustratively, the step 202b may further include the following step 202b1:
in step 202b1, when the first content exceeds the display range of the screen along the first direction, the image processing device splices the first sub-image and the second sub-image along the second direction, and the first direction is perpendicular to the second direction.
It will be appreciated that in order for the image processing apparatus to be able to display content in the target area beyond the display range of the screen, the image processing apparatus may perform image segmentation on content in the target area that has not been displayed on the screen and re-stitch the segmented images.
For example, taking the first direction as a transverse direction, when the first content is located in the transverse direction of the third image, the image processing device may divide the first content, and splice the second sub-image obtained after division in the longitudinal direction of the first sub-image, so that the image processing device may display the first content when displaying the second image.
The contents that cannot be displayed on the screen in the target area are: and when the third image is displayed, the first content in the third image cannot be displayed on the screen, so that the image processing device needs to process the third image to obtain a second image, and the target content can be completely displayed in the display range of the screen when the second image is displayed.
For example, taking the above target content as the cell content as an example, for a case where the cell content in the horizontal axis direction exceeds the display range of the screen, the image processing apparatus may splice the cell content in the horizontal axis direction exceeding the display range of the screen to the vertical axis direction; for the case where the cell content in the vertical axis direction exceeds the display range of the screen, the image processing apparatus may splice the cell content in the vertical axis direction exceeding the display range of the screen to the horizontal axis direction.
Therefore, the image processing device can splice the contents which cannot be completely displayed in the first direction in the target area along the second direction, so that the user can completely view the contents in the target area on the screen.
According to the image processing method provided by the embodiment of the application, under the condition that the first image is displayed, the electronic equipment can cut and enlarge the content of the target area through the first input of the user to the target area, so that the user can check conveniently. Meanwhile, if the cut and enlarged image has the content of which part is not displayed, the electronic equipment can directly divide the content of the target area of the first image and rearrange the divided image, so that a user can clearly and completely browse all the content in the target area.
It should be noted that, in the image processing method provided in the embodiment of the present application, the execution subject may be an image processing apparatus, or a control module for executing the image processing method in the image processing apparatus. In the embodiment of the present application, an image processing apparatus is described by taking an example of an image processing method performed by the image processing apparatus.
In the embodiment of the present application, the method is shown in the drawings. The image processing methods are described by way of example with reference to the accompanying drawings in the embodiments of the present application. In specific implementation, the image processing method shown in the foregoing method drawings may also be implemented in combination with any other drawing that may be illustrated in the foregoing embodiments, and will not be described herein.
Fig. 6 is a schematic diagram of a possible structure of an image processing apparatus according to an embodiment of the present application, and as shown in fig. 6, an image processing apparatus 600 includes: a receiving module 601 and a display module 602; the receiving module 601 is configured to receive, when the first image is displayed, a first input to a target area in the first image, where a third image corresponding to the target area is a partial image in the first image, and the third image includes target content in the target area; a display module 602 for displaying a second image in response to the first input received by the receiving module 601; wherein the second image includes target content; in the case of displaying the second image, the target content in the second image does not exceed the display range of the screen.
Optionally, in an embodiment of the present application, the image processing apparatus 600 further includes: a processing module 603; a processing module 603, configured to segment the third image and re-stitch the segmented image when the first content in the third image exceeds the display range of the screen, and determine the re-stitched image as the second image; the target content comprises first content, the segmented image comprises a first sub-image and a second sub-image, and the second sub-image comprises the first content.
Optionally, in an embodiment of the present application, the target content includes text content; a processing module 603, configured to adjust the third image to be displayed in the first size, and determine the adjusted third image as the second image if the target content in the third image displayed in the first size does not exceed the display range of the screen; the character size of the text content in the second image is larger than or equal to the target character size, and the target character size is the size of the smallest character displayed by the operating system.
Optionally, in the embodiment of the present application, the processing module 603 is specifically configured to segment the third image displayed in the first size if the first content in the third image displayed in the first size exceeds the display range of the screen, re-stitch the segmented image, and determine the re-stitched image as the second image.
Optionally, in the embodiment of the present application, the processing module 603 is specifically configured to splice the first sub-image and the second sub-image along the second direction when the first content exceeds the display range of the screen along the first direction, where the first direction is perpendicular to the second direction.
The image processing device in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and embodiments of the present application are not limited in particular.
The image processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The image processing device provided in the embodiment of the present application can implement each process implemented by the image processing device in the method embodiments of fig. 2 to 5, and in order to avoid repetition, a description is omitted here.
The beneficial effects of the various implementation manners in this embodiment may be specifically referred to the beneficial effects of the corresponding implementation manners in the foregoing method embodiment, and in order to avoid repetition, the description is omitted here.
According to the image processing device provided by the embodiment of the application, under the condition that the first image is displayed, the electronic equipment can cut and enlarge the content of the target area through the first input of the user to the target area, so that the user can check conveniently. Meanwhile, if the cut and enlarged image has the content of which part is not displayed, the electronic equipment can directly divide the content of the target area of the first image and rearrange the divided image, so that a user can clearly and completely browse all the content in the target area.
Optionally, the embodiment of the present application further provides an electronic device, including a processor 110, a memory 109, and a program or an instruction stored in the memory 109 and capable of running on the processor 110, where the program or the instruction implements each process of the embodiment of the image processing method when executed by the processor 110, and the process can achieve the same technical effect, so that repetition is avoided and redundant description is omitted here.
It should be noted that, the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
The electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 110 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The user input unit 107 is configured to receive, when a first image is displayed, a first input to a target area in the first image, where a third image corresponding to the target area is a partial image in the first image, and the third image includes target content in the target area; a display unit 106 for displaying a second image in response to the first input received by the user input unit 107; wherein the second image includes the target content; in the case of displaying the second image, the target content in the second image does not exceed the display range of the screen.
In this way, when the first image is displayed and the first input of the user to the target area is received, the second image including the image content of the target area in the first image is displayed, so that the electronic device can completely display the content of the target area in the first image.
Optionally, in an embodiment of the present application, the image processing apparatus 600 further includes: a processor 110; a processor 110, configured to segment the third image and re-stitch the segmented image when the first content in the third image exceeds the display range of the screen, and determine the re-stitched image as a second image; wherein the target content comprises the first content, the segmented image comprises a first sub-image and a second sub-image, and the second sub-image comprises the first content.
Optionally, in an embodiment of the present application, the processor 110 is specifically configured to segment the third image displayed in the first size if the first content in the third image displayed in the first size exceeds the display range of the screen, re-stitch the segmented image, and determine the re-stitched image as the second image.
Therefore, the image processing device can enable the second image obtained after the third image is adjusted to completely display the target content in the target area by adjusting the size and the character size of the third image, and the browsing of the image content by a user is not influenced.
Optionally, in an embodiment of the present application, the target content includes text content; a processor 110, configured to adjust the third image to be displayed in a first size, and if the target content in the third image displayed in the first size does not exceed the display range of the screen, determine the adjusted third image as a second image; the character size of the text content in the second image is larger than or equal to the target character size, and the target character size is the size of the minimum character displayed by the operating system.
In this way, when the partial content of the third image exceeds the display range of the screen, the image processing device may divide the third image, and re-splice the divided content, and generate the second image, so that the target capacity of the target area can be completely displayed in the display range of the screen when the image processing device displays the second image.
Optionally, in an embodiment of the present application, the processor 110 is specifically configured to splice the first sub-image and the second sub-image along a second direction, where the first direction is beyond a display range of the screen along the first direction, and the first direction is perpendicular to the second direction.
Therefore, the image processing device can splice the contents which cannot be completely displayed in the first direction in the target area along the second direction, so that the user can completely view the contents in the target area on the screen.
According to the electronic equipment provided by the embodiment of the application, under the condition that the first image is displayed, the electronic equipment can cut and enlarge the content of the target area through the first input of the user to the target area, so that the user can check conveniently. Meanwhile, if the cut and enlarged image has the content of which part is not displayed, the electronic equipment can directly divide the content of the target area of the first image and rearrange the divided image, so that a user can clearly and completely browse all the content in the target area.
It should be appreciated that in embodiments of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein. Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above image processing method embodiment, and can achieve the same technical effects, and in order to avoid repetition, a detailed description is omitted here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the embodiment of the image processing method, and can achieve the same technical effects, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (10)

1. An image processing method, the method comprising:
receiving a first input to a target area in a first image under the condition that the first image is displayed, wherein a third image corresponding to the target area is a part of images in the first image, and the third image comprises target contents in the target area;
displaying a second image in response to the first input;
wherein the second image includes the target content; in the case of displaying the second image, the target content in the second image does not exceed the display range of the screen;
before the displaying of the second image, the method further comprises:
dividing the third image, re-stitching the divided images and determining the re-stitched image as a second image under the condition that the first content in the third image exceeds the display range of the screen; in the case of displaying the second image, the first content is displayed within a display range of the screen;
the target content comprises the first content, the first content is not displayed in the display range of the screen, the divided image comprises a first sub-image and a second sub-image, and the second sub-image comprises the first content.
2. The method of claim 1, wherein the target content comprises textual content; before the displaying of the second image, the method further comprises:
adjusting the third image to be displayed in a first size, and if the target content in the third image displayed in the first size does not exceed the display range of the screen, determining the adjusted third image as a second image;
the character size of the text content in the second image is larger than or equal to the target character size, and the target character size is the size of the minimum character displayed by the operating system.
3. The method of claim 2, wherein the step of determining the position of the substrate comprises,
and if the first content in the third image displayed in the first size exceeds the display range of the screen, dividing the third image displayed in the first size, re-stitching the divided images, and determining the re-stitched image as a second image.
4. The method of claim 1, wherein the re-stitching of the segmented images comprises:
and under the condition that the first content exceeds the display range of the screen along a first direction, the first sub-image and the second sub-image are spliced along a second direction, and the first direction is perpendicular to the second direction.
5. An image processing apparatus, characterized in that the apparatus comprises: the device comprises a receiving module, a display module and a processing module;
the receiving module is used for receiving a first input to a target area in a first image under the condition that the first image is displayed, wherein a third image corresponding to the target area is a part of images in the first image, and the third image comprises target content in the target area;
the display module is used for responding to the first input received by the receiving module and displaying a second image;
wherein the second image includes the target content; in the case of displaying the second image, the target content in the second image does not exceed the display range of the screen;
the processing module is used for dividing the third image, re-stitching the divided images and determining the re-stitched images as second images under the condition that the first content in the third image exceeds the display range of the screen; in the case of displaying the second image, the first content is displayed within a display range of the screen;
the target content comprises the first content, the first content is not displayed in the display range of the screen, the divided image comprises a first sub-image and a second sub-image, and the second sub-image comprises the first content.
6. The apparatus of claim 5, wherein the target content comprises text content; the apparatus further comprises: a processing module;
the processing module is configured to adjust the third image to be displayed in a first size, and if the target content in the third image displayed in the first size does not exceed the display range of the screen, determine the adjusted third image as a second image;
the character size of the text content in the second image is larger than or equal to the target character size, and the target character size is the size of the minimum character displayed by the operating system.
7. The apparatus of claim 6, wherein the device comprises a plurality of sensors,
the processing module is specifically configured to segment the third image displayed in the first size and re-stitch the segmented image if the first content in the third image displayed in the first size exceeds the display range of the screen, and determine the re-stitched image as the second image.
8. The apparatus of claim 6, wherein the device comprises a plurality of sensors,
the processing module is specifically configured to splice the first sub-image and the second sub-image along a second direction when the first content exceeds the display range of the screen along the first direction, where the first direction is perpendicular to the second direction.
9. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the image processing method according to any one of claims 1 to 4.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the image processing method according to any of claims 1 to 4.
CN202110293020.2A 2021-03-18 2021-03-18 Image processing method, device, electronic equipment and readable storage medium Active CN113296661B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110293020.2A CN113296661B (en) 2021-03-18 2021-03-18 Image processing method, device, electronic equipment and readable storage medium
PCT/CN2022/081208 WO2022194211A1 (en) 2021-03-18 2022-03-16 Image processing method and apparatus, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110293020.2A CN113296661B (en) 2021-03-18 2021-03-18 Image processing method, device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113296661A CN113296661A (en) 2021-08-24
CN113296661B true CN113296661B (en) 2023-10-27

Family

ID=77319197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110293020.2A Active CN113296661B (en) 2021-03-18 2021-03-18 Image processing method, device, electronic equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN113296661B (en)
WO (1) WO2022194211A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113296661B (en) * 2021-03-18 2023-10-27 维沃移动通信有限公司 Image processing method, device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843494A (en) * 2015-01-15 2016-08-10 中兴通讯股份有限公司 Method and device for realizing region screen capture, and terminal
CN109460177A (en) * 2018-09-27 2019-03-12 维沃移动通信有限公司 A kind of image processing method and terminal device
CN110231905A (en) * 2019-05-07 2019-09-13 华为技术有限公司 A kind of screenshotss method and electronic equipment
CN111143013A (en) * 2019-12-30 2020-05-12 维沃移动通信有限公司 Screenshot method and electronic equipment
CN111641750A (en) * 2020-05-19 2020-09-08 Oppo广东移动通信有限公司 Screen capture method, terminal and non-volatile computer-readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502524A (en) * 2016-09-27 2017-03-15 乐视控股(北京)有限公司 Screenshotss method and device
KR101983725B1 (en) * 2017-08-03 2019-09-03 엘지전자 주식회사 Electronic device and method for controlling of the same
JP6842672B2 (en) * 2017-09-15 2021-03-17 ブラザー工業株式会社 Print processing program
CN110825278A (en) * 2018-08-07 2020-02-21 深圳富泰宏精密工业有限公司 Electronic equipment and screen capturing method
CN112230816B (en) * 2020-10-23 2022-03-18 岭东核电有限公司 High-efficiency screenshot method and device, computer equipment and storage medium
CN113296661B (en) * 2021-03-18 2023-10-27 维沃移动通信有限公司 Image processing method, device, electronic equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843494A (en) * 2015-01-15 2016-08-10 中兴通讯股份有限公司 Method and device for realizing region screen capture, and terminal
CN109460177A (en) * 2018-09-27 2019-03-12 维沃移动通信有限公司 A kind of image processing method and terminal device
CN110231905A (en) * 2019-05-07 2019-09-13 华为技术有限公司 A kind of screenshotss method and electronic equipment
CN111143013A (en) * 2019-12-30 2020-05-12 维沃移动通信有限公司 Screenshot method and electronic equipment
CN111641750A (en) * 2020-05-19 2020-09-08 Oppo广东移动通信有限公司 Screen capture method, terminal and non-volatile computer-readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郑世珏等.《CAI课件的制作与网络课程的设计》.华中师范大学出版社,2003,71. *

Also Published As

Publication number Publication date
CN113296661A (en) 2021-08-24
WO2022194211A1 (en) 2022-09-22

Similar Documents

Publication Publication Date Title
CN112714253B (en) Video recording method and device, electronic equipment and readable storage medium
CN112911147B (en) Display control method, display control device and electronic equipment
CN113918260A (en) Application program display method and device and electronic equipment
CN113010063A (en) File preview method and device, electronic equipment and storage medium
CN113296661B (en) Image processing method, device, electronic equipment and readable storage medium
CN112181252B (en) Screen capturing method and device and electronic equipment
CN112099714B (en) Screenshot method and device, electronic equipment and readable storage medium
CN112399010B (en) Page display method and device and electronic equipment
CN112887794A (en) Video editing method and device
CN112148167A (en) Control setting method and device and electronic equipment
CN116107531A (en) Interface display method and device
CN115454365A (en) Picture processing method and device, electronic equipment and medium
CN113407144B (en) Display control method and device
CN115543169A (en) Identification display method and device, electronic equipment and readable storage medium
CN112162805B (en) Screenshot method and device and electronic equipment
CN111757177B (en) Video clipping method and device
CN113721816A (en) Video processing method and device
CN114302009A (en) Video processing method, video processing device, electronic equipment and medium
CN113157184A (en) Content display method and device, electronic equipment and readable storage medium
CN113393372A (en) Desktop wallpaper setting method and device
CN112383708A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112019686A (en) Display method and device and electronic equipment
CN112202958B (en) Screenshot method and device and electronic equipment
CN112596646B (en) Information display method and device and electronic equipment
CN117676228A (en) Information display method, information display device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant