CN113206960A - Photographing method, photographing apparatus, computer device, and computer-readable storage medium - Google Patents

Photographing method, photographing apparatus, computer device, and computer-readable storage medium Download PDF

Info

Publication number
CN113206960A
CN113206960A CN202110312588.4A CN202110312588A CN113206960A CN 113206960 A CN113206960 A CN 113206960A CN 202110312588 A CN202110312588 A CN 202110312588A CN 113206960 A CN113206960 A CN 113206960A
Authority
CN
China
Prior art keywords
brightness
camera
scene
night vision
determining
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.)
Pending
Application number
CN202110312588.4A
Other languages
Chinese (zh)
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.)
Shanghai Wingtech Electronic Technology Co Ltd
Original Assignee
Shanghai Wingtech Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Wingtech Electronic Technology Co Ltd filed Critical Shanghai Wingtech Electronic Technology Co Ltd
Priority to CN202110312588.4A priority Critical patent/CN113206960A/en
Publication of CN113206960A publication Critical patent/CN113206960A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/90Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums

Abstract

The embodiment of the application relates to a shooting method, a shooting device, computer equipment and a computer readable storage medium, wherein the shooting method comprises the following steps: determining the brightness of the current shooting scene based on the corresponding relation between the photosensitive value of the main camera and the scene brightness and/or based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness; determining a target camera from the main camera and the night vision camera according to the brightness; shooting the current shooting scene through the target camera. Through the technical scheme of the embodiment of the application, the image shooting quality is improved, and especially under the environment with extremely dark brightness, the image quality can be greatly improved.

Description

