CN110868547A - Photographing control method, photographing control device, electronic equipment and storage medium - Google Patents

Photographing control method, photographing control device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110868547A
CN110868547A CN201911215866.3A CN201911215866A CN110868547A CN 110868547 A CN110868547 A CN 110868547A CN 201911215866 A CN201911215866 A CN 201911215866A CN 110868547 A CN110868547 A CN 110868547A
Authority
CN
China
Prior art keywords
camera
determining
preview image
target
cameras
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
CN201911215866.3A
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.)
Realme Chongqing Mobile Communications Co Ltd
Original Assignee
Realme Chongqing Mobile Communications 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 Realme Chongqing Mobile Communications Co Ltd filed Critical Realme Chongqing Mobile Communications Co Ltd
Priority to CN201911215866.3A priority Critical patent/CN110868547A/en
Publication of CN110868547A publication Critical patent/CN110868547A/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/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Abstract

The disclosure provides a photographing control method, a photographing control device, an electronic device and a computer readable storage medium, and belongs to the technical field of camera shooting. The method is applied to terminal equipment which comprises a plurality of cameras, and comprises the following steps: acquiring at least one frame of preview image acquired by any one of the plurality of cameras; determining a current brightness parameter based on the at least one frame of preview image; selecting at least one target camera from the plurality of cameras according to the brightness parameters; and controlling the target camera to take a picture. The camera automatic switching can be realized in various shooting environments.

Description

