CN111443855B - An image processing method and electronic device - Google Patents

An image processing method and electronic device Download PDF

Info

Publication number
CN111443855B
CN111443855B CN202010266803.7A CN202010266803A CN111443855B CN 111443855 B CN111443855 B CN 111443855B CN 202010266803 A CN202010266803 A CN 202010266803A CN 111443855 B CN111443855 B CN 111443855B
Authority
CN
China
Prior art keywords
boundary line
flexible screen
image
user
target
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
CN202010266803.7A
Other languages
Chinese (zh)
Other versions
CN111443855A (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 CN202010266803.7A priority Critical patent/CN111443855B/en
Publication of CN111443855A publication Critical patent/CN111443855A/en
Application granted granted Critical
Publication of CN111443855B publication Critical patent/CN111443855B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses an image processing method and electronic equipment. The method comprises the following steps: under the condition that a first image is displayed on a display interface of the flexible screen, receiving a first bending operation of a user on the flexible screen; determining a target cutting boundary line of the first image according to the curvature of the flexible screen corresponding to the first bending operation; receiving a first input of a user to the flexible screen; and in response to the first input, removing a part, which is positioned outside the target cutting boundary line, in the first image according to the target cutting boundary line to obtain a target image. The embodiment of the invention can solve the problems of complicated image cutting operation and poor cutting effect.

Description

Image processing method and electronic equipment
Technical Field
The embodiment of the invention relates to the field of image processing, in particular to an image processing method and electronic equipment.
Background
At present, when electronic equipment is used, people often need to cut images, such as after screenshot or after photographing, so as to remove parts of images which are not wanted by users.
Currently, in an image cropping mode, the size of an image cropping area, the position of a cropping boundary, and the like are adjusted by a touch operation of a finger on an image in an image editing interface. However, in this method, the user's finger is always required to control the cutting boundary, and since the finger may block part of the boundary line, the position of the finger needs to be adjusted repeatedly in a scene requiring precise cutting, which is cumbersome to operate and poor in cutting effect.
Disclosure of Invention
The embodiment of the invention provides an image processing method and electronic equipment, and aims to solve the problems of complex operation and poor clipping effect in an image clipping process.
In a first aspect, an embodiment of the present invention provides an image processing method applied to an electronic device with a flexible screen, including:
receiving a first bending operation of a user on the flexible screen under the condition that a first image is displayed on a display interface of the flexible screen;
determining a target cutting boundary line of the first image according to the curvature of the flexible screen corresponding to the first bending operation;
receiving a first input of a user to the flexible screen;
and responding to the first input, and removing a part, which is positioned outside the target cutting boundary line, in the first image according to the target cutting boundary line to obtain a target image.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes a flexible screen, and includes:
the flexible screen bending device comprises a first bending module, a second bending module and a control module, wherein the first bending module is used for receiving a first bending operation of a user on the flexible screen under the condition that a first image is displayed on a display interface of the flexible screen;
the adjusting module is used for determining a target cutting boundary line of the first image according to the flexible screen curvature corresponding to the first bending operation;
the first receiving module is used for receiving a first input of a user to the flexible screen;
and the removing module is used for responding to the first input, removing the part, which is positioned outside the target cutting boundary line, in the first image according to the target cutting boundary line to obtain a target image.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the computer program implements the steps of the image processing method according to the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the image processing method according to the first aspect.
In the embodiment of the invention, the position of the target cutting boundary line in the first image is controlled by the curvature of the flexible screen after the user bends the flexible screen, and because the finger of the user does not need to move in the image display interface in the process, the shielding of the cutting boundary line by the finger can be reduced, so that the cutting boundary line can be quickly and accurately adjusted to the required position under the condition of accurate cutting, the image cutting operation is simplified, and the better cutting effect is achieved.
Drawings
The present invention will be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings, in which like or similar reference characters designate like or similar features.
Fig. 1 is a schematic flowchart of an image processing method according to an embodiment of the present invention;
fig. 2 is a schematic view illustrating bending of a flexible screen according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another image processing method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a touch point according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a further image processing method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating an initial position of a first trimming boundary line according to an embodiment of the present invention;
fig. 7 is a schematic view of a tiling scheme according to an embodiment of the present invention;
FIG. 8 is a schematic diagram illustrating a position of a trimming boundary line of an object in a first image according to an embodiment of the present invention;
FIG. 9 is a schematic diagram illustrating the position of another trimming boundary line according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of elliptical trimming boundary lines according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 12 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As in the background section, people often need to cut the size of an image, for example, when a photo is sent to a friend for sharing, or when a certain certificate and a file photo are uploaded. At present, the image is cut by opening a picture, then clicking to edit, at this time, entering an image editing interface, and then the user selects to cut the image. In the clipping process, when the clipping boundary is controlled by fingers, the clipping boundary cannot be precisely controlled due to the shielding of the fingers, so that the user is often dissatisfied with the clipping result and repeatedly clips, and the image clipping operation is complex. Moreover, the image content can be shielded when fingers are placed on the cutting boundary, so that a user cannot see the cutting condition of the boundary part, accurate adjustment cannot be realized, and the cutting effect is poor.
In order to solve the above problem, an embodiment of the present invention provides an image processing method, and referring to fig. 1, fig. 1 shows a schematic flow chart of an image processing method provided by an embodiment of the present invention; the method is applied to the electronic equipment with the flexible screen, and comprises the following steps:
s101, receiving a first bending operation of a user on the flexible screen under the condition that a first image is displayed on a display interface of the flexible screen;
the user can bend the flexible screen by one hand or both hands.
S102, determining a target cutting boundary line of the first image according to the curvature of the flexible screen corresponding to the first bending operation;
different bending forces can cause the flexible screen to have different curvatures, and the curvatures reflect the bending degrees of the flexible screen. In this embodiment, the cutting boundary line of the first image changes with the bending degree. For example, as shown in fig. 2, fig. 2 is a schematic diagram illustrating bending of a flexible screen according to an embodiment of the present invention, where when a curvature of the flexible screen increases, the first trimming boundary line may be close to a middle of the first image, and when the curvature of the flexible screen decreases, the first trimming boundary line may be close to two sides of the first image.
S103, receiving a first input of a user to the flexible screen;
the first input here refers to an input for determining clipping input by the user after the target clipping boundary line is moved to a position desired by the user. The first input may be an input operation of clicking a confirmation button on the display interface or on the side of the electronic device, or may be a slide input or the like input on the display interface, and the specific content of the first input is not limited in the present invention.
And S104, responding to the first input, removing the part, which is positioned outside the target cutting boundary line, in the first image according to the target cutting boundary line to obtain a target image.
And after the user inputs the first input for determining the cutting, cutting the first image according to the target cutting boundary line, and reserving partial images inside the target cutting boundary line to finish the image cutting operation.
In the embodiment of the invention, the position of the target cutting boundary line in the first image is controlled by the curvature of the flexible screen after the user bends the flexible screen, and because the finger of the user does not need to move in the image display interface in the process, the shielding of the finger on the cutting boundary line can be reduced, so that the cutting boundary line can be quickly and accurately adjusted to the required position under the condition of accurate cutting, the image cutting operation is simplified, and the cutting effect is better
In some embodiments of the invention, referring to fig. 3, the method may comprise:
s201, receiving a first bending operation of a user on a flexible screen under the condition that the user touches a display interface on which a first image is displayed;
in this embodiment, when the user performs the first bending operation on the flexible screen, the user needs to touch the screen portion of the electronic device, but cannot touch only other portions of the electronic device, such as the back panel. Only when the user touches the screen, the electronic device considers that the image cutting operation is currently performed, and then the position of the first cutting boundary line in the first image is adjusted.
The part of the user touching the display interface may be a finger or other parts, such as a palm. In addition, the number of the parts of the user touching the display interface may be one or more, for example, one finger or two fingers.
S202, adjusting the position of a first cutting boundary line of the first image in the first image according to the curvature of the flexible screen corresponding to the first bending operation;
the first bending operation causes the flexible screen to bend, the curvature of the bending corresponding to the positions of the first cut boundary lines. The first trimming boundary line here refers to a trimming boundary line adjustable within the first image.
S203, under the condition that a user does not touch the flexible screen, taking the current position of the first cutting boundary line as a target cutting boundary line, and locking the position of the target cutting boundary line in the first image;
after the user bends the flexible screen under the condition of touching the flexible screen, if the subsequent user does not touch the flexible screen any more, the adjustment of the first cutting boundary line is indicated to be completed by the user, and the current position of the first cutting boundary line is the position desired by the user, so that the image cutting can be performed. However, since the flexible screen is currently in a bent state, if the user clicks the trimming button, the position of the target trimming boundary line may be moved, so that in order to avoid the deviation of the target trimming boundary line, the embodiment locks the position of the target trimming boundary line after the user does not touch the flexible screen, thereby ensuring the accuracy of the trimming boundary line. For example, two thumbs of the user touch the flexible screen and perform a bending operation, and then the user releases the two thumbs, the position of the target trimming boundary line is locked, and the subsequent user can release the flexible screen to restore the flat state.
S204, receiving a first input of a user to the flexible screen;
and S205, in response to the first input, removing the part, which is positioned outside the target cutting boundary line, in the first image according to the target cutting boundary line to obtain a target image. S204-S205 are similar to S103-S104 in FIG. 1 and are not described herein again.
In this embodiment, whether the image cutting process is performed currently is judged by whether the user touches the flexible screen in the bending process, so that the image cutting and other operations are distinguished, and the occurrence of mistaken cutting is reduced. In addition, in the embodiment, after the flexible screen is bent, the contact part between the user and the flexible screen is lifted, so that the target cutting boundary line is locked, the situations that the target cutting boundary line is deviated when the cutting is determined, or the target cutting boundary line needs to be adjusted repeatedly due to the fact that the user slides, and the like are avoided, and the efficiency and the accuracy of image cutting are improved.
In addition, the above embodiment only defines that the first bending operation needs to be performed when the user touches the flexible screen, but the present invention does not limit the position of the touch point between the user and the flexible screen, and the position of the touch point between the user and the flexible screen may move during the first bending operation performed by the user. This way, the blocking of the cutting boundary line by the user's finger during the first bending operation can be avoided.
In some embodiments, optionally, before S101 or S201, the method further includes:
determining a touch point of a user on the flexible screen;
and determining the initial position of the first cutting boundary line according to the position of the touch point. As shown in fig. 4, fig. 4 is a schematic diagram illustrating a touch point according to an embodiment of the present invention.
Before moving the first trimming boundary line, the initial position of the first trimming boundary line needs to be determined, in this embodiment, the initial position of the first trimming boundary line is determined according to the touch point of the user initially falling on the flexible screen, and the trimming range of the first image can be preliminarily determined, so that the trimming position can be conveniently adjusted subsequently, and the adjustment times of the user on the first trimming boundary line is reduced.
In addition, in some other embodiments, the determining the initial position of the first trimming boundary line according to the position of the touch point may include: and taking the innermost tangent line of the touch points as the initial position of a first cutting boundary line, wherein the included angle between the first cutting boundary line and the connecting line of the two touch points is larger than a preset angle. For example, when two thumbs of the user touch the left side and the right side of the flexible screen, the first trimming boundary line is parallel to the left side and the right side of the flexible screen and is basically vertical to a connecting line of the two thumbs. The innermost side of the touch point refers to the side, closest to the center of the flexible screen, of the touch point, and the mode can reduce the shielding of the fingers of the user on the first cutting boundary line, so that the user can conveniently and accurately determine the position of the first cutting boundary line.
In other embodiments, the initial position of the first trimming boundary line may also be directly set as the boundary position of the first image, which is not limited in the present invention.
In some embodiments of the invention, the first bending operation comprises: bending any two opposite edges of the flexible screen; the first trimming boundary line includes: two straight lines parallel to the opposite sides.
In this embodiment, the first bending operation is a bending operation on two opposite sides of the flexible screen, for example, a bending operation on two left and right sides of the flexible screen, or a bending operation on two upper and lower sides. That is, in the present embodiment, the trimming boundary line of two opposite sides in the first image can be controlled, and this manner of determining the double-sided trimming boundary line has higher efficiency of image trimming and simpler user operation than the manner of determining the single-sided trimming boundary line each time.
Optionally, the above is only one specific embodiment, the first bending operation may also be a bending operation on any one edge of the flexible screen, and the first trimming boundary line includes: a straight line parallel to the side on which the first bending operation is performed. The invention is not limited in this regard.
In other embodiments, optionally, after the target trimming boundary line of two or one side of the first image is determined through the first bending operation, the currently determined target trimming boundary line may be locked by canceling the touch on the flexible screen, and then, the target trimming boundary line of the remaining side of the first image is further confirmed by continuing to the foregoing embodiments. For example, the first bending operation is a bending operation on the left side and the right side of the flexible screen for the first time, then target cutting boundary lines of the left side and the right side of the first image are determined, the user finger leaves the flexible screen, the currently determined target cutting boundary lines of the left side and the right side are locked, then the upper side and the lower side of the flexible screen are subjected to bending operation, the target cutting boundary lines of the upper side and the lower side of the first image are determined, the user finger leaves the flexible screen, the currently determined target cutting boundary lines of the upper side and the lower side are locked, and finally cutting is performed according to the first input.
In other embodiments of the present invention, as shown in FIG. 5, the method may comprise:
s301, determining a touch point of a user on the flexible screen;
s302, determining an initial position of the first cutting boundary line according to the position of the touch point. As shown in fig. 6, fig. 6 is a schematic diagram illustrating an initial position of a first trimming boundary line according to an embodiment of the present invention. S301-S302 are similar to the above embodiments and will not be described herein.
S303, receiving a second input of the user;
the second input here refers to an input operation for informing the electronic device to start fine adjustment, for example, the second input here may be a continuous touch input to the flexible screen, that is, the position where the user touches the flexible screen remains unchanged and the touch time reaches a preset time period, for example, 3S, in which case S303 to S304 need to be executed first, and then S305 needs to be executed.
Or, in other embodiments, S305 and S303 to S304 may be executed simultaneously, where the second input is a bending input of the user, that is, the electronic device may execute the operation of S304 once detecting that the first bending operation is started, and since the first bending operation may last for a long time, the second input in this embodiment only refers to the initially received bending input, that is, the tiling operation of S304 may be executed when the user just starts to bend.
S304, responding to a second input, and performing tiled display on partial images in the first cutting boundary line along a direction perpendicular to the first cutting boundary line to obtain a second image and a second cutting boundary line; as shown in fig. 7, fig. 7 is a schematic view illustrating a tiling scheme provided by an embodiment of the present invention.
Since the partial image inside the first trimming boundary line in the first image may be small, the partial image inside the first trimming boundary line is tiled in the present embodiment in order to facilitate the user to perform a subsequent fine operation. In this embodiment, when the first clipping boundary line is parallel to the left and right boundaries of the electronic device, the partial image within the first clipping boundary line may be tiled to the left and right boundaries of the electronic device.
Of course, the above is only a partial embodiment, and in other embodiments, the partial image within the first clipping boundary line may be fixed and tiled to the left and right boundaries of the electronic device, which is not limited by the present invention.
S305, receiving a first bending operation of a user on the flexible screen under the condition that the user touches an image display interface on which a second image is displayed; s305 is similar to S201 in fig. 2, and is not described again here.
S306, adjusting the position of the second cutting boundary line in the second image according to the curvature of the flexible screen corresponding to the first bending operation;
since the second trimming boundary line is within the tiled second image, which is equivalent to enlarging a partial image of the first image within the first trimming boundary line, a more accurate trimming position can be obtained by adjusting the position of the second trimming boundary line.
S307, under the condition that the user does not touch the flexible screen, taking the current position of the second cutting boundary line as a target cutting boundary line, and locking the position of the target cutting boundary line in the first image;
s308, receiving a first input of a user to the flexible screen;
s309, responding to the first input, and removing the part, which is positioned outside the target cutting boundary line, in the first image according to the target cutting boundary line to obtain the target image. S308-S309 are similar to S103-S104 in FIG. 1 and are not described herein again.
According to the image cutting method and device, after the initial position of the first cutting boundary line is determined by the user, the partial images in the first cutting boundary line are tiled and displayed, so that the partial images in the first cutting boundary line are enlarged, the image area corresponding to the first cutting boundary line can be clearer, the position of the second cutting boundary line can be adjusted more accurately by the user subsequently, and the accuracy of image cutting is improved.
Note that since only tiling is performed in S304, but no cropping operation is performed, it is necessary to lock the position of the target cropping boundary line in the first image, and then crop the first image. Optionally, after the position of the target trimming boundary line in the first image is locked, the content of the first image may be restored and displayed in the image display interface, and the position of the target trimming boundary line is displayed, as shown in fig. 8, fig. 8 illustrates a schematic position diagram of the target trimming boundary line in the first image according to an embodiment of the present invention. The reason why the trimming operation is not performed in S304 is to avoid that the adjustment can be performed by returning to the state where the first trimming boundary line selected by the user is incorrect.
Of course, in other embodiments, after the initial position of the first trimming boundary line is determined, part of the image outside the first trimming boundary line may be trimmed directly, and then the second image may be displayed in a tiled manner.
Further, in some embodiments, after the target trimming boundary line of the partial side is locked, the trimming boundary lines of other sides may be continuously adjusted by repeating the above operations, for example, after the target trimming boundary lines of the left and right sides have been determined, the target trimming boundary lines in the up-down direction are determined by tiling the first image in the up-down direction, as shown in fig. 9, and fig. 9 shows a position diagram of another target trimming boundary line provided by an embodiment of the present invention. In the process of adjusting the trimming boundary lines of the other sides, the determined target trimming boundary line may be displayed in the current first image, and the display mode of the locked target trimming boundary line may be distinguished from the current second trimming boundary line, for example, the second trimming boundary line is a solid line, and the locked target trimming boundary line is a broken line, and the present invention is not limited thereto.
In some other embodiments of the present invention, before S103, S204, or S308, the method may further include:
receiving a third input of the user;
in response to a third input, a target image is displayed within the preview interface.
In this embodiment, after the target trimming boundary line is determined, the trimmed effect may be previewed, where the third input may be an input of clicking a preview button in a screen or a preset preview slide input, and the like. In the case that the user is not satisfied, the user may return to the adjustment interface of the target trimming boundary line through a fourth input, where the fourth input may be an input of clicking a previous button in the screen, and the like.
In still other embodiments of the present invention, the first bending operation comprises: bending any one of four corners of the flexible screen; the first trimming boundary line includes: and the length of the major axis and the length of the minor axis of the oval boundary line are determined according to the curvatures of the flexible screens corresponding to the four corners respectively.
That is, in this embodiment, the first image may be subjected to elliptical cropping, and in other embodiments, the first image may be subjected to circular cropping or the like. That is, when a user bends any one of the four corners of the flexible screen, the effect of elliptical cutting is triggered, as shown in fig. 10, and fig. 10 shows a schematic diagram of an elliptical cutting boundary line provided by an embodiment of the present invention. The mode enriches the image cutting effect and ensures better user experience.
Optionally, in a case where the first trimming boundary line is an elliptical boundary line, the step S202 may include:
taking a tangent plane of the center of the flexible screen as a reference plane, and determining the mapping rate corresponding to each angle according to the included angle formed by the connecting line from each angle to the center and the reference plane; for example, at an included angle of 20 degrees, the refractive index is 10%. The bending degree of each corner may be different, that is, the mapping rate corresponding to each corner may be different.
Taking the product of the reflectivity and the length or width of the flexible screen as the length of the long axis or the short axis corresponding to the angle;
the average of the sum of the lengths of the major axes corresponding to the four corners is taken as the major axis length of the adjusted elliptical boundary line, and the average of the sum of the lengths of the minor axes corresponding to the four corners is taken as the minor axis length of the adjusted elliptical boundary line.
In this embodiment, the reference plane refers to a plane of the flexible screen in an unbent state, and may also be understood as a plane where an unbent portion of the flexible screen is located. The center point of the oval boundary line is the center point of the flexible screen, the target image obtained by final cutting can be symmetrical in the mode, and certainly, in other embodiments, a user can also adjust the center point of the oval boundary line manually. In addition to the center point, the elliptical boundary line is also limited by the lengths of the major axis and the minor axis, in this embodiment, the flexible screen is divided into four parts on average, each corner corresponds to 1/4 flexible screens, the length of the 1/4 flexible screen is 1/2 flexible screen, the width of the 1/4 flexible screen is 1/2 flexible screen, then according to the included angle formed by the connecting line from each corner to the center and the reference plane, the length and width of the 1/4 flexible screen corresponding to the corner after being mapped to the reference plane after being bent can be determined, then the length of the 1/4 flexible screen corresponding to each corner after being mapped to the reference plane is averaged to be used as the major axis of the elliptical boundary line, and the width of the 1/4 flexible screen corresponding to each corner after being mapped to the reference plane is averaged to be used as the minor axis of the elliptical boundary line.
As shown in fig. 10, when the distances between the positions of the angle No. 1 (angle No. 3) and the angle No. 2 (angle No. 4) are shorter, that is, the curvatures of the angle No. 1 (angle No. 3) and the angle No. 2 (angle No. 4) become larger, the minor axis of the ellipse at this time is decreased, and the opposite direction is increased. When the distance between the positions of the No. 1 corner (No. 2 corner) and the No. 3 corner (No. 4 corner) is shorter, namely the curvatures of the No. 1 corner (No. 2 corner) and the No. 3 corner (No. 4 corner) are larger, the major axis of the ellipse is reduced at the moment. Therefore, the position of the oval boundary line can be accurately determined according to the bending condition of the flexible screen.
Based on the embodiment of the image processing method provided by the above embodiment, correspondingly, an embodiment of the present invention further provides an electronic device, where the electronic device includes a flexible screen, and fig. 11 shows a schematic structural diagram of the electronic device provided by the embodiment of the present invention. The electronic device includes:
a first bending module 401, configured to receive a first bending operation of the flexible screen by a user when a first image is displayed on a display interface of the flexible screen
An adjusting module 402, configured to determine a target clipping boundary line of the first image according to the curvature of the flexible screen corresponding to the first bending operation;
a first receiving module 403, configured to receive a first input to the flexible screen from a user;
and a removing module 404, configured to remove, in response to the first input, a portion of the first image outside the target trimming boundary line according to the target trimming boundary line, so as to obtain a target image.
In the embodiment of the invention, the position of the target cutting boundary line in the first image is controlled by the curvature of the flexible screen after the user bends the flexible screen, and because the finger of the user does not need to move in the image display interface in the process, the shielding of the finger on the cutting boundary line can be reduced, so that the cutting boundary line can be quickly and accurately adjusted to the required position under the condition of accurate cutting, the image cutting operation is simplified, and the cutting effect is better
In some embodiments of the present invention, the first bending module 401 may be specifically configured to: receiving a first bending operation of a user on a flexible screen under the condition that the user touches a display interface on which a first image is displayed;
the adjusting module 402 may be specifically configured to: adjusting the position of a first cutting boundary line of the first image in the first image according to the curvature of the flexible screen corresponding to the first bending operation; and under the condition that the user does not touch the flexible screen, taking the current position of the first cutting boundary line as a target cutting boundary line, and locking the position of the target cutting boundary line in the first image.
In this embodiment, whether the image cutting process is performed currently is judged by whether the user touches the flexible screen in the bending process, so that the image cutting and other operations are distinguished, and the occurrence of mistaken cutting is reduced. In addition, in the embodiment, after the flexible screen is bent, the contact part between the user and the flexible screen is lifted, so that the target cutting boundary line is locked, the situations that the target cutting boundary line is deviated when the cutting is determined, or the target cutting boundary line needs to be adjusted repeatedly due to the fact that the user slides, and the like are avoided, and the efficiency and the accuracy of image cutting are improved.
In addition, the above embodiment only defines that the first bending operation needs to be performed when the user touches the flexible screen, but the present invention does not limit the position of the touch point between the user and the flexible screen, and the position of the touch point between the user and the flexible screen may move during the first bending operation performed by the user. This way, the blocking of the cutting boundary line by the user's finger during the first bending operation can be avoided.
In some embodiments, optionally, the electronic device may further include:
the initial position determining module is used for determining a touch point of a user on the flexible screen; and determining the initial position of the first cutting boundary line according to the position of the touch point.
Before moving the first trimming boundary line, the initial position of the first trimming boundary line needs to be determined, in this embodiment, the initial position of the first trimming boundary line is determined according to the touch point of the user initially falling on the flexible screen, and the trimming range of the first image can be preliminarily determined, so that the trimming position can be conveniently adjusted subsequently, and the adjustment times of the user on the first trimming boundary line is reduced.
In addition, in some other embodiments, the determining the initial position of the first trimming boundary line according to the position of the touch point may include: and taking the innermost tangent line of the touch points as the initial position of a first cutting boundary line, wherein the included angle between the first cutting boundary line and the connecting line of the two touch points is larger than a preset angle. The innermost side of the touch point refers to the side, closest to the center of the flexible screen, of the touch point, and the mode can reduce the shielding of the fingers of the user on the first cutting boundary line, so that the user can conveniently and accurately determine the position of the first cutting boundary line. In other embodiments, the initial position of the first trimming boundary line may also be directly set as the boundary position of the first image, which is not limited in the present invention.
In some embodiments of the invention, the first bending operation comprises: bending any two opposite edges of the flexible screen; the first trimming boundary line includes: two straight lines parallel to the opposite sides.
In this embodiment, the trimming boundary lines of two opposite sides in the first image can be controlled, and this manner of determining the double-sided trimming boundary lines has higher image trimming efficiency and simpler user operation than the manner of determining the single-sided trimming boundary lines each time.
Optionally, the above is only one specific embodiment, the first bending operation may also be a bending operation on any one edge of the flexible screen, and the first trimming boundary line includes: a straight line parallel to the side on which the first bending operation is performed. The invention is not limited in this regard.
In other embodiments, optionally, after the target trimming boundary line of two or one side of the first image is determined through the first bending operation, the currently determined target trimming boundary line may be locked by canceling the touch on the flexible screen, and then, the target trimming boundary line of the remaining side of the first image is further confirmed by continuing to the foregoing embodiments.
In other embodiments of the present invention, the electronic device may further include:
the second receiving module is used for receiving a second input of the user;
the tiling module is used for responding to a second input, tiling and displaying the partial images in the first cutting boundary line along the direction perpendicular to the first cutting boundary line to obtain a second image and a second cutting boundary line;
correspondingly, the adjusting module 402 is specifically configured to: adjusting the position of the second cutting boundary line in the second image according to the curvature of the flexible screen corresponding to the first bending operation; and under the condition that the user does not touch the flexible screen, taking the current position of the second cutting boundary line as a target cutting boundary line, and locking the position of the target cutting boundary line in the first image.
According to the image cutting method and device, after the initial position of the first cutting boundary line is determined by the user, the partial images in the first cutting boundary line are tiled and displayed, so that the partial images in the first cutting boundary line are enlarged, the image area corresponding to the first cutting boundary line can be clearer, the position of the second cutting boundary line can be adjusted more accurately by the user subsequently, and the accuracy of image cutting is improved.
It should be noted that, since the tiling module only performs tiling but does not perform a cropping operation, it is necessary to lock the position of the target cropping boundary line in the first image, and then crop the first image. Optionally, after the position of the target trimming boundary line in the first image is locked, the content of the first image may be restored and displayed in the image display interface, and the position of the target trimming boundary line may be displayed. The tiling module does not perform the clipping operation so as to avoid returning to adjust conveniently under the condition that the first clipping boundary line selected by the user is wrong.
In some other embodiments of the present invention, the electronic device may further include:
the third receiving module is used for receiving a third input of the user;
and the preview module is used for responding to the third input and displaying the target image in the preview interface.
In this embodiment, after the target trimming boundary line is determined, the trimmed effect may be previewed, where the third input may be an input of clicking a preview button in a screen or a preset preview slide input, and the like. In the case that the user is not satisfied, the user may return to the adjustment interface of the target trimming boundary line through a fourth input, where the fourth input may be an input of clicking a previous button in the screen, and the like.
In still other embodiments of the present invention, the first bending operation comprises: bending any one of four corners of the flexible screen; the first trimming boundary line includes: and the length of the major axis and the length of the minor axis of the oval boundary line are determined according to the curvatures of the flexible screens corresponding to the four corners respectively.
That is, in this embodiment, the first image may be subjected to elliptical cropping, and in other embodiments, the first image may be subjected to circular cropping or the like. That is, when the user bends any one of the four corners of the flexible screen, the effect of elliptical cropping is triggered. The mode enriches the image cutting effect and ensures better user experience.
Optionally, in a case that the first trimming boundary line is an elliptical boundary line, the adjusting module 402 may further include:
the mapping rate determining unit is used for determining the mapping rate corresponding to each angle according to an included angle formed by a connecting line from each angle to the center and the reference plane by taking a tangent plane where the center of the flexible screen is located as the reference plane;
an axial length determination unit for taking the product of the refractive index and the length or width of the flexible screen as the length of the long axis or the short axis corresponding to the angle;
and an average calculation unit for setting an average of the sum of the lengths of the major axes corresponding to the four corners as the length of the major axis of the adjusted elliptical boundary line, and setting an average of the sum of the lengths of the minor axes corresponding to the four corners as the length of the minor axis of the adjusted elliptical boundary line.
In this embodiment, the reference plane refers to a plane of the flexible screen in an unbent state, and may also be understood as a plane where an unbent portion of the flexible screen is located. The center point of the oval boundary line is the center point of the flexible screen, so that the finally cut target image can be symmetrical, and the oval boundary line is limited by the lengths of the major axis and the minor axis except the center point, in the embodiment, the flexible screen is divided into four parts on average, each corner corresponds to 1/4 flexible screen, the length of the 1/4 flexible screen is the length of the flexible screen of 1/2, the width of the 1/4 flexible screen is the width of the flexible screen of 1/2, then according to the included angle formed by the connecting line from each corner to the center and the reference plane, the length and the width of the 1/4 flexible screen corresponding to each corner after being mapped to the reference plane can be determined after each corner is bent, then the length of the 1/4 flexible screen corresponding to each corner after being mapped to the reference plane is averaged to be the major axis of the oval boundary line, and the width of the 1/4 flexible screen corresponding to each corner after being mapped to the reference plane is averaged to be used A shaft. Therefore, the position of the oval boundary line can be accurately determined according to the bending condition of the flexible screen.
The electronic device provided in the embodiment of the present invention can implement each method step implemented in the method embodiments of fig. 1, fig. 3, or fig. 5, and is not described here again to avoid repetition.
Fig. 12 is a schematic diagram illustrating a hardware structure of an electronic device according to an embodiment of the present invention.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 12 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to receive a first bending operation of a user on the flexible screen when a first image is displayed on a display interface of the flexible screen; determining a target cutting boundary line of the first image according to the curvature of the flexible screen corresponding to the first bending operation; receiving a first input of a user to the flexible screen; and in response to the first input, removing a part, which is positioned outside the target cutting boundary line, in the first image according to the target cutting boundary line to obtain a target image.
In the embodiment of the invention, the position of the target cutting boundary line in the first image is controlled by the curvature of the flexible screen after the user bends the flexible screen, and because the finger of the user does not need to move in the image display interface in the process, the shielding of the finger on the cutting boundary line can be reduced, so that the cutting boundary line can be quickly and accurately adjusted to the required position under the condition of accurate cutting, the image cutting operation is simplified, and the cutting effect is better
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 12, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 510, a memory 509, and a computer program stored in the memory 509 and capable of running on the processor 510, where the computer program, when executed by the processor 510, implements each process of the above-mentioned embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1.一种图像处理方法,应用于具有柔性屏的电子设备,其特征在于,包括:1. an image processing method, is applied to the electronic equipment with flexible screen, it is characterized in that, comprising: 在所述柔性屏的显示界面显示有第一图像的情况下,接收用户对所述柔性屏的第一弯折操作;In the case that the display interface of the flexible screen displays the first image, receiving a first bending operation of the flexible screen by the user; 依据所述第一弯折操作对应的柔性屏曲率,确定所述第一图像的目标裁剪边界线;determining the target cropping boundary line of the first image according to the curvature of the flexible screen corresponding to the first bending operation; 接收用户对所述柔性屏的第一输入;receiving a first input from the user on the flexible screen; 响应于所述第一输入,根据所述目标裁剪边界线移除所述第一图像中位于所述目标裁剪边界线之外的部分,得到目标图像;In response to the first input, removing a portion of the first image that is located outside the target cropping boundary line according to the target cropping boundary line to obtain a target image; 所述在所述柔性屏的显示界面显示有第一图像的情况下,接收用户对所述柔性屏的第一弯折操作,包括:The receiving a user's first bending operation on the flexible screen when the display interface of the flexible screen displays the first image includes: 在所述用户触碰显示有第一图像的显示界面的情况下,接收所述用户对所述柔性屏的第一弯折操作;receiving a first bending operation of the flexible screen by the user when the user touches the display interface on which the first image is displayed; 所述依据所述第一弯折操作对应的柔性屏曲率,确定所述第一图像的目标裁剪边界线,包括:The determining the target cropping boundary line of the first image according to the curvature of the flexible screen corresponding to the first bending operation includes: 依据所述第一弯折操作对应的柔性屏曲率,调整所述第一图像的第一裁剪边界线在所述第一图像内的位置;adjusting the position of the first cropping boundary line of the first image in the first image according to the curvature of the flexible screen corresponding to the first bending operation; 在所述用户没有触碰所述柔性屏的情况下,将所述第一裁剪边界线的当前位置作为所述目标裁剪边界线,并锁定所述目标裁剪边界线在所述第一图像内的位置。In the case that the user does not touch the flexible screen, the current position of the first cropping boundary line is used as the target cropping boundary line, and the position of the target cropping boundary line in the first image is locked. Location. 2.根据权利要求1所述的方法,其特征在于,所述接收用户对所述柔性屏的第一弯折操作之前,还包括:2 . The method according to claim 1 , wherein before receiving the first bending operation of the flexible screen by the user, the method further comprises: 2 . 确定所述用户在所述柔性屏上的触碰点;determining the touch point of the user on the flexible screen; 依据所述触碰点的位置,确定所述第一裁剪边界线的初始位置。According to the position of the touch point, the initial position of the first cropping boundary line is determined. 3.根据权利要求2所述的方法,其特征在于,所述确定所述第一裁剪边界线的初始位置之后,所述依据所述第一弯折操作对应的柔性屏曲率,调整所述第一图像的第一裁剪边界线在所述第一图像内的位置之前,还包括:3 . The method according to claim 2 , wherein after determining the initial position of the first cutting boundary line, adjusting the first bending operation according to the curvature of the flexible screen corresponding to the first bending operation. 4 . Before the position of the first cropping boundary line of an image in the first image, it further includes: 接收用户的第二输入;receiving a second input from the user; 响应于所述第二输入,将处于所述第一裁剪边界线内部的部分图像沿垂直于所述第一裁剪边界线的方向进行平铺展示,得到第二图像以及第二裁剪边界线;In response to the second input, tile and display the part of the image inside the first cropping boundary line along a direction perpendicular to the first cropping boundary line to obtain a second image and a second cropping boundary line; 所述依据所述第一弯折操作对应的柔性屏曲率,调整所述第一图像的第一裁剪边界线在所述第一图像内的位置,包括:The adjusting the position of the first cropping boundary line of the first image in the first image according to the curvature of the flexible screen corresponding to the first bending operation includes: 依据所述第一弯折操作对应的柔性屏曲率,调整所述第二裁剪边界线在所述第二图像内的位置;adjusting the position of the second cropping boundary line in the second image according to the curvature of the flexible screen corresponding to the first bending operation; 所述在所述用户没有触碰所述柔性屏的情况下,将所述第一裁剪边界线的当前位置作为所述目标裁剪边界线,并锁定所述目标裁剪边界线在所述第一图像内的位置,包括:In the case where the user does not touch the flexible screen, the current position of the first cropping boundary is taken as the target cropping boundary, and the target cropping boundary is locked in the first image. locations, including: 在所述用户没有触碰所述柔性屏的情况下,将所述第二裁剪边界线的当前位置作为所述目标裁剪边界线,并锁定所述目标裁剪边界线在所述第一图像内的位置。In the case that the user does not touch the flexible screen, the current position of the second cropping boundary is taken as the target cropping boundary, and the position of the target cropping boundary in the first image is locked. Location. 4.根据权利要求2所述的方法,其特征在于,所述第一弯折操作包括:对所述柔性屏任意两条相对边的弯折操作;所述第一裁剪边界线包括:与所述相对边平行的两条直线。4. The method according to claim 2, wherein the first bending operation comprises: bending any two opposite sides of the flexible screen; the first cutting boundary line comprises: Two lines whose opposite sides are parallel. 5.根据权利要求2所述的方法,其特征在于,所述第一弯折操作包括:对所述柔性屏的四个角中任意一个角的弯折操作;所述第一裁剪边界线包括:中心位于所述第一图像中心的椭圆边界线,所述椭圆边界线长轴和短轴的长度依据所述四个角分别对应的柔性屏曲率确定。5 . The method according to claim 2 , wherein the first bending operation comprises: bending any one of the four corners of the flexible screen; the first cutting boundary line includes: 6 . : an ellipse boundary line whose center is located at the center of the first image, and the lengths of the long axis and the short axis of the ellipse boundary line are determined according to the respective curvatures of the flexible screen corresponding to the four corners. 6.根据权利要求5所述的方法,其特征在于,在所述第一裁剪边界线为椭圆边界线的情况下,所述依据所述第一弯折操作对应的柔性屏曲率,调整所述第一裁剪边界线在所述第一图像内的位置,包括:6 . The method according to claim 5 , wherein, when the first clipping boundary line is an elliptical boundary line, adjusting the flexible screen according to the curvature of the flexible screen corresponding to the first bending operation. 7 . The position of the first cropping boundary line in the first image, including: 将所述柔性屏的中心所在切面作为基准面,依据每个角到所述中心的连线与所述基准面形成的夹角确定该角对应的映射率;Taking the cut plane where the center of the flexible screen is located as the reference plane, and determining the mapping rate corresponding to the corner according to the angle formed by the connection line from each corner to the center and the reference plane; 将所述映射率与所述柔性屏的长度或宽度的乘积作为该角对应的长轴或短轴的长度;Taking the product of the mapping rate and the length or width of the flexible screen as the length of the long axis or short axis corresponding to the angle; 将所述四个角对应的长轴的长度之和的平均值作为调整后的所述椭圆边界线的长轴长度,将所述四个角对应的短轴的长度之和的平均值作为调整后的所述椭圆边界线的短轴长度。The average value of the sum of the lengths of the long axes corresponding to the four corners is taken as the length of the long axis of the ellipse boundary line after adjustment, and the average value of the sum of the lengths of the short axes corresponding to the four corners is taken as the adjustment. The length of the minor axis of the latter boundary line of the ellipse. 7.一种电子设备,所述电子设备包括柔性屏,其特征在于,包括:7. An electronic device comprising a flexible screen, characterized in that it comprises: 第一弯折模块,用于在所述柔性屏的显示界面显示有第一图像的情况下,接收用户对所述柔性屏的第一弯折操作;a first bending module, configured to receive a user's first bending operation on the flexible screen when a first image is displayed on the display interface of the flexible screen; 调整模块,用于依据所述第一弯折操作对应的柔性屏曲率,确定所述第一图像的目标裁剪边界线;an adjustment module, configured to determine the target cropping boundary line of the first image according to the curvature of the flexible screen corresponding to the first bending operation; 第一接收模块,用于接收用户对所述柔性屏的第一输入;a first receiving module, configured to receive a user's first input to the flexible screen; 移除模块,用于响应于所述第一输入,根据所述目标裁剪边界线移除所述第一图像中位于所述目标裁剪边界线之外的部分,得到目标图像;a removing module, configured to, in response to the first input, remove a portion of the first image that is located outside the target cropping boundary line according to the target cropping boundary line to obtain a target image; 所述第一弯折模块具体用于:在所述用户触碰显示有第一图像的显示界面的情况下,接收所述用户对所述柔性屏的第一弯折操作;The first bending module is specifically configured to: receive a first bending operation of the flexible screen by the user when the user touches the display interface on which the first image is displayed; 所述调整模块具体用于:依据所述第一弯折操作对应的柔性屏曲率,调整所述第一图像的第一裁剪边界线在所述第一图像内的位置;在所述用户没有触碰所述柔性屏的情况下,将所述第一裁剪边界线的当前位置作为所述目标裁剪边界线,并锁定所述目标裁剪边界线在所述第一图像内的位置。The adjustment module is specifically configured to: adjust the position of the first cropping boundary line of the first image in the first image according to the curvature of the flexible screen corresponding to the first bending operation; In the case of touching the flexible screen, the current position of the first cropping boundary is taken as the target cropping boundary, and the position of the target cropping boundary in the first image is locked. 8.根据权利要求7所述的电子设备,其特征在于,所述电子设备还包括:8. The electronic device according to claim 7, wherein the electronic device further comprises: 初始位置确定模块,用于确定所述用户在所述柔性屏上的触碰点;an initial position determination module, configured to determine the touch point of the user on the flexible screen; 依据所述触碰点的位置,确定所述第一裁剪边界线的初始位置。According to the position of the touch point, the initial position of the first cropping boundary line is determined.
CN202010266803.7A 2020-04-07 2020-04-07 An image processing method and electronic device Active CN111443855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010266803.7A CN111443855B (en) 2020-04-07 2020-04-07 An image processing method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010266803.7A CN111443855B (en) 2020-04-07 2020-04-07 An image processing method and electronic device

Publications (2)

Publication Number Publication Date
CN111443855A CN111443855A (en) 2020-07-24
CN111443855B true CN111443855B (en) 2021-07-16

Family

ID=71650051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010266803.7A Active CN111443855B (en) 2020-04-07 2020-04-07 An image processing method and electronic device

Country Status (1)

Country Link
CN (1) CN111443855B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775382A (en) * 2016-11-28 2017-05-31 努比亚技术有限公司 A kind of screenshot method and terminal
CN107526525A (en) * 2017-09-06 2017-12-29 广东欧珀移动通信有限公司 Screen capture method, device, mobile terminal and computer-readable storage medium
CN108089808A (en) * 2017-11-29 2018-05-29 努比亚技术有限公司 A kind of screen-picture acquisition methods, terminal and computer readable storage medium
CN108196775A (en) * 2017-12-19 2018-06-22 努比亚技术有限公司 Sectional drawing control method, flexible screen terminal and computer readable storage medium
CN109542306A (en) * 2018-11-23 2019-03-29 维沃移动通信有限公司 A kind of screenshotss method and terminal device
CN110221738A (en) * 2019-05-16 2019-09-10 珠海格力电器股份有限公司 Picture processing method and equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968274A (en) * 2012-11-22 2013-03-13 广东欧珀移动通信有限公司 A method and system for freely taking screenshots in mobile devices
CN109542314A (en) * 2018-11-22 2019-03-29 维沃移动通信有限公司 A kind of picture editing method and terminal device
CN109857306B (en) * 2018-12-27 2021-04-13 维沃移动通信有限公司 Screen capturing method and terminal equipment
CN109769089B (en) * 2018-12-28 2021-03-16 维沃移动通信有限公司 Image processing method and terminal equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775382A (en) * 2016-11-28 2017-05-31 努比亚技术有限公司 A kind of screenshot method and terminal
CN107526525A (en) * 2017-09-06 2017-12-29 广东欧珀移动通信有限公司 Screen capture method, device, mobile terminal and computer-readable storage medium
CN108089808A (en) * 2017-11-29 2018-05-29 努比亚技术有限公司 A kind of screen-picture acquisition methods, terminal and computer readable storage medium
CN108196775A (en) * 2017-12-19 2018-06-22 努比亚技术有限公司 Sectional drawing control method, flexible screen terminal and computer readable storage medium
CN109542306A (en) * 2018-11-23 2019-03-29 维沃移动通信有限公司 A kind of screenshotss method and terminal device
CN110221738A (en) * 2019-05-16 2019-09-10 珠海格力电器股份有限公司 Picture processing method and equipment

Also Published As

Publication number Publication date
CN111443855A (en) 2020-07-24

Similar Documents

Publication Publication Date Title
US11115591B2 (en) Photographing method and mobile terminal
CN109725683B (en) A program display control method and a folding screen terminal
CN108668083A (en) A camera method and terminal
CN110087001B (en) A shooting processing method, device and mobile terminal
CN108984067B (en) Display control method and terminal
CN110505400B (en) A preview image display adjustment method and terminal
CN109542306B (en) Screen capturing method and terminal equipment
CN108319418B (en) Interface display control method and mobile terminal
WO2019184947A1 (en) Image viewing method and mobile terminal
CN111147752B (en) Zoom factor adjustment method, electronic device and medium
CN111050073B (en) Focusing method and electronic equipment
CN108196775B (en) Screenshot control method, flexible screen terminal and computer-readable storage medium
CN109683802B (en) Icon moving method and terminal
CN110324497B (en) Operation control method, terminal and computer readable storage medium
CN110536005B (en) Object display adjustment method and terminal
CN110968229A (en) A kind of wallpaper setting method and electronic device
CN108519846B (en) A kind of image editing processing method and terminal
CN108174110B (en) A kind of photographing method and flexible screen terminal
CN111131712B (en) An image processing method, device and electronic device
CN111124235B (en) Screen control method and flexible electronic device
CN108111750B (en) Zoom adjustment method, mobile terminal and computer readable storage medium
CN111176526B (en) Picture display method and electronic equipment
CN111028686B (en) Image processing method, device, electronic device and medium
CN110007821B (en) Operation method and terminal equipment
CN111158548A (en) Screen folding method and electronic device

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