Photographing method, photographing apparatus, computer device, and computer-readable storage medium
Technical Field
The present application relates to the field of shooting technologies, and in particular, to a shooting method, an apparatus, a computer device, and a computer-readable storage medium.
Background
In recent years, with the development of photographing technology and the improvement of requirements of people on photographing quality, more and more research and development personnel are dedicated to researching how to improve the photographing quality, especially how to improve the photographing quality in a night scene mode.
The method for improving the photographing quality in the night scene mode generally adopted at present comprises the following steps: the shooting quality in the night scene mode is improved through a night scene algorithm. The working principle of the night scene algorithm is as follows: and capturing multiple frames of multi-exposure images during photographing, and performing position replacement on a place with a noise point by using a frame image without the noise point through multi-frame noise reduction to obtain a clean picture.
However, since a general main camera is a high-pixel camera, and the high pixels of the camera cause the pixel points to be smaller, the light sensing capability at night is poor, and the noise point of a shot image is high and the definition is poor. In summary, the photographing quality obtained by adding the night scene algorithm needs to be further improved.
Disclosure of Invention
In order to solve the above technical problem or at least partially solve the above technical problem, the present application provides a photographing method, apparatus, computer device and computer-readable storage medium, which improve image quality of a photographed image.
In a first aspect, an embodiment of the present application provides a shooting method, where the method includes:
determining the brightness of the current shooting scene based on the corresponding relation between the photosensitive value of the main camera and the scene brightness and/or based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness;
determining a target camera from the main camera and the night vision camera according to the brightness;
shooting a current shooting scene through the target camera;
the number of pixels of the main camera is higher than that of the night vision camera, and the size of a single pixel of the main camera is smaller than that of a single pixel of the night vision camera.
In one embodiment, the determining the brightness of the current shooting scene based on the correspondence between the photosensitive value of the main camera and the brightness of the scene and/or based on the correspondence between the photosensitive value of the night vision camera and the brightness of the scene comprises:
determining first brightness based on the corresponding relation between the photosensitive value of the main camera and the scene brightness;
determining second brightness based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness;
and determining the average value of the first brightness and the second brightness as the brightness of the current shooting scene.
In one embodiment, the determining the brightness of the current shooting scene based on the correspondence between the photosensitive value of the main camera and the brightness of the scene and/or based on the correspondence between the photosensitive value of the night vision camera and the brightness of the scene comprises:
determining first brightness based on the corresponding relation between the photosensitive value of the main camera and the scene brightness; or determining second brightness based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness;
and determining the first brightness or the second brightness as the brightness of the current shooting scene.
In one embodiment, the determining the target camera from the main camera and the night vision camera according to the brightness comprises:
if the brightness reaches a set threshold value, determining that a main camera is the target camera;
and if the brightness does not reach the set threshold value, determining that the night vision camera is the target camera.
In one embodiment, the night vision camera includes: an infrared camera.
In one embodiment, the determining the target camera from the main camera and the night vision camera according to the brightness comprises:
if the brightness of the picture with the preset frame number is continuously monitored to be lower than a first preset value through the main camera, switching to use a night vision camera;
and if the brightness of the picture with the preset frame number is continuously monitored to be higher than a second preset value through the night vision camera, switching to use the main camera.
In one embodiment, the determining the target camera from the main camera and the night vision camera according to the brightness further comprises:
marking a scene brightness interval during the first shot switching and a scene brightness interval during the second shot switching to obtain a marked scene brightness interval;
if the brightness of the picture continuously monitored by the main camera with the preset frame number is lower than a first preset value, or the brightness of the picture continuously monitored by the night vision camera with the preset frame number is higher than a second preset value, but the current shooting scene falls in the marked scene brightness interval, the operation of switching to the use of the night vision camera is executed after the set time is delayed, or the operation of switching to the use of the main camera is executed after the set time is delayed.
In a second aspect, an embodiment of the present application further provides a shooting apparatus, including:
the brightness determining module is used for determining the brightness of the current shooting scene based on the corresponding relation between the photosensitive value of the main camera and the scene brightness and/or based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness;
the camera determining module is used for determining a target camera from the main camera and the night vision camera according to the brightness;
the shooting module is used for shooting a current shooting scene through the target camera;
the number of pixels of the main camera is higher than that of the night vision camera, and the size of a single pixel of the main camera is smaller than that of a single pixel of the night vision camera.
In a third aspect, an embodiment of the present application further provides a computer device, where the computer device includes:
the shooting method comprises a storage and a processor, wherein the storage stores a computer program, and the processor is characterized in that the processor realizes the steps of the shooting method provided by any embodiment of the application when executing the computer program.
In a fourth aspect, the present application further provides a storage medium containing computer-executable instructions, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the shooting method provided in any embodiment of the present application are implemented.
According to the shooting method, the shooting device, the computer equipment and the computer readable storage medium, the shooting is carried out by using different cameras according to the brightness of the current shooting scene, the image quality of the shot image is improved, and especially under the environment with extremely dark brightness, the image quality of the image can be greatly improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a photographing method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of another photographing method according to an embodiment of the present application;
fig. 3 is a schematic interface diagram after a camera application is started according to an embodiment of the present application;
FIG. 4 is a schematic flow chart illustrating a photographing method according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a camera according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of an internal structure of a computer device according to an embodiment of the present application.
Detailed Description
In order that the above-mentioned objects, features and advantages of the present application may be more clearly understood, the solution of the present application will be further described below. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application, but the present application may be practiced in other ways than those described herein; it is to be understood that the embodiments described in this specification are only some embodiments of the present application and not all embodiments.
Embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are for illustration purposes only and are not intended to limit the scope of the present application.
It should be understood that the various steps recited in the method embodiments of the present application may be performed in a different order and/or in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present application is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present application are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this application are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
Fig. 1 is a schematic flowchart of a shooting method according to an embodiment of the present disclosure. The method may be performed by a camera, which may be implemented in software and/or hardware. The shooting device can be configured in an electronic device, such as a terminal, specifically including but not limited to a smart phone, a palm computer, a tablet computer, a wearable device with a display screen, a desktop computer, a notebook computer, an all-in-one machine, a smart home device, and the like.
As shown in fig. 1, the shooting method provided by the present embodiment includes the following steps:
and step 110, determining the brightness of the current shooting scene based on the corresponding relation between the photosensitive value of the main camera and the scene brightness and/or based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness.
In one embodiment, determining the brightness of the current shooting scene based on the corresponding relationship between the photosensitive value of the main camera and the scene brightness and/or based on the corresponding relationship between the photosensitive value of the night vision camera and the scene brightness comprises:
determining first brightness based on the corresponding relation between the photosensitive value of the main camera and the scene brightness;
determining second brightness based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness;
and determining the average value of the first brightness and the second brightness as the brightness of the current shooting scene.
The number of pixels of the main camera is higher than that of the night vision camera, and the size of a single pixel of the main camera is smaller than that of a single pixel of the night vision camera. The main camera has higher number of pixels, is applicable to bright environment and the dark environment that has certain light, demonstrates high image quality, nevertheless because the number of pixels is higher, the size of single pixel is less, has reduced the shooting quality of main camera in extremely dark environment by a wide margin. Aiming at the problem, in the embodiment of the application, besides the main camera, a night vision camera is further arranged, the number of pixels of the night vision camera is lower than that of the main camera, and the size of a single pixel is larger, so that the brightness of an extremely dark environment can be greatly improved, and the defect that only the main camera is used for night vision algorithm is overcome. For example, the night vision camera can be an infrared camera with 200 ten thousand pixels, and f/1.8 large aperture and large-size pixels can greatly improve the brightness of an extremely dark environment, so as to shoot and obtain an image with higher picture quality.
Further, in an embodiment, the determining the brightness of the current shooting scene based on the corresponding relationship between the photosensitive value of the main camera and the brightness of the scene and/or based on the corresponding relationship between the photosensitive value of the night vision camera and the brightness of the scene includes:
determining first brightness based on the corresponding relation between the photosensitive value of a main camera and scene brightness, and determining the first brightness as the brightness of the current shooting scene;
or determining second brightness based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness, wherein the second brightness is determined as the brightness of the current shooting scene.
In order to enable the photosensitive value of each camera to accurately reflect the scene brightness (namely the light intensity), a certain number of modules can be collected, a proportion graph between the photosensitive value and the scene brightness is drawn, and the corresponding scene brightness can be determined based on the photosensitive value through the proportion graph.
For example, if the currently corresponding enabled camera (which represents a camera that can be used to take a picture) is the main camera, the brightness of the current shooting scene may preferably be determined based on the exposure value of the main camera. If the current corresponding enabling camera is a night vision camera, the brightness of the current shooting scene can be preferably determined based on the photosensitive value of the night vision camera, so that the back-and-forth switching between the main camera and the night vision camera is avoided, the service life of the camera is shortened, and the electric quantity consumption of the terminal is increased. Specifically, for example, if the currently corresponding enabled camera is the main camera and the shooting program sets that the brightness of the current shooting scene is determined based on the light sensitivity value of the night vision camera, the main camera of the current enabled camera needs to be switched to the night vision camera, and then the brightness of the current shooting scene is determined based on the light sensitivity value of the night vision camera. On the contrary, for example, if the currently corresponding enabled camera is a night vision camera and the shooting program is set to determine the brightness of the current shooting scene based on the light sensing value of the main camera, the current enabled camera needs to be switched from the night vision camera to the main camera, and then the brightness of the current shooting scene is determined based on the light sensing value of the main camera, thereby increasing the operation steps undoubtedly.
Or, if the brightness of the current shooting scene is determined to be low through the enabling camera (for example, the main camera), the night vision camera needs to be switched to the enabling camera, that is, the night vision camera is switched to be used, the brightness of the current shooting scene can be further determined through the photosensitive value of the night vision camera after the switching, so as to verify whether the brightness of the current shooting scene determined through the main camera is accurate or not, and if the brightness is not accurate, the enabling camera is timely switched, so that the purpose of improving the brightness determination precision is achieved. Similarly, if it is determined that the brightness of the current shooting scene is high through the enabling camera (for example, the night vision camera), the main camera needs to be switched to the enabling camera, that is, the main camera is switched to be used, the brightness of the current shooting scene can be further determined through the photosensitive value of the main camera after the switching, so as to verify whether the brightness of the current shooting scene determined through the night vision camera is accurate, and if not, the enabling camera is switched in time. Furthermore, the brightness of the current shooting scene can be determined based on the average value of the brightness respectively determined by the two cameras, so that the determination precision of the brightness is improved, a reference basis is further provided for determining the current enabled camera, and a basis is provided for obtaining a high-quality shooting image.
And step 120, determining a target camera from the main camera and the night vision camera according to the brightness.
Specifically, if the brightness of the current shooting scene is high, that is, the light intensity is good, the main camera with high pixels is used for shooting to obtain a high-quality shooting image. If the brightness of the current shooting scene is low, namely the light intensity is not good, the night vision camera with lower pixels is used for shooting, so that the size of a single pixel is improved by reducing the number of pixels, the brightness of an extremely dark environment is improved, and finally a shooting image with better image quality is obtained.
In one embodiment, determining a target camera from a main camera and a night vision camera based on the brightness includes:
if the brightness reaches a set threshold value, determining that a main camera is the target camera;
and if the brightness does not reach the set threshold value, determining that the night vision camera is the target camera.
And step 130, shooting the current shooting scene through the target camera.
It can be understood that each camera is configured with a common multi-frame noise reduction algorithm, for example, the main camera is configured with a multi-frame noise reduction algorithm suitable for a bright environment, the night vision camera is configured with a multi-frame noise reduction algorithm suitable for a dark environment, and different cameras are used for shooting in environments with different brightness by configuring two cameras, so that each camera plays respective advantages in a specific shooting environment, the adaptability to the dark environment is stronger and wider, and the problem that the main camera and the night vision algorithm cannot obtain clear images in an extremely dark environment is solved.
According to the technical scheme, different cameras are used for shooting according to the brightness of the current shooting scene, the image quality of the shot image is improved, and especially under the environment with extremely dark brightness, the image quality can be greatly improved.
Fig. 2 is a schematic flowchart of another shooting method according to an embodiment of the present disclosure. On the basis of the foregoing embodiment, this embodiment provides an optional implementation manner for the foregoing step 120 "determining the target camera from the main camera and the night vision camera according to the brightness", specifically, in order to prevent frequent switching between the main camera and the night vision camera, a switching trigger condition is set so as to improve the service life of the shooting device and reduce power consumption caused by switching operation. The same or similar contents as those in the above embodiments are not repeated in this embodiment, and for the related explanation, reference may be made to the above embodiments.
As shown in fig. 2, the method comprises the steps of:
step 210, determining the brightness of the current shooting scene based on the corresponding relation between the photosensitive value of the main camera and the scene brightness and/or based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness.
Step 220, if the brightness of the picture with the preset frame number is continuously monitored to be lower than a first preset value through the main camera, switching to using a night vision camera; and if the brightness of the picture with the preset frame number is continuously monitored to be higher than a second preset value through the night vision camera, switching to use the main camera.
For example, if the brightness of the picture continuously monitored by the main camera at 20-30fps (Frames Per Second) is lower than 20lux, the night vision camera is switched to be used. And if the brightness of the picture of 20-30fps is continuously monitored to be higher than 50lux through the night vision camera, switching to use the main camera. The scene brightness interval during the first two shot switches is temporarily marked, and the shot delay switch is performed on the scene brightness interval falling into the temporary mark in a short time (for example, 30s) so as to avoid frequent and mistaken shot switch.
And step 230, shooting the current shooting scene through the target camera.
Further, in order to reduce the probability of false switching and the switching frequency, the method for determining the target camera from the main camera and the night vision camera according to the brightness further comprises the following steps:
marking a scene brightness interval during the first shot switching and a scene brightness interval during the second shot switching to obtain a marked scene brightness interval;
if the brightness of the picture continuously monitored by the main camera with the preset frame number is lower than a first preset value, or the brightness of the picture continuously monitored by the night vision camera with the preset frame number is higher than a second preset value, but the brightness of the current shooting scene falls in the marked scene brightness interval, the operation of switching to the use of the night vision camera is executed after the set time is delayed, or the operation of switching to the use of the main camera is executed after the set time is delayed.
The scene brightness interval during the first lens switching comprises a scene area brightness interval during the first switching to use the night vision camera, or a scene area brightness interval during the first switching to use the main camera. Correspondingly, the scene brightness interval during the second shot switching comprises the scene area brightness interval during the first switching to the use of the main camera, or the scene area brightness interval during the first switching to the use of the night vision camera.
For example, the first lens switching to the first switching to use the night vision camera indicates that the enabled camera before the lens switching is the main camera, the first lens switching is to use the night vision camera, that is, the enabled camera after the switching is the night vision camera, and then the second lens switching is to use the main camera, that is, the main camera after the switching is the enabled camera. The number of times is counted in a cycle starting when the image pickup application is started and ending when the image pickup application is closed.
Specifically, for example, when the enabled camera is a night vision camera when the camera application is started, the first shot switching finger switches to use the main camera for the first time, and the corresponding second shot switching finger switches to use the night vision camera for the first time before the camera application is closed.
In the technical solution of the embodiment of the present application, on the basis of the above embodiment, an optional implementation manner is provided for the step 120 "determining the target camera from the main camera and the night vision camera according to the brightness", specifically, in order to prevent frequent switching between the main camera and the night vision camera, a switching trigger condition is set so as to improve the service life of the shooting device and reduce power consumption caused by switching operation.
Taking the example that the shooting device is integrated in a smart phone, the shooting process of the shooting method is explained from the product side:
as shown in fig. 3, the interface schematic diagram after the camera application is started includes a night view option, a default mode of the night view option is automatic, that is, lens switching is started in a preview stage according to brightness of a current shooting scene, specifically, when it is continuously monitored by a main camera that brightness of a picture with a preset frame number is lower than a first preset value, switching is performed to use a night view camera; and if the brightness of the picture with the preset frame number is continuously monitored to be higher than a second preset value through the night vision camera, switching to use the main camera.
Illustratively, when the camera identification 310 in fig. 3 is highlighted in blue, it indicates that the current enabled camera is a night vision camera, and when the camera identification 310 is highlighted in white, it indicates that the current enabled camera is a main camera. If the user triggers the night scene "turn on" identifier 320, the enabled camera is resident as a night vision camera, namely shooting is performed through the night vision camera, and automatic switching is not performed along with scene brightness. If the user triggers the night scene closing identifier 330, the enabled camera is resident as the main camera, that is, shooting is performed through the main camera, and automatic switching is not performed along with the scene brightness.
In an embodiment, referring to a schematic flow chart of a shooting method shown in fig. 4, the method specifically includes:
step 1, obtaining the brightness of the current shooting scene.
And 2, judging the target camera adaptive to the brightness of the current shooting scene by a brightness detection algorithm.
And step 3, enabling the target camera.
And 4, configuring a night scene algorithm of the target camera.
In step 1, the brightness of the current shooting scene can be obtained through the sensitivity ISO of the currently enabled camera, and when the light is good, low sensitivity is used, and when the light is poor, high sensitivity is used. On the basis of the original single-camera night scene algorithm, the main camera and the night vision camera are used for working cooperatively under different scene brightness, and respective night scene algorithms are configured, so that noise points of output images can be removed, and the definition is improved. The main camera has high pixel number, can show high image quality under bright environment and dark environment with certain light, but the single pixel size is little, has reduced image shooting quality under the extremely dark environment by a wide margin. The night vision camera has a large aperture and large-size pixels, so that the brightness of an extremely dark environment can be greatly improved, the image quality of the image in the extremely dark environment can be greatly improved, and the defect of a single camera night scene algorithm is overcome.
Optionally, the target camera which is adapted to the brightness of the current shooting scene can be determined by combining the scene brightness and the specific environment to determine which camera is specifically adopted by pre-training the neural network model in an artificial intelligence AI manner. The switching camera can also consider adding a fusion algorithm so as to smooth the switching process and improve the use experience of a user.
Fig. 5 is a shooting device provided in an embodiment of the present application, and the shooting device includes: a brightness determination module 510, a camera determination module 520, and a photographing module 530.
The brightness determining module 510 is configured to determine the brightness of a current shooting scene based on a correspondence between a photosensitive value of a main camera and the brightness of the scene, and/or based on a correspondence between a photosensitive value of a night vision camera and the brightness of the scene; a camera determination module 520, configured to determine a target camera from the main camera and the night vision camera according to the brightness; a shooting module 530, configured to shoot a current shooting scene through the target camera; the number of pixels of the main camera is higher than that of the night vision camera, and the size of a single pixel of the main camera is smaller than that of a single pixel of the night vision camera.
On the basis of the above technical solution, the brightness determining module 510 includes:
a first determination unit configured to determine a first luminance based on a correspondence between a light-sensitive value of a main camera and a scene luminance; determining second brightness based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness; and determining the average value of the first brightness and the second brightness as the brightness of the current shooting scene.
On the basis of the above technical solutions, the brightness determining module 510 further includes:
a second determination unit configured to determine the first luminance based on a correspondence between a light-sensitive value of the main camera and the scene luminance; or determining second brightness based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness; and determining the first brightness or the second brightness as the brightness of the current shooting scene.
On the basis of the above technical solutions, the camera determination module 520 includes:
a third determining unit, configured to determine that the main camera is the target camera if the brightness reaches a set threshold; and if the brightness does not reach the set threshold value, determining that the night vision camera is the target camera.
On the basis of the above technical solutions, the night vision camera includes: an infrared camera.
On the basis of the above technical solutions, the camera determination module 520 includes:
the switching unit is used for switching to use the night vision camera if the brightness of the picture continuously monitored by the main camera with the preset frame number is lower than a first preset value; and if the brightness of the picture with the preset frame number is continuously monitored to be higher than a second preset value through the night vision camera, switching to use the main camera.
On the basis of the above technical solutions, the camera determination module 520 further includes:
the marking unit is used for marking a scene brightness interval during the first shot switching and a scene brightness interval during the second shot switching to obtain a marked scene brightness interval;
and the delay unit is used for delaying the operation of switching to the use of the night vision camera after the set time, or delaying the operation of switching to the use of the main camera after the set time if the main camera continuously monitors that the brightness of the picture with the preset frame number is lower than a first preset value, or the night vision camera continuously monitors that the brightness of the picture with the preset frame number is higher than a second preset value, but the current shooting scene falls in the marked scene brightness interval.
According to the technical scheme, different cameras are used for shooting according to the brightness of the current shooting scene, the image quality of the shot image is improved, and especially under the environment with extremely dark brightness, the image quality can be greatly improved.
The shooting device provided by the embodiment of the application can execute the shooting method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiments of the present application.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, Near Field Communication (NFC) or other technologies. The computer program is executed by a processor to implement a XXX method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the camera provided in the present application may be implemented in the form of a computer program, which is executable on a computer device as shown in fig. 6. The memory of the computer device may store therein various program modules constituting the photographing apparatus, such as a brightness determination module, a camera determination module, and a photographing module shown in fig. 5. The computer program constituted by the respective program modules causes the processor to execute the steps in the photographing method of the respective embodiments of the present application described in the present specification.
For example, the computer apparatus shown in fig. 6 may perform the step of "determining the brightness of the currently photographed scene based on the correspondence between the sensed light value of the main camera and the brightness of the scene, and/or based on the correspondence between the sensed light value of the night vision camera and the brightness of the scene" by the brightness determination module in the photographing apparatus as shown in fig. 5. The computer device may perform the step of "determining a target camera from the main camera and the night vision camera according to the brightness" through the camera determination module. The computer device can execute the step of shooting the current shooting scene through the target camera through the shooting module.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: determining the brightness of the current shooting scene based on the corresponding relation between the photosensitive value of the main camera and the scene brightness and/or based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness; determining a target camera from the main camera and the night vision camera according to the brightness; shooting a current shooting scene through the target camera; the number of pixels of the main camera is higher than that of the night vision camera, and the size of a single pixel of the main camera is smaller than that of a single pixel of the night vision camera.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining first brightness based on the corresponding relation between the photosensitive value of the main camera and the scene brightness; determining second brightness based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness; and determining the average value of the first brightness and the second brightness as the brightness of the current shooting scene.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining first brightness based on the corresponding relation between the photosensitive value of the main camera and the scene brightness; or determining second brightness based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness; and determining the first brightness or the second brightness as the brightness of the current shooting scene.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the brightness reaches a set threshold value, determining that the main camera is the target camera; and if the brightness does not reach the set threshold value, determining that the night vision camera is the target camera.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the night vision camera includes: an infrared camera.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the brightness of the picture with the preset frame number is continuously monitored to be lower than a first preset value through the main camera, switching to use a night vision camera; and if the brightness of the picture with the preset frame number is continuously monitored to be higher than a second preset value through the night vision camera, switching to use the main camera.
In one embodiment, the processor, when executing the computer program, further performs the steps of: marking a scene brightness interval during the first shot switching and a scene brightness interval during the second shot switching to obtain a marked scene brightness interval; if the brightness of the picture continuously monitored by the main camera with the preset frame number is lower than a first preset value, or the brightness of the picture continuously monitored by the night vision camera with the preset frame number is higher than a second preset value, but the current shooting scene falls in the marked scene brightness interval, the operation of switching to the use of the night vision camera is executed after the set time is delayed, or the operation of switching to the use of the main camera is executed after the set time is delayed.
Through the computer equipment, the image quality of the shot image is improved, and especially under the environment with extremely dark brightness, the image quality can be greatly improved.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: determining the brightness of the current shooting scene based on the corresponding relation between the photosensitive value of the main camera and the scene brightness and/or based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness; determining a target camera from the main camera and the night vision camera according to the brightness; shooting a current shooting scene through the target camera; the number of pixels of the main camera is higher than that of the night vision camera, and the size of a single pixel of the main camera is smaller than that of a single pixel of the night vision camera.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining first brightness based on the corresponding relation between the photosensitive value of the main camera and the scene brightness; determining second brightness based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness; and determining the average value of the first brightness and the second brightness as the brightness of the current shooting scene.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining first brightness based on the corresponding relation between the photosensitive value of the main camera and the scene brightness; or determining second brightness based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness; and determining the first brightness or the second brightness as the brightness of the current shooting scene.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the brightness reaches a set threshold value, determining that the main camera is the target camera; and if the brightness does not reach the set threshold value, determining that the night vision camera is the target camera.
In one embodiment, the computer program when executed by the processor further performs the steps of: the night vision camera includes: an infrared camera.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the brightness of the picture with the preset frame number is continuously monitored to be lower than a first preset value through the main camera, switching to use a night vision camera; and if the brightness of the picture with the preset frame number is continuously monitored to be higher than a second preset value through the night vision camera, switching to use the main camera.
In one embodiment, the computer program when executed by the processor further performs the steps of: marking a scene brightness interval during the first shot switching and a scene brightness interval during the second shot switching to obtain a marked scene brightness interval; if the brightness of the picture continuously monitored by the main camera with the preset frame number is lower than a first preset value, or the brightness of the picture continuously monitored by the night vision camera with the preset frame number is higher than a second preset value, but the current shooting scene falls in the marked scene brightness interval, the operation of switching to the use of the night vision camera is executed after the set time is delayed, or the operation of switching to the use of the main camera is executed after the set time is delayed.
Through the storage medium containing the computer executable instructions, the image quality of the shot image is improved, and particularly, the image quality can be greatly improved under the environment with extremely dark brightness.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM is available in many forms, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), and the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A photographing method, characterized by comprising:
determining the brightness of the current shooting scene based on the corresponding relation between the photosensitive value of the main camera and the scene brightness and/or based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness;
determining a target camera from the main camera and the night vision camera according to the brightness;
shooting a current shooting scene through the target camera;
the number of pixels of the main camera is higher than that of the night vision camera, and the size of a single pixel of the main camera is smaller than that of a single pixel of the night vision camera.
2. The shooting method according to claim 1, wherein the determining the brightness of the current shooting scene based on the correspondence between the luminance value of the main camera and the brightness of the scene and/or based on the correspondence between the luminance value of the night vision camera and the brightness of the scene comprises:
determining first brightness based on the corresponding relation between the photosensitive value of the main camera and the scene brightness;
determining second brightness based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness;
and determining the average value of the first brightness and the second brightness as the brightness of the current shooting scene.
3. The shooting method according to claim 1, wherein the determining the brightness of the current shooting scene based on the correspondence between the luminance value of the main camera and the brightness of the scene and/or based on the correspondence between the luminance value of the night vision camera and the brightness of the scene comprises:
determining first brightness based on the corresponding relation between the photosensitive value of the main camera and the scene brightness; or determining second brightness based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness;
and determining the first brightness or the second brightness as the brightness of the current shooting scene.
4. The shooting method according to claim 1, wherein the determining a target camera from a main camera and a night vision camera according to the brightness comprises:
if the brightness reaches a set threshold value, determining that the main camera is the target camera;
and if the brightness does not reach the set threshold value, determining that the night vision camera is the target camera.
5. The shooting method according to claim 1, wherein the determining a target camera from a main camera and a night vision camera according to the brightness comprises:
if the brightness of the picture with the preset frame number is continuously monitored to be lower than a first preset value through the main camera, switching to use a night vision camera;
and if the brightness of the picture with the preset frame number is continuously monitored to be higher than a second preset value through the night vision camera, switching to use the main camera.
6. The shooting method according to claim 5, wherein the determining of the target camera from the main camera and the night vision camera based on the brightness further comprises:
marking a scene brightness interval during the first shot switching and a scene brightness interval during the second shot switching to obtain a marked scene brightness interval;
if the brightness of the picture continuously monitored by the main camera with the preset frame number is lower than a first preset value, or the brightness of the picture continuously monitored by the night vision camera with the preset frame number is higher than a second preset value, but the current shooting scene falls in the marked scene brightness interval, the operation of switching to the use of the night vision camera is executed after the set time is delayed, or the operation of switching to the use of the main camera is executed after the set time is delayed.
7. The photographing method according to any one of claims 1 to 6, wherein the night vision camera includes: an infrared camera.
8. A camera, comprising:
the brightness determining module is used for determining the brightness of the current shooting scene based on the corresponding relation between the photosensitive value of the main camera and the scene brightness and/or based on the corresponding relation between the photosensitive value of the night vision camera and the scene brightness;
the camera determining module is used for determining a target camera from the main camera and the night vision camera according to the brightness;
the shooting module is used for shooting a current shooting scene through the target camera;
the number of pixels of the main camera is higher than that of the night vision camera, and the size of a single pixel of the main camera is smaller than that of a single pixel of the night vision camera.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the photographing method according to any one of claims 1 to 7 when executing the computer program.
10. A storage medium containing computer-executable instructions, a computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the photographing method of any one of claims 1 to 7.
CN202110312588.4A 2021-03-24 2021-03-24 Photographing method, photographing apparatus, computer device, and computer-readable storage medium Pending CN113206960A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110312588.4A CN113206960A (en) 2021-03-24 2021-03-24 Photographing method, photographing apparatus, computer device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110312588.4A CN113206960A (en) 2021-03-24 2021-03-24 Photographing method, photographing apparatus, computer device, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN113206960A true CN113206960A (en) 2021-08-03

Family

ID=77025586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110312588.4A Pending CN113206960A (en) 2021-03-24 2021-03-24 Photographing method, photographing apparatus, computer device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN113206960A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2930157Y (en) * 2006-06-06 2007-08-01 周劲松 Radio monitor camera with no-electric positioning day and night switcher
CN105245775A (en) * 2015-09-25 2016-01-13 小米科技有限责任公司 Method and device for camera imaging, and mobile terminal
JP2016059005A (en) * 2014-09-12 2016-04-21 キヤノン株式会社 Scene determination device, control method thereof, control program, and imaging apparatus
CN107707819A (en) * 2017-09-29 2018-02-16 北京小米移动软件有限公司 Image capturing method, device and storage medium
CN107959778A (en) * 2017-11-30 2018-04-24 广东欧珀移动通信有限公司 Imaging method and device based on dual camera
CN108024056A (en) * 2017-11-30 2018-05-11 广东欧珀移动通信有限公司 Imaging method and device based on dual camera
CN108391035A (en) * 2018-03-26 2018-08-10 华为技术有限公司 A kind of image pickup method, device and equipment
CN108540636A (en) * 2017-03-06 2018-09-14 中兴通讯股份有限公司 A kind of photographic method and device based on dual camera
CN110113526A (en) * 2019-04-22 2019-08-09 联想(北京)有限公司 Processing method, processing unit and electronic equipment
CN110868547A (en) * 2019-12-02 2020-03-06 RealMe重庆移动通信有限公司 Photographing control method, photographing control device, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2930157Y (en) * 2006-06-06 2007-08-01 周劲松 Radio monitor camera with no-electric positioning day and night switcher
JP2016059005A (en) * 2014-09-12 2016-04-21 キヤノン株式会社 Scene determination device, control method thereof, control program, and imaging apparatus
CN105245775A (en) * 2015-09-25 2016-01-13 小米科技有限责任公司 Method and device for camera imaging, and mobile terminal
CN108540636A (en) * 2017-03-06 2018-09-14 中兴通讯股份有限公司 A kind of photographic method and device based on dual camera
CN107707819A (en) * 2017-09-29 2018-02-16 北京小米移动软件有限公司 Image capturing method, device and storage medium
CN107959778A (en) * 2017-11-30 2018-04-24 广东欧珀移动通信有限公司 Imaging method and device based on dual camera
CN108024056A (en) * 2017-11-30 2018-05-11 广东欧珀移动通信有限公司 Imaging method and device based on dual camera
CN108391035A (en) * 2018-03-26 2018-08-10 华为技术有限公司 A kind of image pickup method, device and equipment
CN110113526A (en) * 2019-04-22 2019-08-09 联想(北京)有限公司 Processing method, processing unit and electronic equipment
CN110868547A (en) * 2019-12-02 2020-03-06 RealMe重庆移动通信有限公司 Photographing control method, photographing control device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US9451173B2 (en) Electronic device and control method of the same
US8994845B2 (en) System and method of adjusting a camera based on image data
CN109167931B (en) Image processing method, device, storage medium and mobile terminal
US9571743B2 (en) Dynamic exposure adjusting method and electronic apparatus using the same
CN104917973B (en) Dynamic exposure method of adjustment and its electronic device
CN108419012A (en) Photographic method, device, storage medium and electronic equipment
CN108513069B (en) Image processing method, image processing device, storage medium and electronic equipment
CN108040204B (en) Image shooting method and device based on multiple cameras and storage medium
CN112487888B (en) Image acquisition method and device based on target object
CN104869309A (en) Shooting method and shooting apparatus
WO2024040981A1 (en) Photographing method and related device therefor
CN112422798A (en) Photographing method and device, electronic equipment and storage medium
CN110868533B (en) HDR mode determination method, device, storage medium and terminal
US10769416B2 (en) Image processing method, electronic device and storage medium
CN107180417B (en) Photo processing method and device, computer readable storage medium and electronic equipment
CN109120856B (en) Camera shooting method and device
CN111586280B (en) Shooting method, shooting device, terminal and readable storage medium
CN113206960A (en) Photographing method, photographing apparatus, computer device, and computer-readable storage medium
CN108495038B (en) Image processing method, image processing device, storage medium and electronic equipment
CN207218885U (en) A kind of intelligent terminal auto-exposure control structure for wireless light communication
CN116095476B (en) Camera switching method and device, electronic equipment and storage medium
EP2658245B1 (en) System and method of adjusting camera image data
CN114286004A (en) Focusing method, shooting device, electronic equipment and medium
CN112312024A (en) Photographing processing method and device and storage medium
CA2776009C (en) System and method of adjusting camera image data

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210803