CN110086916B - Photographing method and terminal - Google Patents

Photographing method and terminal Download PDF

Info

Publication number
CN110086916B
CN110086916B CN201910445984.7A CN201910445984A CN110086916B CN 110086916 B CN110086916 B CN 110086916B CN 201910445984 A CN201910445984 A CN 201910445984A CN 110086916 B CN110086916 B CN 110086916B
Authority
CN
China
Prior art keywords
information
position information
target object
terminal
space
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
CN201910445984.7A
Other languages
Chinese (zh)
Other versions
CN110086916A (en
Inventor
余乾圆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN201910445984.7A priority Critical patent/CN110086916B/en
Publication of CN110086916A publication Critical patent/CN110086916A/en
Application granted granted Critical
Publication of CN110086916B publication Critical patent/CN110086916B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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/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/0266Details of the structure or mounting of specific components for a display module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/03Constructional features of telephone transmitters or receivers, e.g. telephone hand-sets
    • 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/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • 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/61Control of cameras or camera modules based on recognised objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Abstract

The embodiment of the invention provides a photographing method and a terminal, and relates to the technical field of intelligent terminals, wherein the photographing method comprises the following steps: acquiring an image acquired by a depth camera, and determining information of a target object, wherein the information comprises at least one of brightness information and color information; determining the position information of the target object in the target space according to the image and the space model information of the target space; determining first relative position information of the target object and the lighting equipment according to the position information of the target object and the position information of the lighting equipment in the target space; and sending adjusting information to the lighting equipment according to the first relative position information and the information of the target object, wherein the adjusting information comprises at least one of brightness adjusting information and color adjusting information. The embodiment of the invention effectively solves the problem that the ambient light is difficult to meet the photographing requirement during photographing, and improves the photographing effect.

Description

Photographing method and terminal
Technical Field
The embodiment of the invention relates to the technical field of intelligent terminals, in particular to a photographing method and a terminal.
Background
In the photographic field of specialty, in order to reach better shooting effect, can dispose professional light filling equipment and personnel among the process of shooing, very consuming time and wasting force. Therefore, as the terminal photographing function is increasingly powerful, more and more users prefer to use the terminal for photographing. However, in the actual photographing process, there is often the situation that the ambient light cannot meet the requirements, and for the problem, there are two solutions at present: one scheme is that the image is modified through later-stage software, but the later-stage image modification depends on the color information of the original image, so that the color information lost by the original image cannot be made up, and the modified image often has a serious distortion problem; the other scheme is that the terminal can perform physical supplement through a flash lamp component carried by the terminal, the intensity and the ambient brightness of reflected light of a photographed object are increased, and the brightness is increased, but the flash lamp configured on the terminal equipment is often smaller and only can supplement light for a main target in front of a lens, and the ambient light behind the lens cannot be effectively improved, so that the photographed target is often over-bright and the background is dark, and the flash lamp can additionally consume electric quantity, so that the cruising ability of the terminal equipment is reduced.
Disclosure of Invention
The embodiment of the invention provides a photographing method and a user terminal, which are used for solving the problem that the terminal photographing effect is poor due to the fact that environment light cannot meet requirements easily.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a photographing method, which is applied to a terminal, where the terminal has a depth-of-field camera, and the photographing method includes:
acquiring an image collected by the depth-of-field camera;
determining information of a target object in the image, wherein the information comprises at least one of brightness information and color information;
determining the position information of the target object in the target space according to the image and the space model information of the target space, wherein the space model information comprises the position information of the lighting equipment in the target space;
determining first relative position information of the target object and the lighting equipment according to the position information of the target object and the position information of the lighting equipment in the target space;
and sending adjusting information to the lighting equipment according to the first relative position information and the target object information, wherein the adjusting information comprises at least one of brightness adjusting information and color adjusting information.
In a second aspect, an embodiment of the present invention provides a terminal, including: the camera of degree of depth still includes:
the first acquisition module is used for acquiring the image acquired by the depth-of-field camera;
the first determining module is used for determining information of a target object in the image according to the image, wherein the information comprises at least one of brightness information and color information;
the second determination module is used for determining the position information of the target object in the target space according to the image and the space model information of the target space, wherein the space model information comprises the position information of the lighting equipment in the target space;
the third determining module is used for determining first relative position information of the target object and the lighting equipment according to the position information of the target object and the position information of the lighting equipment in the target space;
and the first sending module is used for sending adjusting information to the lighting equipment according to the first relative position information and the information of the target object, wherein the adjusting information comprises at least one of brightness adjusting information and color adjusting information.
In a third aspect, an embodiment of the present invention provides a terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the above-mentioned photographing method.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the above-mentioned photographing method.
In the embodiment of the invention, when the terminal is used for photographing, at least one of the brightness and the color of the lighting equipment is adjusted according to the information of the target object, so that the supplement of the ambient light is realized, the problem of poor photographing effect caused by the fact that the ambient light is difficult to meet the requirements during photographing is effectively solved, and the photographing effect is greatly improved.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a schematic flow chart illustrating a photographing method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a photographing method according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
The terms "comprises," "comprising," or any other variation thereof, in the description and claims of this application, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Furthermore, the use of "and/or" in the specification and claims means that at least one of the connected objects, such as a and/or B, means that three cases, a alone, B alone, and both a and B, exist.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
Referring to fig. 1, fig. 1 is a schematic flowchart of a photographing method according to an embodiment of the present invention, where the method is applied to a terminal, the terminal includes a depth-of-field camera, and the method includes:
step 101: acquiring an image acquired by using the depth-of-field camera;
the image may also be an image acquired by a finder frame of the depth-of-field camera;
step 102: determining information of a target object in the image according to the image, wherein the information comprises at least one of brightness information and color information;
the target object can be automatically determined by an automatic focusing function, and can also be determined according to click input of a user.
Step 103: determining the position information of the target object in the target space according to the image and the space model information of the target space, wherein the space model information comprises the position information of the lighting equipment in the target space;
wherein the determining the position information of the target object in the target space according to the image and the space model information comprises:
acquiring a spatial structure in the background of the image, comparing the spatial structure in the background of the image with the overall structure of the target space in the spatial model information, determining the position of the background of the image in the overall structure of the target space, and acquiring the position information of the target object in the target space according to the position information of the target object in the image in the spatial structure in the background of the image.
Step 104: determining first relative position information of the target object and the lighting equipment according to the position information of the target object and the position information of the lighting equipment in the target space;
step 105: sending adjusting information to the lighting equipment according to the first relative position information and the information of the target object, wherein the adjusting information comprises at least one of brightness adjusting information and color adjusting information;
the number of the lighting devices in the target space may be one or multiple, and the terminal may send the adjustment information to one lighting device or send the adjustment information to multiple lighting devices.
Wherein the transmitting of the adjustment information to the lighting device may include:
the terminal calculates information required for photographing, wherein the information comprises at least one of brightness information and color information, and sends the information required for photographing to the lighting equipment for adjustment.
In the photographing process, the terminal can continuously acquire the image of the target object, determine the information of the target object and the first relative position information, calculate the information required for photographing, and send the information required for photographing to the lighting equipment for adjustment.
In the embodiment of the invention, when the terminal device is used for photographing, at least one of the brightness and the color of the lighting device is adjusted according to at least one of the brightness information and the color information of the target object, so that the supplement of the ambient light is realized, the problem that the photographing effect is poor due to the fact that the ambient light is difficult to meet the requirement during photographing is effectively solved, and the photographing effect is greatly improved.
In some embodiments of the present invention, optionally, after step 101, further including:
step 1011, determining background information in the image according to the image, wherein the background information comprises at least one of background brightness information and background color information;
step 105 further comprises:
sending the adjustment information to the lighting device according to the first relative position information, the target object information and background information in the image;
in the embodiment of the invention, the background information is added into the reference standard for adjusting the lighting equipment, so that the photographing effect is further improved.
Referring to fig. 2, fig. 2 is a schematic flow chart of a photographing method according to another embodiment of the present invention, the method including:
step 201: acquiring a plurality of images of the target space acquired by using the depth-of-field camera, wherein at least one of the plurality of images comprises the lighting equipment;
wherein the multiple images are obtained along with the target space circular shooting;
step 202: modeling the target space according to the plurality of images and the position information of the terminal when the plurality of images are collected to obtain the space model information;
wherein the spatial model information may include: overall structure information of the target space and position information of the lighting device within the target space;
the overall structural information of the target space may include: shape information and size information of the target space, shape information and size information of a wall of the target space, and the like.
According to the embodiment of the invention, the target space can be modeled through a plurality of images of the target space shot by the depth-of-field camera of the terminal, and the space model information can be conveniently and quickly obtained.
In some embodiments of the present invention, optionally, after step 202, further comprising:
step 2021, sending the spatial model information to the lighting device.
The embodiment of the invention can store the space model information in the lighting device, and when taking a picture, other terminals can conveniently acquire the space model information from the lighting device if taking a picture in the space.
In some embodiments of the present invention, optionally, before step 103, further comprising:
step 1031, obtaining the space model information from the lighting device.
In the embodiment of the invention, the terminal does not need to model the space before photographing, and the space model information can be conveniently obtained from the lighting equipment.
In some embodiments of the present invention, optionally, the space model information further includes position information and reflective information of display furniture of the target space, and step 104 further includes:
determining second relative position information of the target object and the display furniture according to the position information of the target object and the position information of the display furniture;
step 105 further comprises: and sending adjusting information to the lighting equipment according to the first relative position information, the second relative position information, the information of the target object and the reflective information of the display furniture, wherein the adjusting information comprises at least one of brightness adjusting information and color adjusting information.
The above-mentioned embodiment of the present invention can perform more precise adjustment under the influence of the display furniture in the shooting space, wherein the adjustment includes at least one of brightness and color adjustment, so that the shooting effect is better.
Based on the same inventive concept, an embodiment of the present invention further provides a terminal, please refer to fig. 3, where the terminal includes:
a first obtaining module 301, configured to obtain an image collected by using a depth-of-field camera;
a first determining module 302 for determining information of a target object in the image, the information including at least one of brightness information and color information;
a second determining module 303, configured to determine, according to the image and spatial model information of a target space, position information of the target object in the target space, where the spatial model information includes position information of an illumination device in the target space;
a third determining module 304, configured to determine first relative position information of the target object and the lighting apparatus according to the position information of the target object and the position information of the lighting apparatus in the target space;
a first sending module 305, configured to send adjustment information to the lighting device according to the first relative position information and the information of the target object, where the adjustment information includes at least one of brightness adjustment information and color adjustment information.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal according to another embodiment of the present invention, in some embodiments of the present invention, optionally, the terminal may further include:
a second obtaining module 401, configured to obtain multiple images of the target space collected by using the depth-of-field camera, where at least one of the multiple images includes the lighting device;
a modeling module 402, configured to model the target space according to the multiple images and the position information of the terminal when the multiple images are acquired, so as to obtain the space model information.
Optionally, the terminal may further include:
a second sending module 403, configured to send the spatial model information to the lighting device.
Optionally, the terminal may further include:
a third obtaining module 404, configured to obtain the spatial model information from the lighting apparatus.
Optionally, the terminal may further include:
a fourth determining module 405, configured to determine second relative position information between the target object and the display furniture according to the position information of the target object and the position information of the display furniture;
the first sending module is further configured to send adjustment information to the lighting device according to the first relative position information, the second relative position information, the information of the target object, and reflective information of display furniture, where the adjustment information includes at least one of brightness and color adjustment information.
The terminal provided by the embodiment of the present invention can implement each process implemented by the terminal in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a terminal according to another embodiment of the present invention, where the terminal 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the terminal configuration shown in fig. 5 is not intended to be limiting, and that the terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to acquire an image acquired by using the depth-of-field camera;
determining information of a target object in the image, wherein the information comprises at least one of brightness information and color information;
determining the position information of the target object in the target space according to the image and the space model information of the target space, wherein the space model information comprises the position information of the lighting equipment in the target space;
determining first relative position information of the target object and the lighting equipment according to the position information of the target object and the position information of the lighting equipment in the target space;
according to the first relative position information and the information of the target object, the radio frequency unit 501 is controlled to send adjustment information to the lighting device, wherein the adjustment information includes at least one of brightness adjustment information and color adjustment information.
In the embodiment of the invention, when the terminal equipment is used for photographing, at least one of the brightness and the color of the lighting equipment is adjusted according to at least one of the brightness information and the color information of the target object, so that the supplement of the ambient light is realized, the problem of poor photographing effect caused by the fact that the ambient light is difficult to meet the requirement in the photographing process is effectively solved, and the photographing effect is greatly improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 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 501 can also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user through the network module 502, such as helping the user send and receive e-mails, browse web pages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture 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 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The terminal 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device 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 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the terminal, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (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 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the terminal 500 or may be used to transmit data between the terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 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 510 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 through a power management system, so that functions of managing charging, discharging, and power consumption are performed through the power management system.
In addition, the terminal 500 includes some functional modules that are not shown, and are not described in detail herein.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a terminal according to another embodiment of the present invention, where the terminal 600 includes: a processor 601 and a memory 602. In this embodiment of the present invention, the terminal 600 further includes: a computer program stored on the memory 602 and executable on the processor 601, the computer program when executed by the processor 601 performing the steps of:
acquiring an image acquired by using a depth-of-field camera;
determining information of a target object in the image, wherein the information comprises at least one of brightness information and color information;
determining the position information of the target object in the target space according to the image and the space model information of the target space, wherein the space model information comprises the position information of the lighting equipment in the target space;
determining first relative position information of the target object and the lighting equipment according to the position information of the target object and the position information of the lighting equipment in the target space;
and sending adjusting information to the lighting equipment according to the first relative position information and the information of the target object, wherein the adjusting information comprises at least one of brightness adjusting information and color adjusting information.
The processor 601 is responsible for managing the bus architecture and general processing, and the memory 602 may store data used by the processor 601 in performing operations.
Optionally, the computer program when executed by the processor 601 may further implement the following steps:
acquiring a plurality of images of the target space acquired by using the depth-of-field camera, wherein at least one of the plurality of images comprises the lighting equipment;
and modeling the target space according to the plurality of images and the position information of the terminal when the plurality of images are collected to obtain the space model information.
Optionally, the computer program when executed by the processor 601 may further implement the following steps:
transmitting the spatial model information to the lighting device.
Optionally, the computer program when executed by the processor 601 may further implement the following steps:
the spatial model information is obtained from the lighting device.
Optionally, the computer program when executed by the processor 601 may further implement the following steps:
the space model information further includes position information and reflection information of display furniture of the target space;
determining second relative position information of the target object and the display furniture according to the position information of the target object and the position information of the display furniture;
the sending of adjustment information to the lighting device according to the first relative position and the information of the target object, the adjustment information including at least one of brightness adjustment information and color adjustment information, further comprising:
and sending adjusting information to the lighting equipment according to the first relative position information, the second relative position information, the information of the target object and the reflective information of the display furniture, wherein the adjusting information comprises at least one of brightness and color adjusting information.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the indoor photographing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A photographing method is applied to a terminal, the terminal is provided with a depth of field camera, and the photographing method is characterized by comprising the following steps:
acquiring an image collected by the depth-of-field camera;
determining information of a target object in the image, wherein the information comprises at least one of brightness information and color information;
determining the position information of the target object in the target space according to the image and the space model information of the target space, wherein the space model information comprises the position information of the lighting equipment in the target space;
determining first relative position information of the target object and the lighting equipment according to the position information of the target object and the position information of the lighting equipment in the target space;
and sending adjusting information to the lighting equipment according to the first relative position information and the information of the target object, wherein the adjusting information comprises at least one of brightness adjusting information and color adjusting information.
2. The photographing method according to claim 1, wherein before the acquiring the image captured by the depth camera, further comprising:
acquiring a plurality of images of the target space acquired by using the depth-of-field camera, wherein at least one of the plurality of images comprises the lighting equipment;
and modeling the target space according to the plurality of images and the position information of the terminal when the plurality of images are collected to obtain the space model information.
3. The photographing method according to claim 2, wherein after obtaining the spatial model information, further comprising:
transmitting the spatial model information to the lighting device.
4. The photographing method according to claim 1, wherein before determining the position information of the object in the target space based on the image and the spatial model information, further comprising:
the spatial model information is obtained from the lighting device.
5. The photographing method according to claim 1, wherein the space model information further includes position information and light reflection information of display furniture of the target space, and after determining the position information of the object in the target space based on the image and the space model information, further includes:
determining second relative position information of the target object and the display furniture according to the position information of the target object and the position information of the display furniture;
the sending of adjustment information to the lighting device according to the first relative position and the information of the target object, the information including at least one of brightness information and color information, the adjustment information including at least one of brightness adjustment information and color adjustment information, further comprising:
and sending adjusting information to the lighting equipment according to the first relative position information, the second relative position information, the information of the target object and the reflective information of the display furniture, wherein the adjusting information comprises at least one of brightness and color adjusting information.
6. A terminal, comprising: the camera of degree of depth of field, its characterized in that still includes:
the first acquisition module is used for acquiring the image acquired by the depth-of-field camera;
a first determining module for determining information of a target object in the image, the information including at least one of brightness information and color information;
the second determination module is used for determining the position information of the target object in the target space according to the image and the space model information of the target space, wherein the space model information comprises the position information of the lighting equipment in the target space;
the third determining module is used for determining first relative position information of the target object and the lighting equipment according to the position information of the target object and the position information of the lighting equipment in the target space;
and the first sending module is used for sending adjusting information to the lighting equipment according to the first relative position information and the information of the target object, wherein the adjusting information comprises at least one of brightness adjusting information and color adjusting information.
7. The terminal of claim 6, further comprising:
a second obtaining module, configured to obtain a plurality of images of the target space collected by using the depth-of-field camera, where at least one of the plurality of images includes the lighting device;
and the modeling module is used for modeling the target space according to the plurality of images and the position information of the terminal when the plurality of images are collected to obtain the space model information.
8. The terminal of claim 7, further comprising:
and the second sending module is used for sending the space model information to the lighting equipment.
9. The terminal of claim 6, further comprising:
and the third acquisition module is used for acquiring the space model information from the lighting equipment.
10. The terminal of claim 6, wherein the space model information further includes position information and light reflection information of display furniture of the target space, the terminal further comprising:
the fourth determining module is used for determining second relative position information of the target object and the display furniture according to the position information of the target object and the position information of the display furniture;
the first sending module is further configured to send adjustment information to the lighting device according to the first relative position information, the second relative position information, the information of the target object, and the reflective information of the display furniture, where the adjustment information includes at least one of brightness and color adjustment information.
11. A terminal, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the photographing method according to any one of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the photographing method according to any one of claims 1 to 5.
CN201910445984.7A 2019-05-27 2019-05-27 Photographing method and terminal Active CN110086916B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910445984.7A CN110086916B (en) 2019-05-27 2019-05-27 Photographing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910445984.7A CN110086916B (en) 2019-05-27 2019-05-27 Photographing method and terminal

Publications (2)

Publication Number Publication Date
CN110086916A CN110086916A (en) 2019-08-02
CN110086916B true CN110086916B (en) 2021-01-08

Family

ID=67422046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910445984.7A Active CN110086916B (en) 2019-05-27 2019-05-27 Photographing method and terminal

Country Status (1)

Country Link
CN (1) CN110086916B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698409A (en) * 2020-06-23 2020-09-22 韶关市启之信息技术有限公司 Indoor photographing light dimming method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2495807A (en) * 2011-10-20 2013-04-24 Ibm Activating image processing in a vehicle safety system based on location information
CN103986881A (en) * 2014-05-23 2014-08-13 张科 Full-automatic photographing method and device
CN104113690A (en) * 2014-07-18 2014-10-22 四川长虹电器股份有限公司 Method for photo-taking correction based on intelligent lamp
CN105872368A (en) * 2016-03-30 2016-08-17 东斓视觉科技发展(北京)有限公司 Photographic method and device
CN106303266A (en) * 2015-05-19 2017-01-04 小米科技有限责任公司 The control method of flash lamp, device and terminal
CN106375678A (en) * 2016-11-10 2017-02-01 北京小米移动软件有限公司 Method, device and system for adjusting shooting parameters

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI386042B (en) * 2008-12-17 2013-02-11 Altek Corp Digital camera device and its brightness correction method
CN105721762B (en) * 2014-12-04 2019-06-11 中兴通讯股份有限公司 Flash lamp control method and device
CN109076679B (en) * 2016-04-06 2020-06-30 飞利浦照明控股有限公司 Controlling a lighting system
CN108805831B (en) * 2018-05-26 2021-10-29 杭州电子科技大学 Image enhancement method under deep sea environment
CN108495056A (en) * 2018-06-12 2018-09-04 努比亚技术有限公司 Photographic method, mobile terminal and computer readable storage medium
CN109120864B (en) * 2018-10-23 2021-02-02 Oppo广东移动通信有限公司 Light supplement processing method and device, storage medium and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2495807A (en) * 2011-10-20 2013-04-24 Ibm Activating image processing in a vehicle safety system based on location information
CN103986881A (en) * 2014-05-23 2014-08-13 张科 Full-automatic photographing method and device
CN104113690A (en) * 2014-07-18 2014-10-22 四川长虹电器股份有限公司 Method for photo-taking correction based on intelligent lamp
CN106303266A (en) * 2015-05-19 2017-01-04 小米科技有限责任公司 The control method of flash lamp, device and terminal
CN105872368A (en) * 2016-03-30 2016-08-17 东斓视觉科技发展(北京)有限公司 Photographic method and device
CN106375678A (en) * 2016-11-10 2017-02-01 北京小米移动软件有限公司 Method, device and system for adjusting shooting parameters

Also Published As

Publication number Publication date
CN110086916A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN109639970B (en) Shooting method and terminal equipment
CN109743498B (en) Shooting parameter adjusting method and terminal equipment
CN110913139B (en) Photographing method and electronic equipment
CN110300267B (en) Photographing method and terminal equipment
CN107730460B (en) Image processing method and mobile terminal
CN110505400B (en) Preview image display adjustment method and terminal
CN108038825B (en) Image processing method and mobile terminal
CN109241832B (en) Face living body detection method and terminal equipment
CN108881544B (en) Photographing method and mobile terminal
CN110830713A (en) Zooming method and electronic equipment
CN108174110B (en) Photographing method and flexible screen terminal
CN110944114B (en) Photographing method and electronic equipment
CN109859718B (en) Screen brightness adjusting method and terminal equipment
CN108924413B (en) Shooting method and mobile terminal
CN108259756B (en) Image shooting method and mobile terminal
CN108243489B (en) Photographing control method and mobile terminal
CN111131930B (en) Device resource control method, first electronic device, and computer-readable storage medium
CN110740265B (en) Image processing method and terminal equipment
CN110958387B (en) Content updating method and electronic equipment
CN110913133B (en) Shooting method and electronic equipment
CN109104573B (en) Method for determining focusing point and terminal equipment
CN110086916B (en) Photographing method and terminal
CN109348212B (en) Image noise determination method and terminal equipment
CN108449560B (en) Video recording method and terminal
CN110930372A (en) Image processing method, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant