CN111028686A - Image processing method, image processing apparatus, electronic device, and medium - Google Patents
Image processing method, image processing apparatus, electronic device, and medium Download PDFInfo
- Publication number
- CN111028686A CN111028686A CN201911280394.XA CN201911280394A CN111028686A CN 111028686 A CN111028686 A CN 111028686A CN 201911280394 A CN201911280394 A CN 201911280394A CN 111028686 A CN111028686 A CN 111028686A
- Authority
- CN
- China
- Prior art keywords
- image
- flexible screen
- degree
- bending
- deformation
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09F—DISPLAYING; ADVERTISING; SIGNS; LABELS OR NAME-PLATES; SEALS
- G09F9/00—Indicating arrangements for variable information in which the information is built-up on a support by selection or combination of individual elements
- G09F9/30—Indicating arrangements for variable information in which the information is built-up on a support by selection or combination of individual elements in which the desired character or characters are formed by combining individual elements
- G09F9/301—Indicating arrangements for variable information in which the information is built-up on a support by selection or combination of individual elements in which the desired character or characters are formed by combining individual elements flexible foldable or roll-able electronic displays, e.g. thin LCD, OLED
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses an image processing method, an image processing device, electronic equipment and a medium, wherein the image processing method is applied to the electronic equipment with a flexible screen and comprises the following steps: displaying a first image on the flexible screen in a first configuration; and outputting a second image associated with the degree of bending of the flexible screen according to the degree of bending of the flexible screen from the first form to the second form when the flexible screen is bent from the first form to the second form, wherein the second image is an image obtained by deforming the first image. By utilizing the embodiment of the invention, the second image which is deformed can be output by bending the flexible screen, a tool for deformation processing does not need to be selected by a user from a plurality of tools, and a sliding gesture or a zooming gesture does not need to be carried out by the user, so that the image deformation processing by the user is more convenient.
Description
Technical Field
Embodiments of the present invention relate to the field of electronic devices, and in particular, to an image processing method and apparatus, an electronic device, and a medium.
Background
As the functions of image processing software are continuously enhanced, more and more users use image processing software to process images. The method comprises the step of carrying out deformation processing on the image so as to enhance interestingness.
Currently, the image processing scheme is: selecting a target image needing deformation processing on an image processing interface by a user; and selecting a target tool from a plurality of tools displayed on the image processing interface, and performing a sliding gesture or a zooming gesture on the target image by using the target tool so as to enable the electronic equipment to perform deformation processing on the target image.
However, since a plurality of tools are displayed on the image processing interface, it takes a long time for the user to select a target tool to be subjected to the deformation processing among the plurality of tools. Moreover, the user needs to perform a sliding gesture or a zooming gesture on the target image to implement the deformation processing on the target image. Therefore, the steps for the user to perform the image deformation processing are cumbersome.
Disclosure of Invention
The embodiment of the invention provides an image processing method, which aims to solve the problem that the steps of image deformation processing by a user are complicated.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an image processing method, which is applied to an electronic device with a flexible screen, and the method includes:
displaying a first image on the flexible screen in a first configuration;
and outputting a second image associated with the degree of bending of the flexible screen according to the degree of bending of the flexible screen from the first form to the second form when the flexible screen is bent from the first form to the second form, wherein the second image is an image obtained by deforming the first image.
In a second aspect, an embodiment of the present invention provides an image processing apparatus applied to an electronic device having a flexible screen, where the apparatus includes:
the first image display module is used for displaying a first image on the flexible screen in the first form;
and the image output module is used for outputting a second image related to the bending degree according to the bending degree of the flexible screen from the first form to the second form when the flexible screen is bent from the first form to the second form, wherein the second image is obtained by deforming the first 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 in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the image processing method.
In a fourth aspect, the embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the image processing method.
In the embodiment of the present invention, when the flexible panel is bent from the first form to the second form, the second image obtained by deforming the first image is output by the degree of bending of the flexible panel from the first form to the second form. The flexible screen can be bent to output the second image which is deformed, a user does not need to select a tool for deformation processing in numerous tools, and a user does not need to perform sliding gestures or zooming gestures, so that the user can deform the image more conveniently, and the use experience of the user is improved.
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 flow chart illustrating an image processing method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a corrugated flexible screen according to an embodiment of the present invention;
FIG. 3 illustrates a schematic structural view of a corner fold of a flexible screen according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating 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.
The image processing method and the image shooting method provided by the invention are applied to the electronic equipment with the flexible screen, and the image or the preview picture can be deformed by bending the flexible screen. With the image processing method, a normal image can be distorted, or a distorted image can be restored. By using the image shooting method, the normal preview picture can be distorted, or the distorted preview picture can be repaired.
The flexible screen includes a flexible Organic Light-Emitting Diode (OLED). Distortion refers to a phenomenon in which, when an object having a square shape is photographed, the periphery is warped or swollen.
Fig. 1 shows a flowchart of an image processing method according to an embodiment of the present invention. The image processing method is applied to an electronic device with a flexible screen, and as shown in fig. 1, the image processing method comprises the following steps:
Wherein the first image may be an image selected in an album by opening the album. Or the first image is an image selected by the photo browsing function of the camera.
102, when the flexible screen is bent from the first form to the second form, the electronic device outputs a second image related to the bending degree according to the bending degree of the flexible screen from the first form to the second form, wherein the second image is an image obtained by deforming the first image.
Outputting a second image associated with the degree of curvature, comprising: displaying a second image associated with the degree of curvature; alternatively, a second image associated with the degree of curvature is stored.
The first image can be an image with distortion, and the electronic device deforms the first image by bending the flexible screen by a user to obtain a second image without distortion. Or the first image is an undistorted image, and the electronic device deforms the first image by bending the flexible screen by a user to obtain a distorted second image. Alternatively, the first image and the second image are two images having different degrees of distortion.
In the embodiment of the present invention, when the flexible panel is bent from the first form to the second form, the second image obtained by deforming the first image is output in accordance with the degree of bending of the flexible panel from the first form to the second form. The flexible screen can be bent to obtain a deformed second image, a tool for deformation processing is not required to be selected by a user among numerous tools, and a sliding gesture or a zooming gesture is also not required to be performed by the user, so that the image deformation processing by the user is more convenient, and the use experience of the user is improved.
Optionally, the first image is a photographed image; before displaying the first image on the flexible screen in the first configuration, the image processing method further includes:
receiving, by an electronic device, a first input while the flexible screen displays the first image;
the displaying a first image on the flexible screen in a first configuration includes:
the electronic device responds to the first input, controls the flexible screen to be in the first form when the first image is shot, and displays the first image on the flexible screen in the first form.
For example, after the flexible screen takes the first image with distortion in the first form, in the case that the first image needs to be repaired, the flexible screen is controlled to be in the first form when the first image is taken. In this case, the flexible screen is bent from the first form when the first image is captured, and the first image is gradually deformed in the process of the flexible screen from the first form to the second form, thereby gradually restoring distortion of the first image.
Optionally, for the first and second configurations, one of the configurations is a flat configuration and the other configuration is a curved configuration. These two cases will be explained below.
The first condition is as follows: the first form is a flat form of the flexible screen, and the second form is a bent form of the flexible screen
When the flexible screen is in the flat state, the electronic device displays a first image with distortion, and the flexible screen is in the bent state by bending the flexible screen. The electronic equipment outputs a second image related to the bending degree according to the bending degree of the flexible screen from the flat state to the bending state, wherein the second image is obtained by restoring the distortion in the first image. I.e. the distortion in the first image is gradually restored to normal during the passage of the flexible screen from the flat configuration to the curved configuration.
In this case, the first image is not limited to an image having distortion, and the first image may also be an image having no distortion.
Case two: the first form is a curved form of the flexible screen and the second form is a flat form of the flexible screen.
When the flexible screen is in a flat state for shooting, the electronic equipment displays a first preview picture without distortion. And displaying a distorted second preview picture under the condition that the flexible screen is in a flat state to a bent state, wherein the second preview picture is a preview picture obtained by deforming the first preview picture. In this case, the electronic apparatus performs shooting to obtain a first image, which is an image having distortion.
When the flexible screen is in a flat state, the electronic equipment displays a first image with distortion, and a control for image deformation restoration is also displayed on an interface where the first image is displayed. The electronic device receives a first input to the control. The electronic device responds to the first input, and controls the flexible screen to be in a bent state when the first image is shot so as to display the first image on the flexible screen in the bent state. And in the process that the flexible screen is in the bent state to the flat state, the distortion of the first image is gradually recovered, and under the condition that the flexible screen is in the flat state, the distortion repair of the first image is completed, so that a second image without distortion is obtained.
Of course, the first form and the second form may be other two forms, for example, the first form and the second form are two forms having different degrees of bending.
Optionally, before outputting the second image associated with the degree of bending according to the degree of bending of the flexible screen from the first form to the second form, the image processing method further includes:
and the electronic equipment carries out deformation processing on the first image according to the target image deformation degree associated with the bending degree to obtain a second image.
For example, the greater the degree of curvature of the flexible screen, the greater the degree of deformation of the target image, and the greater the degree of deformation of the first image.
In an embodiment of the present invention, the degree of deformation of the first image is related to the degree of bending of the flexible screen, for example, the degree of bending and the degree of deformation of the target image satisfy a predetermined functional relationship. Therefore, the user can adjust the bending degree of the flexible screen to deform the first image to different degrees. Thereby facilitating the deformation processing of the first image.
Optionally, before the deforming the first image according to the deformation degree of the target image associated with the bending degree to obtain the second image, the image processing method further includes:
displaying a first control for setting the image deformation degree;
receiving a second input to the first control;
and responding to the second input, and determining the target image deformation degree corresponding to the bending degree according to a target relation associated with the second input, wherein the target relation is the relation between the image deformation degree and the bending degree.
Wherein the target image deformation degree is zero when the image deformation degree associated with the third input is zero. In the case where the degree of image deformation associated with the third input is not zero, the greater the degree of image deformation associated with the third input, the greater the degree of bending of the flexible screen, the greater the degree of target image deformation.
For example, a setting control is displayed on an interface on which a first image is displayed, and the electronic device receives an input to the setting control. The electronic device responds to the input of the setting control, and displays a first setting interface, wherein the first setting interface comprises a parameter bar (namely the first control in the above) for setting the image deformation degree. The electronic device receives a second input for sliding the parameter bar, and the electronic device responds to the second input and selects a target relation between the image deformation degree and the bending degree according to the sliding of the user.
For another example, for an interface displaying the first image, the electronic device receives a gesture input to the interface. The electronic device displays a first setting interface in response to the gesture input, wherein the first setting interface comprises a setting frame (namely, the first control in the above) for setting the image deformation degree. The electronic device receives a second input to the setting frame, and the electronic device determines a target relationship of the image deformation degree and the bending degree according to the numerical value set in the setting frame in response to the second input.
In the embodiment of the invention, the user can select the target relation between the image deformation degree and the bending degree according to the requirement of the user, thereby meeting the requirements of different users on image processing. For example, a first user may need to deform a first image more and a second user may need to deform the first image less, so that the first user and the second user may select different target relationships. In this case, although the first user and the second user bend the flexible screen to the same extent, the first image is not deformed to the same extent. For example, the first image is deformed to a large extent by the bending of the flexible screen by the first user, and the first image is deformed to a small extent by the bending of the flexible screen by the second user, so that the first user can complete the deformation of the first image quickly, and the second user can achieve the desired deformation more accurately. Thereby meeting the deformation requirements of different users on the image.
Optionally, before the outputting the second image associated with the degree of curvature, the image processing method further comprises:
according to a target image deformation mode, carrying out deformation processing on the first image;
the target image deformation mode is an image deformation mode corresponding to the bending mode of the flexible screen from the first form to the second form.
For example, the bending modes of the flexible screen include: the flexible screen is bent in a concave manner, and the flexible screen is bent in a convex manner, such as a wavy manner of the flexible screen 001 shown in fig. 2. The image deformation mode corresponding to the concave bending mode of the flexible screen is deformation with an image concave effect, and the image deformation mode corresponding to the convex bending mode of the flexible screen is deformation which is outwards dispersed by taking a convex point as a center. The image deformation mode corresponding to the wavy bending mode of the flexible screen is outward divergent deformation with a plurality of points as centers.
In the embodiment of the invention, a user can bend the flexible screen in different modes, so that the first image is deformed according to different image deformation modes, and various image deformation modes are provided for the user.
Optionally, after step 102, the image processing method further includes:
and saving the second image under the condition that the folding angle of the first preset area of the flexible screen is larger than the first preset angle. For example, the first predetermined area is any one of four corners of the flexible screen. The first predetermined angle may be 90 °.
Referring to fig. 3, in the case where the lower left corner of the flexible screen is folded and the folding angle is greater than the first predetermined angle, the second image is saved.
In an embodiment of the present invention, the second image is saved in a case where the folding angle of the first predetermined area of the flexible screen is greater than the first predetermined angle. The user does not need to click the control displayed on the flexible screen, so that the user operation is more convenient.
Optionally, before the flexible screen is bent from the first configuration to the second configuration, the image processing method further includes:
receiving a third input selecting a target region in the first image;
the outputting a second image associated with the degree of curvature, comprising:
outputting a second image associated with the degree of curvature in response to the third input, the second image being an image of the target region in the first image that is deformed.
The user may choose to deform a local region in the first image, i.e. the target region, thereby enabling a local deformation of the first image.
Optionally, both the first image and the second image are preview images;
after the outputting of the second image associated with the degree of curvature, the image processing method further includes:
and shooting to obtain a target image under the condition that the preset shooting triggering condition is detected to be met.
The preset shooting triggering condition comprises that the folding angle of a second preset area of the flexible screen is larger than a second preset angle. For example, the second predetermined area is any one of four corners of the flexible screen. The second predetermined angle may be 90 °. Alternatively, the predetermined photographing trigger condition includes receiving an input of a photographing control.
In the embodiment of the invention, when the flexible screen displays the preview picture, the preview picture can be deformed, and the shot target image is the deformed picture. The method and the device have the advantages that the deformed target image is obtained by bending the flexible screen when the image is shot, a user does not need to select a tool for deformation processing among numerous tools, and a user does not need to perform sliding gestures or zooming gestures, so that the user can deform the image more conveniently, and the use experience of the user is improved.
Fig. 4 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention. The image processing apparatus is applied to an electronic device having a flexible screen, and as shown in fig. 4, the image processing apparatus 200 includes:
a first image display module 201, configured to display a first image on the flexible screen in the first configuration;
and an image output module 202, configured to output a second image associated with a degree of bending of the flexible screen from the first form to the second form when the flexible screen is bent from the first form to the second form, where the second image is an image obtained by deforming the first image.
In the embodiment of the present invention, when the flexible panel is bent from the first form to the second form, the second image obtained by deforming the first image is output in accordance with the degree of bending of the flexible panel from the first form to the second form. The flexible screen can be bent to obtain a deformed second image, a tool for deformation processing is not required to be selected by a user among numerous tools, and a sliding gesture or a zooming gesture is also not required to be performed by the user, so that the image deformation processing by the user is more convenient, and the use experience of the user is improved.
Optionally, the first image is a photographed image; the image processing apparatus 200 further includes:
the first input receiving module is used for receiving a first input under the condition that the flexible screen displays a first image;
the first image display module 201 includes:
and the first input response module is used for responding to the first input, controlling the flexible screen to be in the first form when the first image is shot, and displaying the first image on the flexible screen in the first form.
Optionally, the image processing apparatus 200 further includes:
and the first deformation processing module is used for carrying out deformation processing on the first image according to the deformation degree of the target image associated with the bending degree to obtain a second image.
Optionally, the image processing apparatus 200 further includes:
the first control display module is used for displaying a first control for setting the image deformation degree;
the second input receiving module is used for receiving second input of the first control;
and the second input response module is used for responding to the second input and determining the target image deformation degree corresponding to the bending degree according to the target relation associated with the second input, wherein the target relation is the relation between the image deformation degree and the bending degree.
Optionally, the image processing apparatus 200 further includes:
the second deformation processing module is used for carrying out deformation processing on the first image according to the target image deformation mode;
the target image deformation mode is an image deformation mode corresponding to the bending mode of the flexible screen from the first mode to the second mode.
Optionally, the image processing apparatus 200 further includes:
a third input receiving module for receiving a third input selecting a target region in the first image;
the image output module 202 includes:
and the third input response module is used for responding to the third input and outputting a second image related to the bending degree, wherein the second image is obtained by deforming the target area in the first image.
Optionally, the first image and the second image are both preview images; the image processing apparatus 200 further includes:
and the shooting module is used for shooting under the condition that the preset shooting triggering condition is detected to be met, so as to obtain the target image.
Optionally, the predetermined shooting trigger condition includes that a folding angle of a predetermined area of the flexible screen is greater than a predetermined angle.
Fig. 5 shows a schematic diagram of a hardware structure of an electronic device 300 according to an embodiment of the present invention, where the electronic device 300 includes, but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, processor 310, and power supply 311. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 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.
Wherein the display unit 306 is configured to display a first image on the flexible screen in the first configuration;
a display unit 306 configured to output a second image associated with a degree of bending of the flexible screen from the first form to the second form when the flexible screen is bent from the first form to the second form, the second image being an image obtained by deforming the first image; for example, the display unit 306 outputs a second image associated with the degree of curvature, including: the display unit 306 displays the second image.
Alternatively, the processor 310 is configured to output a second image associated with a degree of bending of the flexible screen from the first form to the second form when the flexible screen is bent from the first form to the second form, where the second image is an image obtained by deforming the first image. For example, the processor 310 outputs a second image associated with the degree of curvature, including: the processor 310 stores the second image to the memory 309.
In the embodiment of the present invention, when the flexible panel is bent from the first form to the second form, the second image obtained by deforming the first image is output in accordance with the degree of bending of the flexible panel from the first form to the second form. The flexible screen can be bent to obtain a deformed second image, a tool for deformation processing is not required to be selected by a user among numerous tools, and a sliding gesture or a zooming gesture is also not required to be performed by the user, so that the image deformation processing by the user is more convenient, and the use experience of the user is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 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 310; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 301 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 301 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 302, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as sound. Also, the audio output unit 303 may also provide audio output related to a specific function performed by the electronic apparatus 300 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 304 is used to receive audio or video signals. The input Unit 304 may include a Graphics Processing Unit (GPU) 3041 and a microphone 3042, and the Graphics processor 3041 processes image data of a still picture or video obtained by an image capturing apparatus (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 306. The image frames processed by the graphic processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via the radio frequency unit 301 or the network module 302. The microphone 3042 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 301 in case of the phone call mode.
The electronic device 300 also includes at least one sensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 3061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 3061 and/or the backlight when the electronic device 300 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 305 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 306 is used to display information input by the user or information provided to the user. The Display unit 306 may include a Display panel 3061, and the Display panel 3061 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 307 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 307 includes a touch panel 3071 and other input devices 3072. The touch panel 3071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 3071 (e.g., operations by a user on or near the touch panel 3071 using a finger, a stylus, or any suitable object or attachment). The touch panel 3071 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 310, and receives and executes commands sent by the processor 310. In addition, the touch panel 3071 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3071. Specifically, the other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein.
Further, the touch panel 3071 may be overlaid on the display panel 3061, and when the touch panel 3071 detects a touch operation on or near the touch panel, the touch operation is transmitted to the processor 310 to determine the type of the touch event, and then the processor 310 provides a corresponding visual output on the display panel 3061 according to the type of the touch event. Although in fig. 5, the touch panel 3071 and the display panel 3061 are implemented as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 308 is an interface for connecting an external device to the electronic apparatus 300. 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 308 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 300 or may be used to transmit data between the electronic apparatus 300 and the external device.
The memory 309 may be used to store software programs as well as various data. The memory 309 may mainly include a program storage area and a data storage area, wherein the program storage 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 309 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 310 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 operating or executing software programs and/or modules stored in the memory 309 and calling data stored in the memory 309, thereby performing overall monitoring of the electronic device. Processor 310 may include one or more processing units; preferably, the processor 310 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 the processor 310.
The electronic device 300 may further include a power supply 311 (such as a battery) for supplying power to various components, and preferably, the power supply 311 may be logically connected to the processor 310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 300 includes some functional modules that are not shown, and are not described in detail herein.
An embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the image processing method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
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 (11)
1. An image processing method applied to an electronic device with a flexible screen is characterized by comprising the following steps:
displaying a first image on the flexible screen in a first configuration;
and outputting a second image associated with the degree of bending of the flexible screen according to the degree of bending of the flexible screen from the first form to the second form when the flexible screen is bent from the first form to the second form, wherein the second image is an image obtained by deforming the first image.
2. The method of claim 1, wherein the first image is a captured image;
prior to the displaying the first image on the flexible screen in the first configuration, the method further comprises:
receiving a first input while the flexible screen displays the first image;
the displaying a first image on the flexible screen in a first configuration includes:
in response to the first input, controlling the flexible screen to be in the first configuration when the first image is captured, and displaying the first image on the flexible screen in the first configuration.
3. The method of claim 1, wherein prior to said outputting the second image associated with the degree of curvature, the method further comprises:
and carrying out deformation processing on the first image according to the deformation degree of the target image associated with the bending degree to obtain the second image.
4. The method of claim 3, wherein prior to said warping the first image according to a target image warping degree associated with the warping degree, the method further comprises:
displaying a first control for setting the image deformation degree;
receiving a second input to the first control;
and responding to the second input, and determining the target image deformation degree corresponding to the bending degree according to a target relation associated with the second input, wherein the target relation is the relation between the image deformation degree and the bending degree.
5. The method of claim 1, wherein prior to said outputting the second image associated with the degree of curvature, the method further comprises:
according to a target image deformation mode, carrying out deformation processing on the first image;
the target image deformation mode is an image deformation mode corresponding to the bending mode of the flexible screen from the first form to the second form.
6. The method of claim 1, wherein prior to bending the flexible screen from the first configuration to the second configuration, the method further comprises:
receiving a third input selecting a target region in the first image;
the outputting a second image associated with the degree of curvature, comprising:
outputting a second image associated with the degree of curvature in response to the third input, the second image being an image of the target region in the first image that is deformed.
7. The method of claim 1, wherein the first image and the second image are both preview images;
after the outputting the second image associated with the degree of curvature, the method further comprises:
and shooting to obtain a target image under the condition that the preset shooting triggering condition is detected to be met.
8. The method of claim 7, wherein the predetermined capture trigger condition comprises a fold angle of a predetermined area of the flexible screen being greater than a predetermined angle.
9. An image processing apparatus applied to an electronic device having a flexible screen, the apparatus comprising:
the first image display module is used for displaying a first image on the flexible screen in the first form;
and the image output module is used for outputting a second image related to the bending degree according to the bending degree of the flexible screen from the first form to the second form when the flexible screen is bent from the first form to the second form, wherein the second image is obtained by deforming the first image.
10. An electronic device, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the image processing method according to any one of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the image processing method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911280394.XA CN111028686B (en) | 2019-12-13 | 2019-12-13 | Image processing method, image processing apparatus, electronic device, and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911280394.XA CN111028686B (en) | 2019-12-13 | 2019-12-13 | Image processing method, image processing apparatus, electronic device, and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111028686A true CN111028686A (en) | 2020-04-17 |
CN111028686B CN111028686B (en) | 2021-09-24 |
Family
ID=70208947
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911280394.XA Active CN111028686B (en) | 2019-12-13 | 2019-12-13 | Image processing method, image processing apparatus, electronic device, and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111028686B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112035010A (en) * | 2020-08-31 | 2020-12-04 | 维沃移动通信有限公司 | Image display method and device, electronic equipment and readable storage medium |
CN112634124A (en) * | 2020-12-10 | 2021-04-09 | 深兰工业智能创新研究院(宁波)有限公司 | Image deformation method, image deformation device, electronic apparatus, and storage medium |
CN117082165A (en) * | 2023-09-19 | 2023-11-17 | 荣耀终端有限公司 | Photographing operation method, terminal equipment and storage medium |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104272219A (en) * | 2012-04-08 | 2015-01-07 | 三星电子株式会社 | Deformable display device and method for controlling thereof |
KR20150006191A (en) * | 2013-07-08 | 2015-01-16 | 삼성전자주식회사 | Method for operating panorama image and electronic device thereof |
CN104683715A (en) * | 2015-02-15 | 2015-06-03 | 联想(北京)有限公司 | Information processing method and electronic equipment |
KR20160085202A (en) * | 2015-01-07 | 2016-07-15 | 삼성전자주식회사 | Display apparatus |
CN106648035A (en) * | 2016-11-29 | 2017-05-10 | 维沃移动通信有限公司 | Image resolution adjusting method and mobile terminal |
CN107577401A (en) * | 2017-08-31 | 2018-01-12 | 维沃移动通信有限公司 | A kind of image processing method and mobile terminal |
CN108037883A (en) * | 2017-11-30 | 2018-05-15 | 努比亚技术有限公司 | Control method, mobile terminal and the computer-readable recording medium of mobile terminal |
CN108228032A (en) * | 2018-01-26 | 2018-06-29 | 维沃移动通信有限公司 | The control method and mobile terminal of a kind of display screen |
CN108228049A (en) * | 2017-11-30 | 2018-06-29 | 努比亚技术有限公司 | Adaptive shape control method, flexible screen terminal and computer storage media |
CN108319329A (en) * | 2017-12-27 | 2018-07-24 | 努比亚技术有限公司 | A kind of display control method, flexible screen terminal and computer readable storage medium |
CN108566510A (en) * | 2018-01-31 | 2018-09-21 | 努比亚技术有限公司 | Flexible screen control method, mobile terminal and readable storage medium storing program for executing |
CN109120850A (en) * | 2018-09-20 | 2019-01-01 | 维沃移动通信有限公司 | A kind of image processing method and mobile terminal |
CN109302512A (en) * | 2018-10-15 | 2019-02-01 | Oppo广东移动通信有限公司 | Flexible electronic equipment, the control method of flexible electronic equipment, device and electronic equipment |
CN109542314A (en) * | 2018-11-22 | 2019-03-29 | 维沃移动通信有限公司 | A kind of picture editing method and terminal device |
CN109739421A (en) * | 2019-01-15 | 2019-05-10 | 维沃移动通信有限公司 | A kind of image processing method and terminal |
-
2019
- 2019-12-13 CN CN201911280394.XA patent/CN111028686B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104272219A (en) * | 2012-04-08 | 2015-01-07 | 三星电子株式会社 | Deformable display device and method for controlling thereof |
KR20150006191A (en) * | 2013-07-08 | 2015-01-16 | 삼성전자주식회사 | Method for operating panorama image and electronic device thereof |
KR20160085202A (en) * | 2015-01-07 | 2016-07-15 | 삼성전자주식회사 | Display apparatus |
CN104683715A (en) * | 2015-02-15 | 2015-06-03 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN106648035A (en) * | 2016-11-29 | 2017-05-10 | 维沃移动通信有限公司 | Image resolution adjusting method and mobile terminal |
CN107577401A (en) * | 2017-08-31 | 2018-01-12 | 维沃移动通信有限公司 | A kind of image processing method and mobile terminal |
CN108037883A (en) * | 2017-11-30 | 2018-05-15 | 努比亚技术有限公司 | Control method, mobile terminal and the computer-readable recording medium of mobile terminal |
CN108228049A (en) * | 2017-11-30 | 2018-06-29 | 努比亚技术有限公司 | Adaptive shape control method, flexible screen terminal and computer storage media |
CN108319329A (en) * | 2017-12-27 | 2018-07-24 | 努比亚技术有限公司 | A kind of display control method, flexible screen terminal and computer readable storage medium |
CN108228032A (en) * | 2018-01-26 | 2018-06-29 | 维沃移动通信有限公司 | The control method and mobile terminal of a kind of display screen |
CN108566510A (en) * | 2018-01-31 | 2018-09-21 | 努比亚技术有限公司 | Flexible screen control method, mobile terminal and readable storage medium storing program for executing |
CN109120850A (en) * | 2018-09-20 | 2019-01-01 | 维沃移动通信有限公司 | A kind of image processing method and mobile terminal |
CN109302512A (en) * | 2018-10-15 | 2019-02-01 | Oppo广东移动通信有限公司 | Flexible electronic equipment, the control method of flexible electronic equipment, device and electronic equipment |
CN109542314A (en) * | 2018-11-22 | 2019-03-29 | 维沃移动通信有限公司 | A kind of picture editing method and terminal device |
CN109739421A (en) * | 2019-01-15 | 2019-05-10 | 维沃移动通信有限公司 | A kind of image processing method and terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112035010A (en) * | 2020-08-31 | 2020-12-04 | 维沃移动通信有限公司 | Image display method and device, electronic equipment and readable storage medium |
CN112634124A (en) * | 2020-12-10 | 2021-04-09 | 深兰工业智能创新研究院(宁波)有限公司 | Image deformation method, image deformation device, electronic apparatus, and storage medium |
CN112634124B (en) * | 2020-12-10 | 2024-04-12 | 深兰工业智能创新研究院(宁波)有限公司 | Image warping method, image warping device, electronic apparatus, and storage medium |
CN117082165A (en) * | 2023-09-19 | 2023-11-17 | 荣耀终端有限公司 | Photographing operation method, terminal equipment and storage medium |
CN117082165B (en) * | 2023-09-19 | 2024-02-23 | 荣耀终端有限公司 | Photographing operation method, terminal equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111028686B (en) | 2021-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108513070B (en) | Image processing method, mobile terminal and computer readable storage medium | |
CN107957839B (en) | Display control method and mobile terminal | |
CN108469898B (en) | Image processing method and flexible screen terminal | |
CN109725683B (en) | Program display control method and folding screen terminal | |
CN109542306B (en) | Screen capturing method and terminal equipment | |
CN110209313B (en) | Icon moving method and terminal equipment | |
CN111028686B (en) | Image processing method, image processing apparatus, electronic device, and medium | |
US11778079B2 (en) | Method for controlling foldable terminal and foldable terminal | |
CN111147752B (en) | Zoom factor adjusting method, electronic device, and medium | |
CN111031234B (en) | Image processing method and electronic equipment | |
CN111090408A (en) | Display method and electronic equipment | |
CN109523253B (en) | Payment method and device | |
CN108898555B (en) | Image processing method and terminal equipment | |
CN110413363B (en) | Screenshot method and terminal equipment | |
CN110784575B (en) | Electronic equipment and shooting method | |
CN108174110B (en) | Photographing method and flexible screen terminal | |
CN108509141B (en) | Control generation method and mobile terminal | |
CN110536005B (en) | Object display adjustment method and terminal | |
US20220083207A1 (en) | Editing method and mobile terminal | |
CN110007821B (en) | Operation method and terminal equipment | |
CN109597546B (en) | Icon processing method and terminal equipment | |
CN108536513B (en) | Picture display direction adjusting method and mobile terminal | |
CN111131712B (en) | Image processing method and device and electronic equipment | |
CN111124225B (en) | Display control method and electronic equipment | |
CN109660750B (en) | Video call method and terminal |
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 |