CN109561255B - Terminal photographing method and device and storage medium - Google Patents

Terminal photographing method and device and storage medium Download PDF

Info

Publication number
CN109561255B
CN109561255B CN201811564208.0A CN201811564208A CN109561255B CN 109561255 B CN109561255 B CN 109561255B CN 201811564208 A CN201811564208 A CN 201811564208A CN 109561255 B CN109561255 B CN 109561255B
Authority
CN
China
Prior art keywords
pixel points
target pixel
photographing
focal length
mobile terminal
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
CN201811564208.0A
Other languages
Chinese (zh)
Other versions
CN109561255A (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.)
Zhang Daming
Original Assignee
Huizhou TCL 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201811564208.0A priority Critical patent/CN109561255B/en
Publication of CN109561255A publication Critical patent/CN109561255A/en
Application granted granted Critical
Publication of CN109561255B publication Critical patent/CN109561255B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • 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/67Focus control based on electronic image sensor signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Studio Devices (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a terminal photographing method, a terminal photographing device and a storage medium, wherein the terminal photographing method is applied to a mobile terminal and comprises the following steps: when the mobile terminal is shooting images, detecting whether a plurality of shot objects exist; if yes, determining an image area corresponding to each shot object; selecting three target pixel points which are not on the same straight line from each image area; and determining a shooting focal length according to the target pixel point, and carrying out shooting operation by using the shooting focal length, so that clear shooting of multiple objects can be realized without focusing for multiple times, and the method is simple and has high focusing speed.

Description

Terminal photographing method and device and storage medium
Technical Field
The present application relates to the field of mobile communications, and in particular, to a terminal photographing method, apparatus, and storage medium.
Background
With the continuous development of electronic technology, digital photographing devices (such as digital cameras or mobile phones with digital cameras) have entered thousands of households, and become a necessary tool for recording beautiful natural scenery and inscription of moments of wonderful life.
In the photographing method in the prior art, only one focusing point can be usually determined, and an image of a corresponding area of the focusing point in an obtained picture is relatively clear. However, when the user needs to take a plurality of objects, such as a large group of photos, the user needs to take a plurality of times of focusing to make the whole image clearer, which is time-consuming and tedious in focusing manner, because the position of the user station is in front of or behind the user station and the terminal can only focus one of the shot main bodies when focusing.
Disclosure of Invention
The embodiment of the application provides a terminal photographing method, a terminal photographing device and a storage medium, clear photographing of multiple objects can be achieved without multiple times of focusing, and focusing speed is improved.
The embodiment of the application provides a terminal photographing method, which is applied to a mobile terminal and comprises the following steps:
when the mobile terminal is shooting images, detecting whether a plurality of shot objects exist or not;
if yes, determining an image area corresponding to each shot object;
selecting three target pixel points which are not on the same straight line from each image area;
and determining a shooting focal length according to the target pixel point, and carrying out shooting operation according to the shooting focal length.
The embodiment of the application further provides a terminal photographing device, which is applied to a mobile terminal and comprises:
the mobile terminal comprises a detection module, a processing module and a display module, wherein the detection module is used for detecting whether a plurality of shot objects exist when the mobile terminal carries out image shooting;
the determining module is used for determining an image area corresponding to each shot object if the shot object exists;
the selecting module is used for selecting three target pixel points which are not on the same straight line from each image area;
and the photographing module is used for determining a photographing focal length according to the target pixel point and performing photographing operation according to the photographing focal length.
The embodiment of the application also provides a computer-readable storage medium, wherein a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute any terminal photographing method.
The terminal photographing method, the terminal photographing device and the storage medium are applied to a mobile terminal, and when the mobile terminal carries out image photographing, whether a plurality of photographed objects exist or not is detected; if yes, determining an image area corresponding to each shot object; selecting three target pixel points which are not on the same straight line from each image area; and determining a shooting focal length according to the target pixel point, and carrying out shooting operation by using the shooting focal length, so that clear shooting of multiple objects can be realized without focusing for multiple times, and the method is simple and has high focusing speed.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a terminal photographing method provided in an embodiment of the present application.
Fig. 2 is a schematic flowchart of step S103 according to an embodiment of the present application.
Fig. 3 is a scene schematic diagram of target pixel point selection according to an embodiment of the present disclosure.
Fig. 4 is another schematic flow chart of step S103 according to the embodiment of the present application.
Fig. 5 is a schematic structural diagram of a terminal photographing device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Fig. 7 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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.
A terminal photographing method is applied to a mobile terminal and comprises the following steps: when the mobile terminal is shooting images, detecting whether a plurality of shot objects exist; if yes, determining an image area corresponding to each shot object; selecting three target pixel points which are not on the same straight line from each image area; and determining a shooting focal length according to the target pixel point, and carrying out shooting operation according to the shooting focal length.
As shown in fig. 1, fig. 1 is a schematic flowchart of a terminal photographing method provided in an embodiment of the present application, where the terminal photographing method is applied to a mobile terminal, and a specific flow may be as follows:
s101, when the mobile terminal carries out image shooting, whether a plurality of shot objects exist is detected, if yes, the following step S102 is executed, and if not, the detection is carried out again.
And S102, determining an image area corresponding to each shot object.
In this embodiment, for each shooting, the mobile terminal may detect whether there are a plurality of shooting objects existing in the current shooting area in real time, and if so, find the image area where each shooting object is located.
And S103, selecting three target pixel points which are not on the same straight line from each image area.
In this embodiment, since three points that are not on the same straight line can determine one plane, if it is determined that the photographic object is clear, it can be analyzed whether three points on the photographic plane where the photographic object is located are clear. Specifically, the selection of the three target pixel points may be automatically performed by the mobile terminal, for example, the mobile terminal may randomly select three pixel points from each image region or a key region (for example, a face region), or the selection may also be performed by a user, for example, the user selects one or two image portions in his/her view, and the rest is automatically selected by the mobile terminal.
For example, when the selecting operation is automatically completed by the mobile terminal, referring to fig. 2, the step S103 may specifically include:
and S1031A, judging whether two adjacent image areas have overlapping parts, if so, executing the following step S1032A, and if not, executing the following step S1033A.
S1032A, for each image area, selecting three pixel points which are not on the same straight line from the overlapped part and the non-overlapped part to serve as target pixel points.
S1033A, randomly selecting three pixel points which are not on the same straight line from each image area to serve as target pixel points.
In this embodiment, when there is an overlapping portion, one or two points may be selected from the overlapping portion as a common point, and the remaining points may be selected from the non-overlapping portion, so that accurate positioning of the corresponding shot plane may be ensured, and the number of the selected pixel points may be reduced as much as possible.
For example, referring to fig. 3, assuming that persons a1 to A3 exist in the current shooting area, and overlapping portions m (dotted line areas) exist between a1 and a2, for a1 and a2, one pixel point x may be selected from m, 2 pixel points y1 and y2 are selected from the remaining image corresponding to a1, and 2 pixel points y3 and y4 are selected from the remaining image corresponding to a2, a plane formed by three points x, y1 and y2 is a shooting plane where a1 is located, a plane formed by three points x, y3 and y4 is a shooting plane where a2 is located, and for A3, three points y5, y6 and y7 may be randomly selected as a shooting plane where A3 is located because there is no overlapping portion.
For example, when the selecting operation is completed by the mobile terminal and the user together, referring to fig. 4, the step S103 may specifically include:
S1031B, prompting a user to select a single pixel point;
S1032B, determining the position of a single pixel point selected by a user;
S1033B, selecting residual pixel points from the corresponding image areas according to the positions, and taking the single pixel point and the residual pixel points as target pixel points, wherein each image area comprises three target pixel points which are not on the same straight line.
In this embodiment, the prompt operation may be displayed to the user through the prompt box, and when the prompt box is generated by the mobile terminal, the user may select a pixel point according to a selection mode in the prompt box, for example, a selection mode such as clicking, pressing, and the like.
And S104, determining a shooting focal length according to the target pixel point, and carrying out shooting operation according to the shooting focal length.
For example, the step of "determining the shooting focal length according to the target pixel point" may specifically include:
carrying out focal length adjustment operation on the mobile terminal;
detecting the definition of the target pixel point in the focal length adjusting process;
and when the definition of all target pixel points reaches a preset threshold value, acquiring the current focal length as the shooting focal length.
In this embodiment, the preset threshold may be set according to a resolution of the mobile terminal, and the higher the resolution is, the larger the preset threshold may be. When the target pixel points corresponding to each shot object are selected, focal length debugging can be carried out, the definition of the target pixel points is detected in real time in the debugging process, and the focal length at the moment can be considered as the best shooting focal length until all definition values are higher.
For example, the step of "performing the photographing operation at the photographing focal length" may specifically include:
detecting whether the exposure degree is adjusted by a user;
if so, carrying out photographing operation according to the adjusted exposure and the photographing focal length; storing the adjusted exposure level and the current ambient light brightness in a historical parameter library in a correlated manner;
if not, acquiring the stored exposure corresponding to the current ambient light brightness from the historical parameter library; and carrying out photographing operation according to the photographing focal length and the stored exposure.
In this embodiment, after determining the shooting focal length, the user may be prompted whether to confirm shooting, if the user selects yes, or the shooting focal length does not change within a default time length (for example, 5 seconds), the shutter pressing operation may be performed to take a picture, and before pressing the shutter, an exposure amount required by the shutter needs to be determined, where the exposure amount may be set by the user, for example, the user manually adjusts the exposure amount in a vertical sliding manner on a shooting interface, or the mobile terminal may automatically set according to ambient light, for example, when the user does not adjust the exposure amount, the mobile terminal may automatically analyze a past shooting habit of the user under the current ambient light, and the exposure amount used in the past shooting is used as the exposure amount of the shooting.
It can be known from the above that, the terminal photographing method provided in this embodiment is applied to a mobile terminal, and when the mobile terminal performs image photographing, by detecting whether a plurality of photographed objects exist, if so, determining an image area corresponding to each photographed object, selecting three target pixel points that are not on the same straight line from each image area, then determining a photographing focal distance according to the target pixel points, and performing photographing operation with the photographing focal distance, thereby achieving clear photographing of a plurality of objects without performing multiple times of focusing.
According to the methods described in the above embodiments, the present embodiment will be further described from the perspective of a terminal photographing apparatus, which may be specifically implemented as an independent entity.
Referring to fig. 5, fig. 5 specifically describes that the terminal photographing apparatus provided in the embodiment of the present application is applied to a mobile terminal, and the mobile terminal may include a mobile phone, a tablet computer, a personal PC, and other devices having a photographing function. The terminal photographing apparatus may include: the device comprises a detection module 10, a determination module 20, a selection module 30 and a photographing module 40, wherein:
(1) detection module 10
The mobile terminal comprises a detection module 10, which is used for detecting whether a plurality of shot objects exist when the mobile terminal is shooting images.
(2) Determination module 20
And a determining module 20, configured to determine, if yes, an image area corresponding to each of the objects to be photographed.
In this embodiment, for each shooting, the mobile terminal may detect whether there are a plurality of shooting objects existing in the current shooting area in real time, and if so, find the image area where each shooting object is located.
(3) Selection module 30
And the selecting module 30 is configured to select three target pixel points that are not on the same straight line from each image region.
In this embodiment, since three points that are not on the same straight line can determine one plane, if it is determined that the photographic object is clear, it can be analyzed whether three points on the photographic plane where the photographic object is located are clear. Specifically, the selection of the three target pixel points may be automatically performed by the mobile terminal, for example, the mobile terminal may randomly select three pixel points from each image region or a key region (for example, a face region), or the selection may also be performed by a user, for example, the user selects one or two image portions in his/her view, and the rest is automatically selected by the mobile terminal.
For example, when the selecting operation is automatically completed by the mobile terminal, the selecting module 30 is specifically configured to:
judging whether two adjacent image areas have an overlapping part or not;
if so, selecting three pixel points which are not on the same straight line from the overlapped part and the non-overlapped part as target pixel points for each image area;
if not, selecting three pixel points which are not on the same straight line from each image area as target pixel points.
In this embodiment, when there is an overlapping portion, one or two points may be selected from the overlapping portion as a common point, and the remaining points may be selected from the non-overlapping portion, so that accurate positioning of the corresponding shot plane may be ensured, and the number of the selected pixel points may be reduced as much as possible.
For example, referring to fig. 3, assuming that persons a1 to A3 exist in the current shooting area, and overlapping portions m exist in a1 and a2, for a1 and a2, one pixel point x may be selected from m, 2 pixel points y1 and y2 are selected from the remaining image corresponding to a1, and 2 pixel points y3 and y4 are selected from the remaining image corresponding to a2, a plane formed by three points x, y1 and y2 is a shooting plane where a1 is located, a plane formed by three points x, y3 and y4 is a shooting plane where a2 is located, and for A3, three points y5, y6 and y7 may be randomly selected as a shooting plane where A3 is located because there is no overlapping portion.
For example, when the selecting operation is performed by both the mobile terminal and the user, the selecting module 30 is specifically configured to:
prompting a user to select a single pixel point;
determining the position of a single pixel point selected by a user;
and selecting residual pixel points from the corresponding image areas according to the positions, and taking the single pixel point and the residual pixel points as target pixel points, wherein each image area comprises three target pixel points which are not on the same straight line.
In this embodiment, the prompt operation may be displayed to the user through the prompt box, and when the prompt box is generated by the mobile terminal, the user may select a pixel point according to a selection mode in the prompt box, for example, a selection mode such as clicking, pressing, and the like.
(4) Photographing module 40
And the photographing module 40 is configured to determine a photographing focal length according to the target pixel point, and perform a photographing operation with the photographing focal length.
For example, the photographing module 40 is specifically configured to:
carrying out focal length adjustment operation on the mobile terminal;
detecting the definition of the target pixel point in the focal length adjusting process;
and when the definition of all target pixel points reaches a preset threshold value, acquiring the current focal length as the shooting focal length.
In this embodiment, the preset threshold may be set according to a resolution of the mobile terminal, and the higher the resolution is, the larger the preset threshold may be. When the target pixel points corresponding to each shot object are selected, focal length debugging can be carried out, the definition of the target pixel points is detected in real time in the debugging process, and the focal length at the moment can be considered as the best shooting focal length until all definition values are higher.
Further, the photographing module 40 is specifically configured to:
detecting whether the exposure degree is adjusted by a user;
if so, carrying out photographing operation according to the adjusted exposure and the photographing focal length; storing the adjusted exposure level and the current ambient light brightness in a historical parameter library in a correlated manner;
if not, acquiring the stored exposure corresponding to the current ambient light brightness from the historical parameter library; and carrying out photographing operation according to the photographing focal length and the stored exposure.
In this embodiment, after determining the shooting focal length, the user may be prompted whether to confirm shooting, if the user selects yes, or the shooting focal length does not change within a default time length (for example, 5 seconds), the shutter pressing operation may be performed to take a picture, and before pressing the shutter, an exposure amount required by the shutter needs to be determined, where the exposure amount may be set by the user, for example, the user manually adjusts the exposure amount in a vertical sliding manner on a shooting interface, or the mobile terminal may automatically set according to ambient light, for example, when the user does not adjust the exposure amount, the mobile terminal may automatically analyze a past shooting habit of the user under the current ambient light, and the exposure amount used in the past shooting is used as the exposure amount of the shooting.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
It can be known from the above description that the terminal photographing method provided in this embodiment is applied to a mobile terminal, and when the mobile terminal performs image photographing, whether a plurality of photographed objects exist is detected by the detection module 10, if yes, the determination module 20 determines an image area corresponding to each photographed object, the selection module 30 selects three target pixel points that are not on the same straight line from each image area, and then the photographing module 40 determines a photographing focal length according to the target pixel points and performs a photographing operation with the photographing focal length, so that clear photographing of multiple objects can be achieved without performing multiple times of focusing.
In addition, the embodiment of the application further provides a mobile terminal, and the mobile terminal can be a smart phone, a tablet computer and other devices. As shown in fig. 6, the mobile terminal 200 includes a processor 201, a memory 202. The processor 201 is electrically connected to the memory 202.
The processor 201 is a control center of the mobile terminal 200, 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 loading an application program stored in the memory 202 and calling data stored in the memory 202, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the processor 201 in the mobile terminal 200 loads instructions corresponding to processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 runs the application programs stored in the memory 202, thereby implementing various functions:
when the mobile terminal is shooting images, detecting whether a plurality of shot objects exist;
if yes, determining an image area corresponding to each shot object;
selecting three target pixel points which are not on the same straight line from each image area;
and determining a shooting focal length according to the target pixel point, and carrying out shooting operation according to the shooting focal length.
Fig. 7 is a block diagram illustrating a specific structure of a mobile terminal according to an embodiment of the present invention, where the mobile terminal may be used to implement the terminal photographing method provided in the foregoing embodiment. The mobile terminal 300 may be a smart phone or a tablet computer.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11a, IEEE802.11 b, IEEE 802.2.access, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide Internet Microwave Access (Microwave for Wireless Communication), other suitable protocols for short message service (Max), and any other suitable protocols, and may even include those protocols that have not yet been developed.
The memory 320 may be configured to store software programs and modules, such as program instructions/modules corresponding to the automatic light supplement system and method for front-facing camera photographing in the foregoing embodiments, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, so as to implement the function of automatic light supplement for front-facing camera photographing. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 320 may further include memory located remotely from the processor 380, which may be connected to the mobile terminal 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 300, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 7, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The mobile terminal 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the mobile terminal 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, and microphone 362 may provide an audio interface between a user and the mobile terminal 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 300.
The mobile terminal 300, which may assist the user in e-mail, web browsing, streaming media access, etc., through the transmission module 370 (e.g., a Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 7 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the mobile terminal 300 and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 380 is a control center of the mobile terminal 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 300 and processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby integrally monitoring the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
The mobile terminal 300 also includes a power supply 390 (e.g., a battery) that provides power to the various components and, in some embodiments, may be logically coupled to the processor 380 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
when the mobile terminal is shooting images, detecting whether a plurality of shot objects exist;
if yes, determining an image area corresponding to each shot object;
selecting three target pixel points which are not on the same straight line from each image area;
and determining a shooting focal length according to the target pixel point, and carrying out shooting operation according to the shooting focal length.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the terminal photographing methods provided by the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any terminal photographing method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any terminal photographing method provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In summary, although the present application has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present application, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application, so that the scope of the present application shall be determined by the appended claims.

Claims (10)

1. A terminal photographing method is applied to a mobile terminal and is characterized by comprising the following steps:
when the mobile terminal is shooting images, detecting whether a plurality of shot objects exist or not;
if yes, determining an image area corresponding to each shot object;
selecting three target pixel points which are not on the same straight line from each image area, wherein the three target pixel points corresponding to each image area are automatically selected by the mobile terminal or are selected by a user;
and determining a shooting focal length according to all the selected target pixel points, and carrying out shooting operation according to the shooting focal length.
2. The terminal photographing method of claim 1, wherein the determining a photographing focal length according to the target pixel point comprises:
performing focal length adjustment operation on the mobile terminal;
detecting the definition of the target pixel point in the focal length adjusting process;
and when the definition of all target pixel points reaches a preset threshold value, acquiring the current focal length as the shooting focal length.
3. The terminal photographing method of claim 1, wherein the selecting three target pixel points that are not on the same straight line from each image region comprises:
judging whether the two adjacent image areas have overlapping parts or not;
if so, selecting three pixel points which are not on the same straight line from the overlapped part and the non-overlapped part as target pixel points for each image area;
and if not, randomly selecting three pixel points which are not on the same straight line from each image area as target pixel points.
4. The terminal photographing method of claim 1, wherein the selecting three target pixel points that are not on the same straight line from each image region comprises:
prompting a user to select a single pixel point;
determining the position of a single pixel point selected by a user;
and selecting residual pixel points from corresponding image areas according to the positions, and taking the single pixel point and the residual pixel points as target pixel points, wherein each image area comprises three target pixel points which are not on the same straight line.
5. The terminal photographing method according to claim 1, wherein the photographing operation with the photographing focal length comprises:
detecting whether the exposure degree is adjusted by a user;
if so, carrying out photographing operation according to the adjusted exposure and the photographing focal length; storing the adjusted exposure level and the current ambient light brightness in a historical parameter library in a correlation manner;
if not, acquiring the stored exposure corresponding to the current ambient light brightness from the historical parameter library; and carrying out photographing operation according to the photographing focal length and the stored exposure.
6. The utility model provides a terminal device of shooing, is applied to mobile terminal, its characterized in that includes:
the mobile terminal comprises a detection module, a processing module and a display module, wherein the detection module is used for detecting whether a plurality of shot objects exist when the mobile terminal carries out image shooting;
the determining module is used for determining an image area corresponding to each shot object if the shot object exists;
the selecting module is used for selecting three target pixel points which are not on the same straight line from each image area, and the three target pixel points corresponding to each image area are automatically selected by the mobile terminal or are selected by a user;
and the photographing module is used for determining a photographing focal length according to all the selected target pixel points and performing photographing operation according to the photographing focal length.
7. The terminal photographing device according to claim 6, wherein the photographing module is specifically configured to:
performing focal length adjustment operation on the mobile terminal;
detecting the definition of the target pixel point in the focal length adjusting process;
and when the definition of all target pixel points reaches a preset threshold value, acquiring the current focal length as the shooting focal length.
8. The terminal photographing device according to claim 6, wherein the selection module is specifically configured to:
judging whether the two adjacent image areas have overlapping parts or not;
if so, selecting three pixel points which are not on the same straight line from the overlapped part and the non-overlapped part as target pixel points for each image area;
and if not, randomly selecting three pixel points which are not on the same straight line from each image area as target pixel points.
9. The terminal photographing device according to claim 6, wherein the selection module is specifically configured to:
prompting a user to select a single pixel point;
determining the position of a single pixel point selected by a user;
and selecting residual pixel points from corresponding image areas according to the positions, and taking the single pixel point and the residual pixel points as target pixel points, wherein each image area comprises three target pixel points which are not on the same straight line.
10. A computer-readable storage medium, characterized in that a plurality of instructions are stored in the storage medium, the instructions being adapted to be loaded by a processor to execute the terminal photographing method according to any one of claims 1 to 5.
CN201811564208.0A 2018-12-20 2018-12-20 Terminal photographing method and device and storage medium Active CN109561255B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811564208.0A CN109561255B (en) 2018-12-20 2018-12-20 Terminal photographing method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811564208.0A CN109561255B (en) 2018-12-20 2018-12-20 Terminal photographing method and device and storage medium

Publications (2)

Publication Number Publication Date
CN109561255A CN109561255A (en) 2019-04-02
CN109561255B true CN109561255B (en) 2020-11-13

Family

ID=65870542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811564208.0A Active CN109561255B (en) 2018-12-20 2018-12-20 Terminal photographing method and device and storage medium

Country Status (1)

Country Link
CN (1) CN109561255B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114079726B (en) * 2020-08-13 2023-05-02 华为技术有限公司 Shooting method and equipment
CN112738393B (en) * 2020-12-25 2022-08-09 珠海西山居移动游戏科技有限公司 Focusing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312959A (en) * 2012-03-15 2013-09-18 欧姆龙株式会社 Photographing device and photographing device controlling method
CN103780839A (en) * 2014-01-21 2014-05-07 宇龙计算机通信科技(深圳)有限公司 Shooting method and terminal
CN104205801A (en) * 2012-03-28 2014-12-10 高通股份有限公司 Method and apparatus for autofocusing an imaging device
CN104867125A (en) * 2015-06-04 2015-08-26 北京京东尚科信息技术有限公司 Image obtaining method and image obtaining device
CN106134176A (en) * 2014-04-03 2016-11-16 高通股份有限公司 System and method for multifocal imaging
CN107810629A (en) * 2015-01-18 2018-03-16 三星电子株式会社 Image processing apparatus and image processing method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8035721B2 (en) * 2004-08-05 2011-10-11 Panasonic Corporation Imaging apparatus
CN101272503B (en) * 2008-04-30 2011-04-06 北京中星微电子有限公司 Gridding noise elimination method and device for remaining image definition
JP2012027263A (en) * 2010-07-23 2012-02-09 Sony Corp Imaging apparatus, control method and program thereof
JP6327779B2 (en) * 2012-02-29 2018-05-23 キヤノン株式会社 Photoelectric conversion device, focus detection device, and imaging system
CN103747174A (en) * 2013-12-20 2014-04-23 河北汉光重工有限责任公司 Multi-target free focusing method and application apparatus thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312959A (en) * 2012-03-15 2013-09-18 欧姆龙株式会社 Photographing device and photographing device controlling method
CN104205801A (en) * 2012-03-28 2014-12-10 高通股份有限公司 Method and apparatus for autofocusing an imaging device
CN103780839A (en) * 2014-01-21 2014-05-07 宇龙计算机通信科技(深圳)有限公司 Shooting method and terminal
CN106134176A (en) * 2014-04-03 2016-11-16 高通股份有限公司 System and method for multifocal imaging
CN107810629A (en) * 2015-01-18 2018-03-16 三星电子株式会社 Image processing apparatus and image processing method
CN104867125A (en) * 2015-06-04 2015-08-26 北京京东尚科信息技术有限公司 Image obtaining method and image obtaining device

Also Published As

Publication number Publication date
CN109561255A (en) 2019-04-02

Similar Documents

Publication Publication Date Title
CN107038681B (en) Image blurring method and device, computer readable storage medium and computer device
WO2019129020A1 (en) Automatic focusing method of camera, storage device and mobile terminal
CN109688322B (en) Method and device for generating high dynamic range image and mobile terminal
CN107241552B (en) Image acquisition method, device, storage medium and terminal
WO2018219170A1 (en) Focusing control method, computer device and computer readable storage medium
CN110913139B (en) Photographing method and electronic equipment
CN103400108A (en) Face identification method and device as well as mobile terminal
CN110300267B (en) Photographing method and terminal equipment
WO2019047862A1 (en) Fingerprint acquisition method and terminal device and storage medium
CN109474784B (en) Preview image processing method and terminal equipment
CN110944114B (en) Photographing method and electronic equipment
CN107330867B (en) Image synthesis method, image synthesis device, computer-readable storage medium and computer equipment
CN109561255B (en) Terminal photographing method and device and storage medium
CN108243489B (en) Photographing control method and mobile terminal
CN111556248B (en) Shooting method, shooting device, storage medium and mobile terminal
CN110958387B (en) Content updating method and electronic equipment
CN111372001B (en) Image fusion method and device, storage medium and mobile terminal
CN108550182A (en) A kind of three-dimensional modeling method and terminal
CN111064886B (en) Shooting method of terminal equipment, terminal equipment and storage medium
CN112312032B (en) Method and device for shooting by using off-screen camera, storage medium and mobile terminal
CN111028192B (en) Image synthesis method and electronic equipment
CN110086916B (en) Photographing method and terminal
CN109257543B (en) Shooting mode control method and mobile terminal
CN112468722A (en) Shooting method, device, equipment and storage medium
CN107194363B (en) Image saturation processing method and device, storage medium and computer 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230215

Address after: 518054 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong

Patentee after: Zhang Daming

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.