CN106791407B - Self-timer control method and system - Google Patents
Self-timer control method and system Download PDFInfo
- Publication number
- CN106791407B CN106791407B CN201611229045.1A CN201611229045A CN106791407B CN 106791407 B CN106791407 B CN 106791407B CN 201611229045 A CN201611229045 A CN 201611229045A CN 106791407 B CN106791407 B CN 106791407B
- Authority
- CN
- China
- Prior art keywords
- self
- timer
- timer object
- range
- time period
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/66—Remote control of cameras or camera parts, e.g. by remote control devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Length Measuring Devices By Optical Means (AREA)
- Telephone Function (AREA)
- Studio Devices (AREA)
Abstract
The invention discloses a self-timer control method and a system, wherein the method comprises the following steps: acquiring a self-timer starting signal; identifying and tracking a self-timer object in a self-timer range; judging whether the action state of the self-timer object meets a preset self-timer condition or not; if yes, generating a self-timer instruction to capture a self-timer object. At whole auto heterodyne in-process, mobile terminals such as cell-phone that has the auto heterodyne function only need monitor user's action state can, the user only need face when autodyning the camera keep accord with the above-mentioned action state of presetting the auto heterodyne condition can, need not user manual operation, when having realized swift auto heterodyne, owing to need not to touch mobile terminals such as cell-phone, mobile terminal rocks when having prevented to shoot, the quality of shooing has been guaranteed, furthermore, need not one-hand operation, the appearance of the condition of falling from the hand of mobile terminals such as cell-phone when having reduced to shoot.
Description
Technical Field
The invention relates to the technical field of camera shooting, in particular to a self-shooting control method and a self-shooting control system.
Background
With the improvement of living standard of people, people gradually begin to enjoy and record the beauty in life. In daily life, many people like taking pictures and self-shooting, and particularly for female users, the self-shooting behavior by using mobile terminals such as mobile phones is increasing.
In order to ensure that a user can complete self-shooting, shooting operation keys such as keys are designed for current mobile terminals such as mobile phones, and the user can perform self-shooting by pressing a volume key, a fingerprint key or a shooting key on a screen. However, when a user takes a self-timer, the user needs to press a key or touch a screen by a finger to complete shooting, so that a mobile terminal such as a mobile phone slightly shakes due to the touch of the user, which directly affects the shooting quality, especially for a mobile phone with a screen of more than 5 inches, because the operation is very inconvenient by one hand, when the user operates the self-timer by one hand, the user presses a shooting key or the screen, which is very inconvenient, so that the shaking is easily generated, the shooting quality is directly affected, and the mobile phone is in danger of falling from the hand.
Therefore, how to ensure the quality of photographing when realizing convenient self-photographing is a technical problem that needs to be solved by the technicians in the field at present.
Disclosure of Invention
The invention aims to provide a self-photographing control method and a self-photographing control system, which can ensure the photographing quality when realizing convenient self-photographing.
In order to solve the technical problems, the invention provides the following technical scheme:
a self-timer control method includes:
acquiring a self-timer starting signal;
identifying and tracking a self-timer object in a self-timer range;
judging whether the action state of the self-timer object meets a preset self-timer condition or not;
if yes, generating a self-shooting instruction and capturing the self-shooting object.
Preferably, the determining whether the motion state of the self-timer object meets a preset self-timer condition includes:
and judging whether the self-timer object keeps a static state within a preset time period in the current self-timer range.
Preferably, the determining whether the self-timer object keeps a static state within a preset time period in a current self-timer range includes:
and judging whether the position of the self-timer object in the preset time period is unchanged relative to the position of the static reference object in the current self-timer range.
Preferably, the determining whether the self-timer object keeps a static state within a preset time period in a current self-timer range includes:
and judging whether the position coordinates of the self-timer object in the current self-timer range are kept unchanged in the preset time period.
Preferably, the determining whether the position coordinate of the self-timer object in the current self-timer range remains unchanged within the preset time period includes:
extracting different feature points of the self-timer object in the current self-timer range;
acquiring the position coordinates of each feature point in the current self-photographing range;
acquiring the variation of the position coordinates of each feature point in the preset time period;
and judging whether the variation of the position coordinates of each feature point is smaller than a preset variation threshold value.
Preferably, the determining whether the self-timer object keeps a static state within a preset time period in a current self-timer range includes:
acquiring first image information of the self-timer object at a first moment through two cameras;
carrying out image overlapping processing on the corresponding first image information acquired by the two cameras;
judging whether the self-timer object is in a static state at present according to the image processing result;
if yes, calculating a first distance between the self-timer object and the double cameras according to the first image information;
at a second moment after the preset time period, acquiring second image information of the self-timer object through the double cameras;
performing image overlapping processing on the corresponding second image information acquired by the two cameras;
judging whether the self-timer object is in a static state at present according to the image processing result;
if yes, calculating a second distance between the self-timer object and the double cameras according to the second image information;
judging whether the first distance and the second distance are the same;
if yes, the self-timer object is judged to be in a static state within a preset time period in the current self-timer range.
A self-timer control system, comprising:
the starting acquisition module is used for acquiring a self-timer starting signal;
the identification tracking module is used for identifying and tracking a self-timer object in a self-timer range;
the judging module is used for judging whether the action state of the self-timer object meets the preset self-timer condition or not;
and the self-timer execution module is used for generating a self-timer instruction to take a snapshot of the self-timer object when the judgment module judges that the action state of the self-timer object meets the preset self-timer condition.
Preferably, the judging module includes:
the first judgment unit is used for judging whether the self-timer object keeps a static state within a preset time period in the current self-timer range or not;
and the timing unit is used for carrying out focusing timing on the self-timer object.
Preferably, the first judgment unit includes:
the static reference object extracting subunit is used for extracting the static scenery in the current self-photographing range as a static reference object;
and the first judgment subunit is used for judging whether the position of the self-timer object in the preset time period is unchanged relative to the position of the static reference object in the current self-timer range.
Preferably, the first judgment unit includes:
a coordinate calculating subunit, configured to calculate position coordinates of the self-timer object in the current self-timer range;
and the second judgment subunit is used for judging whether the position coordinates of the self-timer object in the current self-timer range are kept unchanged in the preset time period.
Preferably, the second judging subunit includes:
a feature point extracting part for extracting different feature points of the self-timer object in the current self-timer range;
a position coordinate acquiring part for acquiring the position coordinates of each feature point in the current self-photographing range;
a position coordinate variation calculating part for acquiring the variation of the position coordinates of each feature point in the preset time period;
and the first judgment part is used for judging whether the variation of the position coordinates of the characteristic points is smaller than a preset variation threshold value.
Preferably, the system includes two cameras, wherein the first judging unit includes:
the image acquisition subunit is used for acquiring first image information of the self-timer object at a first moment through the double cameras and acquiring second image information of the self-timer object through the double cameras at a second moment after the preset time period;
the image overlapping processing subunit is used for performing image overlapping processing on the corresponding first image information acquired by the two cameras and performing image overlapping processing on the corresponding second image information acquired by the two cameras;
a third judging subunit, configured to judge whether the self-timer object is currently in a static state according to a result of image overlap processing corresponding to the current time;
a first distance calculating subunit, configured to calculate, when it is determined that the self-timer object is currently in a stationary state according to a result of image overlap processing corresponding to a first time, a first distance between the self-timer object and the two cameras according to each piece of the first image information;
a second distance calculating subunit, configured to calculate, when it is determined that the self-timer object is currently in a stationary state according to a result of image overlap processing corresponding to a second time, a second distance between the self-timer object and the two cameras according to each piece of the second image information;
and the fourth judging subunit is used for judging whether the first distance and the second distance are the same, and judging that the self-timer object keeps a static state in a preset time period in the current self-timer range when the first distance and the second distance are the same.
Compared with the prior art, the technical scheme has the following advantages:
the self-timer control method provided by the embodiment of the invention comprises the following steps: acquiring a self-timer starting signal; identifying and tracking a self-timer object in a self-timer range; judging whether the action state of the self-timer object meets a preset self-timer condition or not; if yes, generating a self-timer instruction to capture a self-timer object. After a self-timer starting signal is acquired, a self-timer object starts to be identified and tracked, whether the action state of the self-timer object meets the preset self-timer condition or not is judged in the identification and tracking process, and when the action state of the self-timer object is judged to meet the preset self-timer condition, automatic snapshot is carried out, and self-timer of a user is achieved. At whole auto heterodyne in-process, mobile terminals such as cell-phone that has the auto heterodyne function only need monitor user's action state can, the user only need face when autodyning the camera keep accord with the above-mentioned action state of presetting the auto heterodyne condition can, need not user manual operation, when having realized swift auto heterodyne, owing to need not to touch mobile terminals such as cell-phone, mobile terminal rocks when having prevented to shoot, the quality of shooing has been guaranteed, furthermore, need not one-hand operation, the appearance of the condition that mobile terminals such as cell-phone fell from the hand when having reduced to shoot.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings 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 invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a self-timer control method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a self-timer control system according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a self-photographing control method and a self-photographing control system, which can ensure the photographing quality when realizing the convenient self-photographing.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
In the following description, specific details are set forth in order to provide a thorough understanding of the present invention. The invention can be implemented in a number of ways different from those described herein and similar generalizations can be made by those skilled in the art without departing from the spirit of the invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
Referring to fig. 1, fig. 1 is a flowchart illustrating a self-timer control method according to an embodiment of the present invention.
A specific embodiment of the present invention provides a self-timer control method, including:
s11: and acquiring a self-timer starting signal.
When a user takes a self-timer, a front camera of a mobile terminal such as a mobile phone needs to be opened under normal conditions. In this embodiment, a self-timer starting signal is obtained in response to a user operation, and the start of a self-timer process is triggered.
S12: a self-timer object within a self-timer range is identified and tracked.
The method comprises the steps of identifying a portrait in a self-photographing range, carrying out face identification to determine a self-photographing object, tracking the self-photographing object, carrying out diagonal tracking on the self-photographing object and the like to ensure that a clear image of the self-photographing object is displayed on a display interface of the mobile terminal.
S13: and judging whether the action state of the self-timer object meets the preset self-timer condition or not.
A self-timer condition is set in a mobile terminal such as a mobile phone in advance, and whether the action state of a self-timer object meets the self-timer condition or not is judged in real time.
S14: if yes, generating a self-timer instruction and capturing a self-timer object.
And when the action state of the self-timer object is judged to accord with the preset self-timer condition, a self-timer instruction is automatically generated, and the self-timer object is captured.
In the whole self-timer process of the embodiment, the mobile terminals such as the mobile phone with the self-timer function only need to monitor the action state of the user, the user only needs to face the action state of the self-timer camera to keep in line with the preset self-timer condition during self-timer, the user does not need to manually touch the mobile terminal for operation, when the quick self-timer is realized, the mobile terminal such as the mobile phone does not need to be touched, the mobile terminal is prevented from shaking during shooting, the shooting quality is ensured, in addition, the single-hand operation is not needed, and the occurrence of the condition that the mobile terminal such as the mobile phone falls from the hand during shooting is reduced.
It should be noted that, when the action state of the self-timer object is determined not to meet the preset self-timer condition, the action of identifying and tracking the self-timer object in the self-timer range can be maintained.
In one embodiment of the present invention, the determining whether the motion state of the self-timer object meets a preset self-timer condition includes: and judging whether the self-timer object keeps a static state within a preset time period in the current self-timer range.
In order to realize self-timer without touching the mobile terminal, the trigger condition of self-timer is preferably set to keep the self-timer object in a static state for a preset time period. And if the self-timer object keeps still for 3 seconds, judging that the action state of the self-timer object at the moment accords with the preset self-timer condition, triggering the snapshot action, and finishing self-timer.
Further, judging whether the self-timer object keeps a static state within a preset time period in the current self-timer range includes: and judging whether the position of the self-timer object in a preset time period is unchanged relative to the position of a static reference object in the current self-timer range.
In the present embodiment, how to determine whether or not the self-timer object has remained in a stationary state is described. When a self-timer user carries out self-timer, scenes in a self-timer range are identified, one or more static scenes are selected as static reference objects, whether the self-timer object keeps unchanged with the position of the selected static reference object in a preset time period or not is judged, and if yes, the position of the self-timer object in the preset time period relative to the position of the static reference object in the current self-timer range is judged to keep unchanged.
It should be noted that when the user performs self-timer shooting, the body of the user may be slightly moved, and in this case, the position of the self-timer object relative to the static reference object may be regarded as unchanged. Specifically, the variation of the positions of the self-timer object and the selected static reference object may be calculated, and when the variation is smaller than a preset variation threshold, it is determined that the self-timer object is kept still relative to the static reference object.
In another embodiment of the present invention, determining whether a self-timer object remains in a stationary state for a preset time period in a current self-timer range includes: and judging whether the position coordinates of the self-timer object in the current self-timer range are kept unchanged in a preset time period.
In practical application, sometimes a user needs to perform self-shooting when the user is in a motion state, and it is difficult to select a static reference object to trigger self-shooting. In the embodiment, it is only necessary to determine that the motion state of the self-timer object meets the preset self-timer condition if the position coordinate of the self-timer object in the current self-timer range remains unchanged within the preset time period. Namely, when the self-timer object and the mobile terminal are kept relatively still, the action state of the self-timer object is judged to accord with the preset self-timer condition.
Further, judging whether the position coordinates of the self-timer object in the current self-timer range are kept unchanged in a preset time period comprises the following steps: extracting different feature points of a self-timer object in a current self-timer range; acquiring the position coordinates of each feature point in the current self-photographing range; acquiring the variation of the position coordinates of each feature point in a preset time period; and judging whether the variation of the position coordinates of each feature point is smaller than a preset variation threshold value.
In the present embodiment, in order to ensure the realizability and applicability of self-timer shooting, different feature points of a self-timer shooting object may be extracted, wherein the so-called feature points may be some points with specific features in a human body image of a self-timer user, such as eyes, nose, ears of a human body, or even some point or some several points selected from human body contours within a self-timer shooting range. And acquiring the position coordinates of each feature point in the self-photographing range, and if the nose of the self-photographing object is positioned at the central point of the current self-photographing range, determining the coordinates of the nose of the self-photographing object in a coordinate system formed by the framing range in the framing range of the mobile terminal. Especially, when a user carries out self-timer in a motion state, a certain change is inevitably generated with the relative position of the mobile terminal, therefore, the variation of the position coordinates of each feature point in a preset time period is obtained, when each variation is smaller than a corresponding preset variation threshold value, the self-timer object and the mobile terminal for self-timer are judged to be kept relatively static in the preset time period, at the moment, the action state of the self-timer object is judged to accord with the preset self-timer condition, the self-timer action is triggered, and self-timer is realized.
In one embodiment of the present invention, a self-timer control method using two cameras is explained.
In this embodiment, the determining whether the self-timer object remains in a static state within a preset time period in the current self-timer range includes:
the first image information of the self-timer object is obtained through the double cameras at the first moment, namely when a user opens the self-timer function of the mobile terminal, the first image information of the self-timer object is obtained through the double cameras of the self-timer of the mobile terminal.
The method comprises the steps of carrying out image overlapping processing on corresponding first image information acquired by two cameras, adopting the two cameras to carry out image acquisition, enabling each camera to acquire an image at the first moment, namely, each camera acquires first image information, then carrying out overlapping processing on the first image information acquired by the two cameras respectively, namely, overlapping the images of the two first image information, detecting whether each image point can be overlapped or not, and mainly detecting whether the outlines of self-shooting objects in the two images can be overlapped or not.
And judging whether the self-timer object is in a static state at present according to the image processing result. And judging whether the self-timer object is in a static state at present according to the superposition result of the images. When the images of the two pieces of first image information are subjected to overlapping processing, if the overlapping rate is greater than a preset overlapping threshold value, the overlapping is judged to meet the requirement, namely, the self-timer object is judged to be in a static state at the moment.
And if so, calculating a first distance between the self-timer object and the double cameras according to the first image information. The distance from the self-timer object to the mobile terminal where the two cameras are located can be determined by the two cameras and the self-timer object, and the distance is defined as a first distance between the self-timer object and the two cameras.
And at a second moment after the preset time period, acquiring second image information of the self-shooting object through the double cameras. In order to determine that the user is ready to perform self-timer shooting, second image information of a self-timer object is acquired by the dual cameras at a second time when a preset time period has elapsed while it is determined that the user is in a still state from the first image information at the first time.
And performing image overlapping processing on the corresponding second image information acquired by the two cameras. Similar to the image superimposition processing for the first image information described above, the second image information is subjected to corresponding processing.
And judging whether the self-timer object is in a static state at present according to the image processing result. Whether the self-timer object is in a static state at this time is judged according to the image overlapping processing result of the second image information obtained at this time.
And if so, calculating a second distance between the self-timer object and the double cameras according to the second image information. And when the self-timer object is judged to be in a static state at the moment, acquiring the distance between the self-timer object and the mobile terminal where the double cameras are positioned at the moment, and defining the distance as a second distance between the self-timer object and the double cameras.
Judging whether the first distance and the second distance are the same; if yes, the self-timer object is judged to be in a static state within a preset time period in the current self-timer range.
As for the determination of the image superimposition processing result, it is only judged that the self-timer object is kept still at two times, and it cannot be judged whether the self-timer object is in a still state during this process. Therefore, whether the self-timer object is kept still within a preset time period is judged by judging the relationship between the first distance and the second distance, and when the first distance and the second distance are equal, the self-timer user is judged to be in a still state within the preset time period. At this moment, the action state of the self-timer object is judged to accord with the preset self-timer condition, and a self-timer action can be triggered to realize self-timer.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a self-timer control system according to an embodiment of the present invention.
Accordingly, an embodiment of the present invention further provides a self-timer control system, including: the starting acquisition module 1 is used for acquiring a self-timer starting signal; the identification tracking module 2 is used for identifying and tracking a self-timer object in a self-timer range; the judging module 3 is used for judging whether the action state of the self-timer object meets the preset self-timer condition or not; and the self-timer execution module 4 is used for generating a self-timer instruction to capture the self-timer object when the judgment module judges that the action state of the self-timer object meets the preset self-timer condition.
In this embodiment, when a user opens a camera of a mobile terminal such as a mobile phone and starts an automatic self-timer function, the start-up acquisition module acquires a self-timer start-up signal, and at this time, the automatic self-timer function of the mobile terminal is started. The recognition tracking module obtains a shooting picture, recognizes a self-shooting object through a face recognition technology and the like, and tracks the self-shooting object, so that a camera of the mobile terminal is in accurate focusing on the self-shooting object. The judging module judges whether the action state of the self-timer object in the tracking accords with a preset self-timer condition or not, and sends a judgment result to the self-timer executing module when the action state of the self-timer object accords with the preset self-timer condition, and the self-timer executing module generates a self-timer instruction and takes to obtain a self-timer image of the self-timer object.
In the whole self-timer process of the embodiment, the mobile terminals such as the mobile phone with the self-timer function only need to monitor the action state of the user, the user only needs to face the action state of the self-timer camera to keep in line with the preset self-timer condition during self-timer, the user does not need to manually touch the mobile terminal for operation, when the quick self-timer is realized, the mobile terminal such as the mobile phone does not need to be touched, the mobile terminal is prevented from shaking during shooting, the shooting quality is ensured, in addition, the single-hand operation is not needed, and the occurrence of the condition that the mobile terminal such as the mobile phone falls from the hand during shooting is reduced.
In one embodiment of the present invention, the determining module includes: the first judgment unit is used for judging whether the self-timer object keeps a static state within a preset time period in the current self-timer range; and the timing unit is used for carrying out focusing timing on the self-timer object.
The timing unit is used for carrying out focusing timing on the self-timer object in real time, and the first judgment module is used for judging whether the self-timer object keeps a static state within a preset time period in the current self-timer range. The first judging module can judge whether the self-timer object keeps a static state all the time in a period of time and judge whether the period of time of keeping the static state reaches a preset time period for triggering self-timer.
In one embodiment of the present invention, the first judgment unit includes: the static reference object extracting subunit is used for extracting a static scene in the current self-photographing range as a static reference object; the first judging subunit is used for judging whether the position of the self-timer object in a preset time period is unchanged relative to the position of a static reference object in the current self-timer range.
In this embodiment, when a self-timer user performs self-timer, scenes in a self-timer range are identified, one or more static scenes are selected as static reference objects, whether a self-timer object is unchanged with the position of the selected static reference object in a preset time period is judged, and if yes, the position of the self-timer object relative to the static reference object in the current self-timer range in the preset time period is judged to be unchanged.
It should be noted that when the user performs self-timer shooting, the body of the user may be slightly moved, and in this case, the position of the self-timer object relative to the static reference object may be regarded as unchanged. Specifically, the variation of the positions of the self-timer object and the selected static reference object may be calculated, and when the variation is smaller than a preset variation threshold, it is determined that the self-timer object is kept still relative to the static reference object.
In another embodiment of the present invention, the first judging unit includes: a coordinate calculating subunit, configured to calculate position coordinates of the self-timer object in a current self-timer range; and the second judgment subunit is used for judging whether the position coordinates of the self-timer object in the current self-timer range are kept unchanged in a preset time period.
In practical application, sometimes a user needs to perform self-shooting when the user is in a motion state, and it is difficult to select a static reference object to trigger self-shooting. In the embodiment, it is only necessary to determine that the motion state of the self-timer object meets the preset self-timer condition if the position coordinate of the self-timer object in the current self-timer range remains unchanged within the preset time period. Namely, when the self-timer object and the mobile terminal are kept relatively still, the action state of the self-timer object is judged to accord with the preset self-timer condition.
Further, the second judging subunit includes: a feature point extraction part for extracting different feature points of the self-timer object in the current self-timer range; a position coordinate acquiring part for acquiring the position coordinates of each feature point in the current self-photographing range; the position coordinate variation calculating part is used for acquiring the variation of the position coordinates of each feature point in a preset time period; and the first judgment part is used for judging whether the variation of the position coordinates of each characteristic point is smaller than a preset variation threshold value.
In the present embodiment, in order to ensure the realizability and applicability of self-timer shooting, different feature points of a self-timer shooting object may be extracted, where the so-called feature points may be some points with specific features in a human body image of a self-timer user, such as eyes, nose, ears of a human body, or even some or several points selected from human body contours in a self-timer shooting range, and position coordinates of each feature point in the self-timer shooting range are acquired. Especially, when a user carries out self-timer in a motion state, a certain change is inevitably generated with the relative position of the mobile terminal, therefore, the variation of the position coordinates of each feature point in a preset time period is obtained, when each variation is smaller than a corresponding preset variation threshold value, the self-timer object and the mobile terminal for self-timer are judged to be kept relatively static in the preset time period, at the moment, the action state of the self-timer object is judged to accord with the preset self-timer condition, the self-timer action is triggered, and self-timer is realized.
In one embodiment of the present invention, a self-timer control system using two cameras is explained.
The first judgment unit includes: the image acquisition sub-unit is used for acquiring first image information of a self-timer object at a first moment through the double cameras and acquiring second image information of the self-timer object through the double cameras at a second moment after a preset time period;
the image overlapping processing subunit is used for performing image overlapping processing on the corresponding first image information acquired by the two cameras and performing image overlapping processing on the corresponding second image information acquired by the two cameras;
a third judging subunit, configured to judge whether the self-timer object is currently in a static state according to a result of image overlap processing corresponding to the current time;
a first distance calculating subunit, configured to calculate, when it is determined that the self-timer object is currently in a stationary state according to a result of image overlap processing corresponding to a first time, a first distance between the self-timer object and the two cameras according to each piece of first image information;
the second distance calculation subunit is used for calculating second distances between the self-timer object and the double cameras according to the information of each second image when the self-timer object is judged to be in a static state at present according to the result of the image overlapping processing corresponding to the second moment;
and the fourth judging subunit is used for judging whether the first distance and the second distance are the same, and judging that the self-timer object keeps a static state in a preset time period in the current self-timer range when the first distance and the second distance are the same.
In this embodiment, the first image information of the self-timer object is obtained by the two cameras at the first time, that is, when the user starts the self-timer function of the mobile terminal, the first image information of the self-timer object is obtained by the two cameras of the mobile terminal.
The method comprises the steps of adopting two cameras to obtain images, obtaining one image by each camera at the first moment, namely obtaining first image information by each camera, overlapping the first image information obtained by the two cameras respectively, namely overlapping the images of the two first image information, detecting whether each image point can be overlapped, and detecting whether the outlines of self-shooting objects in the two images can be overlapped.
And judging whether the self-timer object is in a static state at present according to the superposition result of the images. When the images of the two pieces of first image information are subjected to overlapping processing, if the overlapping rate is greater than a preset overlapping threshold value, the overlapping is judged to meet the requirement, namely, the self-timer object is judged to be in a static state at the moment.
The distance from the self-timer object to the mobile terminal where the two cameras are located can be determined by the two cameras and the self-timer object, and the distance is defined as a first distance between the self-timer object and the two cameras.
In order to determine that the user is ready to perform self-timer shooting, second image information of a self-timer object is acquired by the dual cameras at a second time when a preset time period has elapsed while it is determined that the user is in a still state from the first image information at the first time.
Similar to the image superimposition processing for the first image information described above, the second image information is subjected to corresponding processing.
Whether the self-timer object is in a static state at this time is judged according to the image overlapping processing result of the second image information obtained at this time.
And when the self-timer object is judged to be in a static state at the moment, acquiring the distance between the self-timer object and the mobile terminal where the double cameras are positioned at the moment, and defining the distance as a second distance between the self-timer object and the double cameras.
As for the determination of the image superimposition processing result, it is only judged that the self-timer object is kept still at two times, and it cannot be judged whether the self-timer object is in a still state during this process. Therefore, whether the self-timer object is kept still within a preset time period is judged by judging the relationship between the first distance and the second distance, and when the first distance and the second distance are equal, the self-timer user is judged to be in a still state within the preset time period. At this moment, the action state of the self-timer object is judged to accord with the preset self-timer condition, and a self-timer action can be triggered to realize self-timer.
In summary, the self-timer control method and system provided by the invention, the mobile terminal such as a mobile phone with a self-timer function only needs to monitor the action state of the user, and the user only needs to face the action state of the self-timer camera which meets the preset self-timer condition when taking a self-timer, if the self-timer user lays a position, the self-timer camera keeps static relative to the mobile terminal within a few seconds, and the user does not need to manually touch the mobile terminal for operation, so that the quick self-timer is realized, meanwhile, the mobile terminal such as the mobile phone is not needed to be touched, the mobile terminal is prevented from shaking during taking a picture, the picture taking quality is ensured, in addition, the single-hand operation is not needed, and the condition that the mobile terminal such as the mobile phone falls from the hand during taking a.
The self-timer control method and system provided by the invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the present invention and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Claims (4)
1. A self-timer control method is characterized by comprising the following steps:
acquiring a self-timer starting signal;
identifying and tracking a self-timer object in a self-timer range;
judging whether the action state of the self-timer object meets a preset self-timer condition or not;
if yes, generating a self-photographing instruction, and capturing the self-photographing object;
wherein, the judging whether the action state of the self-timer object accords with the preset self-timer condition comprises:
judging whether the self-timer object keeps a static state within a preset time period in the current self-timer range;
wherein, the judging whether the self-timer object keeps a static state in a preset time period in the current self-timer range includes:
judging whether the position of the self-timer object in the preset time period is unchanged relative to the position of a static reference object in the current self-timer range; or, the judging whether the self-timer object keeps a static state within a preset time period in the current self-timer range includes:
judging whether the position coordinates of the self-timer object in the current self-timer range are kept unchanged within the preset time period;
wherein, the judging whether the self-timer object keeps a static state in a preset time period in the current self-timer range includes:
acquiring first image information of the self-timer object at a first moment through two cameras;
carrying out image overlapping processing on the corresponding first image information acquired by the two cameras;
judging whether the self-timer object is in a static state at present according to the image processing result;
if yes, calculating a first distance between the self-timer object and the double cameras according to the first image information;
at a second moment after the preset time period, acquiring second image information of the self-timer object through the double cameras;
performing image overlapping processing on the corresponding second image information acquired by the two cameras;
judging whether the self-timer object is in a static state at present according to the image processing result;
if yes, calculating a second distance between the self-timer object and the double cameras according to the second image information;
judging whether the first distance and the second distance are the same;
if yes, the self-timer object is judged to be in a static state within a preset time period in the current self-timer range.
2. The method of claim 1, wherein the determining whether the position coordinates of the self-timer object in the current self-timer range remain unchanged within the preset time period comprises:
extracting different feature points of the self-timer object in the current self-timer range;
acquiring the position coordinates of each feature point in the current self-photographing range;
acquiring the variation of the position coordinates of each feature point in the preset time period;
and judging whether the variation of the position coordinates of each feature point is smaller than a preset variation threshold value.
3. A self-timer control system, comprising:
the starting acquisition module is used for acquiring a self-timer starting signal;
the identification tracking module is used for identifying and tracking a self-timer object in a self-timer range;
the judging module is used for judging whether the action state of the self-timer object meets the preset self-timer condition or not;
the self-timer execution module is used for generating a self-timer instruction to capture the self-timer object when the judgment module judges that the action state of the self-timer object meets the preset self-timer condition;
wherein, the judging module comprises:
the first judgment unit is used for judging whether the self-timer object keeps a static state within a preset time period in the current self-timer range or not;
the timing unit is used for carrying out focusing timing on the self-timer object;
wherein the first judgment unit includes:
the static reference object extracting subunit is used for extracting the static scenery in the current self-photographing range as a static reference object;
the first judgment subunit is used for judging whether the position of the self-timer object in the preset time period is unchanged relative to the position of the static reference object in the current self-timer range; or, the first judging unit includes:
a coordinate calculating subunit, configured to calculate position coordinates of the self-timer object in the current self-timer range;
the second judgment subunit is used for judging whether the position coordinates of the self-timer object in the current self-timer range are kept unchanged within the preset time period;
the system comprises two cameras, wherein the first judging unit comprises:
the image acquisition subunit is used for acquiring first image information of the self-timer object at a first moment through the double cameras and acquiring second image information of the self-timer object through the double cameras at a second moment after the preset time period;
the image overlapping processing subunit is used for performing image overlapping processing on the corresponding first image information acquired by the two cameras and performing image overlapping processing on the corresponding second image information acquired by the two cameras;
a third judging subunit, configured to judge whether the self-timer object is currently in a static state according to a result of image overlap processing corresponding to the current time;
a first distance calculating subunit, configured to calculate, when it is determined that the self-timer object is currently in a stationary state according to a result of image overlap processing corresponding to a first time, a first distance between the self-timer object and the two cameras according to each piece of the first image information;
a second distance calculating subunit, configured to calculate, when it is determined that the self-timer object is currently in a stationary state according to a result of image overlap processing corresponding to a second time, a second distance between the self-timer object and the two cameras according to each piece of the second image information;
and the fourth judging subunit is used for judging whether the first distance and the second distance are the same, and judging that the self-timer object keeps a static state in a preset time period in the current self-timer range when the first distance and the second distance are the same.
4. The system of claim 3, wherein the second determining subunit comprises:
a feature point extracting part for extracting different feature points of the self-timer object in the current self-timer range;
a position coordinate acquiring part for acquiring the position coordinates of each feature point in the current self-photographing range;
a position coordinate variation calculating part for acquiring the variation of the position coordinates of each feature point in the preset time period;
and the first judgment part is used for judging whether the variation of the position coordinates of the characteristic points is smaller than a preset variation threshold value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611229045.1A CN106791407B (en) | 2016-12-27 | 2016-12-27 | Self-timer control method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611229045.1A CN106791407B (en) | 2016-12-27 | 2016-12-27 | Self-timer control method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106791407A CN106791407A (en) | 2017-05-31 |
CN106791407B true CN106791407B (en) | 2021-02-23 |
Family
ID=58922798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611229045.1A Active CN106791407B (en) | 2016-12-27 | 2016-12-27 | Self-timer control method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106791407B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108024063A (en) * | 2017-12-15 | 2018-05-11 | 苏州燕云网络技术有限公司 | The image pickup method and device of mobile terminal |
CN112422823B (en) * | 2020-11-09 | 2022-08-09 | 广汽本田汽车有限公司 | Automatic visual shooting triggering method and device |
CN112887770B (en) * | 2021-01-26 | 2023-08-08 | Oppo广东移动通信有限公司 | Photo transmission method, device, television and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103985230A (en) * | 2014-05-14 | 2014-08-13 | 深圳市大疆创新科技有限公司 | Notification method, device and system based on image |
CN105430262A (en) * | 2015-11-17 | 2016-03-23 | 小米科技有限责任公司 | Photographing control method and photographing control device |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5224955B2 (en) * | 2008-07-17 | 2013-07-03 | キヤノン株式会社 | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND RECORDING MEDIUM |
CN103900477A (en) * | 2012-12-28 | 2014-07-02 | 北京三星通信技术研究有限公司 | Method for judging relative displacement of handheld device, and handheld device |
CN103475816A (en) * | 2013-08-30 | 2013-12-25 | 广东欧珀移动通信有限公司 | Self-timer control method and device |
US9418279B2 (en) * | 2013-11-19 | 2016-08-16 | Qualcomm Incorporated | Detection of an object's varying features with a non-stationary device |
CN104780308A (en) * | 2014-01-09 | 2015-07-15 | 联想(北京)有限公司 | Information processing method and electronic device |
CN104159037A (en) * | 2014-08-26 | 2014-11-19 | 厦门美图之家科技有限公司 | Self-timer method for automatically photographing |
CN104318206B (en) * | 2014-09-30 | 2017-09-29 | 东软集团股份有限公司 | A kind of obstacle detection method and device |
-
2016
- 2016-12-27 CN CN201611229045.1A patent/CN106791407B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103985230A (en) * | 2014-05-14 | 2014-08-13 | 深圳市大疆创新科技有限公司 | Notification method, device and system based on image |
CN105430262A (en) * | 2015-11-17 | 2016-03-23 | 小米科技有限责任公司 | Photographing control method and photographing control device |
Also Published As
Publication number | Publication date |
---|---|
CN106791407A (en) | 2017-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11860511B2 (en) | Image pickup device and method of tracking subject thereof | |
WO2020103526A1 (en) | Photographing method and device, storage medium and terminal device | |
US10270975B2 (en) | Preview image display method, apparatus and storage medium | |
CN112118380B (en) | Camera control method, device, equipment and storage medium | |
CN107835359B (en) | Photographing triggering method of mobile terminal, mobile terminal and storage device | |
EP3544286B1 (en) | Focusing method, device and storage medium | |
CN103685940A (en) | Method for recognizing shot photos by facial expressions | |
KR101762769B1 (en) | Apparatus and method for capturing subject in photographing device | |
US8947552B2 (en) | Method and device with camera for capturing an image based on detection of the image | |
EP3246850A1 (en) | Image sending method and apparatus, computer program and recording medium | |
CN106791407B (en) | Self-timer control method and system | |
JP7167244B2 (en) | Occluded Image Detection Method, Apparatus, and Medium | |
KR20170048555A (en) | Iris image acquisition method and apparatus, and iris recognition device | |
KR20210133104A (en) | Method and device for shooting image, and storage medium | |
CN112738388B (en) | Photographing processing method and system, electronic device and storage medium | |
US20170244891A1 (en) | Method for automatically capturing photograph, electronic device and medium | |
TWI519840B (en) | Method for automatically focusing on specific movable object, photographic apparatus including automatic focus function, and computer readable storage media for storing automatic focus function program | |
CN111582258B (en) | Image processing method, device, electronic equipment and readable storage medium | |
CN110969067A (en) | User registration and authentication method and device | |
CN115334241B (en) | Focusing control method, device, storage medium and image pickup apparatus | |
JP5109779B2 (en) | Imaging device | |
CN113891002B (en) | Shooting method and device | |
CN111726531B (en) | Image shooting method, processing method, device, electronic equipment and storage medium | |
WO2018196615A1 (en) | Photographing control method and apparatus | |
EP3945717A1 (en) | Take-off capture method and electronic device, 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 |