CN110933302B - Shooting method and electronic equipment - Google Patents

Shooting method and electronic equipment Download PDF

Info

Publication number
CN110933302B
CN110933302B CN201911179945.3A CN201911179945A CN110933302B CN 110933302 B CN110933302 B CN 110933302B CN 201911179945 A CN201911179945 A CN 201911179945A CN 110933302 B CN110933302 B CN 110933302B
Authority
CN
China
Prior art keywords
camera
working mode
under
brightness
condition
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
CN201911179945.3A
Other languages
Chinese (zh)
Other versions
CN110933302A (en
Inventor
王康康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911179945.3A priority Critical patent/CN110933302B/en
Publication of CN110933302A publication Critical patent/CN110933302A/en
Application granted granted Critical
Publication of CN110933302B publication Critical patent/CN110933302B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • 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/71Circuitry for evaluating the brightness variation

Abstract

The invention provides a shooting method and electronic equipment. The shooting method is applied to electronic equipment, the electronic equipment comprises a first camera and a second camera, the first camera is a camera comprising an array pixel sensor, and the shooting method comprises the following steps: acquiring ambient brightness under the condition of displaying a first preview image acquired by the first camera; under the condition that the ambient brightness is not matched with the current working mode of the first camera, acquiring a second preview image acquired by the second camera; and displaying the second preview image. The technical scheme provided by the invention solves the problem that the display interface is blocked when the working mode of the camera in the existing electronic equipment is switched.

Description

Shooting method and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a shooting method and an electronic device.
Background
With the increasing photographing function of electronic devices, people have higher and higher requirements for photographing pictures. At present, in order to increase the pixel density of the sensor and achieve the requirement of reducing the sensitivity of a single pixel, a camera including an array pixel sensor is produced. Such cameras usually match different operation modes based on different ambient brightness to obtain better shooting effect. When the working mode of the camera is not matched with the ambient brightness, the camera needs to be switched to the matched working mode. However, when the operation mode of the conventional camera including the array pixel sensor is switched, the display interface is usually stuck due to the switching of the operation mode, which affects the display effect of the image.
Disclosure of Invention
The embodiment of the invention provides a shooting method and electronic equipment, and aims to solve the problem that a display interface is blocked when a camera in the existing electronic equipment switches working modes.
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 shooting method applied to an electronic device, where the electronic device includes a first camera and a second camera, the first camera is a camera including an array pixel sensor, and the method includes:
acquiring ambient brightness under the condition of displaying a first preview image acquired by the first camera;
under the condition that the ambient brightness is not matched with the current working mode of the first camera, acquiring a second preview image acquired by the second camera;
and displaying the second preview image.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes a first camera and a second camera, the first camera is a camera including an array pixel sensor, and the electronic device further includes:
the first acquisition module is used for acquiring the ambient brightness under the condition of displaying the first preview image acquired by the first camera;
the second acquisition module is used for acquiring a second preview image acquired by the second camera under the condition that the ambient brightness is not matched with the current working mode of the first camera;
and the display module is used for displaying the second preview image.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the electronic device implements the steps of the shooting method according to the first aspect.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the shooting method as described in the first aspect.
According to the technical scheme provided by the embodiment of the invention, under the condition that the electronic equipment displays the first preview image acquired by the first camera, if the ambient brightness is not matched with the current working mode of the first camera, as the electronic equipment further comprises the second camera, the second preview image acquired by the second camera is acquired, and the second preview image is displayed. Like this, even the current mode of operation of first camera does not match with ambient brightness, also need not to switch to the mode of operation of matching through restarting first camera, but the second preview image that can direct display second camera gather, the phenomenon that the display interface card that just also can not appear leading to because of first camera restarts pauses has promoted the smoothness nature that electronic equipment shot, also can bring better shooting experience for the user.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a photographing method according to an embodiment of the present invention;
fig. 2 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 3 is a block diagram of another electronic device provided in an 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.
Referring to fig. 1, fig. 1 is a flowchart of a shooting method according to an embodiment of the present invention, where the shooting method is applied to an electronic device. As shown in fig. 1, the photographing method includes the steps of:
step 101, acquiring ambient brightness under the condition of displaying a first preview image acquired by a first camera.
The electronic device includes a first camera and a second camera, where the first camera is a camera including an array pixel sensor. For example, the first camera may be a camera including a two-in-one array pixel sensor, or the first camera may be a camera including a four-in-one array pixel sensor.
In the embodiments of the present invention, a camera including a Quad Bayer four-in-one array pixel sensor will be specifically described as an example, and in the following embodiments, the first camera will be simply referred to as a Quad Bayer camera. The Quad Bayer camera is a "four-pixel-in-one" technology, which can increase the pixel density by four times, and the specific technical principle may refer to the related technology, which is not described in detail in this embodiment.
In addition, the electronic device provided in the embodiment of the present invention further includes a second camera, where the second camera may be a camera of the same type as the first camera, or may be of a different type, and for example, a sensor of the second camera is a non-array pixel sensor.
In the embodiment of the invention, the electronic equipment comprises the first camera and the second camera, and when the electronic equipment receives a starting instruction of a shooting application program, the first preview image acquired by the first camera can be displayed by default. However, it should be noted that the second camera is actually in an activated state, that is, the second camera can also capture and output a preview image in real time at this time, but the preview image is not displayed.
In this step, the electronic device acquires the current ambient brightness under the condition that the first preview image acquired by the first camera is displayed, and then judges whether the ambient brightness is matched with the current working mode of the first camera.
And 102, acquiring a second preview image acquired by a second camera under the condition that the ambient brightness is not matched with the current working mode of the first camera.
Illustratively, the Quad Bayer camera comprises a remote operating mode and a binding operating mode; in the embodiment of the present invention, the removable working mode is defined as a first working mode, and the binding working mode is defined as a second working mode. When the ambient brightness is brighter, the Quad Bayer camera usually works in a remosaic working mode, so that the obtained image has higher resolving power and is clearer; when the ambient brightness is dark, the Quad Bayer camera is usually operated in a binning mode, so that the noise of the obtained image is less. Optionally, the first camera may operate in a second operating mode by default, that is, a binding operating mode; that is to say, after the electronic device starts the shooting application program, the preview image acquired by the first camera in the second working mode is displayed by default.
The electronic equipment obtains the ambient brightness under the condition of displaying the first preview image acquired by the first camera, and judges whether the ambient brightness is matched with the current working mode of the first camera. For example, if the current ambient brightness is bright, it should be matched with the first operation mode (i.e. removable operation mode); if the current ambient brightness is dark, it should be the second operation mode (binding operation mode) matching. If the current ambient brightness is not matched with the current working mode of the first camera, which indicates that the preview image acquired by the first camera at the moment cannot have a better display effect, the electronic device acquires a second preview image acquired by the second camera.
Specifically, the step 102 may include:
under the condition that the ambient brightness is within a first brightness range, if the current working mode of the first camera is a second working mode, acquiring a second preview image acquired by the second camera; or, under the condition that the ambient brightness is in the second brightness range, if the current working mode of the first camera is the first working mode, acquiring a second preview image acquired by the second camera.
Wherein the luminance values of the first luminance range are greater than the luminance values of the second luminance range. As described above, the first operating mode is a removable operating mode, and the operating mode is an operating mode of the first camera when the ambient brightness is bright, and in this operating mode, the image acquired by the first camera is a full-size image full size raw, so that the acquired image has a larger resolution. The second working mode is a binding working mode, namely the working mode adopted by the camera when the ambient brightness is dark, and the image collected by the first camera is a binding size raw image.
It can be understood that when the ambient brightness is in the first brightness range, it indicates that the ambient brightness is brighter at this time, the first camera should be configured in the first working mode to acquire and process an image, if the current working mode of the first camera is the second working mode, it also indicates that the working mode of the first camera is not matched with the ambient brightness at this time, the second preview image acquired by the second camera is acquired, then the image acquired by the second camera is displayed by the electronic device at this time, the electronic device does not need to restart the first camera to switch to the first working mode to display the image, and the occurrence of the jam of the preview image display interface due to the restart of the camera is avoided.
And when the ambient brightness is in a second brightness range, the ambient brightness is darker at the moment, the first camera is supposed to be configured in a second working mode to acquire and process images at the moment, if the current working mode of the first camera is the first working mode, the working mode of the first camera is not matched with the ambient brightness at the moment, the electronic equipment acquires a second preview image acquired by the second camera and displays the second preview image, the electronic equipment does not need to restart the first camera to switch to the second working mode to display the images, but can directly display the preview image acquired by the second camera, and the phenomenon that the display interface of the preview image is blocked due to the restart of the camera is avoided.
And 103, displaying the second preview image.
Easily understood, when the electronic device acquires a second preview image acquired by a second camera, the second preview image is displayed. At this time, the first camera may be restarted to execute switching of the working mode, but because the preview image acquired by the first camera is not displayed by the electronic device at this time, the situation that the preview image is stuck on the display interface does not occur, and bad experience brought to the user is avoided.
Optionally, in this embodiment of the present invention, after the step 101, the method may further include:
under the condition of receiving a shooting instruction, judging the brightness range of the environment brightness; under the condition that the ambient brightness is in the first brightness range, controlling the first camera to shoot in the first working mode; and controlling the first camera to shoot in the second working mode under the condition that the ambient brightness is in the second brightness range.
It is easy to understand that, in the case that the electronic device displays the first preview image captured by the first camera, it indicates that the shooting application of the electronic device has been started, and the shooting instruction of the user can be received and executed no matter whether the ambient brightness at this time matches the current operating mode of the first camera, or no matter which operating mode the first camera is configured in at this time. Different working modes of the first camera correspond to different ambient brightness, and then when a shooting instruction is received, the brightness range of the current ambient brightness is judged, namely whether the ambient brightness is in the first brightness range or the second brightness range is judged.
And if the ambient brightness is in a first brightness range, controlling the first camera to shoot in a first working mode (namely, a remosaic working mode). Specifically, in the remote operating mode, the first camera acquires full-size images full size raw with the required frame number, and processes the acquired full-size images through the first data path corresponding to the remote operating mode to obtain the captured images in the remote operating mode.
It can be understood that, before the electronic device receives the shooting instruction, the displayed preview image may be the preview image acquired by the first camera in the first operating mode, and in this case, when the electronic device receives the shooting instruction, the first camera directly processes and outputs the acquired full-size image without switching the operating mode.
Or before the electronic device receives a shooting instruction, the displayed preview image may be a second preview image captured by a second camera, in which case, before the electronic device determines the brightness range of the ambient brightness when receiving the shooting instruction, the method further includes: and under the condition that the second preview image is displayed, controlling the first camera to be in a to-be-activated state, wherein in the to-be-activated state, the first camera is configured to be in a first working mode.
That is to say, in the case that the electronic device displays the second preview image, the first camera may be configured in a to-be-activated state, and in the to-be-activated state, the first camera is configured in the first working mode, at this time, the first camera can collect the full-size image with the required frame number, and only the image is not output, that is, the electronic device displays the second preview image.
When the electronic equipment receives a shooting instruction and the ambient brightness is in the first brightness range, activating the first camera; and acquiring a full-size image acquired by the first camera in the first working mode, processing the full-size image based on a first data path corresponding to the first working mode, updating an exposure value, and displaying the processed first shot image. In this way, the electronic device can output and display the image shot by the first camera based on the shooting instruction of the user even when the second preview image is displayed; and because the first camera is in the state of waiting to activate, when electronic equipment receives the shooting instruction, can directly activate first camera, need not to wait for first camera to restart for electronic equipment's shooting flow is more swift, the reaction is more sensitive, promotes user's shooting experience.
Optionally, when the electronic device receives a shooting instruction, if the current ambient brightness is in the second brightness range, the first camera is controlled to be matched with the corresponding second working mode for shooting. Specifically, under the condition that the ambient brightness is within the second brightness range, a composite size image acquired by the first camera in the second working mode is acquired; and processing the composite size image based on a second data path corresponding to the second working mode, and displaying the processed second shot image.
In the embodiment of the present invention, the brightness value of the second brightness range is smaller than the brightness value of the first brightness range, and when the ambient brightness is in the second brightness range, the corresponding second working mode needs to be matched for shooting. In a second working mode, the first camera directly acquires image data from the combined size image combining size raw queue, and the acquired image data is processed through a second data path to acquire a second shot image, so that a display interface of the electronic device displays the second shot image.
In this case, when the electronic device receives the shooting instruction, the first camera directly processes and outputs the acquired composite size image without switching the cameras or switching the operating modes.
Or before the electronic device receives the shooting instruction, the displayed preview image may be a second preview image acquired by the second camera, and since the first camera operates in the second operating mode by default, in this case, the electronic device acquires the composite size image acquired by the first camera in the second operating mode, and outputs and displays the acquired composite size image after processing the acquired composite size image through the second data path. Therefore, even if the electronic equipment receives the shooting instruction under the condition of displaying the second preview image, the first camera does not need to be restarted, so that the shooting process of the electronic equipment is quicker and the reaction is more sensitive.
According to the technical scheme provided by the embodiment of the invention, under the condition that the electronic equipment displays the first preview image acquired by the first camera, if the ambient brightness is not matched with the current working mode of the first camera, as the electronic equipment further comprises the second camera, the second preview image acquired by the second camera is acquired, and the second preview image is displayed. Like this, even the current mode of operation of first camera does not match with ambient brightness, also need not to switch to the mode of operation of matching through restarting first camera, but the second preview image that can direct display second camera gather, the phenomenon that the display interface card that just also can not appear leading to because of first camera restarts pauses has promoted the smoothness nature that electronic equipment shot, also can bring better shooting experience for the user.
Referring to fig. 2, fig. 2 is a structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device includes a first camera and a second camera, and the first camera is a camera including an array pixel sensor. As shown in fig. 2, the electronic device 200 includes:
a first obtaining module 201, configured to obtain ambient brightness when a first preview image acquired by the first camera is displayed;
a second obtaining module 202, configured to obtain a second preview image collected by the second camera under the condition that the ambient brightness is not matched with the current working mode of the first camera;
and a display module 203, configured to display the second preview image.
Optionally, the second obtaining module 202 is further configured to:
under the condition that the ambient brightness is within a first brightness range, if the current working mode of the first camera is a second working mode, acquiring a second preview image acquired by the second camera;
or also for:
under the condition that the ambient brightness is in a second brightness range, if the current working mode of the first camera is a first working mode, acquiring a second preview image acquired by the second camera;
wherein the luminance values of the first luminance range are greater than the luminance values of the second luminance range; under the first working mode, the image collected by the first camera is a full-size image, and under the second working mode, the image collected by the first camera is a composite-size image.
Optionally, the electronic device 200 further includes:
the judging module is used for judging the brightness range of the environment brightness under the condition of receiving a shooting instruction;
the shooting module is used for controlling the first camera to shoot in the first working mode under the condition that the ambient brightness is in the first brightness range;
and the first camera is also used for controlling the first camera to shoot in the second working mode under the condition that the ambient brightness is in the second brightness range.
Optionally, the electronic device 200 further includes:
the control module is used for controlling the first camera to be in a state to be activated under the condition that the second preview image is displayed, and the first camera is configured to be in a first working mode under the state to be activated;
the shooting module is further configured to:
activating the first camera if the ambient brightness is in the first brightness range;
and acquiring a full-size image acquired by the first camera in the first working mode, processing the full-size image based on a first data path corresponding to the first working mode, and displaying the processed first shot image.
Optionally, the shooting module is further configured to:
acquiring a composite size image acquired by the first camera in the second working mode under the condition that the ambient brightness is in the second brightness range;
and processing the composite size image based on a second data path corresponding to the second working mode, and displaying the processed second shot image.
Optionally, the first camera is a camera including a four-in-one array pixel sensor.
It should be noted that the electronic device 200 can implement each process of the shooting method embodiment shown in fig. 1, and can achieve the same technical effect, and for avoiding repetition, the details are not described here again.
In the embodiment of the present invention, when the electronic device 200 displays the first preview image acquired by the first camera, if the ambient brightness does not match the current working mode of the first camera, because the electronic device 200 further includes the second camera, the electronic device acquires the second preview image acquired by the second camera, and displays the second preview image. Like this, even the current mode of operation of first camera does not match with ambient brightness, also need not to switch to the mode of operation of matching through restarting first camera, but the second preview image that can direct display second camera gather, the phenomenon that the display interface card that just also can not appear leading to because of first camera restarts pauses has promoted the smoothness nature that electronic equipment 200 shot, also can bring better shooting experience for the user.
Referring to fig. 3, fig. 3 is a structural diagram of another electronic device for implementing the embodiment of the invention, and the electronic device 300 can implement each process of the embodiment of the shooting method described in fig. 1 and achieve the same technical effect. As shown in fig. 3, electronic device 300 includes, but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, processor 310, and power supply 311. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 3 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the electronic device 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.
Illustratively, the electronic device 300 includes a first camera and a second camera, the first camera being a camera including an array pixel sensor.
Optionally, the first camera is a camera including a four-in-one array pixel sensor.
Wherein, the processor 310 is configured to:
acquiring ambient brightness under the condition of displaying a first preview image acquired by the first camera;
under the condition that the ambient brightness is not matched with the current working mode of the first camera, acquiring a second preview image acquired by the second camera;
and displaying the second preview image.
Wherein, the processor 310 is further configured to:
under the condition that the ambient brightness is within a first brightness range, if the current working mode of the first camera is a second working mode, acquiring a second preview image acquired by the second camera;
alternatively, the first and second electrodes may be,
under the condition that the ambient brightness is in a second brightness range, if the current working mode of the first camera is a first working mode, acquiring a second preview image acquired by the second camera;
wherein the luminance values of the first luminance range are greater than the luminance values of the second luminance range; under the first working mode, the image collected by the first camera is a full-size image, and under the second working mode, the image collected by the first camera is a composite-size image.
Wherein, the processor 310 is further configured to:
under the condition of receiving a shooting instruction, judging the brightness range of the environment brightness;
under the condition that the ambient brightness is in the first brightness range, controlling the first camera to shoot in the first working mode;
and controlling the first camera to shoot in the second working mode under the condition that the ambient brightness is in the second brightness range.
Wherein, the processor 310 is further configured to:
under the condition that the second preview image is displayed, controlling the first camera to be in a state to be activated, wherein the first camera is configured to be in a first working mode under the state to be activated;
activating the first camera if the ambient brightness is in the first brightness range;
and acquiring a full-size image acquired by the first camera in the first working mode, processing the full-size image based on a first data path corresponding to the first working mode, and displaying the processed first shot image.
Wherein, the processor 310 is further configured to:
acquiring a composite size image acquired by the first camera in the second working mode under the condition that the ambient brightness is in the second brightness range;
and processing the composite size image based on a second data path corresponding to the second working mode, and displaying the processed second shot image.
In the embodiment of the present invention, when the electronic device 300 displays the first preview image acquired by the first camera, if the ambient brightness does not match the current working mode of the first camera, because the electronic device 300 further includes the second camera, the electronic device acquires the second preview image acquired by the second camera, and displays the second preview image. Like this, even the current mode of operation of first camera does not match with ambient brightness, also need not to switch to the mode of operation of matching through restarting first camera, but the second preview image that can direct display second camera gather, the phenomenon that the display interface card that just also can not appear leading to because of first camera restarts pauses has promoted the smoothness nature that electronic equipment 300 shot, also can bring better shooting experience for the user.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 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 310; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 301 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 301 can also communicate with a network and other devices through a wireless communication system.
The electronic device 300 provides wireless broadband internet access to the user via the network module 302, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as sound. Also, the audio output unit 303 may also provide audio output related to a specific function performed by the electronic apparatus 300 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 304 is used to receive audio or video signals. The input Unit 304 may include a Graphics Processing Unit (GPU) 3041 and a microphone 3042, and the Graphics processor 3041 processes image data of a still image or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 306. The image frames processed by the graphic processor 3041 may be stored in the memory 309 (or other computer-readable storage medium) or transmitted via the radio frequency unit 301 or the network module 302. The microphone 3042 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 301 in case of the phone call mode.
The electronic device 300 also includes at least one sensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 3031 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 3031 and/or the backlight when the electronic device 300 is moved to the ear. As one type of motion sensor, an 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 posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 305 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 306 is used to display information input by the user or information provided to the user. The Display unit 306 may include a Display panel 3031, and the Display panel 3031 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 307 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device 300. Specifically, the user input unit 307 includes a touch panel 3071 and other input devices 3072. The touch panel 3071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 3071 (e.g., operations by a user on or near the touch panel 3071 using a finger, a stylus, or any suitable object or attachment). The touch panel 3071 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 310, and receives and executes commands sent by the processor 310. In addition, the touch panel 3071 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3071. Specifically, the other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein.
Further, the touch panel 3071 can be overlaid on the display panel 3031, and when the touch panel 3071 detects a touch operation on or near the touch panel, the touch operation is transmitted to the processor 310 to determine the type of the touch event, and then the processor 310 provides a corresponding visual output on the display panel 3031 according to the type of the touch event. Although in fig. 3, the touch panel 3071 and the display panel 3031 are implemented as two independent components to implement the input and output functions of the electronic device 300, in some embodiments, the touch panel 3071 and the display panel 3031 may be integrated to implement the input and output functions of the electronic device 300, which is not limited herein.
The interface unit 308 is an interface for connecting an external device to the electronic apparatus 300. 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 308 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 300 or may be used to transmit data between the electronic apparatus 300 and the external device.
The memory 309 may be used to store software programs as well as various data. The memory 309 may mainly include a program storage area and a data storage area, wherein the program storage 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 309 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 310 is a control center of the electronic device 300, connects various parts of the entire electronic device 300 using various interfaces and lines, and performs various functions of the electronic device 300 and processes data by operating or executing software programs and/or modules stored in the memory 309 and calling data stored in the memory 309, thereby performing overall monitoring of the electronic device 300. Processor 310 may include one or more processing units; preferably, the processor 310 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 the processor 310.
The electronic device 300 may further include a power supply 311 (such as a battery) for supplying power to various components, and preferably, the power supply 311 may be logically connected to the processor 310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 300 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the foregoing shooting method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
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 above-mentioned shooting 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.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A shooting method is applied to electronic equipment, and is characterized in that the electronic equipment comprises a first camera and a second camera, the first camera is a camera comprising an array pixel sensor, and the method comprises the following steps:
acquiring ambient brightness under the condition of displaying a first preview image acquired by the first camera;
under the condition that the ambient brightness is not matched with the current working mode of the first camera, acquiring a second preview image acquired by the second camera;
displaying the second preview image;
under the condition that the ambient brightness is not matched with the current working mode of the first camera, acquiring a second preview image acquired by the second camera, wherein the method comprises the following steps:
under the condition that the ambient brightness is within a first brightness range, if the current working mode of the first camera is a second working mode, acquiring a second preview image acquired by the second camera;
alternatively, the first and second electrodes may be,
under the condition that the ambient brightness is in a second brightness range, if the current working mode of the first camera is a first working mode, acquiring a second preview image acquired by the second camera;
wherein the luminance values of the first luminance range are greater than the luminance values of the second luminance range; under the first working mode, the image collected by the first camera is a full-size image, and under the second working mode, the image collected by the first camera is a composite-size image.
2. The method according to claim 1, wherein after acquiring ambient brightness while displaying the first preview image captured by the first camera, the method further comprises:
under the condition of receiving a shooting instruction, judging the brightness range of the environment brightness;
under the condition that the ambient brightness is in the first brightness range, controlling the first camera to shoot in the first working mode;
and controlling the first camera to shoot in the second working mode under the condition that the ambient brightness is in the second brightness range.
3. The method according to claim 2, wherein before determining the brightness range in which the ambient brightness is located in the case of receiving the shooting instruction, the method further comprises:
under the condition that the second preview image is displayed, controlling the first camera to be in a state to be activated, wherein the first camera is configured to be in a first working mode under the state to be activated;
the controlling the first camera to shoot in the first working mode under the condition that the ambient brightness is in the first brightness range includes:
activating the first camera if the ambient brightness is in the first brightness range;
and acquiring a full-size image acquired by the first camera in the first working mode, processing the full-size image based on a first data path corresponding to the first working mode, and displaying the processed first shot image.
4. The method according to claim 2, wherein the controlling the first camera to shoot in the second operation mode in the case that the ambient brightness is in the second brightness range comprises:
acquiring a composite size image acquired by the first camera in the second working mode under the condition that the ambient brightness is in the second brightness range;
and processing the composite size image based on a second data path corresponding to the second working mode, and displaying the processed second shot image.
5. The utility model provides an electronic equipment, its characterized in that, electronic equipment includes first camera and second camera, first camera is the camera including array pixel sensor, electronic equipment still includes:
the first acquisition module is used for acquiring the ambient brightness under the condition of displaying the first preview image acquired by the first camera;
the second acquisition module is used for acquiring a second preview image acquired by the second camera under the condition that the ambient brightness is not matched with the current working mode of the first camera;
the display module is used for displaying the second preview image;
the second obtaining module is further configured to:
under the condition that the ambient brightness is within a first brightness range, if the current working mode of the first camera is a second working mode, acquiring a second preview image acquired by the second camera;
or also for:
under the condition that the ambient brightness is in a second brightness range, if the current working mode of the first camera is a first working mode, acquiring a second preview image acquired by the second camera;
wherein the luminance values of the first luminance range are greater than the luminance values of the second luminance range; under the first working mode, the image collected by the first camera is a full-size image, and under the second working mode, the image collected by the first camera is a composite-size image.
6. The electronic device of claim 5, further comprising:
the judging module is used for judging the brightness range of the environment brightness under the condition of receiving a shooting instruction;
the shooting module is used for controlling the first camera to shoot in the first working mode under the condition that the ambient brightness is in the first brightness range;
and the first camera is also used for controlling the first camera to shoot in the second working mode under the condition that the ambient brightness is in the second brightness range.
7. An electronic device, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the photographing method according to any of claims 1 to 4.
8. 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 4.
CN201911179945.3A 2019-11-27 2019-11-27 Shooting method and electronic equipment Active CN110933302B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911179945.3A CN110933302B (en) 2019-11-27 2019-11-27 Shooting method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911179945.3A CN110933302B (en) 2019-11-27 2019-11-27 Shooting method and electronic equipment

Publications (2)

Publication Number Publication Date
CN110933302A CN110933302A (en) 2020-03-27
CN110933302B true CN110933302B (en) 2021-06-25

Family

ID=69852112

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911179945.3A Active CN110933302B (en) 2019-11-27 2019-11-27 Shooting method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110933302B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112188278B (en) * 2020-09-28 2022-04-15 卡莱特云科技股份有限公司 Method and system for controlling display screen through mobile device connection
CN112822413B (en) * 2020-12-30 2024-01-26 Oppo(重庆)智能科技有限公司 Shooting preview method, shooting preview device, terminal and computer readable storage medium
CN115706850B (en) * 2021-08-12 2024-04-05 荣耀终端有限公司 Image shooting method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430276A (en) * 2015-12-18 2016-03-23 广东欧珀移动通信有限公司 Imaging device and electronic device
CN106911892A (en) * 2017-02-21 2017-06-30 深圳市金立通信设备有限公司 The method and terminal of a kind of image procossing
CN106954027A (en) * 2017-02-14 2017-07-14 维沃移动通信有限公司 The method and mobile terminal of a kind of image taking
CN108683861A (en) * 2018-08-06 2018-10-19 Oppo广东移动通信有限公司 Shoot exposal control method, device, imaging device and electronic equipment
CN110233972A (en) * 2018-03-06 2019-09-13 福州瑞芯微电子股份有限公司 A kind of image capture method and device
CN110300268A (en) * 2019-07-26 2019-10-01 上海龙旗科技股份有限公司 Camera switching method and equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8629913B2 (en) * 2010-09-30 2014-01-14 Apple Inc. Overflow control techniques for image signal processing
US9001251B2 (en) * 2013-09-10 2015-04-07 Rambus Inc. Oversampled image sensor with conditional pixel readout
KR20170004756A (en) * 2015-07-03 2017-01-11 삼성전자주식회사 Camera operating method and electronic device implementing the same
JP6748622B2 (en) * 2017-02-16 2020-09-02 ソニーセミコンダクタソリューションズ株式会社 Imaging system and imaging device
US10334189B1 (en) * 2018-06-06 2019-06-25 Smartsens Technology (Cayman) Co., Ltd. HDR pixel array with double diagonal binning
CN109005361A (en) * 2018-08-06 2018-12-14 Oppo广东移动通信有限公司 Control method, device, imaging device, electronic equipment and readable storage medium storing program for executing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430276A (en) * 2015-12-18 2016-03-23 广东欧珀移动通信有限公司 Imaging device and electronic device
CN106954027A (en) * 2017-02-14 2017-07-14 维沃移动通信有限公司 The method and mobile terminal of a kind of image taking
CN106911892A (en) * 2017-02-21 2017-06-30 深圳市金立通信设备有限公司 The method and terminal of a kind of image procossing
CN110233972A (en) * 2018-03-06 2019-09-13 福州瑞芯微电子股份有限公司 A kind of image capture method and device
CN108683861A (en) * 2018-08-06 2018-10-19 Oppo广东移动通信有限公司 Shoot exposal control method, device, imaging device and electronic equipment
CN110300268A (en) * 2019-07-26 2019-10-01 上海龙旗科技股份有限公司 Camera switching method and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《Pixels array matching for optical readout microcantilever array sensing system》;Cheng Gong等;《Optik - International Journal for Light and Electron Optics》;20131230;第6058-6062页 *

Also Published As

Publication number Publication date
CN110933302A (en) 2020-03-27

Similar Documents

Publication Publication Date Title
CN109151180B (en) Object identification method and mobile terminal
CN108307109B (en) High dynamic range image preview method and terminal equipment
CN109639969B (en) Image processing method, terminal and server
CN108924414B (en) Shooting method and terminal equipment
CN108307106B (en) Image processing method and device and mobile terminal
CN110933302B (en) Shooting method and electronic equipment
CN107730460B (en) Image processing method and mobile terminal
CN108900695B (en) Display processing method, terminal equipment and computer readable storage medium
CN111290810B (en) Image display method and electronic equipment
CN111405199B (en) Image shooting method and electronic equipment
CN108040209B (en) Shooting method and mobile terminal
CN110012143B (en) Telephone receiver control method and terminal
CN110290331B (en) Screen control method and terminal
CN111010511B (en) Panoramic body-separating image shooting method and electronic equipment
CN109819166B (en) Image processing method and electronic equipment
CN109618218B (en) Video processing method and mobile terminal
CN109523253B (en) Payment method and device
CN110933494A (en) Picture sharing method and electronic equipment
CN110636225B (en) Photographing method and electronic equipment
CN108924413B (en) Shooting method and mobile terminal
CN111401463A (en) Method for outputting detection result, electronic device, and medium
CN109005337B (en) Photographing method and terminal
CN107885423B (en) Picture processing method and mobile terminal
CN107729100B (en) Interface display control method and mobile terminal
CN110719409B (en) Continuous shooting method and electronic equipment

Legal Events

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