Nothing Special   »   [go: up one dir, main page]

CN113676665B - Image processing method and device and electronic equipment - Google Patents

Image processing method and device and electronic equipment Download PDF

Info

Publication number
CN113676665B
CN113676665B CN202110959925.9A CN202110959925A CN113676665B CN 113676665 B CN113676665 B CN 113676665B CN 202110959925 A CN202110959925 A CN 202110959925A CN 113676665 B CN113676665 B CN 113676665B
Authority
CN
China
Prior art keywords
image
flexible screen
target
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.)
Active
Application number
CN202110959925.9A
Other languages
Chinese (zh)
Other versions
CN113676665A (en
Inventor
陈满生
李俊杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110959925.9A priority Critical patent/CN113676665B/en
Publication of CN113676665A publication Critical patent/CN113676665A/en
Application granted granted Critical
Publication of CN113676665B publication Critical patent/CN113676665B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational 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 area of the flexible screen; adjusting an expanded area of the flexible screen in response to the first input; acquiring a target image parameter corresponding to the adjusted expansion area, wherein the target image parameter has a corresponding relation with the expansion area of the flexible screen; and carrying out image processing on the first image according to the target image parameters.

Description

Image processing method and device and electronic equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to an image processing method, an image processing device, and an electronic device.
Background
In order to capture an image that is satisfactory to the user when taking a photograph, various functional components, such as an imaginary aperture, may be used to process the image. At present, when a function component is adopted to process an image, a menu of the function component is required to be selected, a parameter adjustment interface is entered, an adjustment control is operated to adjust image parameters so as to process the image, and the operation is complicated.
Disclosure of Invention
The embodiment of the application provides an image processing method, an image processing device and electronic equipment, which can solve the problem that in the prior art, the operation of adjusting image parameters to process images is complicated.
In order to solve the technical problems, the invention is realized as follows:
in a first aspect, an embodiment of the present application provides an image processing method, including:
receiving a first input for a flexible screen, a first image being displayed on a first area of the flexible screen;
adjusting an expanded area of the flexible screen in response to the first input;
acquiring a target image parameter corresponding to the adjusted expansion area, wherein the target image parameter has a corresponding relation with the expansion area of the flexible screen;
and carrying out image processing on the first image according to the target image parameters.
In a second aspect, an embodiment of the present application provides an image processing apparatus, including:
a first receiving module for receiving a first input for a flexible screen, a first image being displayed on a first area of the flexible screen;
a first adjustment module for adjusting an expanded area of the flexible screen in response to the first input;
the acquisition module is used for 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;
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, including a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions implementing the steps in the image processing method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement steps in an image processing method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In the embodiment of the application, 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 expanded area of the flexible screen in response to the first input; acquiring a target image parameter corresponding to the adjusted expansion area, wherein the target image parameter has a corresponding relation with the expansion area of the flexible screen; and 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 unfolding area of the flexible screen, and the adjusted target image parameters are adopted to perform image processing on the first image, so that the operation is simpler and more 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 according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a screen display of another electronic device according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a screen display of another electronic device according to 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 view of another image processing apparatus provided in the embodiment of the present application;
fig. 8 is a schematic structural view of another image processing apparatus provided in the embodiment of the present application;
fig. 9 is a schematic structural view of another image processing apparatus provided in the embodiment of the present application;
fig. 10 is a schematic structural view of another image processing apparatus provided in the 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 according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The image processing method provided by the embodiment of the application is described in detail below by means of specific embodiments and application scenes thereof with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart of an image processing method according to an embodiment of the present application, as shown in fig. 1, including the following steps:
step 101, receiving a first input for a flexible screen, wherein a first image is displayed on a first area of the flexible screen.
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, the target image parameter for image processing can be adjusted; alternatively, the first input may be an operation in which the user manually pulls the flexible screen apart to spread the flexible screen; alternatively, the first input may be an operation in which a user presses a preset key to spread the flexible screen; etc., the present embodiment is not limited thereto. The flexible screen may be a scroll screen. The first image may be an image to be processed, for example, in a case where the photographing interface is displayed in the first area, the first image may be an image displayed in the photographing interface, for example, may be a preview image.
Step 102, responding to the first input, and adjusting the unfolding area of the flexible screen;
and step 103, acquiring a target image parameter corresponding to the adjusted unfolding area, wherein the target image parameter has a corresponding relation with the unfolding area of the flexible screen.
The target image parameter may include a target aperture parameter, or other parameters that may be used for image adjustment, which is not limited in this embodiment. The expanded areas of different flexible screens may correspond to different target image parameters. For example, the target image parameter may be proportional to the unfolded area of the flexible screen; alternatively, a ratio of a current expansion area to a maximum expansion area of the flexible screen may be calculated, and an expansion degree of the flexible screen may be determined, and the maximum expansion area of the flexible screen may be a maximum expandable area size of the flexible screen. The expansion degree of the flexible screen can be 0% to 100%, and the expansion degree of 0% represents that the flexible screen is completely folded; the extent of expansion of 100% characterizes the flexible screen as fully expanded.
Taking an example that the target image parameters comprise target aperture parameters, the range of values of the target aperture parameters is [ L, R ], the expansion degree of the flexible screen is 100% when the flexible screen is fully expanded, and the corresponding target aperture parameters can be R; the expansion degree is 0% when the flexible screen is fully folded, and the corresponding target aperture parameter may 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. The expansion degree is 0% when the flexible screen is fully folded, and the corresponding virtual aperture size is F2.0; the flexible screen is unfolded to 100% when fully unfolded, and the corresponding virtual aperture size is F16.
And 104, performing image processing on the first image according to the target image parameters.
The first area may display a photographing interface, and the photographing interface may display a first image thereon. After the first image is processed according to the target image parameters, input of a shooting or photographing control selected by a user can be received, and shooting or photographing is performed on the first image after the image processing. 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 area 11, where the second area 11 may be unfolded or folded with respect to the first area, during the process of unfolding or folding the second area 11, the size of the first image displayed on the first area is unchanged, and the first image changes 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 blurring degree of the first image changes according to the target aperture parameter that changes along with the unfolded area. As shown in fig. 2, when the second area 11 is fully folded, the expansion 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, when the second area 11 is fully expanded, the expansion degree is 100%, the corresponding virtual aperture size is F16, and F16 is displayed in the virtual 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 is 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 expanded area of the flexible screen in response to the first input; acquiring a target image parameter corresponding to the adjusted expansion area, wherein the target image parameter has a corresponding relation with the expansion area of the flexible screen; and 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 unfolding area of the flexible screen, and the adjusted target image parameters are adopted to perform image processing on the first image, so that the operation is simpler and more convenient.
Optionally, the target image parameter includes a target aperture parameter, and the image processing of 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 expansion area is obtained, and the blurring process is performed on the first image according to the target aperture parameter, so that the blurring aperture parameter for the blurring process can be adjusted by adjusting the expansion area of the flexible screen, and the operation is relatively simple.
Optionally, before the receiving the first input for the flexible screen, the method further includes:
displaying the parameter control identifier;
wherein the first input is an input for the parameter control identifier.
The parameter control mark can comprise a control sub mark and a sliding sub mark, wherein the sliding position of the sliding sub mark on the control sub mark has a corresponding relation with the unfolding area of the flexible screen; or, the parameter control mark can be in a shape of a dial, the unfolding area of the flexible screen can be adjusted by adjusting the pointer on the dial, and the position of the pointer on the dial has a corresponding relation with the unfolding area of the flexible screen; and so on, the embodiment does not limit the concrete expression form of the parameter control identifier.
In this embodiment, a parameter control identifier is displayed, an 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 image processing is performed on the first image according to the target image parameter. Therefore, the user can intuitively adjust the image parameters through the parameter control mark, and the user experience is good.
Optionally, the parameter control identifier includes a control sub-identifier and a sliding sub-identifier, and the receiving the first input for the flexible screen includes:
receiving an input adjusting a sliding position of the sliding sub-mark on the control sub-mark; and the sliding position of the sliding sub-mark on the control sub-mark has a corresponding relation with the unfolding area of the flexible screen.
Wherein the control sub-mark can be characterized in the form of a control bar, and the sliding sub-mark can be characterized in the form of a sliding bar. The user can move the sliding position of the sliding sub-mark on the control sub-mark to control the unfolding area of the flexible screen. Illustratively, the control slider indicator is positioned at the leftmost end of the control indicator, and the unfolding degree of the flexible screen can be controlled to be 100%; the control slider mark is positioned at the rightmost end of the control sub mark, 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 is expandable or collapsible relative to the first region. The control slider mark is positioned at the leftmost end of the control slider mark, and the second area can be controlled to be fully unfolded, namely the unfolding degree of the flexible screen is 100%; the control slider mark is positioned at the rightmost end of the control slider mark, and the second area can be controlled to be fully folded, namely the unfolding degree of the flexible screen is 0%.
In this embodiment, an input for adjusting a sliding position of the sliding sub-mark on the control sub-mark is received, an expansion area of the flexible screen is adjusted, a target image parameter corresponding to the adjusted expansion area is obtained, and image processing is performed on the first image according to the target image parameter. Therefore, the user can adjust the sliding position of the sliding sub-mark to adjust the target image parameters for image processing, so that the method is more visual and has better user experience.
Optionally, the first image displays an blurring spot, and the method further includes:
in the process of adjusting the unfolding area of the flexible screen, adjusting the display size of the blurring light spot so that the display size of the blurring light spot is 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 greater the target aperture parameter, the weaker the blurring degree. 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 minimum blurring aperture and the weakest blurring degree.
As an embodiment, when the flexible screen is manually unfolded by a default user, the photographing interface may display a conventional circular light spot effect, and by combining with the aperture, the photographing interface may generate a halation light spot effect in a proper depth range, and simultaneously, as the user pulls the unfolding degree of the flexible screen, the blurring degree of the first image changes along with the unfolding degree of the flexible screen, and the light spot may automatically change in size along with the change of the blurring range, so as to present a natural transition effect. As shown in fig. 4, when the user uses the sliding sub-mark to control the flexible screen to expand, clicking the spot selection control on the right side of the sliding sub-mark can select a circle, a love heart or a star as the spot shape, and the sliding rod on the control sub-mark can become a corresponding shape, so that the spot special effect of the preview interface also becomes a corresponding shape, and an interesting spot effect is realized. Therefore, natural and interesting virtual light spots can be provided, a user can determine different light spot effects through different unfolding modes, and user experience is good.
In this embodiment, in the process of adjusting the expansion area of the flexible screen, the display size of the virtual light spot is adjusted so that the display size of the virtual light spot is matched with the virtual degree of the first image, so that when a user wants to shoot a scene such as lamplight, a natural special effect of the virtual light spot can be provided.
Optionally, the flexible screen further includes a second region, and the second region may be unfolded or folded with respect to the first region;
the obtaining the target aperture parameter corresponding to the adjusted expansion area comprises the following steps:
determining a first ratio of a current expanded area of the second region to a maximum expanded area of the second region;
determining a target product of a difference between a diaphragm maximum value and a diaphragm minimum value of the blurring diaphragm and the first ratio;
the target aperture parameter is determined based on the target product, wherein the target aperture parameter is positively correlated with the target product.
The aperture maximum value may be an aperture parameter corresponding to the minimum blurring aperture, and the aperture maximum value may be an aperture parameter corresponding to the maximum blurring aperture. The determining the target aperture parameter based on the target product may be: determining a quotient of the target product and a blurring step parameter, and determining the target aperture parameter based on the aperture minimum value and the quotient; 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; in response to the second input, the blurring step parameter is adjusted. The blurring step parameters can be adjusted by adopting an accurate blurring control so as to control the step length of adjusting the unfolding area, and the blurring step parameters can be 50, 100 or 200, the blurring step parameters can be 50, the minimum changeable unfolding degree can be represented as 2%, the blurring step parameters can be 100, the minimum changeable unfolding degree can be represented as 1%, the blurring step parameters can be 200, and the minimum changeable unfolding degree can be represented as 0.5%; alternatively, the precise blurring control may be used to adjust the blurring step parameter, so as to control a mapping relationship between a spreading area and a target aperture parameter, and for example, the determining the target aperture parameter based on the target product may include: determining the quotient of the target product and the adjusted blurring step parameter; the target aperture parameter is determined based on the aperture minimum value and the quotient value.
In this embodiment, a first ratio of a current deployment area of the second region to a maximum deployment area of the second region is determined; determining a target product of a difference between a diaphragm maximum value and a diaphragm minimum value of the blurring diaphragm and the first ratio; the target aperture parameter is determined 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 expansion area of the second region.
Optionally, before the receiving the first input for the flexible screen, the method further includes:
receiving a second input for the flexible screen;
adjusting the blurring step parameter in response to the second input;
the determining the target aperture parameter based on the target product comprises:
determining the quotient of the target product and the adjusted blurring step parameter;
the target aperture parameter is determined based on the aperture minimum value and the quotient value.
Wherein the target aperture parameter may be a sum of the aperture minimum value and the quotient value; alternatively, the quotient may be rounded, and the target aperture parameter may be a sum of the aperture minimum and the rounded value of the quotient.
As an embodiment, the target aperture parameters may be:
Figure BDA0003221876480000081
wherein, L can be the minimum value of the blurring aperture, namely the minimum value of the preset aperture parameter; r may be the maximum aperture value of the blurring aperture, i.e. the maximum value of the preset aperture parameter. The a% may be a first ratio of a current expansion area of the second region to a maximum expansion area of the second region, i.e., an expansion degree of the flexible screen. k may be the blurring step parameter. [] The present embodiment is not limited thereto, and may be rounded, or may be downward rounded, or may be upward rounded, or the like.
For example, as shown in fig. 5, when the blurring step parameter is 1, the first ratio is 56%, the aperture maximum is 16, and the aperture minimum is 2, the target aperture parameter may be:
Figure BDA0003221876480000091
Figure BDA0003221876480000092
in one embodiment, after the user clicks the photographing application icon, the photographing interface is entered, as shown in fig. 2, the precise blurring control 13 is displayed on the photographing interface, the user can select the blurring step parameter through the precise blurring control 13, and the user can realize precise control of different sensitivities by selecting different blurring step parameters.
It should be noted that, through blurring the step parameter, the mapping relation between the expansion area of the flexible screen and the target aperture parameter can be adjusted, so that the user can control the target aperture parameter accurately.
In this embodiment, a second input is received for the flexible screen; adjusting a blurring step parameter in response to the second input, and determining a quotient of the target product and the adjusted blurring step parameter; wherein the target aperture parameter is the sum of the aperture minimum value and the quotient value. Thus, the sensitivity of the target aperture parameter control by adjusting the expansion 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 loading image processing method. In the embodiment of the present application, a method for executing a loading image process by an image processing apparatus is taken as an example, and the image processing apparatus provided in the embodiment of the present application is described.
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 area of the flexible screen;
a first adjustment module 202 for adjusting an expanded 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;
and the processing module 204 is configured to perform image processing on the first image according to the target image parameter.
Optionally, the target image parameter includes a target aperture parameter, 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 a parameter control identifier;
wherein the first input is an input for the parameter control identifier.
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 adjusting a sliding position of the sliding sub-mark on the control sub-mark; and the sliding position of the sliding sub-mark on the control sub-mark has a corresponding relation with the unfolding area of the flexible screen.
Optionally, the first image displays a virtual light spot, as shown in fig. 8, and the apparatus 200 further includes:
a second adjusting module 206, configured to adjust a display size of the virtual light spot so that the display size of the virtual light spot matches with the virtual degree of the first image in a 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 includes a second region, and the second region may be unfolded or folded with respect to the first region;
as shown in fig. 9, the obtaining module 203 includes:
a first determining unit 2031, configured to determine a first ratio of a current expansion area of the second area to a maximum expansion area of the second area;
a second determining unit 2032 for determining a target product of a difference value between a diaphragm maximum value and a diaphragm minimum value of the blurring diaphragm 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, configured to adjust the blurring step parameter in response to the second input;
the third determining unit 2033 is specifically configured to:
determining the quotient of the target product and the adjusted blurring step parameter;
the target aperture parameter is determined based on the aperture minimum value and the quotient value.
In an embodiment of the present application, a first receiving module is 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 adjustment module for adjusting an expanded area of the flexible screen in response to the first input; the acquisition module is used for 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; 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 unfolding area of the flexible screen, and the adjusted target image parameters are adopted to perform image processing on the first image, so that the operation is simpler and more convenient.
The image processing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The image processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The image processing apparatus provided in this embodiment of the present application can implement each process implemented by the method embodiment of fig. 1, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 11, the embodiment of the present application further provides an electronic device 300, including a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and capable of running on the processor 301, where the program or the instruction implements each process of the embodiment of the image processing method when executed by the processor 301, and the process can achieve the same technical effect, and for avoiding repetition, a description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 12 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 400 includes, but is not limited to: radio frequency 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 also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 410 by a power management system to perform functions such as managing charge, discharge, and power consumption by 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 illustrated, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
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 area of the flexible screen;
the processor 410 is configured to: adjusting an expanded area of the flexible screen in response to the first input;
the processor 410 is also configured to: acquiring a target image parameter corresponding to the adjusted expansion area, wherein the target image parameter has a corresponding relation with the expansion area of the flexible screen;
the processor 410 is also configured to: and carrying out image processing on the first image according to the target image parameters.
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 the parameter control identifier;
wherein the first input is an input for the parameter control identifier.
Optionally, the user input unit 407 is configured to:
receiving an input adjusting a sliding position of the sliding sub-mark on the control sub-mark; and the sliding position of the sliding sub-mark on the control sub-mark has a corresponding relation with the unfolding area of the flexible screen.
Optionally, the first image has an blurring spot displayed thereon, and the processor 410 is further configured to:
in the process of adjusting the unfolding area of the flexible screen, adjusting the display size of the blurring light spot so that the display size of the blurring light spot is 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 includes a second region, and the second region may be unfolded or folded with respect to the first region;
the processor 410 is also configured to:
determining a first ratio of a current expanded area of the second region to a maximum expanded area of the second region;
determining a target product of a difference between a diaphragm maximum value and a diaphragm minimum value of the blurring diaphragm and the first ratio;
the target aperture parameter is determined 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 also configured to: adjusting the blurring step parameter in response to the second input;
the processor 410 is also configured to:
determining the quotient of the target product and the adjusted blurring step parameter;
the target aperture parameter is determined based on the aperture minimum value and the quotient value.
In the embodiment of the present application, the user input unit 407 is used for: receiving a first input for a flexible screen, a first image being displayed on a first area of the flexible screen; the processor 410 is configured to: adjusting an expanded area of the flexible screen in response to the first input; the processor 410 is also configured to: acquiring a target image parameter corresponding to the adjusted expansion area, wherein the target image parameter has a corresponding relation with the expansion area of the flexible screen; the processor 410 is also configured to: and 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 unfolding area of the flexible screen, and the adjusted target image parameters are adopted to perform image processing on the first image, so that the operation is simpler and more convenient.
It should be appreciated that in embodiments of the present application, the input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042, with the graphics processor 4041 processing image data of still pictures or video obtained by an image capture device (e.g., a camera) in a video capture mode or an image capture 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. The touch panel 4071 is 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, a joystick, and so forth, which are not described in detail herein. 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 that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, 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 the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is used for running a program or an instruction, so as to implement each process of the embodiment of the image processing method, and achieve the same technical effect, so that repetition is avoided, and no redundant description is provided here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (10)

1. An image processing method, the method comprising:
receiving a first input for a flexible screen, a first image being displayed on a first area of the flexible screen;
adjusting an expanded area of the flexible screen in response to the first input;
acquiring a target image parameter corresponding to the adjusted expansion area, wherein the target image parameter has a corresponding relation with the expansion area of the flexible screen;
performing image processing on the first image according to the target image parameters;
the target image parameters include target aperture parameters, and the image processing of the first image according to the target image parameters includes:
blurring the first image according to the target aperture parameters;
the flexible screen further includes a second region that is expandable or collapsible relative to the first region;
the obtaining the target aperture parameter corresponding to the adjusted expansion area comprises the following steps:
determining a first ratio of a current expanded area of the second region to a maximum expanded area of the second region;
determining a target product of a difference between a maximum aperture value and a minimum aperture value of the blurring aperture and the first ratio;
the target aperture parameter is determined based on the target product, wherein the target aperture parameter is positively correlated with the target product.
2. The method of claim 1, wherein prior to the receiving the first input for the flexible screen, the method further comprises:
displaying the parameter control identifier;
wherein the first input is an input for the parameter control identifier.
3. The method of claim 2, wherein the parameter control identifier comprises a control sub-identifier and a slider sub-identifier, the receiving a first input for a flexible screen comprising:
receiving an input adjusting a sliding position of the sliding sub-mark on the control sub-mark; and the sliding position of the sliding sub-mark on the control sub-mark has a corresponding relation with the unfolding area of the flexible screen.
4. The method of claim 1, wherein the first image has a virtual spot displayed thereon, the method further comprising:
in the process of adjusting the unfolding area of the flexible screen, adjusting the display size of the blurring light spot so that the display size of the blurring light spot is 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.
5. The method of claim 1, wherein prior to the receiving the first input for the flexible screen, the method further comprises:
receiving a second input for the flexible screen;
adjusting the blurring step parameter in response to the second input;
the determining the target aperture parameter based on the target product comprises:
determining the quotient of the target product and the adjusted blurring step parameter;
the target aperture parameter is determined based on the aperture minimum value and the quotient value.
6. An image processing apparatus, characterized in that the apparatus comprises:
a first receiving module for receiving a first input for a flexible screen, a first image being displayed on a first area of the flexible screen;
a first adjustment module for adjusting an expanded area of the flexible screen in response to the first input;
the acquisition module is used for 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 processing module is used for carrying out image processing on the first image according to the target image parameters;
the target image parameters include target aperture parameters, and the processing module is specifically configured to:
blurring the first image according to the target aperture parameters;
the flexible screen further includes a second region that is expandable or collapsible relative to the first region;
the acquisition module comprises:
a first determining unit, configured to determine a first ratio of a current expansion area of the second area to a maximum expansion area of the second area;
a second determining unit configured to determine a target product of a difference value between a diaphragm maximum value and a diaphragm minimum value of the blurring diaphragm and the first ratio;
and a third determining unit configured to determine the target aperture parameter based on the target product, where the target aperture parameter is positively correlated with the target product.
7. The apparatus of claim 6, wherein the apparatus comprises:
the display module is used for displaying the parameter control identifier;
wherein the first input is an input for the parameter control identifier.
8. The apparatus of claim 7, wherein the parameter control identifier comprises a control sub-identifier and a sliding sub-identifier, and the first receiving module is specifically configured to:
receiving an input adjusting a sliding position of the sliding sub-mark on the control sub-mark; and the sliding position of the sliding sub-mark on the control sub-mark has a corresponding relation with the unfolding area of the flexible screen.
9. The apparatus of claim 6, wherein the first image has an image of a virtual spot displayed thereon, the apparatus further comprising:
the second adjusting module is used for adjusting the display size of the blurring light spot in the process of adjusting the unfolding area of the flexible screen so that the display size of the blurring light spot is 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.
10. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the image processing method according to any one of claims 1-5.
CN202110959925.9A 2021-08-20 2021-08-20 Image processing method and device and electronic equipment Active CN113676665B (en)

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 CN113676665A (en) 2021-11-19
CN113676665B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114390205B (en) * 2022-01-29 2023-09-15 西安维沃软件技术有限公司 Shooting method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153281A (en) * 2020-09-14 2020-12-29 维沃移动通信有限公司 Image processing method and device
CN113126862A (en) * 2021-03-15 2021-07-16 维沃移动通信有限公司 Screen capture method and device, electronic equipment and readable storage medium

Family Cites Families (15)

* Cited by examiner, † Cited by third party
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
CN106101544B (en) * 2016-06-30 2019-06-04 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN206147211U (en) * 2016-11-10 2017-05-03 深圳赢河科技有限公司 Large size's liquid crystal display
CN107197146B (en) * 2017-05-31 2020-06-30 Oppo广东移动通信有限公司 Image processing method and device, mobile terminal and computer readable storage medium
CN108156378B (en) * 2017-12-27 2020-12-18 努比亚技术有限公司 Photographing 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
CN110475055B (en) * 2019-08-26 2021-08-31 Oppo广东移动通信有限公司 Aperture assembly, camera module and electronic equipment
CN111061406B (en) * 2019-12-16 2022-04-01 维沃移动通信有限公司 Display control method and electronic equipment
CN111124235B (en) * 2019-12-31 2021-06-29 维沃移动通信有限公司 Screen control method and flexible electronic equipment
CN112399237A (en) * 2020-10-22 2021-02-23 维沃移动通信(杭州)有限公司 Screen display control method and device and electronic equipment
CN112270728B (en) * 2020-10-27 2024-09-24 维沃移动通信有限公司 Image processing method, device, electronic equipment and readable storage medium
CN112988010B (en) * 2021-03-12 2022-08-09 维沃移动通信有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN113110781B (en) * 2021-03-15 2023-03-24 联想(北京)有限公司 Control method, electronic device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153281A (en) * 2020-09-14 2020-12-29 维沃移动通信有限公司 Image processing method and device
CN113126862A (en) * 2021-03-15 2021-07-16 维沃移动通信有限公司 Screen capture method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN113676665A (en) 2021-11-19

Similar Documents

Publication Publication Date Title
CN106060406B (en) Photographing method and mobile terminal
CN112135049B (en) Image processing method and device and electronic equipment
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
CN111669507A (en) Photographing method and device and electronic equipment
CN106060422B (en) A kind of image exposure method and mobile terminal
CN112738402B (en) Shooting method, shooting device, electronic equipment and medium
CN111756995A (en) Image processing method and device
CN113141450B (en) Shooting method, shooting device, electronic equipment and medium
CN112954199B (en) Video recording method and device
CN111953902B (en) Image processing method and device
CN111669506A (en) Photographing method and device and electronic equipment
CN112437232A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN107360375B (en) Shooting method and mobile terminal
US20240196082A1 (en) Image Processing Method and Apparatus, and Electronic Device
KR20230026472A (en) Photography Methods, Devices and Electronics
CN113676665B (en) Image processing method and device and electronic equipment
WO2023083089A1 (en) Photographing control display method and apparatus, and electronic device and medium
CN114143461B (en) Shooting method and device and electronic equipment
WO2022156673A1 (en) Display control method and apparatus, electronic device, and medium
CN113286085B (en) Display control method and device and electronic equipment
CN112672051B (en) Shooting method and device and electronic equipment
CN112333395B (en) Focusing control method and device and electronic equipment
CN112783406B (en) Operation execution method and device and electronic equipment
CN112019686A (en) Display method and device and electronic equipment
CN112948048A (en) Information processing method, information processing device, electronic equipment and 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