CN108881636B - Backlight mode automatic switching method and device, electronic equipment and computer readable storage medium - Google Patents
Backlight mode automatic switching method and device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN108881636B CN108881636B CN201810702761.XA CN201810702761A CN108881636B CN 108881636 B CN108881636 B CN 108881636B CN 201810702761 A CN201810702761 A CN 201810702761A CN 108881636 B CN108881636 B CN 108881636B
- Authority
- CN
- China
- Prior art keywords
- image
- camera
- electronic equipment
- mode
- definition value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/64—Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/667—Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/52—Details of telephonic subscriber devices including functional features of a camera
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Studio Devices (AREA)
Abstract
The invention relates to the technical field of photography, in particular to a backlight mode automatic switching method, a device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: and the user controls to start the first camera to acquire the first image and controls the second camera to overexpose to acquire the second image. And then the user clicks the first image displayed on the application interface of the electronic equipment to determine the target areas on the first image and the second image, respectively calculates a first definition value of the target area on the first image and a second definition value of the target area on the second image, and switches the mode of the electronic equipment into the inverse light mode if the second definition value is greater than the first definition value. In the scheme, the first camera and the second camera are used for respectively collecting images, and meanwhile, whether the current scene is a backlight scene or not is automatically detected through comparing and analyzing the definition of the images, so that the backlight mode of the electronic equipment is automatically switched, and the user experience is improved.
Description
Technical Field
The invention relates to the technical field of photography, in particular to a backlight mode automatic switching method and device, electronic equipment and a computer readable storage medium.
Background
At present, when a user uses a camera to shoot a picture in a backlight scene, the background of the picture shot by the user is very bright due to the fact that the scene has strong light, but the brightness of a main body in the picture is very dark, so that an ordinary user can hardly shoot the picture in the backlight scene with good quality by directly using the camera. Even though many current camera devices have a backlight mode, users can choose to use the backlight mode to take pictures in a backlight scene. However, in practical use, the user needs to manually switch the camera mode to the inverse light mode each time, which seriously affects the user experience. Therefore, it is necessary to provide an automatic switching method of backlight mode.
Disclosure of Invention
The invention aims to provide an automatic backlight mode switching method, which is used for automatically switching electronic equipment into a backlight mode in a backlight scene, is convenient for a user to shoot high-quality pictures and improves the user experience.
Another object of the present invention is to provide an automatic backlight mode switching device, so as to automatically switch an electronic device to a backlight mode in a backlight scene, thereby facilitating a user to take a high-quality photo and improving user experience.
Another object of the present invention is to provide an electronic device, so as to automatically switch the electronic device to a backlight mode in a backlight scene, thereby facilitating a user to take a high-quality photo and improving user experience.
Another object of the present invention is to provide a computer-readable storage medium to automatically switch an electronic device to a backlight mode in a backlight scene, so as to facilitate a user to take a high-quality photo and improve user experience.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a backlight mode automatic switching method, which is applied to an electronic device, where the electronic device is provided with a first camera and a second camera, and the method includes: controlling the first camera to acquire a first image, controlling the second camera to overexpose to acquire a second image, and displaying the first image on an application interface of the electronic equipment; receiving and responding to a selected operation of a user on the first image displayed on an application interface to determine a target area on the first image and the second image; respectively determining a first definition value of a target area on the first image and a second definition value of the target area on the second image; and if the second definition value is larger than the first definition value, switching the mode of the electronic equipment into the reverse light mode.
In a second aspect, an embodiment of the present invention further provides an automatic backlight mode switching device, which is applied to an electronic device, where the electronic device is provided with a first camera and a second camera, and the device includes: the acquisition module is used for controlling the first camera to acquire a first image, controlling the second camera to overexpose to acquire a second image and displaying the first image on an application interface of the electronic equipment; the area determining module is used for receiving and responding to the selected operation of a user on the first image displayed on the application interface to determine a target area on the first image and the second image; a definition determining module, configured to determine a first definition value of a target region on the first image and a second definition value of the target region on the second image, respectively; and the mode switching module is used for switching the mode of the electronic equipment into the inverse light mode if the second definition value is larger than the first definition value.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device is provided with a first camera and a second camera, the electronic device further includes a processor and a memory, the memory is used for storing a computer program, and the processor is used for executing the computer program stored in the memory to implement the backlight mode automatic switching method.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the backlight mode automatic switching method.
The embodiment of the invention provides a backlight mode automatic switching method and device, electronic equipment and a computer readable storage medium, wherein the backlight mode automatic switching method and device are applied to the electronic equipment, the electronic equipment is provided with a first camera and a second camera, and the method comprises the following steps: the user controls to start the first camera to collect a first image and control the second camera to collect a second image, and the collected first image is displayed on an application interface of the electronic equipment and parameters of the second camera are set to be overexposed. And then the user clicks the first image displayed on the application interface of the electronic equipment to determine the target areas on the first image and the second image, respectively calculates a first definition value of the target area on the first image and a second definition value of the target area on the second image, and if the second definition value is larger than the first definition value, the currently acquired image is a backlight image, the mode of the electronic equipment is switched to the backlight mode. Therefore, in the scheme, the first camera and the second camera are used for respectively collecting images, the definition of the images is compared and analyzed to automatically detect whether the current scene is a backlight scene, if the current scene is the backlight scene, the mode of the electronic equipment is automatically switched to the backlight mode, so that the backlight mode of the electronic equipment is automatically switched, and the user experience is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart illustrating a method for automatically switching a backlight mode according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating sub-steps of an automatic backlight mode switching method according to an embodiment of the present invention.
Fig. 4 is a schematic functional block diagram of an automatic backlight mode switching apparatus according to an embodiment of the present invention.
The figure is as follows: 100-an electronic device; 110-automatic switching device for backlight mode; 120-a memory; 130-a memory controller; 140-a processor; 150-peripheral interface; 160-input-output unit; 170-an audio unit; 180-a display unit; 190-a communication unit; 111-an acquisition module; 112-region determination module; 113-a sharpness determination module; 114-mode switching module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
The backlight mode automatic switching method provided by the embodiment of the invention is applied to the electronic equipment, the first camera and the second camera are arranged on the electronic equipment, the understanding is easy, and the electronic equipment can be, but is not limited to, electronic equipment such as a smart phone and a tablet personal computer. The electronic equipment can realize automatic switching to the backlight mode for photographing in the backlight scene through the backlight mode automatic switching method, so that a user does not need to manually switch the backlight mode, and the user experience is improved. It should be noted that the backlight scene is a scene with strong light, for example, when a user takes a mobile phone facing the sun to shoot an object under the sun, the shot picture may be in a state where the background light is very bright, but the target object in the picture is very dark, the backlight mode is various set overexposure parameters, such as shutter speed, and the like, and the electronic device can achieve the effect of obtaining a clear image shot in the backlight scene through the backlight mode.
Referring to fig. 1, a schematic structural diagram of an electronic device 100 according to an embodiment of the present invention is shown, where the electronic device 100 includes a backlight mode automatic switching apparatus 110, a memory 120, a storage controller 130, a processor 140, a peripheral interface 150, an input/output unit 160, an audio unit 170, a display unit 180, and a communication unit 190.
The memory 120, the memory controller 130, the processor 140, the peripheral interface 150, the input/output unit 160, the audio unit 170, the display unit 180, and the communication unit 190 are electrically connected to each other directly or indirectly to implement data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The backlight mode automatic switching device 110 includes at least one software function module which can be stored in the memory 120 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the electronic device 100. The processor 140 is used to execute an executable module stored in the memory 120, such as a software functional module or a computer program included in the backlight mode automatic switching apparatus 110.
The Memory 120 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 120 is configured to store a program, and the processor 140 executes the program after receiving an execution instruction, and the method executed by the electronic device 100 defined by the flow process disclosed in any embodiment of the present invention may be applied to the processor 140, or implemented by the processor 140.
The processor 140 may be an integrated circuit chip having signal processing capabilities. The Processor 140 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor 140 may be any conventional processor 140 or the like.
The peripheral interface 150 couples various input/output devices to the processor 140 as well as to the memory 120. In some embodiments, peripheral interface 150, processor 140, and memory controller 130 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The input/output unit 160 is used for providing input data to the user to realize the interaction of the user with the electronic device 100. The input/output unit 160 may be, but is not limited to, a mouse, a keyboard, and the like.
The display unit 180 provides an interactive interface (e.g., a user operation interface) between the electronic device 100 and a user or for displaying image data to a user reference. In this embodiment, the display unit 180 may be a liquid crystal display or a touch display. In the case of a touch display, the display can be a capacitive touch screen or a resistive touch screen, which supports single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations from one or more locations on the touch display at the same time, and the sensed touch operations are sent to the processor 140 for calculation and processing.
The communication unit 190 is configured to establish a connection with a cloud end through a network, thereby implementing a communication connection between the electronic device 100 and the cloud end, and is configured to receive and transmit data through the network.
Two cameras, such as a first camera and a second camera, can be arranged on the electronic device 100, and then detection of a backlight scene is realized through the two cameras so as to perform automatic switching of a backlight mode. In addition, the electronic device 100 may further include a plurality of cameras, such as a first camera and a plurality of second cameras, and set the overexposure parameters with different sizes for the plurality of second cameras to switch to the optimal backlight mode. Two cases are described below:
first, a total of two cameras, namely a first camera and a second camera, are disposed on the electronic device 100.
Fig. 2 is a schematic flow chart of a backlight mode automatic switching method according to an embodiment of the present invention, where the method includes:
and step S110, controlling the first camera to acquire a first image, controlling the second camera to overexpose to acquire a second image, and displaying the first image on an application interface of the electronic equipment.
That is to say, after the user opens the cameras of the electronic device 100, the first camera and the second camera enter the preview mode, that is, the first camera starts to capture the first image, and the second camera captures the second image, it should be noted that, since the two cameras are arranged side by side on the side of the electronic device 100 opposite to the screen, the distance between the two cameras is small, so the picture contents captured by the two cameras are substantially the same, and only the edge part of the image is different due to the distance between the two cameras.
In addition, the first image acquired by the first camera is displayed on an application interface of the electronic device for a user to check, and the second image acquired by the second camera is used for detection of a backlight scene, so that the whole detection operation is performed at the background of the electronic device 100, the display effect of the first image is not influenced, and the user experience is not influenced.
It should be noted that the first camera is to capture an image in a normal state, that is, parameters of the first camera are not specifically set, and the first camera captures an image in an automatic exposure mode or a normal exposure mode, for example. The parameter of the second camera is preset to be overexposure, so that the parameter of the second camera is set to be overexposure, because if the current scene is a backlight scene, the image quality of the image collected by the first camera is not clear due to backlight, the second camera is equivalent to overexposure processing on the image collected under the backlight scene due to the fact that the parameter is set to be overexposure, and the finally obtained image is clearer than the image collected by the first camera. Therefore, whether the current scene is a backlight scene or not and whether the acquired image is a backlight image or not can be automatically detected by comparing the definition of the images acquired by the first camera and the second camera.
Step S120, receiving and responding to the selected operation of the user on the first image displayed on the application interface to determine the target area on the first image and the second image.
Specifically, when a user takes a picture, a first image displayed on an application interface is clicked to select a region in which the user is interested, the region in which the user is interested is a target region on the first image, and since the second image is consistent with the first image in content, a region in which the second image is consistent with the target region on the first image is a target region of the second image. Fig. 3 is a schematic flow chart illustrating the sub-steps of step S120 of the backlight mode automatic switching method according to the embodiment of the present invention, where the step S120 includes:
step S121, performing matching alignment on the first image and the second image.
Specifically, the first image and the second image are simply matched and aligned, that is, the same pixel points on the first image and the second image are matched and aligned one by one.
Step S122, responding to the selected operation of the user on the first image displayed on the application interface to determine the target area on the first image.
Specifically, when a user clicks a certain point on the first image on the application interface, a region having the same attribute as the point selected by the user on the first image displayed on the application interface is determined as a target region of the first image according to a preset algorithm. The attribute is, for example, the color of the pixel point. For example, when the user wants to capture a "table" in the first image, the user clicks any point on the "table", and the electronic device 100 determines an area having an approximate color and an approximate texture to the point, such as the entire "table", as a target area in the first image. It should be noted that, in the embodiment of the present invention, the preset algorithm is a flood filling algorithm, or another algorithm capable of implementing the extraction area.
Step S123, determining a region on the second image aligned with the target region on the first image as a target region of the second image.
That is, since the first image and the second image have been matched and aligned before, when the target region on the first image is determined, the region on the second image aligned with the target region on the first image is the target region of the second image.
Step S130, respectively determining a first sharpness value of the target region on the first image and a second sharpness value of the target region on the second image.
Specifically, a mature definition evaluation algorithm is adopted to respectively calculate a first definition value of a target area on a first image and a second definition value of the target area on a second image.
Step S140, if the second sharpness value is greater than the first sharpness value, the mode of the electronic device is switched to the backlight mode.
Specifically, if the second definition value is greater than the first definition value, it is indicated that the definition of the image acquired by the second camera is superior to that of the image acquired by the first camera, and since the parameter preset for the second camera is overexposure, it is proved that the current scene should be shot clearly by using the overexposure parameter, and then it is proved that the current scene is a backlight scene. That is to say, the first image collected by the first camera is too dark in the whole target area due to the existence of highlight, and the image quality is not clear, and the second camera performs overexposure processing on the collected second image, so as to obtain a clearer second image. Therefore, when the second definition value is larger than the first definition value and indicates that the current scene is a backlight scene, the mode of the electronic device 100 is automatically switched to the backlight mode to take a picture, so that the user experience is improved.
Secondly, a plurality of cameras, namely a first camera and a plurality of second cameras, are arranged on the electronic device 100, the second cameras set overexposure parameters of different sizes, and each second camera can acquire a second image. That is, the electronic device 100 acquires a first image and a plurality of second images, and the electronic device 100 analyzes the plurality of second images to detect whether the current scene is a backlight scene and determine a preferred backlight mode.
Specifically, because the plurality of second cameras have the overexposure parameters with different sizes, after the acquired second images are subjected to overexposure processing with different degrees by the different second cameras, the plurality of second images will show different definitions. Meanwhile, multiple backlight modes are stored in the electronic device 100, and each backlight mode also has different backlight shooting parameters, so that pictures shot in a backlight scene are clearer. The step of associating the backlight mode with the second camera having substantially the same image resolution, that is, if one of the second resolution values is larger than the first resolution value, switching the mode of the electronic device to the backlight mode, may include:
firstly, selecting a second camera target second camera with the largest second definition value of a target area of a second image acquired by all second cameras.
Furthermore, if the current scene is a backlight scene, the mode of the electronic device 100 is switched to the backlight mode corresponding to the target second camera.
Since the second definition values of the target areas on the second images are calculated, it is clear which second camera's overexposure parameter the second image is subjected to is processed, and then the mode of the electronic device 100 is switched to the backlight mode substantially consistent with the overexposure parameter of the second camera, so that the finally acquired image is clearer.
Therefore, the embodiment of the invention provides an automatic backlight mode switching method, which detects whether a current scene is a backlight scene through two or more cameras, and automatically switches the mode of the electronic device 100 to the backlight mode when the current scene is determined to be the backlight scene, so that the user experience is improved.
Fig. 4 is a schematic diagram of functional modules of an automatic backlight mode switching apparatus 110 according to an embodiment of the present invention, which includes an acquisition module 111, an area determination module 112, a definition determination module 113, and a mode switching module 114.
And the acquisition module 111 is configured to control the first camera to acquire a first image, control the second camera to overexpose to acquire a second image, and display the first image on an application interface of the electronic device.
In the embodiment of the present invention, step S110 may be performed by the acquisition module 111.
And the area determining module 112 is used for receiving and responding to the selected operation of the user on the first image displayed on the application interface to determine the target area on the first image and the second image.
In an embodiment of the present invention, steps S120 to S123 may be performed by the area determination module 112.
A sharpness determining module 113, configured to determine a first sharpness value of the target region on the first image and a second sharpness value of the target region on the second image, respectively.
In the embodiment of the present invention, step S130 may be performed by the sharpness determining module 113.
A mode switching module 114, configured to switch the mode of the electronic device to an inverse light mode if the second sharpness value is greater than the first sharpness value.
In the embodiment of the present invention, step S140 may be performed by the mode switching module 114.
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by the processor 140, the method for automatically switching the backlight mode disclosed in the embodiment of the present invention is implemented.
In summary, embodiments of the present invention provide a method and an apparatus for automatically switching a backlight mode, an electronic device, and a computer-readable storage medium, where the method and the apparatus for automatically switching a backlight mode are applied to an electronic device, and the electronic device is provided with a first camera and a second camera, and the method includes: the user controls to start the first camera to collect a first image and control the second camera to collect a second image, and the collected first image is displayed on an application interface of the electronic equipment and parameters of the second camera are set to be overexposed. And then the user clicks the first image displayed on the application interface of the electronic equipment to determine the target areas on the first image and the second image, respectively calculates a first definition value of the target area on the first image and a second definition value of the target area on the second image, and if the second definition value is larger than the first definition value, the currently acquired image is a backlight image, the mode of the electronic equipment is switched to the backlight mode. Therefore, in the scheme, the first camera and the second camera are used for respectively collecting images, the definition of the images is compared and analyzed to automatically detect whether the current scene is a backlight scene, if the current scene is the backlight scene, the mode of the electronic equipment is automatically switched to the backlight mode, so that the backlight mode of the electronic equipment is automatically switched, and the user experience is improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (8)
1. A backlight mode automatic switching method is applied to electronic equipment, wherein the electronic equipment is provided with a first camera and a second camera, the first camera and the second camera are arranged on one side of the electronic equipment opposite to a screen side by side, and the method comprises the following steps:
controlling the first camera to acquire a first image, controlling the second camera to overexpose to acquire a second image, and displaying the first image on an application interface of the electronic equipment;
receiving and responding to the selected operation of a user on the first image displayed on an application interface, and carrying out matching alignment on the first image and the second image;
determining a target area on the first image in response to a user's selected operation on the first image displayed on an application interface;
determining a region on the second image that is aligned with a target region on the first image as a target region of the second image;
respectively determining a first definition value of a target area on the first image and a second definition value of the target area on the second image;
and if the second definition value is larger than the first definition value, switching the mode of the electronic equipment into the reverse light mode.
2. The method of claim 1, wherein the step of determining a target area on the first image in response to a user selected operation on the first image displayed on an application interface comprises:
and determining an area with the same attribute as a point selected by a user on a first image displayed on an application interface as a target area of the first image by adopting a preset algorithm.
3. The method according to claim 1, wherein there are a plurality of second cameras, each of the plurality of second cameras has different pre-set overexposure parameters, each of the plurality of second cameras acquires a second image, each of the plurality of second images corresponds to a second sharpness value,
if one second definition value is larger than the first definition value, the step of switching the mode of the electronic equipment to the reverse light mode comprises the following steps:
determining a second camera corresponding to the largest second definition value in all second definition values larger than the first definition value as a target second camera;
and switching the mode of the electronic equipment to a backlight mode corresponding to the target second camera.
4. The method of claim 1, wherein the steps of determining a first sharpness value for the target region on the first image and a second sharpness value for the target region on the second image, respectively, comprise:
and respectively determining a first definition value of the target area on the first image and a second definition value of the target area on the second image by adopting a definition evaluation algorithm.
5. The utility model provides a backlight mode automatic switching control equipment, is applied to electronic equipment, electronic equipment is provided with first camera and second camera, its characterized in that, first camera with the second camera set up side by side in electronic equipment is for one side of screen, the device includes:
the acquisition module is used for controlling the first camera to acquire a first image, controlling the second camera to overexpose to acquire a second image and displaying the first image on an application interface of the electronic equipment;
the area determining module is used for receiving and responding to the selected operation of a user on the first image displayed on an application interface, and carrying out matching alignment on the first image and the second image; determining a target area on the first image in response to a user's selected operation on the first image displayed on an application interface; determining a region on the second image that is aligned with a target region on the first image as a target region of the second image;
a definition determining module, configured to determine a first definition value of a target region on the first image and a second definition value of the target region on the second image, respectively;
and the mode switching module is used for switching the mode of the electronic equipment into the inverse light mode if the second definition value is larger than the first definition value.
6. The apparatus according to claim 5, wherein there are a plurality of said second cameras, each of said plurality of said second cameras having preset different overexposure parameters, each of said second cameras acquiring a second image, each of said second images corresponding to a second sharpness value,
the mode switching module is specifically configured to:
determining a second camera corresponding to the largest second definition value in all second definition values larger than the first definition value as a target second camera;
and switching the mode of the electronic equipment to a backlight mode corresponding to the target second camera.
7. An electronic device, wherein a first camera and a second camera are disposed on the electronic device, the electronic device further comprises a processor and a memory, the memory is used for storing a computer program, and the processor is used for executing the computer program stored in the memory to implement the backlight mode automatic switching method according to any one of claims 1 to 4.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the backlight mode automatic switching method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810702761.XA CN108881636B (en) | 2018-06-30 | 2018-06-30 | Backlight mode automatic switching method and device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810702761.XA CN108881636B (en) | 2018-06-30 | 2018-06-30 | Backlight mode automatic switching method and device, electronic equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108881636A CN108881636A (en) | 2018-11-23 |
CN108881636B true CN108881636B (en) | 2021-05-04 |
Family
ID=64297679
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810702761.XA Active CN108881636B (en) | 2018-06-30 | 2018-06-30 | Backlight mode automatic switching method and device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108881636B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112506464B (en) * | 2020-12-14 | 2024-10-18 | 广州极飞科技股份有限公司 | Equipment display method, device, electronic equipment, system and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102883099A (en) * | 2011-07-14 | 2013-01-16 | 中国移动通信有限公司 | Anti-shake method and device for shooting |
CN105430292A (en) * | 2015-12-03 | 2016-03-23 | 上海卓易科技股份有限公司 | Method and device for improving effect of photographing against light |
CN105872357A (en) * | 2015-02-09 | 2016-08-17 | 佳能株式会社 | Image processing method and device system |
CN106027912A (en) * | 2016-07-15 | 2016-10-12 | 深圳市金立通信设备有限公司 | Shooting mode selection method and terminal |
CN107592453A (en) * | 2017-09-08 | 2018-01-16 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015031743A (en) * | 2013-07-31 | 2015-02-16 | キヤノン株式会社 | Exposure control device, control method for the same, and control program, and imaging device |
-
2018
- 2018-06-30 CN CN201810702761.XA patent/CN108881636B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102883099A (en) * | 2011-07-14 | 2013-01-16 | 中国移动通信有限公司 | Anti-shake method and device for shooting |
CN105872357A (en) * | 2015-02-09 | 2016-08-17 | 佳能株式会社 | Image processing method and device system |
CN105430292A (en) * | 2015-12-03 | 2016-03-23 | 上海卓易科技股份有限公司 | Method and device for improving effect of photographing against light |
CN106027912A (en) * | 2016-07-15 | 2016-10-12 | 深圳市金立通信设备有限公司 | Shooting mode selection method and terminal |
CN107592453A (en) * | 2017-09-08 | 2018-01-16 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN108881636A (en) | 2018-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11563897B2 (en) | Image processing method and apparatus which determines an image processing mode based on status information of the terminal device and photographing scene information | |
US11722770B2 (en) | Image processing device, method of processing image, image processing program, and imaging device | |
WO2017215501A1 (en) | Method and device for image noise reduction processing and computer storage medium | |
CN106937045B (en) | Display method of preview image, terminal equipment and computer storage medium | |
CN112565589B (en) | Photographing preview method and device, storage medium and electronic equipment | |
CN107820021B (en) | Automatic image capture | |
WO2022166944A1 (en) | Photographing method and apparatus, electronic device, and medium | |
CN108777765B (en) | Method and device for acquiring full-definition image and electronic equipment | |
JP2008541509A (en) | Method and apparatus for incorporating iris color in red-eye correction | |
TWI549504B (en) | Image capturing device and auto-focus compensation method thereof | |
CN106412423A (en) | Focusing method and device | |
TW201902204A (en) | Power reduction in a multi-sensor camera device by on-demand sensors activation | |
CN105391940B (en) | A kind of image recommendation method and device | |
WO2019120018A1 (en) | Photograph processing method and apparatus, and storage medium and electronic device | |
CN112351271A (en) | Camera shielding detection method and device, storage medium and electronic equipment | |
KR102272310B1 (en) | Method of processing images, Computer readable storage medium of recording the method and an electronic apparatus | |
WO2015196681A1 (en) | Picture processing method and electronic device | |
CN108881636B (en) | Backlight mode automatic switching method and device, electronic equipment and computer readable storage medium | |
CN108600628B (en) | Image capturing method and device, terminal and readable medium | |
CN106851099B (en) | A kind of method and mobile terminal of shooting | |
CN107105158B (en) | Photographing method and mobile terminal | |
CN109274861B (en) | Multi-image sensor switching method, corresponding terminal and storage medium | |
CN112653841B (en) | Shooting method and device and electronic equipment | |
WO2017071560A1 (en) | Picture processing method and device | |
JP5972947B2 (en) | Method for supporting user photographing, portable electronic device, and computer program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |