CN113301252B - Image photographing method, mobile terminal and computer readable storage medium - Google Patents

Image photographing method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN113301252B
CN113301252B CN202110551582.2A CN202110551582A CN113301252B CN 113301252 B CN113301252 B CN 113301252B CN 202110551582 A CN202110551582 A CN 202110551582A CN 113301252 B CN113301252 B CN 113301252B
Authority
CN
China
Prior art keywords
image
shooting
portrait
preset threshold
scene
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
CN202110551582.2A
Other languages
Chinese (zh)
Other versions
CN113301252A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN202110551582.2A priority Critical patent/CN113301252B/en
Publication of CN113301252A publication Critical patent/CN113301252A/en
Application granted granted Critical
Publication of CN113301252B publication Critical patent/CN113301252B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2628Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

The application provides an image shooting method which is applied to a mobile terminal, wherein the mobile terminal comprises at least one camera, and the image shooting method comprises the following steps: judging whether the first image acquired by the camera contains a portrait or not; when the first image contains a portrait, controlling the camera to enter a portrait shooting mode; based on the size information of the first image and the size information of the human figure in the first image, a corresponding auxiliary shooting strategy is obtained; and displaying an auxiliary shooting strategy on the shooting preview interface to prompt shooting to obtain a second image based on the auxiliary shooting strategy. The application also provides a mobile terminal and a computer readable storage medium. The method can obtain the corresponding auxiliary shooting strategy based on the size information of the first image acquired by the camera and the size information of the human image in the first image, further obtain the second image based on the auxiliary shooting strategy, and improve user experience.

Description

