CN110418064B - Focusing method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN110418064B
CN110418064B CN201910829143.6A CN201910829143A CN110418064B CN 110418064 B CN110418064 B CN 110418064B CN 201910829143 A CN201910829143 A CN 201910829143A CN 110418064 B CN110418064 B CN 110418064B
Authority
CN
China
Prior art keywords
image
focusing
preview image
face
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910829143.6A
Other languages
Chinese (zh)
Other versions
CN110418064A (en
Inventor
张兴华
蔚琛
林倩霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910829143.6A priority Critical patent/CN110418064B/en
Publication of CN110418064A publication Critical patent/CN110418064A/en
Application granted granted Critical
Publication of CN110418064B publication Critical patent/CN110418064B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The disclosure provides a focusing method, a focusing device, an electronic device and a storage medium. The method provided by the embodiment comprises the following steps: the method comprises the steps of firstly obtaining a preview image, wherein the preview image is an image acquired through electronic equipment, then judging whether a preset target image exists in the preview image, and if so, determining the area of the preset target image in the preview image as a focusing area for focusing. By the method, the specific target object can be focused, so that the specific target has a better shooting effect in the shot image, and further the personalized shooting requirement of the user is met.

Description

Focusing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a focusing method and apparatus, an electronic device, and a storage medium.
Background
With the development of electronic technology, the photographing function has become one of the main functions of terminal equipment (e.g., mobile phone).
At present, when a person is photographed by using a mobile phone photographing function, one or more faces are generally recognized in a preview image, and a current focusing mode is detected as face focusing. Then, focusing operation is carried out on one face area in the preview image, so that the shot image can have a good focusing effect.
However, in the focusing method in the prior art, the focusing area is usually determined according to the area of the face area or the position where the face area is located, and the targeted focusing cannot be performed.
Disclosure of Invention
The disclosure provides a focusing method, a focusing device, an electronic device and a storage medium, so as to realize focusing on a specific target object, thereby enabling the specific target to have a better shooting effect in a shot image, and further meeting the personalized shooting requirements of a user.
In a first aspect, the present disclosure provides a focusing method, including:
acquiring a preview image, wherein the preview image is an image acquired by electronic equipment;
judging whether a preset target image exists in the preview image or not;
and if so, determining the area of the preset target image in the preview image as a focusing area for focusing.
In one possible design, the determining whether a preset target image exists in the preview image includes:
and judging whether a preset face image exists in the preview image.
In a possible design, the preset face image is an authentication face image stored in the electronic device.
In a possible design, the determining whether a preset face image exists in the preview image includes:
and matching each face in the preview image with the preset face image, and judging whether the matching is successful.
In a possible design, if the preview image does not have the preset face image, judging whether a plurality of face images exist in the preview image;
if the judgment result is yes, determining the area where the face image with the largest image area or the face image with the middle position is located as a focusing area for focusing.
In one possible design, after determining the focusing area, the method further includes:
performing photometry on the focusing area to acquire photometric data;
and carrying out image processing on the face image in the focusing area according to the photometric data.
In one possible design, before the determining that the area of the preset target image in the preview image is located is a focusing area for focusing, the method further includes:
determining the priority of each authentication face image, wherein the preset face image comprises a plurality of authentication face images;
and when a plurality of the authentication face images exist in the preview image, determining one authentication face image as the focusing area according to the priority.
In one possible design, the priority order is determined according to the corresponding gender of the authentication face image.
In a second aspect, the present disclosure also provides a focusing apparatus, 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, and the preview image is an image acquired by electronic equipment;
the judging module is used for judging whether a preset target image exists in the preview image or not;
and the processing module is used for determining the area of the preset target image in the preview image as a focusing area for focusing.
In a possible design, the determining module is specifically configured to:
and judging whether a preset face image exists in the preview image.
In a possible design, the preset face image is an authentication face image stored in the electronic device.
In a possible design, the determining module is specifically configured to:
and matching each face in the preview image with the preset face image, and judging whether the matching is successful.
In a possible design, if the preview image does not have the preset face image, the determining module is further configured to determine whether a plurality of face images exist in the preview image;
if the judgment result is yes, the processing module is further configured to determine that the area where the face image with the largest image area or the face image with the centered position is located is used as a focusing area for focusing.
In a possible design, the processing module is further configured to perform photometry on the focusing area to obtain photometry data; and
and carrying out image processing on the face image in the focusing area according to the photometric data.
In one possible design, the processing module is further configured to determine a priority order of each of the authentication face images, where the preset face image includes a plurality of authentication face images; and
and when a plurality of the authentication face images exist in the preview image, determining one authentication face image as the focusing area according to the priority.
In one possible design, the priority order is determined according to the corresponding gender of the authentication face image.
In a third aspect, the present disclosure also provides an electronic device, including:
a processing device; and the number of the first and second groups,
storage means for storing executable instructions of the processing means;
wherein the processing device is configured to perform any one of the possible focusing methods of the first aspect via execution of the executable instructions.
In a fourth aspect, the disclosed embodiments also provide a storage medium, on which a computer program is stored, where the program, when executed by a processing device, implements any one of the possible focusing methods in the first aspect.
The disclosure provides a focusing method, a device, an electronic device and a storage medium, which are characterized in that a preview image is obtained first, an area of a preset target image in the preview image is determined, and then the determined area is used as a focusing area for focusing to realize focusing of a specific target object, so that the specific target has a better shooting effect in a shot image, and further, the personalized shooting requirements of a user are met.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a diagram illustrating an application scenario of a focusing method according to an exemplary embodiment of the present disclosure;
FIG. 2 is an interface display diagram illustrating a focusing method according to an example embodiment of the present disclosure;
FIG. 3 is a flow chart diagram illustrating a focusing method according to an example embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating a focusing method according to another example embodiment of the present disclosure;
FIG. 5 is a schematic flow diagram illustrating a focusing apparatus according to an example embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device shown in the present disclosure according to an example embodiment.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
Fig. 1 is a view of an application scenario of a focusing method according to an exemplary embodiment of the present disclosure, and as shown in fig. 1, the focusing method provided in this embodiment may be applied to a scenario in which a plurality of persons are photographed (for example, a self-portrait) by using an electronic device 100 (for example, a mobile phone).
It should be noted that, at present, when a plurality of persons take a picture, one of the face regions in the preview image is usually determined as the focusing region according to the area of the face region or the position of the face region. The preview image can be understood as an image acquired by a camera before shooting, that is, an image displayed in a display screen of a mobile phone after a user opens the camera of the mobile phone but before triggering shooting. It can be seen that the face focused by the current focusing method is completely dependent on the standing position of the photographed person.
However, the current mobile phone actually belongs to a very private article, and most people take pictures by using the personal mobile phone, especially when taking self-pictures, for example: often with friends, relatives and friends etc. the shooting action is mostly to satisfy the personal shooting requirement, i.e. the owner of the mobile phone usually wants to be in the core of the shot picture and wants the best shooting effect. However, in the current focusing method, in such a multi-person close-up scene, the focus of the camera is not on the face of the owner of the mobile phone due to standing position, posture and other factors, and the owner of the mobile phone cannot obtain the best photographing effect.
Further alternatively, when a specific object is photographed by a mobile phone, for example: when a group of specific articles (such as clothes, furniture and vehicles) need to be shot, especially when the specific articles are shot in comparison with a plurality of similar articles, the current focusing mode is to focus according to the area size or the distance of scenery, and if the focusing object is incorrect, the user needs to manually focus, which is very inconvenient.
In view of the above problems, embodiments of the present invention provide a focusing method, which includes obtaining a preview image, determining an area of a preset target image in the preview image, and focusing the determined area as a focusing area to focus a specific target object, so that the specific target has a better shooting effect in a shot image, thereby satisfying a personalized shooting requirement of a user.
The game interface testing method is described in detail below with several specific implementations. Fig. 2 is an interface display diagram illustrating a focusing method according to an example embodiment of the present disclosure. Fig. 3 is a flowchart illustrating a focusing method according to an example embodiment of the present disclosure. As shown in fig. 2-3, the focusing method provided in this embodiment includes:
step 201, obtaining a preview image.
Specifically, when a user takes a picture, the camera is triggered to acquire a preview image, where it is understood that the preview image is an image acquired by the electronic device, and specifically may be an image acquired by using the camera before taking a picture, that is, an image displayed in the electronic device, for example, a display screen, after the user opens the mobile phone camera but before triggering the taking a picture.
Step 202, judging whether a preset target image exists in the preview image. If yes, go to step 203, and if no, go to step 204.
After the preview image is acquired, whether a preset target image exists in the preview image is judged. It should be noted that, in this embodiment, the specific type of the preset target image is not limited, and the preset target image only needs to be set to satisfy that the target image can be recognized from the preview image and the focusing operation can be performed on the corresponding region.
In addition, the preset target image can be acquired by the user through a camera for storage, or can be transmitted and input by the user through an external device.
Step 203, determining the area of the preset target image in the preview image as a focusing area for focusing.
If the preview image has the preset target image, further determining a region of the preset target image in the preview image, for example, a region of the preset face image in the preview image or a region of the preset object image in the preview image. After the area of the preset target image in the preview image is determined, the area is selected as a focusing area to carry out focusing operation.
Referring to fig. 2, if the preview image has a preset face image, the area of the preset face image 101 in the preview image is further determined as a focusing area 110 for focusing. The other face images 102 are taken as the background, so that the preset face image 101 has the best shooting effect.
And 204, focusing according to a preset focusing strategy.
However, if the preview image does not have the preset target image, the user may focus manually, or focus according to a preset focusing strategy. For example: the focusing area is determined according to the area of the face area or the position of the face area or the area of the article area. It should be noted that, in this embodiment, the preset focusing strategy adopted for the case that the preset target image does not exist in the preview image may be any focusing strategy, which is not specifically limited in this embodiment, and even when the preset target image does not exist in the preview image, the auto-focusing operation may not be performed.
In the embodiment, the preview image is obtained, the area of the preset target image in the preview image is determined, and then the determined area is used as the focusing area for focusing to realize focusing of the specific target object, so that the specific target has a better shooting effect in the shot image, and the personalized shooting requirements of the user are met.
Fig. 4 is a flowchart illustrating a focusing method according to another example embodiment of the present disclosure. As shown in fig. 4, the focusing method provided in this embodiment includes:
step 301, obtaining a preview image.
Specifically, when a user uses a mobile phone to take a picture of a plurality of people, the camera is triggered to acquire a preview image, wherein the preview image comprises a plurality of face images.
And 302, matching each human face in the preview image with a preset human face image.
After the preview image with a plurality of face images is obtained, matching each face image in the preview image with a preset face image, wherein the matching process can be a face recognition process, and is not repeated here.
The preset face image may be an authentication face image stored in the electronic device, such as an authentication face image collected when a mobile phone owner performs face ID unlocking. Therefore, the authentication face image used for unlocking the mobile phone is directly determined as the preset face image used for focusing and identifying, and the trouble caused by collecting the face image for multiple times for the user is further avoided.
And step 303, judging whether the matching is successful. If yes, go to step 304, otherwise go to step 305.
If a preset face image exists in the preview image, for example, the face image of the owner, after each face image in the preview image is matched with the preset face image, focusing can be performed on the area where the preset face image is located.
And step 304, determining the area of the preset face image in the preview image as a focusing area for focusing.
When one of the face images in the preview image can be successfully matched with the preset face image, determining the area of the preset face image in the preview image as a focusing area for focusing.
And 305, judging whether a plurality of face images exist in the preview image. If yes, go to step 306, otherwise go to step 307.
However, when there is no face image that can be successfully matched with the preset face image in the preview image, there may be only one face image because there may be a plurality of face images in the preview image. Therefore, whether a plurality of face images exist in the preview image or only one face image exists can be determined, and then different focusing strategies are adopted.
And step 306, determining the area where the face image with the largest image area or the face image with the middle position is located as a focusing area for focusing.
If the preview image does not have the preset face image and the preview image has a plurality of face images, determining the area of the face image with the largest image area or the face image with the middle position as the focusing area for focusing.
However, if the difference of each face in the preview image is within a certain range, it can be determined as a group photograph, and the focusing operation is not performed.
And 307, determining the only face image in the preview image as a focusing area for focusing.
And if the preview image does not have the preset face image and only one face image exists in the preview image, determining the only face image in the preview image as a focusing area for focusing.
In addition, in order to further improve the shooting effect of the main face, after a preset face image is determined in the preview image, and focusing is performed, photometry is performed on a focused area to obtain photometry data, and then image processing is performed on the face image in the focused area according to the photometry data, for example: and (5) performing beautifying treatment.
If a plurality of face authentication images exist in one mobile phone, that is, both couples and partners can unlock the same mobile phone by using faces, and since a common girl prefers beauty than a boy, before focusing, the priority order of each authentication face image needs to be determined, wherein the preset face image comprises a plurality of authentication face images, when a plurality of authentication face images exist in the preview image, for example, a main face image of the male and a main face image of the female exist at the same time, one authentication face image serving as a determined focusing area can be determined according to the priority order, so that focusing is preferentially performed on the main face image of the female, and subsequent beauty operation can be preferentially performed.
FIG. 5 is a schematic flow chart diagram illustrating a focusing apparatus according to an example embodiment of the present disclosure. As shown in fig. 5, the focusing apparatus 400 provided in this embodiment includes:
an obtaining module 401, configured to obtain a preview image, where the preview image is an image acquired by an electronic device;
a judging module 402, configured to judge whether a preset target image exists in the preview image;
the processing module 403 is configured to determine that a region of the preset target image in the preview image is located as a focusing region for focusing.
In a possible design, the determining module 402 is specifically configured to:
and judging whether a preset face image exists in the preview image.
In a possible design, the preset face image is an authentication face image stored in the electronic device.
In a possible design, the determining module 402 is specifically configured to:
and matching each face in the preview image with the preset face image, and judging whether the matching is successful.
In a possible design, if the preview image does not have the preset face image, the determining module 402 is further configured to determine whether a plurality of face images exist in the preview image;
if the determination result is yes, the processing module 403 is further configured to determine a region where the face image with the largest image area or the face image with the middle position is located as a focusing region for focusing.
In a possible design, the processing module 403 is further configured to perform photometry on the focusing area to obtain photometry data; and
and carrying out image processing on the face image in the focusing area according to the photometric data.
In a possible design, the processing module 403 is further configured to determine a priority order of each of the authentication face images, where the preset face image includes a plurality of authentication face images; and when a plurality of the authentication face images exist in the preview image, determining one authentication face image as the focusing area according to the priority order.
In one possible design, the priority order is determined according to the corresponding gender of the authentication face image.
It should be noted that the focusing apparatus provided in the embodiment shown in fig. 5 can be used to execute the method provided in any of the above embodiments, and the specific implementation manner and the technical effect are similar, and are not described herein again.
Fig. 6 is a schematic structural diagram of an electronic device shown in the present disclosure according to an example embodiment. As shown in fig. 6, a schematic diagram of an electronic device 500 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal having an image acquisition function, such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), and the like, and a fixed terminal having an image acquisition device externally connected, such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 501.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. 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.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (8)

1. A focusing method, comprising:
acquiring a preview image, wherein the preview image is an image acquired by electronic equipment;
judging whether a preset target image exists in the preview image or not;
if so, determining the area of the preset target image in the preview image as a focusing area for focusing;
performing photometry on the focusing area to acquire photometric data;
carrying out image processing on the face image in the focusing area according to the photometric data;
the judging whether the preview image has a preset target image includes:
judging whether a preset face image exists in the preview image or not;
the preset face image is an authentication face image stored in the electronic equipment, and the authentication face image is used for unlocking the face of the electronic equipment.
2. The focusing method of claim 1, wherein the determining whether the preview image has a preset face image comprises:
and matching each face in the preview image with the preset face image, and judging whether the matching is successful.
3. The focusing method according to claim 1 or 2, wherein if the preview image does not have the preset face image, it is determined whether a plurality of face images exist in the preview image;
if the judgment result is yes, determining the area where the face image with the largest image area or the face image with the middle position is located as a focusing area for focusing.
4. The focusing method according to claim 1 or 2, wherein before the determining that the area of the preset target image in the preview image is located is focused as a focusing area, the method further comprises:
determining the priority of each authentication face image, wherein the preset face image comprises a plurality of authentication face images;
and when a plurality of the authentication face images exist in the preview image, determining one authentication face image as the focusing area according to the priority.
5. The focusing method of claim 4, wherein the priority is determined according to the gender corresponding to the authenticated face image.
6. A focusing apparatus, 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, and the preview image is an image acquired by electronic equipment;
the judging module is used for judging whether a preset target image exists in the preview image or not;
the processing module is used for determining the area of the preset target image in the preview image as a focusing area for focusing;
performing photometry on the focusing area to acquire photometric data;
carrying out image processing on the face image in the focusing area according to the photometric data;
the judgment module is specifically configured to:
judging whether a preset face image exists in the preview image or not;
the preset face image is an authentication face image stored in the electronic equipment, and the authentication face image is used for unlocking the face of the electronic equipment.
7. An electronic device, comprising:
a processing device; and
storage means for storing executable instructions of the processing means;
wherein the processing device is configured to perform the focusing method of any one of claims 1 to 5 via execution of the executable instructions.
8. A storage medium on which a computer program is stored, characterized in that the program, when executed by a processing device, implements the focusing method of any one of claims 1 to 5.
CN201910829143.6A 2019-09-03 2019-09-03 Focusing method and device, electronic equipment and storage medium Active CN110418064B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910829143.6A CN110418064B (en) 2019-09-03 2019-09-03 Focusing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910829143.6A CN110418064B (en) 2019-09-03 2019-09-03 Focusing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110418064A CN110418064A (en) 2019-11-05
CN110418064B true CN110418064B (en) 2022-03-04

