CN110581954A - shooting focusing method and device, storage medium and terminal - Google Patents

shooting focusing method and device, storage medium and terminal Download PDF

Info

Publication number
CN110581954A
CN110581954A CN201910939743.8A CN201910939743A CN110581954A CN 110581954 A CN110581954 A CN 110581954A CN 201910939743 A CN201910939743 A CN 201910939743A CN 110581954 A CN110581954 A CN 110581954A
Authority
CN
China
Prior art keywords
target object
preview image
focusing
shooting
sample
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
CN201910939743.8A
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.)
Shenzhen Coolpad Technologies Co Ltd
Original Assignee
Shenzhen Coolpad Technologies 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 Shenzhen Coolpad Technologies Co Ltd filed Critical Shenzhen Coolpad Technologies Co Ltd
Priority to CN201910939743.8A priority Critical patent/CN110581954A/en
Publication of CN110581954A publication Critical patent/CN110581954A/en
Pending legal-status Critical Current

Links

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/62Control of parameters via user interfaces
    • 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

Abstract

the embodiment of the application discloses a shooting focusing method, a shooting focusing device, a storage medium and a terminal, wherein the method comprises the following steps: acquiring a preview image for a shooting area through a camera; judging whether a target object exists in the preview image, wherein the target object is a shooting object with a shooting frequency greater than a frequency threshold; when a target object exists in the preview image, focusing the focus of the camera on the target object. The shooting focusing method provided by the embodiment of the application can automatically and accurately focus on the target object, does not need a user to manually adjust the focusing point/focusing object, and improves the shooting intelligence and convenience.

Description

Shooting focusing method and device, storage medium and terminal
Technical Field
the present application relates to the field of computer technologies, and in particular, to a shooting focusing method and apparatus, a storage medium, and a terminal.
Background
With the rapid development of digital image technology, photography has been integrated into the aspects of life. People can record beautiful life and keep splendid moments through a digital camera or a terminal camera. In the shooting process, focusing is needed to enable the shot object to be imaged clearly.
When a camera of the terminal is opened to take a picture or record a video, a center focusing mode is usually adopted, that is, the terminal takes the center position of a camera preview area as a focus to focus, or a user can manually change a focus/focusing object and select a point/object needing focusing by clicking the camera preview area to focus.
when the central focusing cannot accurately focus on a target object which a user wants to focus, the user needs to manually focus, so that the focusing mode is not flexible in both the central focusing mode and the manual focusing mode, and the user is not intelligent enough in photographing.
disclosure of Invention
the embodiment of the application provides a shooting focusing method, a shooting focusing device, a storage medium and a shooting focusing terminal, which can automatically and accurately focus on a target object without manually adjusting a focusing point/focusing object by a user, and improve the shooting intelligence and convenience. The technical scheme is as follows:
In a first aspect, an embodiment of the present application provides a shooting focusing method, where the method includes:
Acquiring a preview image for a shooting area through a camera;
Judging whether a target object exists in the preview image, wherein the target object is a shooting object with a shooting frequency greater than a frequency threshold;
when a target object exists in the preview image, focusing the focus of the camera on the target object.
in a second aspect, an embodiment of the present application provides a shooting focusing apparatus, including:
The preview image acquisition module is used for acquiring a preview image aiming at the shooting area through the camera;
The target object judging module is used for judging whether a target object exists in the preview image, and the target object is a shooting object with a shooting frequency greater than a frequency threshold;
And the focusing module is used for focusing the focus of the camera on the target object when the target object exists in the preview image.
in a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of any one of the above methods.
In a fourth aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of any one of the above methods when executing the program.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
In one or more embodiments of the present application, during shooting, a preview image of a shooting area is collected by a camera, and then it is determined whether a target object exists in the preview image, and when the target object exists in the preview image, a focus of the camera is focused on the target object. The target object is a shooting object with a shooting frequency larger than a frequency threshold value. In the embodiment, before receiving a shooting instruction, the terminal judges a target object of a preview image displayed on a display screen, wherein the target object belongs to a user frequently-shot object and reflects the shooting tendency and preference of the user, and when the preview image has the target object, the focus of a camera is focused on the target object. The shooting focusing method provided by the embodiment of the application can automatically and accurately focus on the target object, does not need a user to manually adjust the focusing point/focusing object, and improves the shooting intelligence and convenience.
drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
fig. 1 is a schematic flowchart of a shooting focusing method according to an embodiment of the present disclosure;
Fig. 2 is a schematic flowchart of a photographing focusing method according to an embodiment of the present disclosure;
Fig. 3 is a schematic flowchart of a photographing focusing method according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of a photographing focusing device according to an embodiment of the present disclosure;
FIG. 5 is a schematic structural diagram of a photographing focusing device according to an embodiment of the present disclosure;
FIG. 6 is a schematic structural diagram of a photographing focusing device according to an embodiment of the present disclosure;
Fig. 7 is a block diagram of a terminal structure according to an embodiment of the present application.
Detailed Description
in order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The photographing focusing method provided by the embodiment of the present application will be described in detail below with reference to fig. 1 to 3.
Please refer to fig. 1, which is a flowchart illustrating a photographing focusing method according to an embodiment of the present disclosure.
as shown in fig. 1, the method of the embodiment of the present application may include the steps of:
S101, acquiring a preview image aiming at a shooting area through a camera;
when a user starts a camera of the terminal to take a picture or record a video, before a shooting instruction is input, the terminal collects an image in real time based on a shooting area indicated by the camera and displays the image on a display screen, wherein the image displayed on the display screen is a preview image.
The preview image is a real-time frame image, and the terminal can continuously generate a plurality of frames of preview images before a shooting instruction is input. The input shooting command may be, for example, a voice shooting command, or a shooting command input to a physical/physical shooting button.
The terminal in this embodiment includes, but is not limited to, a smart phone, a tablet computer, a palm computer, a Personal digital assistant (PAD), an interactive smart tablet, and other devices.
s102, judging whether a target object exists in the preview image, wherein the target object is a shooting object with a shooting frequency greater than a frequency threshold;
When determining whether the target object exists in the preview image, the target object determination may be performed on each frame of preview image acquired in real time, or the target object determination may be performed on each frame of preview image acquired periodically (for example, one frame is acquired every 3ms, one frame is acquired every 5ms, and the like).
Classifying different objects contained in images in a terminal album set, counting the occurrence frequency of the different objects in the album set, and acquiring the shooting frequency of the different objects (namely the occurrence frequency of the different objects in the album set); setting a frequency threshold, comparing the shooting frequency of different objects with the frequency threshold, and when the shooting frequency of a certain object is greater than the frequency threshold, marking the object as a target object, wherein an image containing the target object is a target image. The target image may contain one or more target objects. The target object is also a common object, and belongs to a user common shooting object.
for example, assuming that there are 100 total images in the terminal album set and the set frequency threshold is 0.1, when an object (e.g., a bicycle) appears 13 times in the album set: the shooting frequency 0.13 is greater than the frequency threshold 0.1, and the object (bicycle) is marked as a target object, belonging to the objects frequently shot by the user.
In this embodiment, the manner of determining whether the target object exists in the preview image may specifically be: placing a target image containing a target object in the same album, and defining the target image as a target album; and carrying out image matching on the acquired preview image and a target image in a target album, and determining whether a target object exists in the preview image according to a matching result.
the matching mode can be that the preview image is matched with a plurality of target images in the target album one by one; the target images may be grouped according to the target objects included in the target images: and dividing the target images containing the same target object into a group, and then carrying out image matching on the preview image and one target image in each group.
s103, when a target object exists in the preview image, focusing the focus of the camera on the target object.
When the target object contained in one or more images in the target album can be successfully matched with the object contained in the preview image, determining that the target object exists in the preview image, and focusing the focus of the camera on the target object. Focusing refers to a process of changing the object distance and the distance position through a focusing mechanism so that a shot object can be imaged clearly.
In the embodiment of the application, that is, before a user inputs a shooting instruction, the terminal judges a target object of a preview image displayed on a display screen, and when a judgment result shows that the target object exists in the preview image, the terminal automatically focuses the target object and clearly images when the shooting instruction is received.
In the embodiment of the application, during shooting, a preview image of a shooting area is collected through a camera, whether a target object exists in the preview image is judged, and when the target object exists in the preview image, the focus of the camera is focused on the target object. The target object is a shooting object with a shooting frequency larger than a frequency threshold value. In the embodiment, before receiving a shooting instruction, the terminal judges a target object of a preview image displayed on a display screen, wherein the target object belongs to a user frequently-shot object and reflects the shooting tendency and preference of the user, and when the preview image has the target object, the focus of a camera is focused on the target object. The shooting focusing method provided by the embodiment of the application can automatically and accurately focus on the target object, does not need a user to manually adjust the focusing point/focusing object, and improves the shooting intelligence and convenience.
please refer to fig. 2, which is a flowchart illustrating a photographing focusing method according to an embodiment of the present disclosure.
As shown in fig. 2, the method of the embodiment of the present application may include the steps of:
S201, acquiring a sample image set from a sample album;
acquiring the shooting frequency of different objects in a terminal album set, taking the object with the shooting frequency greater than a frequency threshold value as a sample object, and screening out an image containing the sample object from the terminal album set, wherein the image is the sample image. Each sample image may contain a plurality of sample objects, the plurality of sample images constituting a sample album.
the embodiment of the application trains the samples by taking all sample images in the sample photo album as a set. In some embodiments, training the sample may also be performed with a portion of the sample images in the sample album as a collection: for example, sample images containing only the same sample object are screened from the sample album for training, such as containing only trees; or sample images containing only designated sample objects are screened from the sample album for training, such as cats and dogs.
The images collected by the terminal album can be obtained by means of photographing, video image, webpage image storage and the like, and the images obtained by the means can reflect the photographing tendency of the user to a certain extent and can be used as candidate samples.
s202, respectively inputting the sample image sets into a pre-trained feature recognition model for training, and outputting first feature information of each sample object contained in the sample image sets;
the method and the device can create the feature recognition model by utilizing the existing open source architecture, and train in advance to generate the trained feature recognition model. In this embodiment, sample images in a sample image set are respectively input into a feature recognition model trained in advance for training, the model performs feature extraction on sample objects included in the sample images, and outputs first feature information of each sample object included in the sample image set, where the first feature information may include basic information of the sample object, such as a type and a name of an identification object, and imaging parameter information may include an ISO value, exposure compensation, and the like.
For example, a sample image containing a water cup is input into the feature recognition model for training, and after the model extracts features of the water cup, the output first feature information includes shape, color, material, imaging definition, exposure and the like of the water cup. When the model performs feature extraction on a sample object contained in a sample image, the model can completely extract the overall features of the sample object, such as the overall contour of a water cup; or independently extracting local characteristics of the sample object, such as a cup handle, a cup cover and a cup body of the water cup.
the training of the samples should be kept in sufficient quantity and diversity to ensure the accuracy of the subsequent identification. Specifically, for the same sample object, a plurality of (e.g. 50, 80, etc.) sample images containing the sample object in different environments and at different angles should be input into the feature recognition model for training, so that the first feature information output by the model is complete and accurate. For example, when the external light intensity is different, the sample image of the same building is collected (shooting can be selected to be carried out at different moments such as noon and night), and simultaneously the sample image containing the building is collected in multiple angles, so that the feature recognition model can be ensured to extract the first feature information of the building in all directions.
s203, acquiring a preview image aiming at the shooting area through a camera;
This step can be referred to as S101, and is not described herein.
S204, inputting the preview image into the pre-trained feature recognition model, and outputting second feature information of a recognition object contained in the preview image;
according to the embodiment of the application, whether the target object exists in the preview image is judged through feature comparison. The specific process is as follows: the method comprises the steps of obtaining a preview image, inputting the preview image into a pre-trained feature recognition model, carrying out feature extraction on a recognition object contained in the preview image by the model, and outputting second feature information of the recognition object.
The preview image is a real-time frame image, and before a user inputs a shooting instruction, the terminal generates a plurality of frames of preview images in real time and displays the preview images on the display screen. When the preview image is acquired for feature recognition, multiple frames of preview images can be continuously acquired one by one for feature recognition, or a single frame of preview image can be periodically acquired according to a preset time interval for feature recognition, for example, one frame is acquired every 2 ms.
the second feature information output by the feature recognition model comprises: basic information of the recognition target included in the preview image, such as the type and name of the recognition target, and imaging parameter information, such as the ISO value and exposure compensation, may be included.
s205, judging whether a target object exists in the preview image or not based on the first characteristic information and the second characteristic information, wherein the target object is a shooting object with a shooting frequency greater than a frequency threshold;
In this embodiment, the shooting frequencies of the sample objects used for training are all greater than the frequency threshold, that is, the sample objects used for training are all target objects, and belong to the objects frequently shot by the user. And matching the second characteristic information with the first characteristic information which is output by the characteristic identification model and contains each sample object one by one (for example, comparing five sense organs), and determining whether a target object exists in the preview image according to a matching result. In addition, in order to reduce the amount of terminal computation, the method for determining whether the target object exists in the preview image may further include: and performing information search (for example, search name and category) in the first feature information including each sample object, and searching whether the first feature information identical to the second feature information exists.
s206, when the first characteristic information comprises the second characteristic information, determining that a target object exists in the preview image, and focusing the focus of the camera on the target object;
When first characteristic information which is the same as the second characteristic information exists, determining that a target object exists in the preview image, and focusing the focus of the camera on the target object. Focusing refers to a process of changing the object distance and the distance position through a focusing mechanism so that a shot object can be imaged clearly.
To illustrate the present embodiment, sample images respectively including a person, a cat, and a plant are input to a feature recognition model trained in advance, and are trained to generate first feature information including the sample objects (i.e., the person, the cat, and the plant): gender, skin color, nationality, etc. of a person; cat species, hair color, mottled lines, body type and local features such as eyes, ears and the like; plant name, leaf shape, overall profile, etc. When the preview image input into the feature recognition model contains a recognition target cat, outputting second feature information: the species, hair color, mottled lines, body type and local features of cats such as eyes, ears and the like. And searching information in the first characteristic information, and confirming that the cat in the preview image is a target object and focusing the cat when the first characteristic information has characteristic information which is consistent with the cat in the preview image. In order to judge accurately, image matching can be carried out on local features of eyes, ears and the like.
S207, when the first characteristic information does not contain the second characteristic information, acquiring a manual focusing image; and inputting the manual focusing image into the pre-trained feature recognition model for training, and updating the first feature information.
When first characteristic information which is the same as the second characteristic information does not exist, the fact that a target object does not exist in the preview image is determined, at the moment, the terminal controls the focusing mode to be manual focusing, a manual focusing image of a user is obtained, the manual focusing image can reflect the focusing tendency when the user shoots, the image is added into a sample album to enrich the sample image, the characteristic recognition model carries out characteristic extraction on a focusing object in the manual focusing image, first characteristic information containing the manual focusing object is output, and the first characteristic information is updated. Based on the updated first characteristic information, in the subsequent shooting process, if the manual focusing object appears in the preview image, the terminal can accurately focus the object as a target object.
In the embodiment of the application, during shooting, a preview image of a shooting area is collected through a camera, whether a target object exists in the preview image is judged, and when the target object exists in the preview image, the focus of the camera is focused on the target object. The target object is a shooting object with a shooting frequency larger than a frequency threshold value. In the embodiment, before receiving a shooting instruction, the terminal judges a target object of a preview image displayed on a display screen, wherein the target object belongs to a user frequently-shot object and reflects the shooting tendency and preference of the user, and when the preview image has the target object, the focus of a camera is focused on the target object. The shooting focusing method provided by the embodiment of the application can automatically and accurately focus on the target object, does not need a user to manually adjust the focusing point/focusing object, and improves the shooting intelligence and convenience.
please refer to fig. 3, which is a flowchart illustrating a photographing focusing method according to an embodiment of the present disclosure.
As shown in fig. 3, the method of the embodiment of the present application may include the steps of:
s301, acquiring a sample image set from a sample album;
this step can be referred to as S201, and is not described herein.
S302, respectively inputting the sample image sets into a pre-trained feature recognition model for training, and outputting first feature information of each sample object contained in the sample image sets;
this step can be referred to as S202, and is not described herein.
s303, monitoring the sample photo album;
Monitoring, i.e., monitoring audiometry, the monitoring of the sample album may be performed in real time or periodically, for example, once every 1 hour.
S304, when a newly added image in the sample photo album is monitored, inputting the newly added image into the feature recognition model for training, and updating the first feature information;
when a new sample image is monitored to be added into the sample album, the newly added sample image is obtained and input into a feature recognition model for training, sample object feature information contained in the newly added sample image is extracted, and first feature information is output, wherein the first feature information contains the newly added sample object feature information. Monitoring the sample photo album, and updating the first characteristic information in time when the sample is abundant, so that accurate judgment of the target object in the preview image in subsequent shooting is ensured.
S305, acquiring a preview image aiming at a shooting area through a camera;
this step can be referred to as S101, and is not described herein.
S306, inputting the preview image into the pre-trained feature recognition model, and outputting second feature information of a recognition object contained in the preview image;
according to the embodiment of the application, whether a target object exists in the preview image or not is judged through feature comparison, wherein the preview image can contain a plurality of identification objects. The specific process is as follows: the method comprises the steps of obtaining a preview image, inputting the preview image into a pre-trained feature recognition model, carrying out feature extraction on a plurality of recognition objects contained in the preview image by the model, and outputting second feature information containing the plurality of recognition objects.
the preview image is a real-time frame image, and before a user inputs a shooting instruction, the terminal generates a plurality of frames of preview images in real time and displays the preview images on the display screen. When the preview image is acquired for feature recognition, multiple frames of preview images can be continuously acquired one by one for feature recognition, or a single frame of preview image can be periodically acquired according to a preset time interval for feature recognition, for example, one frame is acquired every 3 ms.
The second feature information output by the feature recognition model comprises: basic information of a plurality of recognition objects included in the preview image, for example, sex, occupation, etc. of the recognition objects, and photographing parameter information, for example, imaging sharpness, photographing mode, etc. may be included.
S307, judging whether a target object exists in the preview image or not based on the first characteristic information and the second characteristic information, wherein the target object is a shooting object with a shooting frequency greater than a frequency threshold;
In this embodiment, the shooting frequencies of the sample objects used for training are all greater than the frequency threshold, that is, the sample objects used for training are all target objects, and belong to the objects frequently shot by the user. And matching the second characteristic information containing the multiple identification objects with the first characteristic information containing each sample object one by one (for example, comparing the shape and contour), and determining whether a target object exists in the preview image according to the matching result. In addition, in order to reduce the amount of terminal computation, the method for determining whether the target object exists in the preview image may further include: and performing information search (for example, color search) in the first characteristic information including each sample object, and searching whether the first characteristic information identical to the second characteristic information exists.
s308, when at least two target objects exist in the preview image, acquiring shooting parameter information of the at least two target objects;
when first feature information identical to the second feature information exists, determining whether the identical feature information corresponds to the same identification object; when the same feature information corresponds to different recognition objects, it is determined that at least two target objects exist in the preview image, at this time, photographing parameter information of the at least two target objects is acquired, and step S308 is performed.
S309, acquiring the priorities of the at least two target objects according to the shooting parameter information, and focusing the focus of the camera on the target object with the highest priority.
according to the embodiment of the application, the focusing priority can be preset according to the shooting parameter information, and when at least two target objects exist in the preview image, the final focusing object is determined according to the focusing priority. The shooting parameters may be, for example, shooting frequencies, which are obtained when at least two target objects exist in the preview image and the priority is higher as the frequencies are higher, and the shooting frequencies of the at least two target objects are obtained, and focusing is performed with the target object with the highest shooting frequency as a focusing object. Further, the shooting parameter information may be, for example, category information of the shooting object, and the setting of the focusing priority may be, for example: the priority of a person is higher than that of an animal, the priority of an animal is higher than that of a plant, and the like, and in one frame of preview images containing two target objects of a person and a tree, focusing is performed on the person according to the priorities.
It is noted that multi-focus may also be selected when at least two target objects are present in the preview image. For example, when five target objects exist in the preview image, focusing is performed on all of the five target objects, that is, 5-point focusing.
In the embodiment of the application, during shooting, a preview image of a shooting area is collected through a camera, whether a target object exists in the preview image is judged, and when the target object exists in the preview image, the focus of the camera is focused on the target object. The target object is a shooting object with a shooting frequency larger than a frequency threshold value. In the embodiment, before receiving a shooting instruction, the terminal judges a target object of a preview image displayed on a display screen, wherein the target object belongs to a user frequently-shot object and reflects the shooting tendency and preference of the user, and when the preview image has the target object, the focus of a camera is focused on the target object. The shooting focusing method provided by the embodiment of the application can automatically and accurately focus on the target object, does not need a user to manually adjust the focusing point/focusing object, and improves the shooting intelligence and convenience.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
please refer to fig. 4, which is a schematic structural diagram of a photographing focusing apparatus according to an exemplary embodiment of the present application. The shooting focusing device can be realized by software, hardware or a combination of the software and the hardware to be all or part of the terminal, and can also be integrated on a server as an independent module. The shooting focusing device in the embodiment of the present application is applied to a terminal, as shown in fig. 4, the shooting focusing device 1 includes a preview image capturing module 11, a target object determining module 12, and a focusing module 13, where:
the preview image acquisition module 11 is configured to acquire a preview image for a shooting area through a camera;
A target object determination module 12, configured to determine whether a target object exists in the preview image, where the target object is a photographed object whose photographing frequency is greater than a frequency threshold;
a focusing module 13, configured to focus a focus of the camera onto a target object when the target object exists in the preview image.
please refer to fig. 5, which is a schematic structural diagram of a photographing focusing apparatus according to an exemplary embodiment of the present application. As shown in fig. 5, the photographing focusing device 1 provided in the present embodiment further includes:
A sample image obtaining module 14, configured to obtain a sample image set from a sample album;
a first feature information obtaining module 15, configured to input the sample image sets into pre-trained feature recognition models respectively for training, and output first feature information of each sample object included in the sample image sets;
The target object determination module 12 includes:
A second feature information acquiring unit 121, configured to input the preview image into the pre-trained feature recognition model, and output second feature information of a recognition object included in the preview image;
a target object determination unit 122 configured to determine whether a target object exists in the preview image based on the first feature information and the second feature information;
The focusing module 13 is specifically configured to:
When the first characteristic information comprises the second characteristic information, determining that a target object exists in the preview image, and focusing the focus of the camera on the target object;
A manual focusing image obtaining module 16, configured to obtain a manual focusing image when the first feature information does not include the second feature information;
And a first feature information updating module 17, configured to input the manual focusing image into the pre-trained feature recognition model for training, and update the first feature information.
Please refer to fig. 6, which is a schematic structural diagram of a photographing focusing apparatus according to an exemplary embodiment of the present application. As shown in fig. 6, the photographing focusing device 1 provided in the present embodiment further includes:
A sample photo album monitoring module 18, configured to monitor the sample photo album;
The first feature information updating module 17 is further configured to:
When a newly added image in the sample photo album is monitored, inputting the newly added image into the pre-trained feature recognition model for training, and updating the first feature information;
The focusing module 13 includes:
a shooting parameter obtaining module 131, configured to obtain shooting parameter information of at least two target objects when the at least two target objects exist in the preview image;
The focusing unit 132 is configured to obtain priorities of the at least two target objects according to the shooting parameter information, and focus a focus of the camera on a target object with a highest priority.
it should be noted that, when the shooting focusing apparatus provided in the foregoing embodiment executes the shooting focusing method, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the functions described above. In addition, the shooting focusing device and the shooting focusing method provided by the above embodiments belong to the same concept, and the detailed implementation process thereof is referred to the method embodiments, which is not described herein again.
the above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
in the embodiment of the application, during shooting, a preview image of a shooting area is collected through a camera, whether a target object exists in the preview image is judged, and when the target object exists in the preview image, the focus of the camera is focused on the target object. The target object is a shooting object with a shooting frequency larger than a frequency threshold value. In the embodiment, before receiving a shooting instruction, the terminal judges a target object of a preview image displayed on a display screen, wherein the target object belongs to a user frequently-shot object and reflects the shooting tendency and preference of the user, and when the preview image has the target object, the focus of a camera is focused on the target object. The shooting focusing method provided by the embodiment of the application can automatically and accurately focus on the target object, does not need a user to manually adjust the focusing point/focusing object, and improves the shooting intelligence and convenience.
The embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the steps of the method of any one of the foregoing embodiments. The computer-readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
The embodiment of the present application further provides a terminal, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the program, the steps of any of the above-mentioned embodiments of the method are implemented.
Please refer to fig. 7, which is a block diagram of a terminal according to an embodiment of the present disclosure.
As shown in fig. 7, the terminal 600 includes: a processor 601 and a memory 602.
In this embodiment, the processor 601 is a control center of a computer system, and may be a processor of an entity machine or a processor of a virtual machine. The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 601 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable logic Array). The processor 601 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state.
The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments of the present application, a non-transitory computer readable storage medium in the memory 602 is used to store at least one instruction for execution by the processor 601 to implement a method in embodiments of the present application.
In some embodiments, the terminal 600 further includes: a peripheral interface 603 and at least one peripheral. The processor 601, memory 602, and peripheral interface 603 may be connected by buses or signal lines. Various peripheral devices may be connected to the peripheral interface 603 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a display screen 604, a camera 605, and an audio circuit 606.
the peripheral interface 603 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 601 and the memory 602. In some embodiments of the present application, the processor 601, memory 602, and peripheral interface 603 are integrated on the same chip or circuit board; in some other embodiments of the present application, any one or both of the processor 601, the memory 602, and the peripheral interface 603 may be implemented on separate chips or circuit boards. The embodiment of the present application is not particularly limited to this.
The display screen 604 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 604 is a touch display screen, the display screen 604 also has the ability to capture touch signals on or over the surface of the display screen 604. The touch signal may be input to the processor 601 as a control signal for processing. At this point, the display screen 604 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments of the present application, the display screen 604 may be one, and is provided as a front panel of the terminal 600; in other embodiments of the present application, the display screens 604 may be at least two, respectively disposed on different surfaces of the terminal 600 or in a folding design; in still other embodiments of the present application, the display 604 may be a flexible display disposed on a curved surface or a folded surface of the terminal 600. Even further, the display screen 604 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The Display screen 604 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera 605 is used to capture images or video. Optionally, the camera 605 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments of the present application, camera 605 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
audio circuitry 606 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 601 for processing. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 600. The microphone may also be an array microphone or an omni-directional pick-up microphone.
power supply 607 is used to provide power to the various components in terminal 600. The power supply 607 may be ac, dc, disposable or rechargeable. When power supply 607 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
The block diagram of the terminal structure shown in the embodiments of the present application does not constitute a limitation to the terminal 600, and the terminal 600 may include more or less components than those shown, or combine some components, or adopt a different arrangement of components.
In this application, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or order; the term "plurality" means two or more unless expressly limited otherwise. The terms "mounted," "connected," "fixed," and the like are to be construed broadly, and for example, "connected" may be a fixed connection, a removable connection, or an integral connection; "coupled" may be direct or indirect through an intermediary. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
in the description of the present application, it is to be understood that the terms "upper", "lower", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience in describing the present application and simplifying the description, but do not indicate or imply that the referred device or unit must have a specific direction, be configured and operated in a specific orientation, and thus, should not be construed as limiting the present application.
the above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Accordingly, all equivalent changes made by the claims of this application are intended to be covered by this application.