Image photographing method, mobile terminal and computer readable storage medium
Technical Field
The present disclosure relates to the field of image technologies, and in particular, to an image capturing method, a mobile terminal, and a computer readable storage medium.
Background
With the development of electronic technology, in daily life, more and more users take photos through mobile terminals and share the captured images in a friend circle and a social platform. But most users lack related shooting technologies, so that the composition of the shot images is unreasonable and the effect is poor.
Disclosure of Invention
The main objective of the present application is to provide an image capturing method, a mobile terminal and a computer readable storage medium, which aim to assist a user in capturing and improve user experience.
In order to achieve the above object, the present application provides an image capturing method applied to a mobile terminal, where the mobile terminal includes at least one camera, the image capturing method includes: judging whether the first image acquired by the camera contains a portrait or not; when the first image contains the portrait, controlling the camera to enter a portrait shooting mode; obtaining a corresponding auxiliary shooting strategy based on the size information of the first image and the size information of the person in the first image; and displaying the auxiliary shooting strategy on a shooting preview interface to prompt shooting to obtain a second image based on the auxiliary shooting strategy.
Optionally, the auxiliary shooting strategy includes a scene state, and the scene state includes a near scene, a middle scene and a far scene.
Optionally, the step of obtaining the corresponding auxiliary shooting policy based on the size information of the first image and the size information of the person in the first image includes:
acquiring the height of the first image, the height of the person in the first image and the width of the person;
comparing the height of the portrait with a first preset threshold value and a second preset threshold value, and comparing the width of the portrait with the first preset threshold value and the second preset threshold value;
when the height of the portrait or the width of the portrait is larger than the first preset threshold value, determining the scene state as the close view;
when the height of the portrait and the width of the portrait are smaller than the first preset threshold, and the height of the portrait or the width of the portrait is larger than the second preset threshold, determining the scene state as the middle scene;
when the height of the portrait and the width of the portrait are smaller than the second preset threshold, determining that the scene state is the distant scene;
the first preset threshold value is equal to the height of the first image divided by a first coefficient, the second threshold value is equal to the height of the first image divided by a second coefficient, the first coefficient is smaller than the second coefficient, and the first coefficient and the second coefficient are both positive numbers.
Optionally, the image capturing method further includes:
judging whether the camera enters the portrait shooting mode for the first time;
when the camera is determined not to enter the portrait shooting mode for the first time, adjusting the first preset threshold value and the second preset threshold value based on the current scene state;
and re-determining the scene state based on the adjusted first preset threshold value and the adjusted second preset threshold value.
Optionally, the auxiliary shooting strategy further comprises shooting composition, and the image shooting method further comprises:
determining a corresponding shooting composition based on the scene status;
the shooting composition comprises a center composition, a well-shaped composition and a three-component composition.
Optionally, the step of determining the corresponding shooting composition based on the scene status includes:
when the scene state is the close scene, determining that the shooting composition is the center composition;
when the scene state is the distant scene, determining that the shooting composition is the cross composition;
and when the scene state is the middle scene, determining the shooting composition as the trisection composition.
Optionally, the auxiliary shooting strategy further includes a shooting angle prompt, and the image shooting method further includes:
And acquiring human body key points contained in the portrait, comparing the human body key points with a preset human body key point set, and determining the shooting angle prompt based on a comparison result.
Optionally, the shooting angle prompt includes a upward shooting prompt, a downward shooting prompt and a horizontal shooting prompt.
The application also provides a mobile terminal, which comprises: a touch screen; a processor; and the memory is connected with the processor and contains control instructions, and when the processor reads the control instructions, the mobile terminal is controlled to realize the image shooting method.
The present application also provides a computer-readable storage medium having one or more programs executed by one or more processors to implement the above-described image capturing method.
The application provides an image shooting method, a mobile terminal and a computer readable storage medium, wherein the mobile terminal comprises at least one camera, and whether a first image acquired by the camera contains a portrait is judged; when the first image contains the portrait, controlling the camera to enter a portrait shooting mode; obtaining a corresponding auxiliary shooting strategy based on the size information of the first image and the size information of the person in the first image; and displaying the auxiliary shooting strategy on a shooting preview interface to prompt the shooting of the second image based on the auxiliary shooting strategy, so that when the camera enters a portrait shooting mode, the corresponding auxiliary shooting strategy is obtained based on the size information of the first image acquired by the camera and the portrait size information in the first image, the auxiliary shooting strategy is displayed on the shooting preview interface to prompt the shooting of the second image based on the auxiliary shooting strategy, and the user can shoot the second image with better effect faster, thereby improving the user experience.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
FIG. 1 is a schematic diagram of an alternative hardware architecture of a mobile terminal implementing various embodiments of the present application;
FIG. 2 is a schematic diagram of a communication network system of the mobile terminal shown in FIG. 1;
fig. 3 is a flowchart of an image capturing method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an auxiliary strategy for a close-up display according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an auxiliary strategy for a long-range view display according to an embodiment of the present application;
FIG. 6 is a schematic flow chart of automatic composition of a mobile terminal according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The terminal may be implemented in various forms. For example, the terminals described in the present invention may include mobile terminals such as cell phones, tablet computers, notebook computers, palm computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, wearable devices, smart bracelets, pedometers, and fixed terminals such as digital TVs, desktop computers, and the like.
The following description will be given taking a mobile terminal as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for a moving purpose.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention, the mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 1 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The various components of the mobile terminal 100 are described in detail below in conjunction with fig. 1:
the radio frequency unit 101 may be used for receiving and transmitting signals during the information receiving or communication process, specifically, after receiving downlink information of the base station, processing the downlink information by the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (General Packet Radio Service ), CDMA2000 (Code Division Multiple Access, CDMA 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of a mobile terminal, and can be omitted entirely as required within a range that does not change the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the mobile terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; as for other sensors such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the mobile phone, the detailed description thereof will be omitted.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 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 110.
The mobile terminal 100 may further include a power source 111 (e.g., a battery) for supplying power to the respective components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention, where the communication network system is an LTE system of a general mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network ) 202, an epc (Evolved Packet Core, evolved packet core) 203, and an IP service 204 of an operator that are sequentially connected in communication.
Specifically, the UE201 may be the terminal 100 described above, and will not be described herein.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. The eNodeB2021 may be connected with other eNodeB2022 by a backhaul (e.g., an X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access from the UE201 to the EPC 203.
EPC203 may include MME (Mobility Management Entity ) 2031, hss (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, pgw (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function, policy and tariff function entity) 2036, and so on. The MME2031 is a control node that handles signaling between the UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ), or other IP services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present invention is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and the communication network system, various embodiments of the method of the present invention are provided.
Fig. 3 is a flowchart of an embodiment of an image capturing method provided in the present application. Once triggered by the user, the process in this embodiment is automatically executed by the mobile terminal 100, where each step may be executed sequentially as shown in the flowchart, or may be executed simultaneously according to the actual situation, and this is not limited herein. The mobile terminal 100 may include at least one camera. The image shooting method provided by the application comprises the following steps:
step S310, judging whether the first image acquired by the camera contains a portrait or not;
step S330, when the first image contains the portrait, controlling the camera to enter a portrait shooting mode;
Step S350, obtaining a corresponding auxiliary shooting strategy based on the size information of the first image and the size information of the portrait in the first image;
and step S370, displaying the auxiliary shooting strategy on a shooting preview interface to prompt shooting to obtain a second image based on the auxiliary shooting strategy.
Through the implementation mode, whether the first image acquired by the camera contains a portrait or not is judged first; secondly, when the first image contains the portrait, controlling the camera to enter a portrait shooting mode; based on the size information of the first image and the size information of the figures in the first image, a corresponding auxiliary shooting strategy is obtained; and finally, displaying the auxiliary shooting strategy on a shooting preview interface to prompt a user to shoot based on the auxiliary shooting strategy to obtain a second image, so that when the camera enters a portrait shooting mode, based on the size information of the first image acquired by the camera and the portrait size information in the first image, a corresponding auxiliary shooting strategy is obtained, and the auxiliary shooting strategy is displayed on the shooting preview interface to prompt the user to shoot based on the auxiliary shooting strategy to obtain the second image, so that the user can shoot the second image with better effect more quickly, and the user experience is improved.
The above steps will be specifically described with reference to specific embodiments.
In step S310, it is determined whether the first image acquired by the camera includes a portrait.
In this embodiment, taking the mobile terminal 100 as an example of a mobile phone, the camera may be a front camera or a rear camera of the mobile terminal 100. The first image may include a portrait, a pet, other subjects, etc.
Specifically, when a touch operation applied by a user to a camera of the mobile terminal 100 is received, the camera may be controlled to be turned on and the first image may be collected by using the camera, and then the first image may be detected by a preset technology to determine whether the first image includes the portrait. It may be understood that the number of portraits may be one or more, and the number of portraits included in the first image is not limited in the present application.
In step S330, when the first image includes the portrait, the camera is controlled to enter a portrait shooting mode.
In this embodiment, the camera of the mobile terminal 100 may also support a normal shooting mode. When the first image acquired by the camera is determined to contain at least one portrait, the camera can be controlled to enter the portrait shooting mode.
It will be appreciated that when the first image does not include the portrait, the camera may be controlled to enter other shooting modes, such as the normal shooting mode.
In step S350, a corresponding auxiliary shooting policy is obtained based on the size information of the first image and the size information of the person in the first image.
In this embodiment, the auxiliary photographing policy may include a scene status and a photographing composition. The scene-level status may include near, medium, and far. The photographing composition may include a center composition, a well composition, and a trisection composition.
Specifically, the obtaining the corresponding auxiliary shooting policy based on the size information of the first image and the size information of the person image in the first image may include the following steps:
acquiring the height of the first image, the height of the person in the first image and the width of the person;
comparing the height of the portrait with a first preset threshold value and a second preset threshold value, and comparing the width of the portrait with the first preset threshold value and the second preset threshold value;
when the height of the portrait or the width of the portrait is larger than the first preset threshold value, determining the scene state as the close view;
When the height of the portrait and the width of the portrait are smaller than the first preset threshold, and the height of the portrait or the width of the portrait is larger than the second preset threshold, determining the scene state as the middle scene;
when the height of the portrait and the width of the portrait are smaller than the second preset threshold, determining that the scene state is the distant scene;
the first preset threshold value is equal to the height of the first image divided by a first coefficient, the second threshold value is equal to the height of the first image divided by a second coefficient, the first coefficient is smaller than the second coefficient, and the first coefficient and the second coefficient are both positive numbers.
In this embodiment, the size information of the first image may include a height of the first image and a width of the first image. The portrait size information in the first image may include a height of a portrait in the first image and a width of the portrait.
In this embodiment, before the height of the first image, the height of the person in the first image, and the width of the person are acquired, or after the height of the first image, the height of the person in the first image, and the width of the person are acquired, and before the height of the person and the width of the person are compared with the first preset threshold and the second preset threshold, the first preset threshold and the second preset threshold may be set first, so that the height of the person is compared with the first preset threshold and the second preset threshold subsequently, and the width of the person is compared with the first preset threshold and the second preset threshold to determine the corresponding scene status.
For example, as shown in fig. 4, the height of the first image is H, the height of the person in the first image is H1, the width of the person in the first image is w1, the first coefficient is 1.5, and the second coefficient is 2.2, so the first preset threshold T1 is H/1.5, and the second preset threshold T2 is H/2.2. Comparing the height h1 of the portrait with the first preset threshold T1 and the second preset threshold T2, and simultaneously comparing the width w1 of the portrait with the first preset threshold T1 and the second preset threshold T2, and determining the scene status as the close scene when the height h1 of the portrait or the width w1 of the portrait is greater than the first preset threshold T1; when the height h1 of the portrait and the width w1 of the portrait are smaller than the first preset threshold T1, and the height h1 of the portrait or the width w1 of the portrait is larger than the second preset threshold T2, the scene state may be determined to be the middle scene; when the height h1 of the portrait and the width w1 of the portrait are smaller than the second preset threshold T2, the scene may be determined as the distant view.
In this embodiment, after the first preset threshold value and the second preset threshold value are set, whether the camera enters the portrait shooting mode for the first time may be determined first, and when it is determined that the camera enters the portrait shooting mode for the first time, the height of the portrait may be directly compared with the first preset threshold value and the second preset threshold value, and the width of the portrait may be compared with the first preset threshold value and the second preset threshold value, and the subsequent steps may be performed; when it is determined that the camera does not enter the portrait shooting mode for the first time, the first preset threshold and the second preset threshold may be adjusted based on the current scene state, and the scene state may be redetermined based on the adjusted first preset threshold and the adjusted second preset threshold.
In other embodiments, the relative distance between the mobile terminal 100 and the photographed human body may also be acquired, so that the scene state is determined according to the relative distance. For example, when the relative distance between the mobile terminal 100 and the photographed human body is less than a first threshold, determining the scene state as the close-up; and when the relative distance between the mobile terminal 100 and the photographed human body is greater than a second threshold value, determining the scene state as the distant view, and when the relative distance between the mobile terminal 100 and the photographed human body is greater than the first threshold value and less than the second threshold value, determining the scene state as the medium view. The first threshold is less than the second threshold.
In this embodiment, the current scene-level state may also include the near scene, the middle scene, and the far scene. The adjusted first preset threshold may be equal to the first preset threshold multiplied by a third coefficient. The adjusted second preset threshold may be equal to the second preset threshold multiplied by the third coefficient. The third coefficient is a positive number. It may be appreciated that when the current foreground state is different, the adjusted first preset threshold value and the adjusted second preset threshold value based on the different current foreground states may be the same or different. That is, the values of the third coefficients corresponding to different foreground states may be the same or different.
Specifically, taking the first preset threshold value as T1, the second preset threshold value as T2 as an example, when it is determined that the camera does not enter the portrait shooting mode for the first time, the current foreground state may be determined first, when it is determined that the current foreground state is the close view, the third coefficient may be 0.93, the adjusted first preset threshold value is 0.93×t1, and the adjusted second preset threshold value is 0.93×t2; when the current foreground state is determined to be the middle scene, the third coefficient may be 0.93, the adjusted first preset threshold is 0.93×t1, and the adjusted second preset threshold is 0.93×t2; when the current foreground state is determined to be the distant view, the third coefficient may be 1.7, the adjusted first preset threshold is 1.7×t1, and the adjusted second preset threshold is 1.7×t2.
In this embodiment, when the scene state is redetermined and changed based on the adjusted first preset threshold and the adjusted second preset threshold, the counter may be started to count, if the same change occurs in a plurality of continuous frames, the current scene state is updated, otherwise, the current scene state is not updated, so that the scene state can be automatically switched in the portrait shooting mode, the user can shoot an image with better effect, and the user experience is improved.
In this embodiment, when determining the scene state, a corresponding shooting composition may be determined based on the scene state, and the specific manner may include:
when the scene state is the close scene, determining that the shooting composition is the center composition;
when the scene state is the distant scene, determining that the shooting composition is the cross composition;
and when the scene state is the middle scene, determining the shooting composition as the trisection composition.
In this embodiment, the well pattern may include a left well pattern and a right well pattern. The trisection pattern may include a left trisection pattern and a right trisection pattern.
In other embodiments, the shot composition may be determined to be the center composition when the portrait is not included in the first image, for example, the first image includes a pet or other subject. It will be appreciated that the mobile terminal 100 may also save the auxiliary photographing policy after determining the auxiliary photographing policy.
In step S370, the auxiliary shooting policy is displayed on the shooting preview interface to prompt shooting to obtain a second image based on the auxiliary shooting policy.
In this embodiment, the shooting preview interface may be used to display the first image and the auxiliary shooting policy. The second image has a higher image effect than the first image. And displaying the auxiliary shooting strategy, such as the shooting composition, on the shooting preview interface so as to prompt that the second image effect obtained by shooting based on the shooting composition is optimal, and a user can control the camera to shoot.
In this embodiment, face detection and face key point detection may be performed on the first image by using a face detection technology, so as to determine coordinates of a plurality of face key points. The face keypoints may include a first face keypoint and a second face keypoint. Referring again to fig. 4, a coordinate system may be established such that the origin of coordinates O (0, 0) is the lower left corner of the screen of the mobile terminal 100 when the mobile terminal photographs in the portrait mode or the landscape mode. When the face detection technology is used for face detection of the first image, a face model frame 400 is automatically generated, and the first face key point and the second face key point may be two diagonal points P and Q of the face model frame 400 respectively. The face detection technology is used for carrying out face detection and face key point detection on the first image, and the coordinates (x 0, y 0) of the first face key point, namely the diagonal point P, and the coordinates (x 1, y 1) of the second face key point, namely the diagonal point Q can be obtained by combining the gesture information of the human images, and the coordinates (xL, yL) of the left eye E1, the coordinates (xR, yR) of the right eye E2 and the coordinates (xn, yn) of the nose bridge F are obtained.
In the present embodiment, the coordinates (x 2, y 2) of the portrait target point N of the first image may be determined based on the coordinates (x 0, y 0) of the first face key point, the coordinates (x 1, y 1) of the second face key point, and the height H of the first image. The coordinate calculation formula of the portrait target point N is as follows:
x2=(x0+x1)/2;y2=y1+0.25*(y1-y0)+0.3*H。
In this embodiment, referring again to fig. 4, when it is determined that the scene state is the close-up, it may be determined that the shot composition is the center composition, and a composition target point M (white circle), an auxiliary line of the center composition, and the portrait target point N (black filled circle) are displayed on a shot preview interface to prompt shooting based on the composition target point M and the portrait target point N to obtain a second image. Specifically, the composition target point M is tracked through the portrait target point N, when the composition target point M and the portrait target point N coincide, it is indicated that the second image effect obtained by shooting at this time is optimal, and the user can control the camera to shoot.
In this embodiment, as shown in fig. 5, when the scene state is the distant scene, the shooting composition is determined to be the well-shaped composition, and an auxiliary line of the well-shaped composition and the figure target point N (black filled circle) are displayed on a shooting preview interface to prompt shooting based on the figure target point N and the auxiliary line of the well-shaped composition to obtain a second image. When the portrait target point N is closer to the left cross composition point a, a second image can be prompted to be obtained based on Zuo Jingzi composition shooting. When the portrait target point N is closer to the right well pattern composition point B, the prompt can be used for obtaining a second image based on the right well pattern composition shooting.
In the present embodiment, when the scene-type state is determined to be the middle scene, the photographing composition may be determined to be the three-part composition. When (xn-xL) is greater than (xR-yL), the photographing composition may be determined to be the left trisection composition, and the photographing based on the left trisection composition may be prompted to obtain a second image. When (xn-xL) is smaller than (xR-yL), the photographing composition may be determined to be the right trisection composition, and the photographing based on the right trisection composition may be prompted to obtain a second image.
In this embodiment, the auxiliary shooting strategy may further include a shooting angle prompt, and the shooting angle prompt may include a upward shooting prompt, a downward shooting prompt, and a horizontal shooting prompt. The human body key points contained in the portrait can be obtained and compared with a preset human body key point set, and the shooting angle prompt is determined based on the comparison result so as to prompt that a second image is obtained based on shooting angles.
In this embodiment, the set of preset human body key points may include a plurality of preset human body key points. The preset human body key points may include a neck, a chest, a belly, a left thigh, a right thigh, a left knee, a right knee, a left foot, a right foot, and the like. The comparison result may include all preset human body key points, or may include part of preset human body key points.
For example, the preset human body key points include the above 9 preset human body key points. And acquiring human body key points contained in the portrait and comparing the human body key points with a preset human body key point set, and prompting to take a second image in a face-to-face shooting mode when the comparison result shows that the human body key points contained in the portrait are the 9 preset human body key points. When the comparison result shows that the key points of the human body contained in the portrait are the neck, the chest and the belly, the shooting angle can not be prompted.
In practical application, based on the above image capturing method, the process of capturing by the mobile terminal 100 with the camera is shown in fig. 6, and may include:
step S610, a camera acquires a first image;
step S611, judging whether the first image contains a portrait or not;
step S612, when the first image contains the portrait, controlling the camera to enter a portrait shooting mode;
step S613, determining the scene status based on the size information of the first image and the size information of the portrait in the first image;
step S614, when the scene state is the close-up, determining the shooting composition as the center composition;
Step S615, when the scene state is the distant scene, determining that the shooting composition is the well-shaped composition;
step S616, when the scene status is the middle scene, determining that the shooting composition is the trisection composition;
step S617, the human body key points contained in the portrait are obtained and compared with a preset human body key point set, and a shooting angle prompt is determined based on the comparison result.
Through the implementation mode, whether the first image acquired by the camera contains a portrait or not is judged; when the first image contains the portrait, controlling the camera to enter a portrait shooting mode; obtaining a corresponding auxiliary shooting strategy based on the size information of the first image and the size information of the person in the first image; and displaying the auxiliary shooting strategy on a shooting preview interface to prompt the shooting of the second image based on the auxiliary shooting strategy, so that when the camera enters a portrait shooting mode, the corresponding auxiliary shooting strategy is obtained based on the size information of the first image acquired by the camera and the portrait size information in the first image, the auxiliary shooting strategy is displayed on the shooting preview interface to prompt the shooting of the second image based on the auxiliary shooting strategy, and the user can shoot the second image with better effect faster, thereby improving the user experience. Further, the auxiliary shooting strategy comprises scene states, shooting composition and shooting angle prompts, so that more visual prompts can be given to a user, and the user can conveniently and rapidly shoot a second image with a better effect.
Fig. 7 is a schematic structural diagram of a mobile terminal 100 according to an embodiment of the present application, where the mobile terminal 100 includes at least one camera, and the mobile terminal 100 includes: a touch panel 1071; a processor 110; a memory 109 is connected to the processor 110, and the memory 109 contains control instructions, which when read by the processor 110, control the mobile terminal 100 to perform the image capturing method as described in fig. 3.
Note that the configuration illustrated in the present embodiment does not constitute a specific limitation on the mobile terminal 100. In other embodiments, the mobile terminal 100 may further include more components than those illustrated, or may combine some components, or split some components, which are not described herein.
Embodiments of the present application also provide a computer-readable storage medium having one or more programs that are executed by one or more processors. When the processor reads the program to control the computer-readable storage medium to perform the image photographing method as described in fig. 3.
It should be noted that, the mobile terminal 100 and the computer readable storage medium provided in the above embodiments are all used for executing the corresponding methods provided above, and therefore, the advantages achieved by the method can refer to the advantages in the corresponding methods provided above, and will not be described herein.
The corresponding technical features in the above embodiments can be used mutually without causing contradiction between schemes or incapacitation.
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.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
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 protection of the claims, which fall within the protection of the present application.

Claims (6)

1. An image shooting method applied to a mobile terminal, wherein the mobile terminal comprises at least one camera, the image shooting method comprises the following steps:
judging whether the first image acquired by the camera contains a portrait or not;
when the first image contains the portrait, controlling the camera to enter a portrait shooting mode;
obtaining a corresponding auxiliary shooting strategy based on the size information of the first image and the size information of the person in the first image; and
Displaying the auxiliary shooting strategy on a shooting preview interface to prompt shooting to obtain a second image based on the auxiliary shooting strategy;
the auxiliary shooting strategy comprises a scene state, wherein the scene state comprises a near scene, a middle scene and a far scene;
The step of obtaining a corresponding auxiliary shooting strategy based on the size information of the first image and the size information of the portrait in the first image includes:
acquiring the height of the first image, the height of the person in the first image and the width of the person;
comparing the height of the portrait with a first preset threshold value and a second preset threshold value, and comparing the width of the portrait with the first preset threshold value and the second preset threshold value;
when the height of the portrait or the width of the portrait is larger than the first preset threshold value, determining the scene state as the close view;
when the height of the portrait and the width of the portrait are smaller than the first preset threshold, and the height of the portrait or the width of the portrait is larger than the second preset threshold, determining the scene state as the middle scene;
when the height of the portrait and the width of the portrait are smaller than the second preset threshold, determining that the scene state is the distant scene;
the first preset threshold value is equal to the height of the first image divided by a first coefficient, the second preset threshold value is equal to the height of the first image divided by a second coefficient, the first coefficient is smaller than the second coefficient, and the first coefficient and the second coefficient are both positive numbers;
The auxiliary shooting strategy further comprises shooting composition, and the image shooting method further comprises the following steps:
determining a corresponding shooting composition based on the scene status;
the shooting composition comprises a center composition, a well-shaped composition and a trisection composition;
the step of determining the corresponding shooting composition based on the scene state comprises the following steps:
when the scene state is the close scene, determining that the shooting composition is the center composition;
when the scene state is the distant scene, determining that the shooting composition is the cross composition;
and when the scene state is the middle scene, determining the shooting composition as the trisection composition.
2. The image capturing method according to claim 1, characterized in that the image capturing method further comprises:
judging whether the camera enters the portrait shooting mode for the first time;
when the camera is determined not to enter the portrait shooting mode for the first time, adjusting the first preset threshold value and the second preset threshold value based on the current scene state;
and re-determining the scene state based on the adjusted first preset threshold value and the adjusted second preset threshold value.
3. The image capturing method according to claim 1, wherein the auxiliary capturing policy further includes a capturing angle cue, the image capturing method further comprising:
And acquiring human body key points contained in the portrait, comparing the human body key points with a preset human body key point set, and determining the shooting angle prompt based on a comparison result.
4. The image capturing method according to claim 3, wherein the capturing angle cue includes a upward capturing cue, a downward capturing cue, and a horizontal capturing cue.
5. A mobile terminal, the mobile terminal comprising:
a touch screen;
a processor; and
And the memory is connected with the processor and contains control instructions, and when the processor reads the control instructions, the mobile terminal is controlled to realize the image shooting method of any one of claims 1-4.
6. A computer-readable storage medium having one or more programs executed by one or more processors to implement the image capturing method of any of claims 1-4.
CN202110551582.2A 2021-05-20 2021-05-20 Image photographing method, mobile terminal and computer readable storage medium Active CN113301252B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110551582.2A CN113301252B (en) 2021-05-20 2021-05-20 Image photographing method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110551582.2A CN113301252B (en) 2021-05-20 2021-05-20 Image photographing method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113301252A CN113301252A (en) 2021-08-24
CN113301252B true CN113301252B (en) 2024-03-22

Family

ID=77323082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110551582.2A Active CN113301252B (en) 2021-05-20 2021-05-20 Image photographing method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113301252B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113747011B (en) * 2021-08-31 2023-10-24 网易(杭州)网络有限公司 Auxiliary shooting method and device, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003338955A (en) * 2002-05-21 2003-11-28 Olympus Optical Co Ltd Camera with advising functions
CN104917951A (en) * 2014-03-14 2015-09-16 宏碁股份有限公司 Camera device and auxiliary human image shooting method thereof
WO2019214574A1 (en) * 2018-05-11 2019-11-14 阿里巴巴集团控股有限公司 Image capturing method and apparatus, and electronic terminal
CN111182207A (en) * 2019-12-31 2020-05-19 Oppo广东移动通信有限公司 Image shooting method and device, storage medium and electronic equipment
CN111263063A (en) * 2020-02-17 2020-06-09 深圳传音控股股份有限公司 Method, device and equipment for shooting image
CN112532854A (en) * 2019-09-17 2021-03-19 华为技术有限公司 Image processing method and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218609B (en) * 2018-07-23 2020-10-23 麒麟合盛网络技术股份有限公司 Image composition method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003338955A (en) * 2002-05-21 2003-11-28 Olympus Optical Co Ltd Camera with advising functions
CN104917951A (en) * 2014-03-14 2015-09-16 宏碁股份有限公司 Camera device and auxiliary human image shooting method thereof
WO2019214574A1 (en) * 2018-05-11 2019-11-14 阿里巴巴集团控股有限公司 Image capturing method and apparatus, and electronic terminal
CN112532854A (en) * 2019-09-17 2021-03-19 华为技术有限公司 Image processing method and electronic equipment
CN111182207A (en) * 2019-12-31 2020-05-19 Oppo广东移动通信有限公司 Image shooting method and device, storage medium and electronic equipment
CN111263063A (en) * 2020-02-17 2020-06-09 深圳传音控股股份有限公司 Method, device and equipment for shooting image

Also Published As

Publication number Publication date
CN113301252A (en) 2021-08-24

Similar Documents

Publication Publication Date Title
CN107995420B (en) Remote group photo control method, double-sided screen terminal and computer readable storage medium
CN107566734B (en) Intelligent control method, terminal and computer readable storage medium for portrait photographing
CN109471579B (en) Terminal screen information layout adjustment method and device, mobile terminal and storage medium
CN109584897B (en) Video noise reduction method, mobile terminal and computer readable storage medium
CN111866388B (en) Multiple exposure shooting method, equipment and computer readable storage medium
CN108022227B (en) Black and white background picture acquisition method and device and computer readable storage medium
CN110189368B (en) Image registration method, mobile terminal and computer readable storage medium
CN110177207B (en) Backlight image shooting method, mobile terminal and computer readable storage medium
CN110086993B (en) Image processing method, image processing device, mobile terminal and computer readable storage medium
CN110052024B (en) Game vibration adjusting method, adjusting device, mobile terminal and storage medium
CN109389394B (en) Multi-screen payment control method, equipment and computer readable storage medium
CN113301251B (en) Auxiliary shooting method, mobile terminal and computer readable storage medium
CN108595600B (en) Photo classification method, mobile terminal and readable storage medium
CN113301252B (en) Image photographing method, mobile terminal and computer readable storage medium
CN114025099A (en) Method and device for regulating composition of shot image and computer readable storage medium
CN113347372A (en) Shooting light supplement method, mobile terminal and readable storage medium
CN112135045A (en) Video processing method, mobile terminal and computer storage medium
CN111787234A (en) Shooting control method and device and computer readable storage medium
CN108600639B (en) Portrait image shooting method, terminal and computer readable storage medium
CN112532838B (en) Image processing method, mobile terminal and computer storage medium
CN112954225B (en) Multi-frame picture shooting method and device and computer readable storage medium
CN113572916B (en) Shooting method, terminal equipment and storage medium
CN112015508B (en) Screen-throwing interaction control method, equipment and computer-readable storage medium
CN111476231B (en) Image area identification method, device and computer readable storage medium
CN110070569B (en) Registration method and device of terminal image, mobile terminal 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