Family

ID=68370293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910829143.6A Active CN110418064B (en) 2019-09-03 2019-09-03 Focusing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110418064B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111432114B (en) * 2019-12-31 2021-08-24 宁波星巡智能科技有限公司 Grading method, device and equipment based on shooting composition and storage medium
CN111212226A (en) * 2020-01-10 2020-05-29 Oppo广东移动通信有限公司 Focusing shooting method and device
CN111277753A (en) * 2020-02-10 2020-06-12 Oppo广东移动通信有限公司 Focusing method and device, terminal equipment and storage medium
CN114374815B (en) * 2020-10-15 2023-04-11 北京字节跳动网络技术有限公司 Image acquisition method, device, terminal and storage medium
CN113810599A (en) * 2021-08-12 2021-12-17 惠州Tcl云创科技有限公司 Method for focusing on designated area by AI action recognition, mobile terminal and storage medium
CN114390201A (en) * 2022-01-12 2022-04-22 维沃移动通信有限公司 Focusing method and device thereof
CN117097982B (en) * 2023-10-17 2024-04-02 北京钧雷科技有限公司 Target detection method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101911670A (en) * 2008-01-07 2010-12-08 摩托罗拉公司 Digital camera focusing using stored object recognition
CN102036008A (en) * 2009-09-25 2011-04-27 华晶科技股份有限公司 Automatic focusing system and method for particular persons
CN105704389A (en) * 2016-04-12 2016-06-22 上海斐讯数据通信技术有限公司 Intelligent photo taking method and device
CN105915782A (en) * 2016-03-29 2016-08-31 维沃移动通信有限公司 Picture obtaining method based on face identification, and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4810416B2 (en) * 2006-12-19 2011-11-09 Hoya株式会社 Camera with focus adjustment device
CN107657219B (en) * 2017-09-12 2021-06-15 Oppo广东移动通信有限公司 Face detection method and related product
CN109241908A (en) * 2018-09-04 2019-01-18 深圳市宇墨科技有限公司 Face identification method and relevant apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101911670A (en) * 2008-01-07 2010-12-08 摩托罗拉公司 Digital camera focusing using stored object recognition
CN102036008A (en) * 2009-09-25 2011-04-27 华晶科技股份有限公司 Automatic focusing system and method for particular persons
CN105915782A (en) * 2016-03-29 2016-08-31 维沃移动通信有限公司 Picture obtaining method based on face identification, and mobile terminal
CN105704389A (en) * 2016-04-12 2016-06-22 上海斐讯数据通信技术有限公司 Intelligent photo taking method and device

Also Published As

Publication number Publication date
CN110418064A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN110418064B (en) Focusing method and device, electronic equipment and storage medium
TWI765304B (en) Image reconstruction method and image reconstruction device, electronic device and computer-readable storage medium
CN107798669B (en) Image defogging method and device and computer readable storage medium
CN110378846B (en) Method, device, medium and electronic equipment for processing image buffing
US20170034097A1 (en) Photo sharing method and device
TWI777112B (en) Method, apparatus and electronic device for image processing and storage medium
TWI778313B (en) Method and electronic equipment for image processing and storage medium thereof
CN110991373A (en) Image processing method, image processing apparatus, electronic device, and medium
CN106231152A (en) The method and device of transmission picture
WO2022037484A1 (en) Image processing method and apparatus, device and storage medium
CN111314620B (en) Photographing method and apparatus
CN107302666A (en) Photographic method, mobile terminal and computer-readable recording medium
CN113012082A (en) Image display method, apparatus, device and medium
CN110570383B (en) Image processing method and device, electronic equipment and storage medium
KR102406501B1 (en) Data sharing method among passengers of vehicle and system thereof
CN110619602B (en) Image generation method and device, electronic equipment and storage medium
CN110809166B (en) Video data processing method and device and electronic equipment
CN112508959A (en) Video object segmentation method and device, electronic equipment and storage medium
CN111062407A (en) Image processing method and device, electronic equipment and storage medium
CN114882576A (en) Face recognition method, electronic device, computer-readable medium, and program product
CN111556303B (en) Face image processing method and device, electronic equipment and computer readable medium
CN111586295B (en) Image generation method and device and electronic equipment
CN114666622A (en) Special effect video determination method and device, electronic equipment and storage medium
CN114390206A (en) Shooting method and device and electronic equipment
CN111447501A (en) Photo management method and device, electronic equipment and storage medium

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