Claims (10)

1. a photographing focusing method, comprising:
acquiring a preview image for a shooting area through a camera;
judging whether a target object exists in the preview image, wherein the target object is a shooting object with a shooting frequency greater than a frequency threshold;
When a target object exists in the preview image, focusing the focus of the camera on the target object.
2. The method of claim 1, wherein before the capturing the preview image for the capture area by the camera, further comprising:
acquiring a sample image set from a sample album;
And respectively inputting the sample image set into a pre-trained feature recognition model for training, and outputting first feature information of each sample object contained in the sample image set.
3. The method of claim 2, wherein the determining whether the target object exists in the preview image comprises:
Inputting the preview image into the pre-trained feature recognition model, and outputting second feature information of a recognition object contained in the preview image;
Judging whether a target object exists in the preview image or not based on the first characteristic information and the second characteristic information;
Focusing the focus of the camera on the target object when the target object exists in the preview image, wherein the focusing comprises:
When the first characteristic information comprises the second characteristic information, determining that a target object exists in the preview image, and focusing the focus of the camera on the target object.
4. The method according to claim 3, wherein the determining that a target object exists in the preview image and focusing the focus of the camera on the target object when the second feature information is included in the first feature information comprises:
When at least two target objects exist in the preview image, acquiring shooting parameter information of the at least two target objects;
And acquiring the priorities of the at least two target objects according to the shooting parameter information, and focusing the focus of the camera on the target object with the highest priority.
5. The method according to claim 3, wherein after determining whether a target object exists in the preview image based on the first feature information and the second feature information, the method further comprises:
when the first characteristic information does not contain the second characteristic information, acquiring a manual focusing image;
and inputting the manual focusing image into the pre-trained feature recognition model for training, and updating the first feature information.
6. the method of claim 2, further comprising:
monitoring the sample photo album;
and when monitoring that the sample photo album contains the newly added image, inputting the newly added image into the pre-trained feature recognition model for training, and updating the first feature information.
7. A photographing focusing device, characterized in that the device comprises:
The preview image acquisition module is used for acquiring a preview image aiming at the shooting area through the camera;
The target object judging module is used for judging whether a target object exists in the preview image, and the target object is a shooting object with a shooting frequency greater than a frequency threshold;
and the focusing module is used for focusing the focus of the camera on the target object when the target object exists in the preview image.
8. the apparatus of claim 7, further comprising:
The sample image acquisition module is used for acquiring a sample image set from the sample album;
and the first characteristic information acquisition module is used for respectively inputting the sample image set into a pre-trained characteristic recognition model for training and outputting first characteristic information of each sample object contained in the sample image set.
9. a computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method steps according to any of claims 1 to 6.
10. A terminal, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 6.
CN201910939743.8A 2019-09-30 2019-09-30 shooting focusing method and device, storage medium and terminal Pending CN110581954A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910939743.8A CN110581954A (en) 2019-09-30 2019-09-30 shooting focusing method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910939743.8A CN110581954A (en) 2019-09-30 2019-09-30 shooting focusing method and device, storage medium and terminal

