CN112988010B - Image processing method, image processing device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN112988010B
CN112988010B CN202110272362.6A CN202110272362A CN112988010B CN 112988010 B CN112988010 B CN 112988010B CN 202110272362 A CN202110272362 A CN 202110272362A CN 112988010 B CN112988010 B CN 112988010B
Authority
CN
China
Prior art keywords
length
target
determining
stretching
image
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
CN202110272362.6A
Other languages
Chinese (zh)
Other versions
CN112988010A (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 CN202110272362.6A priority Critical patent/CN112988010B/en
Publication of CN112988010A publication Critical patent/CN112988010A/en
Application granted granted Critical
Publication of CN112988010B publication Critical patent/CN112988010B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour

Landscapes

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

Abstract

The application discloses an image processing method, an image processing device, an electronic device and a storage medium, wherein the method comprises the following steps: acquiring a first image, a first stretched length of a first reel and a second stretched length of a second reel of an electronic device, the electronic device comprising: a flexible screen with a double-sided reel capable of stretching left and right, the double-sided reel including a first reel and a second reel; determining a target area and a target adjustment parameter of the first image according to the first stretching length and the second stretching length; and according to the target adjustment parameter, carrying out image processing on the target area and outputting a target image.

Description

Image processing method, image processing device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of mobile internet, and particularly relates to an image processing method and device, electronic equipment and a storage medium.
Background
In recent years, with the successful development of flexible screens, related electronic products have received much attention. The flexible screen has the characteristics of being bendable, foldable and the like, and brings profound influence on the optimization of shooting scenes and operation. In the current mobile internet era, mobile electronic equipment becomes an essential article in daily life of people, and people use the mobile electronic equipment to shoot videos and photos and record nice moments. Therefore, it is also becoming more and more important to give the user a better shooting experience. In the prior art, after the electronic device is used for shooting the image, a user needs to open the cropping software, select the image shot immediately, and beautify the selected image, so that the operation is complicated.
Disclosure of Invention
An embodiment of the application aims to provide an image processing method, an image processing device, an electronic device and a storage medium, so as to solve the technical problem that in the prior art, image processing operation is complex in a photographing scene.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an image processing method, where the method includes:
acquiring a first image, a first stretched length of a first reel and a second stretched length of a second reel of an electronic device, the electronic device comprising: a flexible screen with a double-sided reel capable of stretching left and right, the double-sided reel including a first reel and a second reel;
determining a target area and a target adjustment parameter of the first image according to the first stretching length and the second stretching length;
and according to the target adjustment parameter, carrying out image processing on the target area and outputting a target image.
In a second aspect, an embodiment of the present application provides an image processing apparatus, including:
an acquisition module for acquiring a first image, a first stretched length of a first reel and a second stretched length of a second reel of an electronic device, the electronic device comprising: a flexible screen with a double-sided reel capable of stretching left and right, the double-sided reel including a first reel and a second reel;
a determining module, configured to determine a target region and a target adjustment parameter of the first image according to the first stretching length and the second stretching length;
and the processing module is used for carrying out image processing on the target area according to the target adjustment parameter and outputting a target image.
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 of 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 of 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 image processing method according to the first aspect.
In consideration of the stretchable characteristic of the double-side reels of the reel type flexible screen electronic equipment, in the embodiment of the application, the specific area in the image to be processed can be selected to be adjusted and processed by adjusting the stretching length of the double-side reels of the reel type flexible screen in the photographing process, so that the post-processing of the user is not required after the photographing is finished, and 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 diagram of one example of a roll-to-roll stretchable flexible screen electronic device as referred to in embodiments of the present application;
fig. 3 is a diagram illustrating an example of an image processing method according to an embodiment of the present application;
fig. 4 is another exemplary diagram of an image processing method provided in an embodiment of the present application;
fig. 5 is a diagram illustrating a further example of an image processing method according to an embodiment of the present application;
fig. 6 is a block diagram of an image processing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a hardware structure diagram of an electronic device implementing various embodiments 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 embodiment of the application provides an image processing method and device, electronic equipment and a storage medium.
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.
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 may include the following steps: step 101, step 102 and step 103, wherein,
in step 101, acquiring a first image, a first stretching length of a first reel of an electronic device and a second stretching length of a second reel; wherein, this electronic equipment includes: a double-sided spool, including a first spool and a second spool, is a left-right stretchable flexible screen.
In this embodiment, the display screen of the electronic device adopts a flexible screen that can be stretched left and right and has two side reels, and a user can adjust the size of the display screen by pulling or rewinding at least one reel of the two reels, for example, pulling the left reel left and/or pulling the right reel right to increase the display area of the display screen or rewinding the left reel right and/or rewinding the right reel left to reduce the display area of the display screen.
In one example, fig. 2 shows a flexible screen electronic device that can be stretched left and right by using a double-sided scroll, and the electronic device can be used for wrapping the flexible screen inside a machine body in a curled manner through a scroll rail, so that a user can change the size of a display surface according to actual needs. After being stretched, the left and right circular frames can also be used as grab handles of the equipment.
In this embodiment of the application, the first image may be a preview image of a camera of the electronic device, may also be an image instantly captured by the electronic device, and may also be an image previously stored in the electronic device.
In the embodiment of the application, when the first scroll is a left scroll in the dual-sided scroll of the electronic device, the first stretching length is the stretching length of the left scroll; at this time, the second reel is a right reel of the reels on both sides of the electronic apparatus, and the second stretched length is a stretched length of the right reel.
In the embodiment of the application, when the first scroll is a right scroll in the dual-sided scroll of the electronic device, the first stretching length is the stretching length of the right scroll; at this time, the second reel is a left reel of the two-sided reels of the electronic apparatus, and the second stretched length is a stretched length of the left reel.
In the embodiment of the application, when the fact that the user stretches the left scroll is detected, the electronic equipment can obtain the stretching length of the left scroll; when it is detected that the user stretches the right reel, the electronic device may acquire the stretched length of the right reel.
In step 102, a target area and a target adjustment parameter of the first image are determined according to the first stretching length and the second stretching length.
In the embodiment of the present application, the target region may be a partial region in the first image or may be a whole region. The target adjustment parameters may be scaling, texture, blurring, curvature, hue/saturation, hue separation, and color balance, among others.
In the embodiment of the application, the corresponding relation between the stretching lengths of the first reel and the second reel and the specific adjustment area and the adjustment parameter of the image can be preset, so that a user can select the specific adjustment area in the image and control the specific adjustment parameter by adjusting the stretching lengths of the first reel and the second reel.
In the embodiment of the application, the convenience of operation is considered, the user differentiation of being convenient for can set up: the user stretches one scroll to select a specific adjustment region in the image, and stretches another scroll to control specific adjustment parameters, that is, one scroll corresponds to one function, and different scrolls correspond to different functions, in this case, the step 102 may specifically include the following steps (not shown in the figure): step 1021 and step 1022, wherein,
in step 1021, determining a target area of the first image according to the first stretching length;
in an embodiment of the present application, the target area may be determined according to a type of a shooting object in the first image, and in an embodiment, the step 1021 may specifically include the following steps:
recognizing a photographic subject of the first image;
when the photographic subject is a person, identifying a body part of the photographic subject;
and determining a target body part corresponding to the first stretching length according to the corresponding relation between the preset stretching length and the body part, and determining an image area where the target body part is located as a target area.
In the embodiment of the present application, when the photographic subject in the first image is a person, if a plurality of photographic subjects are included in the first image, a body part of the photographic subject located at the middle position of the image can be identified; or, the body part of the shooting object at the position of the shooting focus can be identified; alternatively, a body part of a photographic subject selected by the user may be recognized.
In the embodiment of the present application, when the body part of the photographic subject is identified, the overall contour information of the photographic subject may be acquired, and the overall contour information may be analyzed to obtain information of each body part of the photographic subject, such as the face, the leg, and the like, so as to adjust the image of each body part later.
In this embodiment of the application, a corresponding relationship between the stretching length and the body part may be preset, so as to determine the target body part according to the corresponding relationship and the first stretching length in the following, specifically, when the first stretching length is the first length, the target body part corresponding to the first stretching length is determined to be the leg; when the first stretching length is the second length, determining that the target body part corresponding to the first stretching length is the face; when the first stretching length is the third length, determining that the target body part corresponding to the first stretching length is the whole body; wherein the first length, the second length, and the third length are different from each other.
In practical applications, the first length may be smaller than the second length, and the second length may be smaller than the third length.
It should be noted that, the stretching lengths in the above corresponding relationship between the preset stretching length and the body part include, but are not limited to, the first, second and third lengths, and may also include other lengths, the body part includes, but is not limited to, the leg length, the face and the whole body, and may also include other body parts, such as the eyes, the waist line, and the like, which is not limited by the embodiment of the present application.
In step 1022, a target adjustment parameter corresponding to the target area is determined according to the second stretching length.
In this embodiment of the application, when the target adjustment parameter is a zoom ratio, a corresponding relationship between the stretching length and the zoom ratio may be preset, so as to determine the zoom ratio corresponding to the target region according to the corresponding relationship and the second stretching length in the following step, specifically, when the second stretching length is a fourth length, the zoom ratio corresponding to the target region is determined to be 1; when the second stretching length is larger than the fourth length, determining that the scaling corresponding to the target area is larger than 1 and the scaling is increased along with the increase of the second stretching length; and when the second stretching length is smaller than the fourth length, determining that the scaling corresponding to the target area is smaller than 1 and the scaling is reduced along with the reduction of the second stretching length.
When the scaling corresponding to the target area is 1, the target area is not stretched or shrunk; when the scaling corresponding to the target area is larger than 1, stretching the target area, wherein the stretching may be transverse stretching or longitudinal stretching; when the scaling corresponding to the target area is smaller than 1, performing a contraction process on the target area, where the contraction process may be a transverse contraction or a longitudinal contraction.
In the embodiment of the application, when the camera is detected to be started, the second reel can be controlled to automatically pop up the A1cm, so that a user can select and adjust the proportion by stretching or rewinding the second reel, wherein 0< A1< A2, and A2 is the maximum stretchable length of the second reel.
In the scene of shooting characters by using the electronic equipment, in order to meet the use habits of most users, the first scroll can be a right scroll, and the second scroll can be a left scroll, that is, the user stretches the right scroll to the right to select a specific character part to be adjusted, stretches the left scroll to the left to control a specific adjustment ratio,
in order to facilitate the user to intuitively feel the image area needing to be adjusted, in the embodiment of the present application, the following steps may be further added after step 102: a target area is marked on the first image. For example, by means of a straight line, an oval box, etc.
In one example, the right spool is stretched to the right and when the right spool stretch length reaches a first threshold B1, the leg length adjustment mode is entered. Controlling the specific leg stretching proportion through the left and right stretching length of the left reel, and if the left reel is stretched to the left, stretching the leg; if the left reel is pushed to the right, the leg length is shortened; the whole process only adjusts the leg length of the portrait, the background is unchanged, and the processing effect is shown in figure 3.
The right scroll continues to be stretched rightward, and when the stretched length of the right scroll reaches a second threshold B2, the face adjustment mode is entered. The face is controlled by stretching the left scroll leftwards and rightwards, the left scroll is stretched leftwards, and the width of the face is increased (namely the face is enlarged); if the left scroll bar is pushed to the right, the width of the face is reduced (i.e., the face becomes smaller); the whole process only adjusts the size of the face of the portrait, the background is unchanged, and the processing effect is as shown in fig. 4.
And the right reel continues to stretch rightwards, and when the stretching length of the right reel reaches a third threshold value B3, the integral stature adjusting mode is entered. The body width is controlled by stretching the left scroll leftwards and rightwards, the left scroll is stretched leftwards, the whole body of a person can be widened, and the person can become fat; if the left reel is pushed to the right, the whole figure of the person becomes narrow, namely the person becomes thin. The whole process only adjusts the weight of people, the background is unchanged, and the treatment effect is shown in figure 5. Wherein B1< B2< B3, namely when the right side reel is stretched from 0cm to the right, different parts of the portrait can be adjusted along with the stretching length, and when the right side reel is stretched to the utmost, all preset parts of the whole portrait are adjusted.
In step 103, the target area is subjected to image processing in accordance with the target adjustment parameter, and a target image is output.
In the embodiment of the application, when a photographing instruction is received, image processing can be performed on a target area according to a target adjustment parameter, and a target image is output, wherein the photographing instruction can be triggered in multiple ways, for example, a photographing icon on a screen is clicked, or a left side scroll is pushed to the right, all the left side scrolls are rolled up, and the photographing instruction is started.
In the embodiment of the application, in a photographing scene, when the target area is subjected to image processing according to the target adjustment parameter, only the target area can be adjusted, and the background is kept unchanged.
In the embodiment of the application, under the scene that the electronic equipment is used for shooting people, the whole stature, the face and the legs of the shot portrait can be stretched in the shooting process, the stretching proportion can be adjusted in real time, and the most suitable parameters are selected; meanwhile, the auxiliary user does not need to perform post-processing after shooting is completed, so that the legs and the body of the portrait can be more harmonious, and the shooting experience of the user is improved.
According to the embodiment, in the photographing process, the specific area in the image to be processed can be selected to be adjusted by adjusting the stretching lengths of the reels on the two sides of the reel type flexible screen, a user is assisted not to perform post-processing after photographing is completed, and the operation is simple and convenient.
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 embodiment of the present application describes an image processing apparatus provided in the embodiment of the present application, by taking an example in which an image processing apparatus executes a loaded image processing method.
Fig. 6 is a block diagram of an image processing apparatus according to an embodiment of the present application, and as shown in fig. 6, an image processing apparatus 600 may include: an acquisition module 601, a determination module 602, and a processing module 603, wherein,
an obtaining module 601, configured to obtain a first image, a first stretched length of a first reel of an electronic device, and a second stretched length of a second reel of the electronic device, where the electronic device includes: a flexible screen with a double-sided reel capable of stretching left and right, the double-sided reel including a first reel and a second reel;
a determining module 602, configured to determine a target area and a target adjustment parameter of the first image according to the first stretching length and the second stretching length;
and the processing module 603 is configured to perform image processing on the target area according to the target adjustment parameter, and output a target image.
According to the embodiment, in the photographing process, the specific area in the image to be processed can be selected to be adjusted by adjusting the stretching lengths of the reels on the two sides of the reel type flexible screen, a user is assisted not to perform post-processing after photographing is completed, and the operation is simple and convenient.
Optionally, as an embodiment, the determining module 602 may include:
the first determining submodule is used for determining a target area of the first image according to the first stretching length;
and the second determining submodule is used for determining a target adjusting parameter corresponding to the target area according to the second stretching length.
Optionally, as an embodiment, the first determining sub-module may include:
a first recognition unit configured to recognize a photographic subject of the first image;
a second recognition unit configured to recognize a body part of the photographic subject when the photographic subject is a person;
the first determination unit is used for determining a target body part corresponding to the first stretching length according to the corresponding relation between the preset stretching length and the body part;
and the second determining unit is used for determining the image area where the target body part is positioned as a target area.
Optionally, as an embodiment, the first determining unit may include:
the first determining subunit is used for determining that the target body part corresponding to the first stretching length is a leg part when the first stretching length is a first length;
the second determining subunit is used for determining that the target body part corresponding to the first stretching length is a face when the first stretching length is a second length;
the third determining subunit is used for determining that the target body part corresponding to the first stretching length is the whole body when the first stretching length is the third length;
wherein the first length, the second length, and the third length are mutually different.
Optionally, as an embodiment, the target adjustment parameter is a scaling.
Optionally, as an embodiment, the second determining sub-module may include:
a third determining unit, configured to determine that a scaling corresponding to the target area is 1 when the second stretching length is a fourth length;
a fourth determining unit, configured to determine that, when the second stretching length is greater than the fourth length, a scaling ratio corresponding to the target portion is greater than 1, and the scaling ratio increases with an increase in the second stretching length;
and a fifth determining unit, configured to determine that, when the second stretching length is smaller than the fourth length, the scaling corresponding to the target portion is smaller than 1, and the scaling decreases as the second stretching length decreases.
Optionally, as an embodiment, the image processing apparatus 600 may further include:
a marking module for marking the target area on the first image.
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 embodiment of the method in fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in an embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the image processing method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
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. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application. The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.
Those skilled in the art will appreciate that the electronic device 800 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 8 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 omitted here.
Wherein the processor 810 is configured to obtain a first image, a first stretched length of a first reel of an electronic device, and a second stretched length of a second reel, the electronic device comprising: a flexible screen with a double-sided reel capable of stretching left and right, the double-sided reel including a first reel and a second reel; determining a target area and a target adjustment parameter of the first image according to the first stretching length and the second stretching length; and according to the target adjustment parameter, carrying out image processing on the target area and outputting a target image.
Therefore, in the embodiment of the application, in the photographing process, the specific area in the image to be processed can be selected to be adjusted by adjusting the stretching lengths of the reels on the two sides of the reel type flexible screen, the user is assisted not to perform post-processing after photographing is completed, and the operation is simple and convenient.
Optionally, as an embodiment, the processor 810 is further configured to determine a target region of the first image according to the first stretching length; and determining a target adjustment parameter corresponding to the target area according to the second stretching length.
Optionally, as an embodiment, the processor 810 is further configured to identify a photographic subject of the first image; when the photographic subject is a person, identifying a body part of the photographic subject; determining a target body part corresponding to the first stretching length according to the corresponding relation between the preset stretching length and the body part; and determining the image area where the target body part is located as a target area.
Optionally, as an embodiment, the processor 810 is further configured to determine that the target body part corresponding to the first stretching length is a leg when the first stretching length is a first length; when the first stretching length is a second length, determining that the target body part corresponding to the first stretching length is a face; when the first stretching length is a third length, determining that the target body part corresponding to the first stretching length is the whole body; wherein the first length, the second length, and the third length are mutually different.
Optionally, as an embodiment, the target adjustment parameter is a scaling.
Optionally, as an embodiment, the processor 810 is further configured to determine that, when the second stretching length is a fourth length, the scaling corresponding to the target area is 1; when the second stretching length is larger than the fourth length, determining that the scaling corresponding to the target part is larger than 1 and the scaling is increased along with the increase of the second stretching length; when the second stretching length is smaller than the fourth length, determining that the scaling corresponding to the target part is smaller than 1, and the scaling is reduced along with the reduction of the second stretching length.
Optionally, as an embodiment, the processor 810 is further configured to mark the target area on the first image.
It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics Processing Unit 8041 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 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072. A touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 8072 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 809 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
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. Additionally, 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 (8)

1. An image processing method, characterized in that the method comprises:
acquiring a first image, a first stretched length of a first reel and a second stretched length of a second reel of an electronic device, the electronic device comprising: a flexible screen with a double-sided reel capable of stretching left and right, the double-sided reel including a first reel and a second reel;
determining a target area and a target adjustment parameter of the first image according to the first stretching length and the second stretching length;
performing image processing on the target area according to the target adjustment parameter, and outputting a target image;
wherein the determining a target region and a target adjustment parameter of the first image according to the first stretching length and the second stretching length comprises:
determining a target area of the first image according to the first stretching length;
determining a target adjustment parameter corresponding to the target area according to the second stretching length;
determining a target region of the first image according to the first stretching length comprises:
recognizing a photographic object of the first image;
when the photographic subject is a person, identifying a body part of the photographic subject;
determining a target body part corresponding to the first stretching length according to the corresponding relation between the preset stretching length and the body part;
and determining the image area where the target body part is located as a target area.
2. The method according to claim 1, wherein the determining the target body part corresponding to the first stretching length according to the corresponding relationship between the preset stretching length and the body part comprises:
when the first stretching length is a first length, determining that the target body part corresponding to the first stretching length is a leg part;
when the first stretching length is a second length, determining that the target body part corresponding to the first stretching length is a face;
when the first stretching length is a third length, determining that the target body part corresponding to the first stretching length is the whole body;
wherein the first length, the second length, and the third length are mutually different.
3. The method of any of claims 1 to 2, wherein the target adjustment parameter is a scaling.
4. The method of claim 3, wherein determining the target adjustment parameter corresponding to the target area according to the second stretching length comprises:
when the second stretching length is a fourth length, determining that the scaling corresponding to the target area is 1;
when the second stretching length is larger than the fourth length, determining that the scaling corresponding to the target area is larger than 1 and the scaling is increased along with the increase of the second stretching length;
when the second stretching length is smaller than the fourth length, determining that the scaling corresponding to the target area is smaller than 1, and the scaling is reduced along with the reduction of the second stretching length.
5. The method of claim 1, wherein after the step of determining the target region and the target adjustment parameter for the first image based on the first stretched length and the second stretched length, further comprising:
marking the target region on the first image.
6. An image processing apparatus, characterized in that the apparatus comprises:
an acquisition module for acquiring a first image, a first stretched length of a first reel and a second stretched length of a second reel of an electronic device, the electronic device comprising: a flexible screen with a double-sided reel capable of stretching left and right, the double-sided reel including a first reel and a second reel;
a determining module, configured to determine a target region and a target adjustment parameter of the first image according to the first stretching length and the second stretching length;
the processing module is used for carrying out image processing on the target area according to the target adjustment parameter and outputting a target image;
wherein the determining module comprises:
the first determining submodule is used for determining a target area of the first image according to the first stretching length;
the second determining submodule is used for determining a target adjusting parameter corresponding to the target area according to the second stretching length;
the first determination submodule includes:
a first recognition unit configured to recognize a photographic subject of the first image;
a second recognition unit configured to recognize a body part of the photographic subject when the photographic subject is a person;
the first determination unit is used for determining a target body part corresponding to the first stretching length according to the corresponding relation between the preset stretching length and the body part;
and the second determining unit is used for determining the image area where the target body part is positioned as a target area.
7. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the image processing method according to any one of claims 1 to 5.
8. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the image processing method according to any one of claims 1 to 5.
CN202110272362.6A 2021-03-12 2021-03-12 Image processing method, image processing device, electronic equipment and storage medium Active CN112988010B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110272362.6A CN112988010B (en) 2021-03-12 2021-03-12 Image processing method, image processing device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110272362.6A CN112988010B (en) 2021-03-12 2021-03-12 Image processing method, image processing device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112988010A CN112988010A (en) 2021-06-18
CN112988010B true CN112988010B (en) 2022-08-09

Family

ID=76335416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110272362.6A Active CN112988010B (en) 2021-03-12 2021-03-12 Image processing method, image processing device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112988010B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113676665B (en) * 2021-08-20 2023-05-16 维沃移动通信有限公司 Image processing method and device and electronic equipment
CN113946258A (en) * 2021-10-18 2022-01-18 珠海格力电器股份有限公司 Picture editing processing method and device, storage medium, processor and terminal equipment
CN114173029B (en) * 2021-11-01 2023-09-22 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN114125307B (en) * 2021-12-30 2024-02-02 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105489164A (en) * 2016-01-15 2016-04-13 重庆惠科金扬科技有限公司 Displaying area self-adaptive adjusting device based on OLED flexible screen
KR20160139643A (en) * 2015-05-28 2016-12-07 한국과학기술연구원 Display device having expandable display, controlling method thereof and recording medium for performing the method
CN107331296A (en) * 2017-06-27 2017-11-07 武汉天马微电子有限公司 Flexible display systems and its control method
CN108766235A (en) * 2018-03-31 2018-11-06 上海创功通讯技术有限公司 Scroll flexible screen, display control method and storage medium
CN109639866A (en) * 2019-01-28 2019-04-16 维沃移动通信有限公司 A kind of display methods and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160139643A (en) * 2015-05-28 2016-12-07 한국과학기술연구원 Display device having expandable display, controlling method thereof and recording medium for performing the method
CN105489164A (en) * 2016-01-15 2016-04-13 重庆惠科金扬科技有限公司 Displaying area self-adaptive adjusting device based on OLED flexible screen
CN107331296A (en) * 2017-06-27 2017-11-07 武汉天马微电子有限公司 Flexible display systems and its control method
CN108766235A (en) * 2018-03-31 2018-11-06 上海创功通讯技术有限公司 Scroll flexible screen, display control method and storage medium
CN109639866A (en) * 2019-01-28 2019-04-16 维沃移动通信有限公司 A kind of display methods and terminal

Also Published As

Publication number Publication date
CN112988010A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN112988010B (en) Image processing method, image processing device, electronic equipment and storage medium
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
WO2022012657A1 (en) Image editing method and apparatus, and electronic device
WO2022166944A1 (en) Photographing method and apparatus, electronic device, and medium
CN113840070B (en) Shooting method, shooting device, electronic equipment and medium
CN112312016B (en) Shooting processing method and device, electronic equipment and readable storage medium
CN113794834B (en) Image processing method and device and electronic equipment
US10939044B1 (en) Automatically setting zoom level for image capture
EP2498487B1 (en) Mobile communication apparatus
CN113709368A (en) Image display method, device and equipment
CN112954209B (en) Photographing method and device, electronic equipment and medium
CN111800574B (en) Imaging method and device and electronic equipment
CN112887624B (en) Shooting method and device and electronic equipment
CN112653841B (en) Shooting method and device and electronic equipment
CN115499589A (en) Shooting method, shooting device, electronic equipment and medium
CN114093005A (en) Image processing method and device, electronic equipment and readable storage medium
CN115134532A (en) Image processing method, image processing device, storage medium and electronic equipment
CN114245017A (en) Shooting method and device and electronic equipment
CN110121030B (en) Method for storing shot image and electronic equipment
CN113572955A (en) Image processing method and device and electronic equipment
CN113873168A (en) Shooting method, shooting device, electronic equipment and medium
CN112367464A (en) Image output method and device and electronic equipment
CN112367467A (en) Display control method, display control device, electronic apparatus, and medium
CN112367470B (en) Image processing method and device and electronic equipment
CN114040099B (en) Image processing method and device and electronic equipment

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