CN114286004A - Focusing method, shooting device, electronic equipment and medium - Google Patents

Focusing method, shooting device, electronic equipment and medium Download PDF

Info

Publication number
CN114286004A
CN114286004A CN202111633491.XA CN202111633491A CN114286004A CN 114286004 A CN114286004 A CN 114286004A CN 202111633491 A CN202111633491 A CN 202111633491A CN 114286004 A CN114286004 A CN 114286004A
Authority
CN
China
Prior art keywords
area
camera
focusing
brightness
preview image
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
CN202111633491.XA
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111633491.XA priority Critical patent/CN114286004A/en
Publication of CN114286004A publication Critical patent/CN114286004A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses focusing method, shooting device, electronic equipment and medium, which belong to the technical field of camera shooting, and the method comprises the following steps: acquiring a preview image acquired by a camera, wherein the brightness of a first area in the preview image is greater than that of a second area, and the second area is an image area except the first area in the preview image; and controlling the camera to focus on the first area.

Description

Focusing method, shooting device, electronic equipment and medium
Technical Field
The application belongs to the technical field of camera shooting, and particularly relates to a focusing method, a shooting device, electronic equipment and a medium.
Background
With the increase of user demands, the functions of electronic devices are more and more. The shooting function of the electronic equipment is the basic function of the electronic equipment, and the shooting performance directly determines the performance of the electronic equipment. Meanwhile, the user needs not only long-range shooting but also close-range shooting such as self-timer shooting using the electronic device.
The electronic device related to the related art performs focusing in an automatic focusing manner, and performs shooting after focusing is completed. However, in an actual using process, since a user may be in a low-light environment, a situation that a face contour is blurred due to insufficient face brightness exists, and then a camera of the electronic device is difficult to acquire accurate focusing information according to a blurred face, and finally focusing fails, so that normal shooting is affected.
Of course, there is a problem that focusing fails frequently when shooting in other low light environments, not only in human face shooting.
Disclosure of Invention
An object of the embodiments of the present application is to provide a focusing method, a photographing device, an electronic device, and a medium, which can solve a problem that the electronic device is difficult to focus on a photographed object in a low-light environment.
In a first aspect, an embodiment of the present application provides a focusing method, including:
acquiring a preview image acquired by a camera, wherein the brightness of a first area in the preview image is greater than that of a second area, and the second area is an image area except the first area in the preview image;
and controlling the camera to focus on the first area.
In a second aspect, an embodiment of the present application provides a shooting device, including:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a preview image acquired by a camera, the brightness of a first area in the preview image is greater than that of a second area, and the second area is an image area except the first area in the preview image;
and the control module is used for controlling the camera to focus on the first area.
In a third aspect, an embodiment of the present application provides an electronic device, which includes the above-described shooting apparatus.
In a fourth aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fifth aspect, the present application provides a readable storage medium, on which a computer program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a sixth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a seventh aspect, the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, the preview image acquired by the camera is acquired, the preview image is divided into a first area with higher brightness and a second area with lower brightness according to the brightness, and after the first area of the preview image is identified, the camera is controlled to focus the first area with higher brightness as a focusing area.
When shooting is carried out in a weak light environment, the first area with higher brightness is selected as a focusing area for focusing, the focusing area is easier to determine due to the fact that the first area is higher in brightness, and then focusing can be easier to succeed by taking the first area as the focusing area. Therefore, the focusing method disclosed by the embodiment of the application can realize focusing under a low-light environment more easily. Therefore, the focusing method disclosed by the embodiment of the application can solve the problem that the electronic equipment is difficult to focus the shot object in a low-light environment.
Drawings
Fig. 1 is a schematic flowchart of a focusing method according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating another focusing method provided in an embodiment of the present application;
FIG. 3 is a flowchart illustrating another focusing method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a shooting device provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in other sequences than those illustrated or otherwise described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense to distinguish one object from another, and not necessarily to limit the number of objects, e.g., the first object may be one or more. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
A focusing method provided in the embodiments of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 illustrates a focusing method provided by an embodiment of the present invention, which may be performed by an electronic device, and the electronic device may include: the system comprises a server and/or a terminal device, wherein the terminal device can be a mobile phone, a tablet computer, a vehicle-mounted terminal and the like. The method may be performed by software or hardware installed in an electronic device, the method comprising the steps of:
s104: and acquiring a preview image acquired by the camera.
In this embodiment of the application, the preview image may be acquired by a camera of the electronic device. The preview image may include a first area and a second area, the first area in the preview image having a brightness greater than a brightness of the second area in the preview image, the second area being an image area of the preview image other than the first area.
Specifically, the first region and the second region in the preview image may be divided by a preset first luminance value by presetting the first luminance value, for example, a region in the preview image having a luminance greater than or equal to the first luminance value is the first region, and a region in the preview image having a luminance less than the first luminance value is the second region. The designer can reasonably determine the first brightness value according to the model and the parameters of the camera, and the specific size of the first brightness value is not limited in the embodiment of the application.
In one implementation, the electronic device obtains a preview image acquired by a camera, where the preview image may include a face image. The preview image may also include a landscape image in the preview mode, and the like, and the electronic device divides the face image or the landscape image in the preview mode acquired by the camera into luminance regions, and takes a region with higher luminance in the preview image, such as the face image in the preview mode, the landscape image in the preview mode, and the like, as a first region, and takes other image regions except the first region as a second region, and the luminance of the first region is greater than that of the second region.
In the first embodiment, in a low-light environment, a user wants to shoot a landscape picture, the user opens a camera of the electronic device, the camera is enabled to be directed at the landscape to be shot to obtain a preview image, the electronic device can acquire a landscape image in a preview mode collected by the camera, the landscape image in the preview mode has a first landscape area and a second landscape area with different brightness, the second landscape area is a landscape area except the first landscape area in the landscape image, the brightness of the first landscape area is greater than that of the second landscape area, the first landscape area can be used as the first area, and the second landscape area is used as the second area. In a low-light environment, when a landscape is shot, a first landscape area with higher brightness is searched in a landscape image in a preview mode, the first landscape area is higher in brightness, so that focusing is easier to achieve successfully, the first landscape area is used as a focusing area for focusing, and the whole landscape to be shot can be shot after the focusing is successful.
In the second embodiment, in a low-light environment, a user wants to use a camera to perform self-shooting, the user opens the camera of the electronic device to collect a face image in a preview mode, and the brightness of the face contour is insufficient due to weak light, so that the contour of the face image in the preview mode is blurred, but in this case, the light reflection capability of the eye region is higher than that of other face regions except the eye region, so the eye region has higher brightness and can be used as the first region, and the other face regions are used as the second region.
S106: and controlling the camera to focus on the first area.
In the step, the first area with higher brightness is used as a focusing area for focusing. The first area may be the first scenery area or the eye area mentioned in the different embodiments above, and the electronic device may control the camera to focus on the first scenery area or the eye area. Specifically, the electronic device can control the camera to lock the focusing areas on the high-brightness areas by identifying the first areas with higher brightness, namely the first landscape areas or the eye areas, so that focusing of the whole shooting process can be realized by focusing the high-brightness areas, and finally the shooting definition in a low-light environment can be improved.
For the first embodiment described above, after it is determined that the first landscape area with higher brightness is the first area and the second landscape area with lower brightness is the second area, the electronic device controls the motor to start, so that the motor controls the lens of the camera to move, and then the first landscape area is used as the focusing area for focusing, so that focusing of the first landscape area is easier to achieve in a low-light environment, and the camera of the electronic device can shoot a clearer landscape picture.
For the second embodiment, when the eye region with high brightness is determined to be the first region, the electronic device controls the motor to start, so that the motor controls the lens of the camera to move, and the camera focuses by using the eye region as a focusing region, thereby easily realizing successful focusing in a low-light environment, and further facilitating the electronic device to take a relatively clear face picture in the low-light environment.
The embodiment of the invention discloses a focusing method different from a conventional focusing mode. According to the scheme, the first area with higher brightness is selected as the focusing area for focusing when shooting is carried out in a low-light environment, the focusing area is easier to determine due to the fact that the first area is higher in brightness, and then focusing can be easier and successful by taking the first area as the focusing area. Therefore, the focusing method disclosed by the embodiment of the application can realize focusing under a low-light environment more easily. Therefore, the focusing method disclosed by the embodiment of the application can solve the problem that the electronic equipment is difficult to focus the shot object in a low-light environment.
In an application scene, in a low-light environment, when a user takes a picture, the outline of a face image collected by a camera on electronic equipment is fuzzy, at the moment, the camera can identify the eye region of the face with high brightness, so that the electronic equipment can control the camera to focus on the eye region, and the focusing on the whole face region is realized. Therefore, the focusing method disclosed by the application can solve the problem that the electronic equipment is difficult to focus due to insufficient human face brightness in a low-light environment.
As described above, in the actual focusing process, it is necessary to acquire the preview image first, and then determine the first region with higher brightness in the preview image. However, due to the low brightness of the light, it may be difficult for the camera to acquire a preview image that is as desired. Based on this, please refer to fig. 2, in a further alternative, before S104, the focusing method disclosed in the embodiment of the present application may further include:
s102: and controlling the light supplementing element to supplement light under the condition that the brightness of the shooting environment is less than a preset brightness threshold value.
Here, when the brightness of the shooting environment is too low to affect the acquisition of the preview image, the light supplement element is controlled to implement light supplement so as to facilitate the acquisition of the preview image. It should be noted that the light supplement direction of the light supplement element is the same as the shooting direction of the camera, that is, the light supplement element should supplement light to the object to be shot, so as to more easily acquire the preview image.
The electronic equipment can be configured with a brightness sensor, the brightness sensor is used for detecting the brightness of the environment, before the electronic equipment acquires the preview image collected by the camera, the electronic equipment detects the brightness of the surrounding shooting environment through the brightness sensor, then, under the condition that the brightness of the shooting environment is smaller than a preset brightness threshold, the light supplement of the light supplement element is controlled, and the preset brightness threshold can be set in advance according to the performance of the electronic equipment by a person skilled in the art and can also be determined according to multiple experiments.
In an application scene, under the condition that the brightness of a shooting environment is smaller than a preset brightness threshold value, an electronic device can utilize a light supplementing element to supplement light, the light supplementing element can be a screen, a flash lamp or an external light supplementing device of the electronic device, of course, the light supplementing direction of the light supplementing element needs to be consistent with the shooting direction of a camera of the electronic device, and then effective light supplementing can be carried out on a shot object, and further the collection of subsequent preview images is facilitated.
In an alternative embodiment, S102 may include adjusting the brightness of the screen, the orientation of the screen being in accordance with the shooting direction. Specifically, adjusting the screen brightness is achieved by increasing the screen brightness. Under the condition, the increase of the screen brightness is more beneficial to realizing light supplement at a short distance, so that the light supplement is realized by adjusting the screen brightness, and the application in a close-range shooting (for example, self-shooting) scene is more beneficial.
In another alternative embodiment, S102 may include controlling flash fill light, the flash being oriented in the same direction as the shooting direction. Specifically, the flash light supplementary lighting is controlled by turning on the flash light or increasing the power of the flash light. Under the condition, the flash lamp is started or the brightness of the flash lamp is increased, so that the light supplement at a longer distance is more favorably realized, and the application under a long-range shooting scene is more favorably realized.
Specifically, the electronic device controls the light supplement element to supplement light, and the electronic device can supplement light by adjusting the brightness of the screen, controlling the on and off of the flash lamp, controlling the power of the flash lamp, or controlling the on and off of the peripheral lighting device.
Optionally, when the brightness of the surrounding environment is weak and the face of the user is far away from the screen, after the light is supplemented to the face of the user through the screen of the electronic device, the camera collects preview images more easily, but face images collected by the camera are still fuzzy, at this time, compared with the face area, the eye area of the user has stronger light reflection capability to the screen, so that the electronic device can control the camera to focus on the eye area, and finally the success rate of focusing the face by the camera of the electronic device is improved to a certain extent.
Optionally, in a low-light environment, when a user uses a rear camera of the electronic device to shoot a certain landscape, the electronic device may control the flash lamp to turn on, so as to implement light supplement of the flash lamp to the landscape, and further enable the camera to more easily acquire a preview image, and further implement that the brightness of a certain landscape area is higher than that of other landscape areas, and therefore, a basis is provided for the electronic device to control the camera to successfully focus by using light supplement energy of the light supplement element.
In a further technical solution, please refer to fig. 3, S106 may include the following steps:
s1061: and controlling the camera to focus by taking the first sub-area as a focusing area.
In S1061, the first region may be further subdivided, and the first region may include a first sub-region and a second sub-region, and the brightness of the first sub-region is greater than that of the second sub-region. The second sub-area is an image area of the first area other than the first sub-area.
Alternatively, the first sub-region and the second sub-region in the first region may be divided by a preset second luminance value by presetting the second luminance value, for example, a region having luminance greater than or equal to the second luminance value in the first region is the first sub-region, and a region having luminance less than the second luminance value in the first region is the second sub-region. Note that the second luminance value is larger than the first luminance value.
In this embodiment, the camera can be controlled to further focus by taking the first sub-area with higher brightness in the first area as the focusing area, and this multi-level mode of taking the highlight area as the focusing area can further improve the success rate of focusing in a low-light environment.
Taking a photographed person as an example, when a user takes a self-portrait and the surrounding light is weak, if the eye region of the user is the first region, the eyeball region of the eye region can reflect light better, so the eyeball region brightness of the eye region is higher, and the eyeball region is the first sub-region.
As described above, in S106, the camera is controlled to focus on the first area. There are various specific focusing manners, for example, S106 may include: and controlling the camera to carry out phase focusing or contrast focusing by taking the first area as a focusing area.
According to the focusing method provided by the embodiment of the application, the execution main body can be a shooting device. The embodiment of the present application describes a photographing apparatus provided in the embodiment of the present application by taking a focusing method executed by the photographing apparatus as an example.
Based on the focusing method disclosed in the embodiment of the present application, the embodiment of the present application further discloses a shooting device 500, and as shown in fig. 4, the disclosed shooting device 500 includes an obtaining module 510 and a control module 520.
The obtaining module 510 is configured to obtain a preview image acquired by a camera, where brightness of a first region in the preview image is greater than brightness of a second region, where the second region is an image region of the preview image except the first region.
And a control module 520, configured to control the camera to focus on the first area.
In a case that the first area includes a first sub-area and a second sub-area, the control module 520 is configured to control the camera to focus using the first sub-area as a focusing area.
Optionally, the control module 520 is further configured to control the light supplementing element to supplement light when the brightness of the shooting environment is less than a preset brightness threshold, where a light supplementing direction of the light supplementing element is consistent with a shooting direction of the camera.
Optionally, the control module 520 is further configured to adjust the screen brightness.
Optionally, the control module 520 is further configured to control flash light supplementary lighting.
Optionally, the control module 520 is further configured to control the camera to perform phase focusing or contrast focusing with the first region as a focusing region.
The photographing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The shooting device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 3, and is not described here again to avoid repetition.
Based on the shooting device disclosed in the embodiment of the application, the embodiment of the application further discloses an electronic device, and the electronic device comprises the shooting device disclosed in the embodiment of the application.
The electronic device disclosed in the embodiment of the application may be a terminal, or may be other devices besides the terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, an electronic book reader, a game machine, smart glasses, a smart bracelet, an in-vehicle electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook, or a Personal Digital Assistant (PDA), and the like, and the specific type of the electronic Device is not limited in the embodiments of the present application.
In a further technical scheme, the electronic equipment can further comprise a screen, a flash lamp and a controller, wherein the flash lamp is arranged opposite to the screen, the controller is respectively connected with the screen and the flash lamp, the controller controls the brightness adjustment of the screen in a self-photographing mode, and the orientation of the screen is consistent with the photographing direction; the controller controls the flash lamp to supplement light in a long-range shooting mode, and the direction of the flash lamp is consistent with the shooting direction.
Optionally, referring to fig. 5, an electronic device 600 is further provided in an embodiment of the present application, and includes a memory 610 and a processor 620, where the memory 610 stores a program or an instruction that can be executed on the processor 620, and when the program or the instruction is executed by the processor 620, the steps of the foregoing focusing method embodiment are implemented, and the same technical effect can be achieved, and details are not repeated here to avoid repetition.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 710 is configured to obtain a preview image acquired by a camera, where the brightness of a first region in the preview image is greater than the brightness of a second region, and the second region is an image region except the first region in the preview image; and controlling the camera to focus on the first area.
In an implementation manner, the processor 710 is configured to control the light supplement element to supplement light when the brightness of the shooting environment is less than a preset brightness threshold, where a light supplement direction of the light supplement element is consistent with a shooting direction of the camera.
In one implementation, the processor 710 is configured to adjust the brightness of the screen, where the orientation of the screen is consistent with the shooting direction; or controlling the flash lamp to supplement light, wherein the direction of the flash lamp is consistent with the shooting direction.
In one implementation, the processor 710 is configured to control the camera to focus with a first sub-area as a focusing area, where the first area includes the first sub-area, brightness of the first sub-area is higher than brightness of a second sub-area, and the second sub-area is an image area in the first area except for the first sub-area.
In one implementation, the processor 710 is configured to control the camera to perform phase focusing or contrast focusing with the first region as a focusing region.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics Processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a first storage area for storing a program or an instruction and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like. Further, the memory 709 may include volatile memory or nonvolatile memory, or the memory 709 may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 709 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor, which primarily handles operations involving the operating system, user interface, and applications, and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing focusing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read only memory ROM, a random access memory RAM, a magnetic or optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above focusing method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing focusing method embodiments, and achieve the same technical effects, and in order to avoid repetition, details are not described here again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A focusing method, comprising:
acquiring a preview image acquired by a camera, wherein the brightness of a first area in the preview image is greater than that of a second area, and the second area is an image area except the first area in the preview image;
and controlling the camera to focus on the first area.
2. The focusing method according to claim 1, wherein the preview image includes a face image, and the first region includes an eye region.
3. The focusing method according to claim 1, wherein before the obtaining of the preview image captured by the camera, the method further comprises:
and under the condition that the brightness of the shooting environment is smaller than a preset brightness threshold value, controlling a light supplementing element to supplement light, wherein the light supplementing direction of the light supplementing element is consistent with the shooting direction of the camera.
4. The focusing method of claim 3, wherein the controlling of the light supplement element to supplement light comprises:
adjusting the brightness of a screen, wherein the orientation of the screen is consistent with the shooting direction;
or controlling the flash lamp to supplement light, wherein the direction of the flash lamp is consistent with the shooting direction.
5. The focusing method of claim 1, wherein the controlling the camera to focus on the first area comprises:
the camera is controlled to focus by taking a first sub-area as a focusing area, the first area comprises a first sub-area, the brightness of the first sub-area is greater than that of a second sub-area, and the second sub-area is an image area of the first area except the first sub-area.
6. The focusing method of claim 1, wherein the controlling the camera to focus on the first area comprises:
and controlling the camera to carry out phase focusing or contrast focusing by taking the first area as a focusing area.
7. A camera, comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a preview image acquired by a camera, the brightness of a first area in the preview image is greater than that of a second area, and the second area is an image area except the first area in the preview image;
and the control module is used for controlling the camera to focus on the first area.
8. An electronic apparatus characterized by comprising the photographing apparatus according to claim 7.
9. The electronic device of claim 8, further comprising a screen, a flash disposed opposite the screen, and a controller connected to the screen and the flash, respectively,
the controller controls the brightness adjustment of the screen in a self-photographing mode, and the orientation of the screen is consistent with the photographing direction;
the controller controls the flash lamp to supplement light in a long-range shooting mode, and the direction of the flash lamp is consistent with the shooting direction.
10. A readable storage medium, having stored thereon a computer program or instructions, which, when being executed by a processor, carries out the steps of the focusing method according to any one of claims 1 to 6.
CN202111633491.XA 2021-12-28 2021-12-28 Focusing method, shooting device, electronic equipment and medium Pending CN114286004A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111633491.XA CN114286004A (en) 2021-12-28 2021-12-28 Focusing method, shooting device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111633491.XA CN114286004A (en) 2021-12-28 2021-12-28 Focusing method, shooting device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN114286004A true CN114286004A (en) 2022-04-05

Family

ID=80877601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111633491.XA Pending CN114286004A (en) 2021-12-28 2021-12-28 Focusing method, shooting device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114286004A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116456199A (en) * 2023-06-16 2023-07-18 Tcl通讯科技(成都)有限公司 Shooting light supplementing method, shooting light supplementing device, electronic equipment and computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013058823A (en) * 2011-09-07 2013-03-28 Casio Comput Co Ltd Image processing device, image processing method and program
US20150358549A1 (en) * 2014-06-09 2015-12-10 Qualcomm Incorporated Image capturing parameter adjustment in preview mode
CN105657262A (en) * 2015-12-31 2016-06-08 青岛海信移动通信技术股份有限公司 Image processing method and apparatus
CN106231187A (en) * 2016-07-29 2016-12-14 维沃移动通信有限公司 A kind of method shooting image and mobile terminal
CN106331505A (en) * 2016-09-30 2017-01-11 西安易朴通讯技术有限公司 Shooting method and device
WO2019105254A1 (en) * 2017-11-30 2019-06-06 Oppo广东移动通信有限公司 Background blur processing method, apparatus and device
CN110113536A (en) * 2019-05-17 2019-08-09 Oppo广东移动通信有限公司 A kind of screen light compensation method, device, storage medium and intelligent terminal
WO2020038109A1 (en) * 2018-08-22 2020-02-27 Oppo广东移动通信有限公司 Photographing method and device, terminal, and computer-readable storage medium
CN113766125A (en) * 2019-09-29 2021-12-07 Oppo广东移动通信有限公司 Focusing method and device, electronic equipment and computer readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013058823A (en) * 2011-09-07 2013-03-28 Casio Comput Co Ltd Image processing device, image processing method and program
US20150358549A1 (en) * 2014-06-09 2015-12-10 Qualcomm Incorporated Image capturing parameter adjustment in preview mode
CN105657262A (en) * 2015-12-31 2016-06-08 青岛海信移动通信技术股份有限公司 Image processing method and apparatus
CN106231187A (en) * 2016-07-29 2016-12-14 维沃移动通信有限公司 A kind of method shooting image and mobile terminal
CN106331505A (en) * 2016-09-30 2017-01-11 西安易朴通讯技术有限公司 Shooting method and device
WO2019105254A1 (en) * 2017-11-30 2019-06-06 Oppo广东移动通信有限公司 Background blur processing method, apparatus and device
WO2020038109A1 (en) * 2018-08-22 2020-02-27 Oppo广东移动通信有限公司 Photographing method and device, terminal, and computer-readable storage medium
CN110113536A (en) * 2019-05-17 2019-08-09 Oppo广东移动通信有限公司 A kind of screen light compensation method, device, storage medium and intelligent terminal
CN113766125A (en) * 2019-09-29 2021-12-07 Oppo广东移动通信有限公司 Focusing method and device, electronic equipment and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨明伟;黄永东;常霞: "基于SML特征检测的RPCA域多聚焦图像融合", 计算机工程与应用, 21 November 2016 (2016-11-21) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116456199A (en) * 2023-06-16 2023-07-18 Tcl通讯科技(成都)有限公司 Shooting light supplementing method, shooting light supplementing device, electronic equipment and computer readable storage medium
CN116456199B (en) * 2023-06-16 2023-10-03 Tcl通讯科技(成都)有限公司 Shooting light supplementing method, shooting light supplementing device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN109167931B (en) Image processing method, device, storage medium and mobile terminal
CN103888683A (en) Mobile terminal and shooting method thereof
KR20120022512A (en) Electronic camera, image processing apparatus, and image processing method
CN109040524B (en) Artifact eliminating method and device, storage medium and terminal
CN104509092B (en) Control the method and related computing devices and computer-readable recording medium of camera
CN108513069B (en) Image processing method, image processing device, storage medium and electronic equipment
CN113840070B (en) Shooting method, shooting device, electronic equipment and medium
CN112333382B (en) Shooting method and device and electronic equipment
CN112422798A (en) Photographing method and device, electronic equipment and storage medium
CN111277758A (en) Photographing method, terminal and computer-readable storage medium
CN108259767B (en) Image processing method, image processing device, storage medium and electronic equipment
CN114286004A (en) Focusing method, shooting device, electronic equipment and medium
CN112511743B (en) Video shooting method and device
CN112839166B (en) Shooting method and device and electronic equipment
CN112954212A (en) Video generation method, device and equipment
CN113497880A (en) Method for shooting image and electronic equipment
CN108495038B (en) Image processing method, image processing device, storage medium and electronic equipment
CN111225144A (en) Video shooting method and device, electronic equipment and computer storage medium
CN115484383B (en) Shooting method and related device
CN115278084A (en) Image processing method, image processing device, electronic equipment and storage medium
CN112383708B (en) Shooting method and device, electronic equipment and readable storage medium
CN111654623B (en) Photographing method and device and electronic equipment
CN112367464A (en) Image output method and device and electronic equipment
CN106550183A (en) A kind of image pickup method and device
CN114915730B (en) Shooting method and shooting device

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