Publications (1)

Publication Number Publication Date
CN110581954A true CN110581954A (en) 2019-12-17

Family

ID=68814127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910939743.8A Pending CN110581954A (en) 2019-09-30 2019-09-30 shooting focusing method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110581954A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111212226A (en) * 2020-01-10 2020-05-29 Oppo广东移动通信有限公司 Focusing shooting method and device
CN111355892A (en) * 2020-03-19 2020-06-30 Tcl移动通信科技(宁波)有限公司 Picture shooting method and device, storage medium and electronic terminal
CN112165590A (en) * 2020-09-30 2021-01-01 联想(北京)有限公司 Video recording implementation method and device and electronic equipment
CN112585946A (en) * 2020-03-27 2021-03-30 深圳市大疆创新科技有限公司 Image shooting method, image shooting device, movable platform and storage medium
WO2024022349A1 (en) * 2022-07-29 2024-02-01 维沃移动通信有限公司 Image processing method and apparatus, and electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915782A (en) * 2016-03-29 2016-08-31 维沃移动通信有限公司 Picture obtaining method based on face identification, and mobile terminal
CN109474785A (en) * 2018-11-27 2019-03-15 三星电子(中国)研发中心 The focus of electronic device and electronic device tracks photographic method
CN109583514A (en) * 2018-12-19 2019-04-05 成都西纬科技有限公司 A kind of image processing method, device and computer storage medium
CN110149482A (en) * 2019-06-28 2019-08-20 Oppo广东移动通信有限公司 Focusing method, device, electronic equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915782A (en) * 2016-03-29 2016-08-31 维沃移动通信有限公司 Picture obtaining method based on face identification, and mobile terminal
CN109474785A (en) * 2018-11-27 2019-03-15 三星电子(中国)研发中心 The focus of electronic device and electronic device tracks photographic method
CN109583514A (en) * 2018-12-19 2019-04-05 成都西纬科技有限公司 A kind of image processing method, device and computer storage medium
CN110149482A (en) * 2019-06-28 2019-08-20 Oppo广东移动通信有限公司 Focusing method, device, electronic equipment and computer readable storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111212226A (en) * 2020-01-10 2020-05-29 Oppo广东移动通信有限公司 Focusing shooting method and device
CN111355892A (en) * 2020-03-19 2020-06-30 Tcl移动通信科技(宁波)有限公司 Picture shooting method and device, storage medium and electronic terminal
CN112585946A (en) * 2020-03-27 2021-03-30 深圳市大疆创新科技有限公司 Image shooting method, image shooting device, movable platform and storage medium
CN112165590A (en) * 2020-09-30 2021-01-01 联想(北京)有限公司 Video recording implementation method and device and electronic equipment
CN112165590B (en) * 2020-09-30 2022-05-31 联想(北京)有限公司 Video recording implementation method and device and electronic equipment
WO2024022349A1 (en) * 2022-07-29 2024-02-01 维沃移动通信有限公司 Image processing method and apparatus, and electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN110581954A (en) shooting focusing method and device, storage medium and terminal
CN108229369B (en) Image shooting method and device, storage medium and electronic equipment
WO2020224479A1 (en) Method and apparatus for acquiring positions of target, and computer device and storage medium
US20200302154A1 (en) Image processing method, apparatus, storage medium, and electronic device
CN108513060B (en) Photographing method using external electronic device and electronic device supporting the same
CN110475069B (en) Image shooting method and device
WO2021104485A1 (en) Photographing method and electronic device
CN108470169A (en) Face identification system and method
CN113194242B (en) Shooting method in long-focus scene and mobile terminal
CN106165386A (en) For photo upload and the automatic technology of selection
CN107395957B (en) Photographing method and device, storage medium and electronic equipment
CN108198130B (en) Image processing method, image processing device, storage medium and electronic equipment
CN111542856A (en) Skin detection method and electronic equipment
CN112036331A (en) Training method, device and equipment of living body detection model and storage medium
CN109981976A (en) Picture pick-up device and its control method and storage medium
CN106464793B (en) Photographic device and camera shooting householder method
CN108353129A (en) Capture apparatus and its control method
CN111566693B (en) Wrinkle detection method and electronic equipment
CN106815803B (en) Picture processing method and device
CN108632543A (en) Method for displaying image, device, storage medium and electronic equipment
CN108780568A (en) A kind of image processing method, device and aircraft
CN109986553B (en) Active interaction robot, system, method and storage device
CN108989666A (en) Image pickup method, device, mobile terminal and computer-readable storage medium
CN111134686A (en) Human body disease determination method and device, storage medium and terminal
CN113536834A (en) Pouch detection method and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191217