Photographing control method, photographing control device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of camera technologies, and in particular, to a photographing control method, a photographing control apparatus, an electronic device, and a computer-readable storage medium.
Background
At present, photographing becomes an indispensable part in daily life and work of people, and along with the increasing of people to the shooting requirement, various diversified camera devices appear in terminal equipment in order to meet different requirements, for example, a plurality of cameras such as a long focus, a wide angle and an ultra-wide angle can be equipped with in a smart phone at the same time.
In practical application, a user can freely switch the cameras to meet different scene requirements, and images with clear characteristics and better texture are shot. However, most users have a shallow understanding of the performance, distinction and application effect of various cameras, and it is difficult to perform correct camera switching for various scenes, so that some cameras cannot perform advantages in their corresponding application scenes, and a problem of resource waste caused by a low use frequency and a long-term non-use of a certain camera may occur.
Therefore, how to adopt an effective photographing control method to automatically switch cameras in different application scenes so as to exert the advantages of various cameras to the maximum is a problem to be solved in the prior art.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure provides a photographing control method, a photographing control apparatus, an electronic device, and a computer-readable storage medium, which at least to some extent overcome the problem that it is difficult to automatically switch cameras in various photographing environments in the existing photographing control method.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to one aspect of the present disclosure, a photographing control method is provided, which is applied to a terminal device, the terminal device including a plurality of cameras, and the method includes: acquiring at least one frame of preview image acquired by any one of the plurality of cameras; determining a current brightness parameter based on the at least one frame of preview image; selecting at least one target camera from the plurality of cameras according to the brightness parameters; and controlling the target camera to take a picture.
According to an aspect of the present disclosure, there is provided a photographing control apparatus applied to a terminal device including a plurality of cameras, the apparatus including: the image acquisition module is used for acquiring at least one frame of preview image acquired by any one of the plurality of cameras; a parameter determining module, configured to determine a current brightness parameter based on the at least one frame of preview image; the camera selection module is used for selecting at least one target camera from the plurality of cameras according to the brightness parameters; and the photographing control module is used for controlling the target camera to photograph.
According to an aspect of the present disclosure, there is provided an electronic device including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the method of any one of the above via execution of the executable instructions.
According to an aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any one of the above.
Exemplary embodiments of the present disclosure have the following advantageous effects:
the method comprises the steps of obtaining at least one frame of preview image collected by any one of a plurality of cameras, determining a current brightness parameter based on the at least one frame of preview image, selecting at least one target camera from the plurality of cameras according to the brightness parameter, and controlling the target camera to shoot. On one hand, the camera used in the photographing control of the terminal equipment is determined by analyzing at least one acquired preview image, so that a user can switch a proper camera to photograph according to a currently captured dynamic picture after opening the camera; on the other hand, the brightness parameter of the preview image is determined, so that the photographing environment of the terminal device can be better sensed, the target camera for photographing is determined, the intelligent switching of the cameras is performed, and good use experience is provided for the user.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 schematically shows a flowchart of a photographing control method in the present exemplary embodiment;
fig. 2 schematically shows a sub-flowchart of a photographing control method in the present exemplary embodiment;
fig. 3 schematically shows a flowchart of another photographing control method in the present exemplary embodiment;
fig. 4 is a block diagram schematically showing the configuration of a photographing control apparatus in the present exemplary embodiment;
fig. 5 schematically illustrates an electronic device for implementing the above method in the present exemplary embodiment;
fig. 6 schematically illustrates a computer-readable storage medium for implementing the above-described method in the present exemplary embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
The exemplary embodiment of the present disclosure first provides a photographing control method, which may be applied to a terminal device such as a smart phone, a tablet computer, or a personal computer, where the terminal device may include a plurality of cameras, where the plurality of cameras may be cameras with different functions, such as a wide-angle camera, a telephoto camera, or an ultra-wide-angle camera, and may also be cameras with different pixel levels, such as cameras with 6400 ten thousand, 4800 ten thousand, or 1600 ten thousand pixels. The method and the device can be used for intelligently switching to the camera with more advantages according to different shooting scenes when a user shoots outdoors so as to acquire an image with better effect.
The exemplary embodiment is further described with reference to fig. 1, and as shown in fig. 1, the photographing control method may include the following steps S110 to S140:
step S110, at least one frame of preview image captured by any one of the plurality of cameras is acquired.
The preview image refers to an image of a captured area captured by the camera after entering an image capture state, and the preview image may be presented in a display area (such as a screen) of the terminal device, so that a user can make a pre-determination on the captured area to perform a photographing or adjusting operation, and the preview image may change according to a change of the camera, for example, when the camera moves horizontally, the preview image also moves horizontally correspondingly, and when a focal length of the camera is adjusted, a picture in the preview image will also be enlarged or reduced, and the like. Generally, when the user does not perform the final shooting operation, as the user moves the terminal device, the camera will capture a series of video streams of the currently shot scene, that is, a series of dynamic preview images will be displayed in the display area. The exemplary embodiment may acquire a video stream of a current scene through any one of a plurality of cameras set on a terminal, and determine at least one frame of preview image from the video stream, so as to perform photographing control according to the preview image, for example, a default standard camera may be set to perform image acquisition, the acquired preview image may be analyzed, so as to determine to use the standard camera to take a photograph, or the standard camera may be switched to another camera, such as a wide-angle camera, and the like.
Step S120, determining a current brightness parameter based on at least one frame of preview image.
Wherein, at least one frame of preview image is an image of a certain moment in the video stream. The brightness parameter may reflect the degree of brightness in the current preview image. The present exemplary embodiment may determine a current brightness parameter through the preview image to determine which camera is currently used for photographing according to the brightness parameter. In the present exemplary embodiment, the current brightness parameter may be determined in various ways, for example, a gray scale image of the current preview image may be determined, and the current brightness parameter may be determined by calculating a mean and a variance in the gray scale image; or determining the current brightness parameter according to RGB (Red Green Blue ) data in the preview image; or determining the current brightness parameter by a method of calculating the pixel average value of the gray level image of the preview image; the YUV data in the preview image may also be extracted to determine the current brightness parameter and the like according to the YUV data, and there may be other various ways to determine the brightness parameter of the image, which is not specifically limited by the present disclosure.
And step S130, selecting at least one target camera from the plurality of cameras according to the brightness parameters.
And step S140, controlling the target camera to take pictures.
The target camera is the camera which is finally determined to be used for shooting in the terminal equipment. In an actual shooting scene, due to different brightness of a shot picture, different types of cameras can be used to present different effects, for example, in an environment with higher brightness, a long-focus camera can be used to shoot better effects. Therefore, the present exemplary embodiment can determine the target camera according to the brightness parameter, and take a picture by using the target camera, that is, when the user opens the camera to take a picture of a scene to be taken, the appropriate camera can be dynamically switched to determine that the current camera with a better shooting effect takes a picture.
Based on the above description, in the present exemplary embodiment, at least one frame of preview image collected by any one of the plurality of cameras is obtained, the current brightness parameter is determined based on the at least one frame of preview image, at least one target camera is selected from the plurality of cameras according to the brightness parameter, and the target camera is controlled to take a picture. On one hand, the camera used in the photographing control of the terminal equipment is determined by analyzing at least one acquired preview image, so that a user can switch a proper camera to photograph according to a currently captured dynamic picture after opening the camera; on the other hand, the brightness parameter of the preview image is determined, so that the photographing environment of the terminal device can be better sensed, the target camera for photographing is determined, the intelligent switching of the cameras is performed, and good use experience is provided for the user.
In an exemplary embodiment, the step S120 may include:
and determining a target area from at least one frame of preview image, and determining a current brightness parameter according to the target area.
Considering that a variety of complex objects may be included in the preview image during photographing, for example, when photographing a portrait, both an image about a person and a building or a plant other than the person are captured. However, in general, an image captured by a user has a certain object as a subject, or the captured image has multiple layers, such as a foreground or a background, for example, a person is placed in the foreground of the image as a subject of the capturing, and the like. Therefore, in the present exemplary embodiment, in order to effectively determine the brightness parameter in the preview image, a target area may be determined from the preview image, where the target area is an area where a main shooting object is located, such as an area where a human figure, a building, a vehicle, or an animal is located, or a foreground area, and the like. Further, aiming at the brightness parameter of the target area, the currently required camera is adjusted.
Specifically, in an exemplary embodiment, the at least one preview image may include a plurality of consecutive preview images;
determining a target area from at least one frame of preview image, and determining a current brightness parameter according to the target area, wherein the method comprises the following steps:
determining a plurality of target pixel points based on optical flows between continuous multi-frame preview images;
and determining the current brightness parameter according to the brightness values of the target pixel points.
The exemplary embodiment may determine a plurality of target pixel points through optical flow between consecutive multi-frame preview images based on an optical flow method, and determine a current brightness parameter according to brightness values of the target pixel points. The optical flow method is a method for calculating motion information of an object between adjacent frames by finding a correspondence between a previous frame and a current frame by using a change of pixels in an image sequence in a time domain and a correlation between adjacent frames.
In general, the optical flow is generated by the movement of a photographed object in a photographed scene, the movement of a camera, or the common movement of the two, and refers to the instantaneous velocity of the pixel movement of a spatially moving object on an observed imaging plane, and the instantaneous velocity may be the displacement of a target pixel point when the time interval is very small (e.g. between two consecutive frames of a video stream). Since the optical flow may contain the running information of the image, reflecting the change of the image, the motion of the target object captured in the preview image, for example, the motion of a human image, may be determined by the optical flow. After the plurality of target pixel points are determined, a current brightness parameter may be determined according to the brightness values of the target pixel points, for example, the sum of the brightness values of the plurality of target pixel points may be used as the current brightness parameter, or the average value of the plurality of target pixel points may be used as the current brightness parameter, and the like.
In an exemplary embodiment, determining a current brightness parameter according to brightness values of a plurality of target pixel points includes:
and carrying out weighted calculation on the brightness values of the target pixel points, and taking the calculation result as the current brightness parameter.
In this exemplary embodiment, the weighting calculation may be performed on the luminance values of the plurality of target pixels, specifically, the same weight may be given to the obtained luminance values of the plurality of target pixels, and the obtained weighting calculation result is used as the current luminance parameter, or different weights may be given to the luminance values of the plurality of target pixels, for example, with the center point of the preview image as a reference, the higher weight is given to the luminance value of the target pixel close to the center point of the preview image, and the farther the displacement from the center point is, the weight is gradually reduced, based on which, the weighting calculation result of the luminance values of the plurality of target pixels is determined and used as the current luminance parameter, and the like. In addition, in the present exemplary embodiment, weights may be given to the plurality of target pixel points in other manners to perform weighting calculation, which is not specifically limited in the present disclosure.
In an exemplary embodiment, the step S120 may include:
and determining color coding YUV data of at least one frame of preview image, and determining the current brightness parameter according to the YUV data.
The brightness parameter is determined by YUV data of a preview image, wherein the YUV data is color coded data and is mainly used for optimizing transmission of color video signals.
In YUV data, Y represents brightness, i.e., a gray-scale value, and U and V represent chromaticity, which can describe the color and saturation of an image, for representing the color of a pixel. In the YUV data, the Y component and the U, V component are separated, i.e., if only the Y component, but not U, V component, is present, a black-and-white gray-scale image of the image can be represented. Based on this, the present exemplary embodiment may encode YUV data by determining the color of the preview image, and determine a luminance parameter from the YUV data.
In an exemplary embodiment, the determining the current luminance parameter according to the YUV data includes:
step S210, extracting a Y component from the color coded YUV data as a current brightness parameter;
further, step S130 may include:
in step S220, if the Y component is smaller than the first threshold, the first camera is determined as the target camera.
It is considered that in YUV data, Y can represent brightness and, while separating the Y component, can still represent a black-white gray image of an image. Therefore, the present exemplary embodiment may extract a Y component from the YUV data for characterizing a luminance parameter of the preview image, and determine the target camera according to the Y component. Specifically, when the Y component is smaller than the first threshold, it indicates that the brightness in the current photographing environment is low, and in the case of no special photographing requirement, the first camera may be selected to photograph. The first camera is a standard camera for acquiring an image of a photographed object, and may be set with cameras of different pixel levels as required, for example, a camera of 6400 ten thousand pixels, a camera of 1600 ten thousand pixels, and the like.
Further, in an exemplary embodiment, the photographing control method may further include:
if the Y component is larger than the first threshold value and smaller than the second threshold value, determining the second camera as a target camera;
and if the Y component is larger than the second threshold value, determining the third camera as the target camera.
The second camera and the third camera are similar to the first camera and are also used for collecting images of a shot object, and different from the first camera, the second camera and the third camera can have a certain unique property, are different from the performance of the main camera and have stronger functionality, for example, the second camera can be a wide-angle camera, and have a larger viewing range compared with the first camera; the third camera may be a tele camera, which has a longer focal length, etc. than the first camera. In the present exemplary embodiment, when the Y component is greater than the second threshold, that is, the brightness in the current shooting environment is higher, it may be considered that a distant scene may be currently shot, and then a target camera more suitable for the current shooting environment, for example, a telephoto camera may be switched to; when the Y component is greater than the first threshold and less than the second threshold, it may be considered that the brightness is moderate, and if more people are photographed, it may not be very suitable to use the first camera in the current photographing environment, and then the second camera, such as a wide-angle camera, may be adopted.
Fig. 3 shows another photographing control method in the present exemplary embodiment, which may specifically include the following steps:
step S310, acquiring at least one frame of preview image collected by any one of a plurality of cameras;
step S320, determining color coding YUV data of at least one frame of preview image;
step S330, extracting a Y component from the color coded YUV data as a current brightness parameter;
step S340, judging whether the current brightness parameter is smaller than a first threshold value;
if the first camera is smaller than the first threshold value, executing the step S350, determining the first camera as a target camera, and controlling the first camera to take pictures;
if the brightness parameter is greater than the first threshold value, executing step S360 to determine whether the current brightness parameter is less than a second threshold value;
if the second threshold value is smaller than the second threshold value, executing step S370, determining that the second camera is the target camera, and controlling the second camera to take a picture;
and if the second threshold value is larger than the second threshold value, executing the step S380, determining that the third camera is the target camera, and controlling the third camera to take pictures.
Exemplary embodiments of the present disclosure also provide a photographing control apparatus. Referring to fig. 4, the apparatus 400 may include an image obtaining module 410, configured to obtain at least one frame of preview image captured by any one of a plurality of cameras; a parameter determining module 420, configured to determine a current brightness parameter based on at least one frame of the preview image; the camera selection module 430 selects at least one target camera from the plurality of cameras according to the brightness parameter; and the photographing control module 440 controls the target camera to photograph.
In an exemplary embodiment, the parameter determination module may include: and the area determining unit is used for determining a target area from at least one frame of preview image and determining the current brightness parameter according to the target area.
In an exemplary embodiment, the at least one preview image comprises a succession of multiple preview images; the area determination unit includes: the pixel point determining subunit is used for determining a plurality of target pixel points based on the optical flow between continuous multiframe preview images; and the brightness determining subunit is used for determining the current brightness parameter according to the brightness values of the target pixel points.
In an exemplary embodiment, the brightness determining subunit may include: and carrying out weighted calculation on the brightness values of the target pixel points, and taking the calculation result as the current brightness parameter.
In an exemplary embodiment, the parameter determination module may include: and the data determining unit is used for determining color coding YUV data of at least one frame of preview image and determining the current brightness parameter according to the YUV data.
In an exemplary embodiment, the data determining unit may include a component extracting sub-unit for determining color-coded YUV data of at least one frame of the preview image and extracting a Y component from the color-coded YUV data as the current luminance parameter; the camera selection module comprises a selection unit for determining the first camera as the target camera if the Y component is smaller than a first threshold.
In an exemplary embodiment, the photographing control apparatus may further include: the judging module is used for determining the second camera as a target camera if the Y component is larger than a first threshold and smaller than a second threshold; and if the Y component is greater than the second threshold, determining the third camera as the target camera.
The specific details of each module/unit in the above-mentioned apparatus have been described in detail in the embodiment of the method section, and the details that are not disclosed may refer to the contents of the embodiment of the method section, and therefore are not described herein again.
Exemplary embodiments of the present disclosure also provide an electronic device capable of implementing the above method.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 500 according to such an exemplary embodiment of the present disclosure is described below with reference to fig. 5. The electronic device 500 shown in fig. 5 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, the electronic device 500 is embodied in the form of a general purpose computing device. The components of the electronic device 500 may include, but are not limited to: the at least one processing unit 510, the at least one memory unit 520, a bus 530 connecting various system components (including the memory unit 520 and the processing unit 510), and a display unit 540.
Where the storage unit stores program code, the program code may be executed by the processing unit 510 such that the processing unit 510 performs the steps according to various exemplary embodiments of the present disclosure as described in the above-mentioned "exemplary methods" section of this specification. For example, the processing unit 510 may execute steps S110 to S140 shown in fig. 1, or may execute steps S210 to S220 shown in fig. 2, or the like.
The storage unit 520 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM)521 and/or a cache memory unit 522, and may further include a read only memory unit (ROM) 523.
The storage unit 520 may also include a program/utility 524 having a set (at least one) of program modules 525, such program modules 525 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 530 may be one or more of any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 500 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 500, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 500 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 550. Also, the electronic device 500 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 560. As shown, the network adapter 560 communicates with the other modules of the electronic device 500 over the bus 530. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the exemplary embodiments of the present disclosure.
Exemplary embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the disclosure described in the above-mentioned "exemplary methods" section of this specification, when the program product is run on the terminal device.
Referring to fig. 6, a program product 600 for implementing the above method according to an exemplary embodiment of the present disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes included in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit according to an exemplary embodiment of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (10)

1. A photographing control method is applied to terminal equipment, and is characterized in that the terminal equipment comprises a plurality of cameras, and the method comprises the following steps:
acquiring at least one frame of preview image acquired by any one of the plurality of cameras;
determining a current brightness parameter based on the at least one frame of preview image;
selecting at least one target camera from the plurality of cameras according to the brightness parameters;
and controlling the target camera to take a picture.
2. The method of claim 1, wherein determining a current brightness parameter based on the at least one preview image comprises:
and determining a target area from the at least one frame of preview image, and determining a current brightness parameter according to the target area.
3. The method of claim 2, wherein the at least one preview image comprises a plurality of consecutive preview images;
the determining a target area from the at least one frame of preview image and determining a current brightness parameter according to the target area includes:
determining a plurality of target pixel points based on optical flows between the continuous multiframe preview images;
and determining the current brightness parameter according to the brightness values of the target pixel points.
4. The method of claim 3, wherein determining the current luminance parameter according to the luminance values of the target pixels comprises:
and carrying out weighted calculation on the brightness values of the target pixel points, and taking the calculation result as the current brightness parameter.
5. The method of claim 1, wherein determining a current brightness parameter based on the at least one preview image comprises:
and determining color coding YUV data of the at least one frame of preview image, and determining a current brightness parameter according to the YUV data.
6. The method of claim 5, wherein determining the current luminance parameter from the YUV data comprises:
extracting a Y component from the color-coded YUV data as a current brightness parameter;
the selecting at least one target camera from the plurality of cameras according to the brightness parameter includes:
and if the Y component is smaller than a first threshold value, determining the first camera as the target camera.
7. The method of claim 6, further comprising:
if the Y component is larger than the first threshold value and smaller than a second threshold value, determining a second camera as the target camera;
and if the Y component is larger than the second threshold value, determining a third camera as the target camera.
8. The utility model provides a control device shoots, is applied to terminal equipment, its characterized in that, terminal equipment includes a plurality of cameras, the device includes:
the image acquisition module is used for acquiring at least one frame of preview image acquired by any one of the plurality of cameras;
a parameter determining module, configured to determine a current brightness parameter based on the at least one frame of preview image;
the camera selection module is used for selecting at least one target camera from the plurality of cameras according to the brightness parameters;
and the photographing control module is used for controlling the target camera to photograph.
9. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any of claims 1-7 via execution of the executable instructions.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 7.
CN201911215866.3A 2019-12-02 2019-12-02 Photographing control method, photographing control device, electronic equipment and storage medium Pending CN110868547A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911215866.3A CN110868547A (en) 2019-12-02 2019-12-02 Photographing control method, photographing control device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911215866.3A CN110868547A (en) 2019-12-02 2019-12-02 Photographing control method, photographing control device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110868547A true CN110868547A (en) 2020-03-06

Family

ID=69658247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911215866.3A Pending CN110868547A (en) 2019-12-02 2019-12-02 Photographing control method, photographing control device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110868547A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953964A (en) * 2020-07-29 2020-11-17 欧菲微电子技术有限公司 Ambiguity detection method, electronic device and storage medium
CN112367461A (en) * 2020-10-27 2021-02-12 京东方科技集团股份有限公司 Instrument image sample manufacturing method and system, storage medium and electronic equipment
CN113206960A (en) * 2021-03-24 2021-08-03 上海闻泰电子科技有限公司 Photographing method, photographing apparatus, computer device, and computer-readable storage medium
CN113495818A (en) * 2020-03-20 2021-10-12 微盟电子(昆山)有限公司 Keyboard light detection system and method, computer readable storage medium and electronic device
WO2023015980A1 (en) * 2021-08-11 2023-02-16 荣耀终端有限公司 Image capture method and related device thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101049012A (en) * 2004-08-31 2007-10-03 卡西欧计算机株式会社 Image pickup apparatus, exposure control method, and computer program installed in the image pickup apparatus
CN106170058A (en) * 2016-08-30 2016-11-30 维沃移动通信有限公司 A kind of exposure method and mobile terminal
CN108540636A (en) * 2017-03-06 2018-09-14 中兴通讯股份有限公司 A kind of photographic method and device based on dual camera
CN108989696A (en) * 2018-07-11 2018-12-11 江苏安威士智能安防有限公司 Automatic explosion method based on temperature figure
JP2019110402A (en) * 2017-12-15 2019-07-04 キヤノン株式会社 Imaging apparatus, control method therefor, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101049012A (en) * 2004-08-31 2007-10-03 卡西欧计算机株式会社 Image pickup apparatus, exposure control method, and computer program installed in the image pickup apparatus
CN106170058A (en) * 2016-08-30 2016-11-30 维沃移动通信有限公司 A kind of exposure method and mobile terminal
CN108540636A (en) * 2017-03-06 2018-09-14 中兴通讯股份有限公司 A kind of photographic method and device based on dual camera
JP2019110402A (en) * 2017-12-15 2019-07-04 キヤノン株式会社 Imaging apparatus, control method therefor, and program
CN108989696A (en) * 2018-07-11 2018-12-11 江苏安威士智能安防有限公司 Automatic explosion method based on temperature figure

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113495818A (en) * 2020-03-20 2021-10-12 微盟电子(昆山)有限公司 Keyboard light detection system and method, computer readable storage medium and electronic device
CN113495818B (en) * 2020-03-20 2024-03-15 微盟电子(昆山)有限公司 Keyboard lamp detection system and method, computer readable storage medium and electronic device
CN111953964A (en) * 2020-07-29 2020-11-17 欧菲微电子技术有限公司 Ambiguity detection method, electronic device and storage medium
CN112367461A (en) * 2020-10-27 2021-02-12 京东方科技集团股份有限公司 Instrument image sample manufacturing method and system, storage medium and electronic equipment
CN112367461B (en) * 2020-10-27 2021-12-17 京东方科技集团股份有限公司 Instrument image sample manufacturing method and system, storage medium and electronic equipment
CN113206960A (en) * 2021-03-24 2021-08-03 上海闻泰电子科技有限公司 Photographing method, photographing apparatus, computer device, and computer-readable storage medium
WO2023015980A1 (en) * 2021-08-11 2023-02-16 荣耀终端有限公司 Image capture method and related device thereof

Similar Documents

Publication Publication Date Title
CN110868547A (en) Photographing control method, photographing control device, electronic equipment and storage medium
CN108322646B (en) Image processing method, image processing device, storage medium and electronic equipment
KR101926490B1 (en) Apparatus and method for processing image
RU2629436C2 (en) Method and scale management device and digital photographic device
JP6388673B2 (en) Mobile terminal and imaging method thereof
CN109889724B (en) Image blurring method and device, electronic equipment and readable storage medium
US9195880B1 (en) Interactive viewer for image stacks
CN110266954B (en) Image processing method, image processing device, storage medium and electronic equipment
CN108093158B (en) Image blurring processing method and device, mobile device and computer readable medium
CN111601040B (en) Camera control method and device and electronic equipment
CN111107265B (en) Image processing method and device, computer readable medium and electronic equipment
CN110445989A (en) Image processing method, device, storage medium and electronic equipment
CN108513069B (en) Image processing method, image processing device, storage medium and electronic equipment
CN112866576B (en) Image preview method, storage medium and display device
CN110264473B (en) Image processing method and device based on multi-frame image and electronic equipment
CN112770042B (en) Image processing method and device, computer readable medium, wireless communication terminal
WO2022151813A1 (en) Electronic device, front image signal processor, and image processing method
EP3836532A1 (en) Control method and apparatus, electronic device, and computer readable storage medium
CN108574803B (en) Image selection method and device, storage medium and electronic equipment
KR100719841B1 (en) Method for creation and indication of thumbnail view
CN115086567A (en) Time-delay shooting method and device
CN110581957B (en) Image processing method, image processing device, storage medium and electronic equipment
CN108513068B (en) Image selection method and device, storage medium and electronic equipment
US20190286887A1 (en) Image Processing Method, Electronic Device and Storage Medium
CN110855957B (en) Image processing method and device, storage medium 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200306