CN113676665A - Image processing method and device and electronic equipment - Google Patents
Image processing method and device and electronic equipment Download PDFInfo
- Publication number
- CN113676665A CN113676665A CN202110959925.9A CN202110959925A CN113676665A CN 113676665 A CN113676665 A CN 113676665A CN 202110959925 A CN202110959925 A CN 202110959925A CN 113676665 A CN113676665 A CN 113676665A
- Authority
- CN
- China
- Prior art keywords
- target
- image
- flexible screen
- parameter
- area
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/95—Computational photography systems, e.g. light-field imaging systems
- H04N23/951—Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Measuring And Recording Apparatus For Diagnosis (AREA)
Abstract
The application provides an image processing method, an image processing device and electronic equipment, wherein the method comprises the following steps: receiving a first input for a flexible screen, a first image being displayed on a first region of the flexible screen; adjusting an unfolded area of the flexible screen in response to the first input; acquiring target image parameters corresponding to the adjusted unfolding area, wherein the target image parameters have a corresponding relation with the unfolding area of the flexible screen; and carrying out image processing on the first image according to the target image parameter.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to an image processing method and apparatus, and an electronic device.
Background
In taking a picture, in order to take a user-desired image, various functional components, such as a blurring diaphragm, may be used to process the image. At present, when a functional component is used for processing an image, a functional component menu needs to be selected, a parameter adjustment interface is entered, and an adjustment control is operated to adjust image parameters so as to process the image, so that the operation is complex.
Disclosure of Invention
The embodiment of the application provides an image processing method and device and electronic equipment, and can solve the problem that in the prior art, the operation of adjusting image parameters to process images is complex.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present application provides an image processing method, where the method includes:
receiving a first input for a flexible screen, a first image being displayed on a first region of the flexible screen;
adjusting an unfolded area of the flexible screen in response to the first input;
acquiring target image parameters corresponding to the adjusted unfolding area, wherein the target image parameters have a corresponding relation with the unfolding area of the flexible screen;
and carrying out image processing on the first image according to the target image parameter.
In a second aspect, an embodiment of the present application provides an image processing apparatus, including:
the device comprises a first receiving module, a second receiving module and a display module, wherein the first receiving module is used for receiving a first input aiming at a flexible screen, and a first image is displayed on a first area of the flexible screen;
a first adjusting module for responding to the first input and adjusting the unfolding area of the flexible screen;
an obtaining module, configured to obtain a target image parameter corresponding to the adjusted expansion area, where the target image parameter has a corresponding relationship with the expansion area of the flexible screen;
and the processing module is used for carrying out image processing on the first image according to the target image parameters.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps in the image processing method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps in the image processing method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, a first input aiming at a flexible screen is received, and a first image is displayed on a first area of the flexible screen; adjusting an unfolded area of the flexible screen in response to the first input; acquiring target image parameters corresponding to the adjusted unfolding area, wherein the target image parameters have a corresponding relation with the unfolding area of the flexible screen; and carrying out image processing on the first image according to the target image parameter. Therefore, the image parameters for image processing are adjusted by adjusting the expansion area of the flexible screen, and the first image is subjected to image processing by adopting the adjusted target image parameters, so that the operation is simple and convenient.
Drawings
Fig. 1 is a flowchart of an image processing method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a screen display of an electronic device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a screen display of another electronic device provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of a screen display of another electronic device provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a screen display of another electronic device provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another image processing apparatus provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of another image processing apparatus provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of another image processing apparatus provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of another image processing apparatus provided in an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of another electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The image processing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is a flowchart of an image processing method provided in an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
The first input can be input aiming at the parameter control identifier, so that the expansion area of the flexible screen can be adjusted through the parameter control identifier, and further, target image parameters for image processing are adjusted; alternatively, the first input may be an operation in which the user manually pulls the flexible screen apart to unfold the flexible screen; or, the first input may be an operation of a user pressing a preset key to unfold the flexible screen; etc., which are not limited by the present embodiment. The flexible screen may be a scroll screen. The first image may be an image to be processed, and for example, in a case where the first region displays a photographing interface, the first image may be an image displayed by the photographing interface, and for example, may be a preview image.
and 103, acquiring target image parameters corresponding to the adjusted expansion area, wherein the target image parameters have a corresponding relation with the expansion area of the flexible screen.
The target image parameter may include a target aperture parameter or other parameters that can be used for image adjustment, which is not limited in this embodiment. The different developed areas of the flexible screen may correspond to different target image parameters. Illustratively, the target image parameter may be proportional to the unfolded area of the flexible screen; or, the ratio of the current expansion area of the flexible screen to the maximum expansion area of the flexible screen may be calculated to determine the expansion degree of the flexible screen, and the maximum expansion area of the flexible screen may be the maximum expandable area size of the flexible screen. The unfolding degree of the flexible screen can be 0% to 100%, and the unfolding degree of 0% represents that the flexible screen is completely folded; the degree of expansion of 100% indicates that the flexible screen is fully expanded.
As an embodiment, taking an example that the target image parameter includes a target aperture parameter, a value range of the target aperture parameter is [ L, R ], a degree of expansion when the flexible screen is completely expanded is 100%, and a corresponding target aperture parameter may be R; the unfolding degree is 0% when the flexible screen is completely folded, and the corresponding target aperture parameter can be L. Taking L as 2 and R as 16 as an example, the aperture parameter corresponding to the maximum blurring aperture is 2.0, and the aperture parameter corresponding to the minimum blurring aperture is 16. When the flexible screen is completely folded, the unfolding degree is 0%, and the corresponding blurring aperture size is F2.0; the degree of expansion is 100% when the flexible screen is fully expanded, and the corresponding blurring aperture size is F16.
And 104, carrying out image processing on the first image according to the target image parameter.
The first region may display a photographing interface, and the photographing interface may display a first image. After the first image is subjected to image processing according to the target image parameters, the input of a user selecting a photographing or shooting control can be received, and the first image subjected to image processing is photographed or shot. Optionally, an image obtained by performing image processing on the first image according to the target image parameter is referred to as a second image.
As an embodiment, as shown in fig. 2, the flexible screen further includes a second region 11, the second region 11 can be unfolded or folded relative to the first region, during the process of unfolding or folding the second region 11, the size of the first image displayed on the first region is not changed, and the first image is changed according to a target image parameter that changes along with the unfolded area, for example, the target image parameter may be a target aperture parameter, and the degree of blurring of the first image is changed according to the target aperture parameter that changes along with the unfolded area. As shown in fig. 2, when the second area 11 is completely closed, the unfolding degree is 0%, the corresponding virtual aperture size is F2.0, and F2.0 is displayed in the virtual aperture control 12; as shown in fig. 3, the extent of expansion of the second area 11 when fully expanded is 100%, the corresponding blurring aperture size is F16, and F16 is displayed in the blurring aperture control 12.
It should be noted that, by adjusting the expansion area of the flexible screen, the target image parameter for image processing is adjusted, so that the first image can be prevented from being blocked when the target image parameter is adjusted, and the user experience of image processing can be improved.
In the embodiment of the application, a first input aiming at a flexible screen is received, and a first image is displayed on a first area of the flexible screen; adjusting an unfolded area of the flexible screen in response to the first input; acquiring target image parameters corresponding to the adjusted unfolding area, wherein the target image parameters have a corresponding relation with the unfolding area of the flexible screen; and carrying out image processing on the first image according to the target image parameter. Therefore, the image parameters for image processing are adjusted by adjusting the expansion area of the flexible screen, and the first image is subjected to image processing by adopting the adjusted target image parameters, so that the operation is simple and convenient.
Optionally, the target image parameter includes a target aperture parameter, and the image processing on the first image according to the target image parameter includes:
and blurring the first image according to the target aperture parameter.
In this embodiment, the target aperture parameter corresponding to the adjusted expanded area is acquired, and the blurring processing is performed on the first image according to the target aperture parameter, so that the blurring aperture parameter for blurring processing can be adjusted by adjusting the expanded area of the flexible screen, and the operation is simple and convenient.
Optionally, before receiving the first input for the flexible screen, the method further includes:
displaying a parameter control identifier;
wherein the first input is an input for the parameter control identity.
The parameter control mark can comprise a control sub mark and a sliding sub mark, and the sliding position of the sliding sub mark on the control sub mark is in a corresponding relation with the unfolding area of the flexible screen; or the parameter control mark can be in a dial shape, the expansion area of the flexible screen can be adjusted by adjusting the pointer on the dial, and the position of the pointer on the dial and the expansion area of the flexible screen have a corresponding relation; and the like, the embodiment does not limit the concrete expression form of the parameter control identifier.
In this embodiment, a parameter control identifier is displayed, the expansion area of the flexible screen is adjusted by inputting the parameter control identifier, a target image parameter corresponding to the adjusted expansion area is obtained, and the first image is subjected to image processing according to the target image parameter. Therefore, the user can intuitively adjust the image parameters through the parameter control identifier, and the user experience is better.
Optionally, the parameter control identifier includes a control sub identifier and a sliding sub identifier, and the receiving a first input to the flexible screen includes:
receiving an input for adjusting the sliding position of the sliding sub-identifier on the control sub-identifier; and the sliding position of the slider sub identifier on the controller sub identifier corresponds to the unfolding area of the flexible screen.
The control sub-identifier can be characterized in the form of a control bar, and the sliding sub-identifier can be characterized in the form of a sliding bar. The user can move the sliding position of the sliding sub-identifier on the control sub-identifier to control the unfolding area of the flexible screen. Exemplarily, the control slider sub identifier is located at the leftmost end of the control slider sub identifier, and the expansion degree of the flexible screen can be controlled to be 100%; the control slider sub identifier is positioned at the rightmost end of the control slider sub identifier, and the unfolding degree of the flexible screen can be controlled to be 0%.
In one embodiment, the flexible screen includes a first region and a second region that can be extended or retracted relative to the first region. The control slider identifier is positioned at the leftmost end of the control slider identifier and can control the second area to be completely unfolded, namely the unfolding degree of the flexible screen is 100%; the control slider sub identifier is located at the rightmost end of the control slider sub identifier, and the second area can be controlled to be completely folded, namely the unfolding degree of the flexible screen is 0%.
In this embodiment, an input of adjusting a sliding position of the sliding sub-identifier on the control sub-identifier is received, an expansion area of the flexible screen is adjusted, a target image parameter corresponding to the adjusted expansion area is obtained, and the first image is subjected to image processing according to the target image parameter. Therefore, the user can adjust the sliding position of the sliding sub-identifier to adjust the target image parameter for image processing, and the method is visual and good in user experience.
Optionally, a blurring light spot is displayed on the first image, and the method further includes:
in the process of adjusting the expansion area of the flexible screen, adjusting the display size of the blurring light spot to enable the display size of the blurring light spot to be matched with the blurring degree of the first image;
wherein the degree of blurring of the first image is inversely proportional to the target aperture parameter.
The larger the target aperture parameter is, the weaker the blurring degree is. For example, the target aperture parameters may include: 1.8,2.8,4.0,5.6,8.0, 11, 16. 1.8, the corresponding blurring aperture is the largest, and the blurring degree is the strongest; 16 corresponds to the smallest blurring aperture and the weakest blurring degree.
As an embodiment, when the default user manually expands the flexible screen, the shooting interface may display a conventional circular light spot effect, and by combining with the aperture, the shooting interface may appear a faint light spot effect in a suitable depth of field range, and simultaneously, as the user pulls the expansion degree of the flexible screen, the blurring degree of the first image changes along with the expansion degree of the flexible screen, and the light spot may automatically change in size along with the change of the blurring range, presenting a natural transitional effect. As shown in fig. 4, when the user uses the slider sub-identifier to operate the flexible screen to expand, the spot selection control is clicked on the right side of the slider sub-identifier, so that a circle, a love or a star can be selected as a spot shape, the slide bar on the slider sub-identifier is controlled to be in a corresponding shape, the spot special effect on the preview interface is changed into a corresponding shape, and an interesting spot effect is realized. Like this, can provide nature and interesting strong virtual facula, the user can determine different facula effects through the different modes of expanding, and user experience is better.
In this embodiment, in the process of adjusting the expansion area of the flexible screen, the display size of the blurring light spot is adjusted so that the display size of the blurring light spot is matched with the blurring degree of the first image, so that when a user wants to shoot a scene such as light, a more natural blurring light spot special effect can be provided.
Optionally, the flexible screen further comprises a second area, and the second area can be unfolded or folded relative to the first area;
the acquiring of the target aperture parameter corresponding to the adjusted deployed area includes:
determining a first ratio of a current unfolded area of the second region to a maximum unfolded area of the second region;
determining a target product of a difference value of a maximum aperture value and a minimum aperture value of the virtual aperture and the first ratio;
determining the target aperture parameter based on the target product, wherein the target aperture parameter is positively correlated with the target product.
The maximum aperture value may be an aperture parameter corresponding to the smallest virtual aperture, and the maximum aperture value may be an aperture parameter corresponding to the largest virtual aperture. The determining the target aperture parameter based on the target product may be: determining a quotient value of the target product and the blurring stepping parameter, and determining the target aperture parameter based on the aperture minimum value and the quotient value; alternatively, the target aperture parameter may be the sum of the target product and the aperture minimum.
Additionally, prior to the receiving the first input for the flexible screen, the method may further include: receiving a second input for the flexible screen; adjusting a blurring stepping parameter in response to the second input. The precise blurring control can be adopted to adjust the blurring step parameter, so as to control the step length of the expansion area, for example, the blurring step parameter can be 50, 100 or 200, the blurring step parameter is 50, which can represent the minimum variable expansion degree of 2%, the blurring step parameter is 100, which can represent the minimum variable expansion degree of 1%, and the blurring step parameter is 200, which can represent the minimum variable expansion degree of 0.5%; alternatively, adjusting the blurring step parameter by using the precise blurring control to control the mapping relationship between the expanded area and the target aperture parameter, for example, determining the target aperture parameter based on the target product may include: determining a quotient of the target product and the adjusted ghosting step parameter; determining the target aperture parameter based on the aperture minimum and the quotient.
In this embodiment, a first ratio of the current deployment area of the second region to the maximum deployment area of the second region is determined; determining a target product of a difference value of a maximum aperture value and a minimum aperture value of the virtual aperture and the first ratio; determining the target aperture parameter based on the target product, wherein the target aperture parameter is positively correlated with the target product, such that the target aperture parameter can be adjusted by adjusting the current deployed area of the second region.
Optionally, before receiving the first input for the flexible screen, the method further includes:
receiving a second input for the flexible screen;
adjusting a blurring stepping parameter in response to the second input;
the determining the target aperture parameter based on the target product comprises:
determining a quotient of the target product and the adjusted ghosting step parameter;
determining the target aperture parameter based on the aperture minimum and the quotient.
Wherein the target aperture parameter may be a sum of the aperture minimum and the quotient; alternatively, the quotient may be rounded, and the target aperture parameter may be the sum of the aperture minimum value and the rounded value of the quotient.
As an embodiment, the target aperture parameter may be:
wherein L may be a minimum aperture value of the blurring aperture, that is, a minimum value of a preset aperture parameter; r may be the maximum aperture value of the virtual aperture, i.e. the maximum value of the preset aperture parameter. The a% may be a first ratio of a current unfolded area of the second region to a maximum unfolded area of the second region, that is, an unfolded degree of the flexible screen. k may be a blurring step parameter. [] The method may be rounding, rounding down, rounding up, or the like, and this embodiment is not limited thereto.
For example, as shown in fig. 5, when the blurring step parameter is 1, the first ratio is 56%, the aperture maximum value is 16, and the aperture minimum value is 2, the target aperture parameter may be:
in an embodiment, after the user clicks the photo application icon, the user enters a photo interface, as shown in fig. 2, the precise blurring control 13 is displayed on the photo interface, the user can select blurring stepping parameters through the precise blurring control 13, and the user can select different blurring stepping parameters to realize precise control with different sensitivities.
It should be noted that, by blurring the stepping parameters, the mapping relationship between the expansion area of the flexible screen and the target aperture parameters can be adjusted, which is convenient for the user to accurately control the target aperture parameters.
In this embodiment, a second input is received for the flexible screen; adjusting a virtualisation step parameter in response to the second input, determining a quotient of the target product and the adjusted virtualisation step parameter; wherein the target aperture parameter is the sum of the aperture minimum and the quotient. In this way, the sensitivity of the target aperture parameter control by adjusting the development area of the flexible screen can be adjusted by adjusting the blurring step parameter.
It should be noted that, in the image processing method provided in the embodiment of the present application, the execution subject may be an image processing apparatus, or a control module in the image processing apparatus for executing the loaded image processing method. The image processing apparatus provided in the embodiment of the present application is described with a method for executing a loading image process by an image processing apparatus as an example.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application, and as shown in fig. 6, the apparatus 200 includes:
a first receiving module 201, configured to receive a first input for a flexible screen, where a first image is displayed on a first region of the flexible screen;
a first adjusting module 202, configured to adjust an unfolded area of the flexible screen in response to the first input;
an obtaining module 203, configured to obtain a target image parameter corresponding to the adjusted expansion area, where the target image parameter has a corresponding relationship with the expansion area of the flexible screen;
the processing module 204 is configured to perform image processing on the first image according to the target image parameter.
Optionally, the target image parameters include target aperture parameters, and the processing module 204 is specifically configured to:
and blurring the first image according to the target aperture parameter.
Optionally, as shown in fig. 7, the apparatus 200 further includes:
a display module 205, configured to display the parameter control identifier;
wherein the first input is an input for the parameter control identity.
Optionally, the parameter control identifier includes a control sub identifier and a sliding sub identifier, and the first receiving module 201 is specifically configured to:
receiving an input for adjusting the sliding position of the sliding sub-identifier on the control sub-identifier; and the sliding position of the slider sub identifier on the controller sub identifier corresponds to the unfolding area of the flexible screen.
Optionally, a blurring light spot is displayed on the first image, as shown in fig. 8, the apparatus 200 further includes:
a second adjusting module 206, configured to adjust the display size of the blurring light spot so that the display size of the blurring light spot matches the blurring degree of the first image in the process of adjusting the expansion area of the flexible screen;
wherein the degree of blurring of the first image is inversely proportional to the target aperture parameter.
Optionally, the flexible screen further comprises a second area, and the second area can be unfolded or folded relative to the first area;
as shown in fig. 9, the obtaining module 203 includes:
a first determining unit 2031 configured to determine a first ratio of a current expanded area of the second region to a maximum expanded area of the second region;
a second determining unit 2032 for determining a target product of a difference between an aperture maximum value and an aperture minimum value of the blurring aperture and the first ratio;
a third determining unit 2033 for determining the target aperture parameter based on the target product, wherein the target aperture parameter is positively correlated with the target product.
Optionally, as shown in fig. 10, the apparatus 200 further includes:
a second receiving module 207 for receiving a second input for the flexible screen;
a third adjustment module 208 for adjusting the blurring step parameter in response to the second input;
the third determining unit 2033 is specifically configured to:
determining a quotient of the target product and the adjusted ghosting step parameter;
determining the target aperture parameter based on the aperture minimum and the quotient.
In an embodiment of the present application, a first receiving module, configured to receive a first input for a flexible screen, where a first image is displayed on a first area of the flexible screen; a first adjusting module for responding to the first input and adjusting the unfolding area of the flexible screen; an obtaining module, configured to obtain a target image parameter corresponding to the adjusted expansion area, where the target image parameter has a corresponding relationship with the expansion area of the flexible screen; and the processing module is used for carrying out image processing on the first image according to the target image parameters. Therefore, the image parameters for image processing are adjusted by adjusting the expansion area of the flexible screen, and the first image is subjected to image processing by adopting the adjusted target image parameters, so that the operation is simple and convenient.
The image processing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The image processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The image processing apparatus provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 11, an electronic device 300 is further provided in this embodiment of the present application, and includes a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and capable of being executed on the processor 301, where the program or the instruction is executed by the processor 301 to implement 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, it is not described here again.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 12 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 400 includes, but is not limited to: radio unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.
Those skilled in the art will appreciate that the electronic device 400 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 12 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
Wherein the user input unit 407 is configured to: receiving a first input for a flexible screen, a first image being displayed on a first region of the flexible screen;
the processor 410 is configured to: adjusting an unfolded area of the flexible screen in response to the first input;
the processor 410 is further configured to: acquiring target image parameters corresponding to the adjusted unfolding area, wherein the target image parameters have a corresponding relation with the unfolding area of the flexible screen;
the processor 410 is further configured to: and carrying out image processing on the first image according to the target image parameter.
Optionally, the target image parameter includes a target aperture parameter, and the processor 410 is further configured to:
and blurring the first image according to the target aperture parameter.
Optionally, the display unit 406 is configured to:
displaying a parameter control identifier;
wherein the first input is an input for the parameter control identity.
Optionally, the user input unit 407 is configured to:
receiving an input for adjusting the sliding position of the sliding sub-identifier on the control sub-identifier; and the sliding position of the slider sub identifier on the controller sub identifier corresponds to the unfolding area of the flexible screen.
Optionally, the first image shows a blurring light spot, and the processor 410 is further configured to:
in the process of adjusting the expansion area of the flexible screen, adjusting the display size of the blurring light spot to enable the display size of the blurring light spot to be matched with the blurring degree of the first image;
wherein the degree of blurring of the first image is inversely proportional to the target aperture parameter.
Optionally, the flexible screen further comprises a second area, and the second area can be unfolded or folded relative to the first area;
the processor 410 is further configured to:
determining a first ratio of a current unfolded area of the second region to a maximum unfolded area of the second region;
determining a target product of a difference value of a maximum aperture value and a minimum aperture value of the virtual aperture and the first ratio;
determining the target aperture parameter based on the target product, wherein the target aperture parameter is positively correlated with the target product.
Optionally, the user input unit 407 is configured to:
receiving a second input for the flexible screen;
the processor 410 is further configured to: adjusting a blurring stepping parameter in response to the second input;
the processor 410 is further configured to:
determining a quotient of the target product and the adjusted ghosting step parameter;
determining the target aperture parameter based on the aperture minimum and the quotient.
In the embodiment of the present application, the user input unit 407 is configured to: receiving a first input for a flexible screen, a first image being displayed on a first region of the flexible screen; the processor 410 is configured to: adjusting an unfolded area of the flexible screen in response to the first input; the processor 410 is further configured to: acquiring target image parameters corresponding to the adjusted unfolding area, wherein the target image parameters have a corresponding relation with the unfolding area of the flexible screen; the processor 410 is further configured to: and carrying out image processing on the first image according to the target image parameter. Therefore, the image parameters for image processing are adjusted by adjusting the expansion area of the flexible screen, and the first image is subjected to image processing by adopting the adjusted target image parameters, so that the operation is simple and convenient.
It should be understood that in the embodiment of the present application, the input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 407 includes a touch panel 4071 and other input devices 4072. A touch panel 4071, also referred to as a touch screen. The touch panel 4071 may include two parts, a touch detection device and a touch controller. Other input devices 4072 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. The memory 409 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 410 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction 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 processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the embodiment of the image processing method, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 application 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 application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (11)
1. An image processing method, characterized in that the method comprises:
receiving a first input for a flexible screen, a first image being displayed on a first region of the flexible screen;
adjusting an unfolded area of the flexible screen in response to the first input;
acquiring target image parameters corresponding to the adjusted unfolding area, wherein the target image parameters have a corresponding relation with the unfolding area of the flexible screen;
and carrying out image processing on the first image according to the target image parameter.
2. The method of claim 1, wherein the target image parameters include target aperture parameters, and wherein the image processing the first image according to the target image parameters comprises:
and blurring the first image according to the target aperture parameter.
3. The method of claim 1, wherein prior to receiving the first input for the flexible screen, the method further comprises:
displaying a parameter control identifier;
wherein the first input is an input for the parameter control identity.
4. The method of claim 3, wherein the parameter control identifier comprises a control sub identifier and a slide sub identifier, and wherein receiving a first input for the flexible screen comprises:
receiving an input for adjusting the sliding position of the sliding sub-identifier on the control sub-identifier; and the sliding position of the slider sub identifier on the controller sub identifier corresponds to the unfolding area of the flexible screen.
5. The method of claim 2, wherein the first image has a blurred spot displayed thereon, the method further comprising:
in the process of adjusting the expansion area of the flexible screen, adjusting the display size of the blurring light spot to enable the display size of the blurring light spot to be matched with the blurring degree of the first image;
wherein the degree of blurring of the first image is inversely proportional to the target aperture parameter.
6. The method of claim 2, wherein the flexible screen further comprises a second area that is expandable or collapsible relative to the first area;
the acquiring of the target aperture parameter corresponding to the adjusted deployed area includes:
determining a first ratio of a current unfolded area of the second region to a maximum unfolded area of the second region;
determining a target product of a difference value of a maximum aperture value and a minimum aperture value of the virtual aperture and the first ratio;
determining the target aperture parameter based on the target product, wherein the target aperture parameter is positively correlated with the target product.
7. The method of claim 6, wherein prior to receiving the first input for the flexible screen, the method further comprises:
receiving a second input for the flexible screen;
adjusting a blurring stepping parameter in response to the second input;
the determining the target aperture parameter based on the target product comprises:
determining a quotient of the target product and the adjusted ghosting step parameter;
determining the target aperture parameter based on the aperture minimum and the quotient.
8. An image processing apparatus, characterized in that the apparatus comprises:
the device comprises a first receiving module, a second receiving module and a display module, wherein the first receiving module is used for receiving a first input aiming at a flexible screen, and a first image is displayed on a first area of the flexible screen;
a first adjusting module for responding to the first input and adjusting the unfolding area of the flexible screen;
an obtaining module, configured to obtain a target image parameter corresponding to the adjusted expansion area, where the target image parameter has a corresponding relationship with the expansion area of the flexible screen;
and the processing module is used for carrying out image processing on the first image according to the target image parameters.
9. The apparatus of claim 8, wherein the target image parameters comprise target aperture parameters, and wherein the processing module is specifically configured to:
and blurring the first image according to the target aperture parameter.
10. The device of claim 9, wherein the flexible screen further comprises a second area that is expandable or collapsible relative to the first area;
the acquisition module includes:
a first determination unit configured to determine a first ratio of a current expanded area of the second region to a maximum expanded area of the second region;
a second determination unit configured to determine a target product of a difference between a maximum aperture value and a minimum aperture value of the blurring aperture and the first ratio;
a third determination unit configured to determine the target aperture parameter based on the target product, wherein the target aperture parameter is positively correlated with the target product.
11. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, which program or instructions, when executed by the processor, implement the steps of the image processing method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110959925.9A CN113676665B (en) | 2021-08-20 | 2021-08-20 | Image processing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110959925.9A CN113676665B (en) | 2021-08-20 | 2021-08-20 | Image processing method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113676665A true CN113676665A (en) | 2021-11-19 |
CN113676665B CN113676665B (en) | 2023-05-16 |
Family
ID=78544327
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110959925.9A Active CN113676665B (en) | 2021-08-20 | 2021-08-20 | Image processing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113676665B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114390205A (en) * | 2022-01-29 | 2022-04-22 | 西安维沃软件技术有限公司 | Shooting method and device and electronic equipment |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105511766A (en) * | 2014-09-22 | 2016-04-20 | 联想(北京)有限公司 | Information processing method and electronic device |
CN105611189A (en) * | 2015-12-23 | 2016-05-25 | 北京奇虎科技有限公司 | Automatic exposure parameter adjustment method and device and user equipment |
CN106101544A (en) * | 2016-06-30 | 2016-11-09 | 维沃移动通信有限公司 | A kind of image processing method and mobile terminal |
CN206147211U (en) * | 2016-11-10 | 2017-05-03 | 深圳赢河科技有限公司 | Large size's liquid crystal display |
CN107197146A (en) * | 2017-05-31 | 2017-09-22 | 广东欧珀移动通信有限公司 | Image processing method and related product |
CN108156378A (en) * | 2017-12-27 | 2018-06-12 | 努比亚技术有限公司 | Photographic method, mobile terminal and computer readable storage medium |
CN108196783A (en) * | 2018-01-31 | 2018-06-22 | 努比亚技术有限公司 | Acquisition parameters adjusting method, mobile terminal and computer readable storage medium |
CN108391148A (en) * | 2018-04-20 | 2018-08-10 | 深圳市零度智控科技有限公司 | Flexible screen TV and its display methods and computer readable storage medium |
CN110475055A (en) * | 2019-08-26 | 2019-11-19 | Oppo广东移动通信有限公司 | Aperture assemblies, camera module and electronic equipment |
CN111061406A (en) * | 2019-12-16 | 2020-04-24 | 维沃移动通信有限公司 | Display control method and electronic equipment |
CN111124235A (en) * | 2019-12-31 | 2020-05-08 | 维沃移动通信有限公司 | Screen control method and flexible electronic equipment |
CN112153281A (en) * | 2020-09-14 | 2020-12-29 | 维沃移动通信有限公司 | Image processing method and device |
CN112270728A (en) * | 2020-10-27 | 2021-01-26 | 维沃移动通信有限公司 | Image processing method and device, electronic equipment and readable storage medium |
CN112399237A (en) * | 2020-10-22 | 2021-02-23 | 维沃移动通信(杭州)有限公司 | Screen display control method and device and electronic equipment |
CN112988010A (en) * | 2021-03-12 | 2021-06-18 | 维沃移动通信有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
CN113110781A (en) * | 2021-03-15 | 2021-07-13 | 联想(北京)有限公司 | Control method, electronic device and storage medium |
CN113126862A (en) * | 2021-03-15 | 2021-07-16 | 维沃移动通信有限公司 | Screen capture method and device, electronic equipment and readable storage medium |
-
2021
- 2021-08-20 CN CN202110959925.9A patent/CN113676665B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105511766A (en) * | 2014-09-22 | 2016-04-20 | 联想(北京)有限公司 | Information processing method and electronic device |
CN105611189A (en) * | 2015-12-23 | 2016-05-25 | 北京奇虎科技有限公司 | Automatic exposure parameter adjustment method and device and user equipment |
CN106101544A (en) * | 2016-06-30 | 2016-11-09 | 维沃移动通信有限公司 | A kind of image processing method and mobile terminal |
CN206147211U (en) * | 2016-11-10 | 2017-05-03 | 深圳赢河科技有限公司 | Large size's liquid crystal display |
CN107197146A (en) * | 2017-05-31 | 2017-09-22 | 广东欧珀移动通信有限公司 | Image processing method and related product |
CN108156378A (en) * | 2017-12-27 | 2018-06-12 | 努比亚技术有限公司 | Photographic method, mobile terminal and computer readable storage medium |
CN108196783A (en) * | 2018-01-31 | 2018-06-22 | 努比亚技术有限公司 | Acquisition parameters adjusting method, mobile terminal and computer readable storage medium |
CN108391148A (en) * | 2018-04-20 | 2018-08-10 | 深圳市零度智控科技有限公司 | Flexible screen TV and its display methods and computer readable storage medium |
CN110475055A (en) * | 2019-08-26 | 2019-11-19 | Oppo广东移动通信有限公司 | Aperture assemblies, camera module and electronic equipment |
CN111061406A (en) * | 2019-12-16 | 2020-04-24 | 维沃移动通信有限公司 | Display control method and electronic equipment |
CN111124235A (en) * | 2019-12-31 | 2020-05-08 | 维沃移动通信有限公司 | Screen control method and flexible electronic equipment |
CN112153281A (en) * | 2020-09-14 | 2020-12-29 | 维沃移动通信有限公司 | Image processing method and device |
CN112399237A (en) * | 2020-10-22 | 2021-02-23 | 维沃移动通信(杭州)有限公司 | Screen display control method and device and electronic equipment |
CN112270728A (en) * | 2020-10-27 | 2021-01-26 | 维沃移动通信有限公司 | Image processing method and device, electronic equipment and readable storage medium |
CN112988010A (en) * | 2021-03-12 | 2021-06-18 | 维沃移动通信有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
CN113110781A (en) * | 2021-03-15 | 2021-07-13 | 联想(北京)有限公司 | Control method, electronic device and storage medium |
CN113126862A (en) * | 2021-03-15 | 2021-07-16 | 维沃移动通信有限公司 | Screen capture method and device, electronic equipment and readable storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114390205A (en) * | 2022-01-29 | 2022-04-22 | 西安维沃软件技术有限公司 | Shooting method and device and electronic equipment |
CN114390205B (en) * | 2022-01-29 | 2023-09-15 | 西安维沃软件技术有限公司 | Shooting method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113676665B (en) | 2023-05-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112135049B (en) | Image processing method and device and electronic equipment | |
CN112135046B (en) | Video shooting method, video shooting device and electronic equipment | |
CN111953902B (en) | Image processing method and device | |
CN111756995A (en) | Image processing method and device | |
CN113141450B (en) | Shooting method, shooting device, electronic equipment and medium | |
CN112738402B (en) | Shooting method, shooting device, electronic equipment and medium | |
CN105681675A (en) | Mobile terminal and photographing mode setting method and device thereof | |
CN112437232A (en) | Shooting method, shooting device, electronic equipment and readable storage medium | |
US20240196082A1 (en) | Image Processing Method and Apparatus, and Electronic Device | |
US20230188842A1 (en) | Picture shooting method and apparatus and electronic device | |
CN112702531B (en) | Shooting method and device and electronic equipment | |
US20230274388A1 (en) | Photographing Method, and Electronic Device and Non-Transitory Readable Storage Medium | |
CN114143461B (en) | Shooting method and device and electronic equipment | |
CN113676665B (en) | Image processing method and device and electronic equipment | |
CN113794831B (en) | Video shooting method, device, electronic equipment and medium | |
CN111885298B (en) | Image processing method and device | |
CN112019686A (en) | Display method and device and electronic equipment | |
CN112948048A (en) | Information processing method, information processing device, electronic equipment and storage medium | |
CN112685119A (en) | Display control method and device and electronic equipment | |
CN114286010B (en) | Shooting method, shooting device, electronic equipment and medium | |
CN114173029B (en) | Shooting method and device and electronic equipment | |
CN112653841B (en) | Shooting method and device and electronic equipment | |
CN112333389B (en) | Image display control method and device and electronic equipment | |
CN112181269B (en) | Content display method and device and electronic equipment | |
CN113961113A (en) | Image processing method and device, electronic equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |