CN105163025B - Image capturing method and electronic device - Google Patents
Image capturing method and electronic device Download PDFInfo
- Publication number
- CN105163025B CN105163025B CN201510548744.1A CN201510548744A CN105163025B CN 105163025 B CN105163025 B CN 105163025B CN 201510548744 A CN201510548744 A CN 201510548744A CN 105163025 B CN105163025 B CN 105163025B
- Authority
- CN
- China
- Prior art keywords
- image
- image capturing
- scene
- specific targets
- specific
- 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
Landscapes
- Studio Devices (AREA)
Abstract
The invention provides image capturing methods and electronic devices using the same.A method for capturing images includes acquiring a detection image of a subject scene through a th image capturing unit of at least two image capturing units, determining whether a plurality of specific targets satisfying a th predetermined condition exist in the detection image, acquiring a th image of the subject scene through the th image capturing unit and a second image of the subject scene through a second image capturing unit of the at least two image capturing units in response to the presence of the plurality of specific targets satisfying the th predetermined condition, and combining the th image and the second image as a captured image of the subject scene.
Description
Technical Field
The present invention relates to the field of image capture, and more particularly, to image capture methods and electronic devices using the same.
Background
When shooting with an image capturing unit configured on an electronic device, such as double self-shooting or shooting a multi-person scene, it is difficult for AF or FF focusing modules to take the shooting of two or more subjects at the same time, which often causes differences in the definition of the faces of the two or more subjects.
Therefore, it is desirable to provide image capturing methods and electronic apparatuses using the image capturing methods, which are capable of capturing an image including a clear image of each subject when there are two or more subjects.
Disclosure of Invention
According to embodiments of the disclosure, image capturing methods are provided, which are applied to an electronic device having at least two image capturing units, and include acquiring a detection image of a subject scene through a th image capturing unit of the at least two image capturing units, determining whether a plurality of specific targets satisfying a th predetermined condition exist in the detection image, acquiring a th image of the subject scene through the th image capturing unit and a second image of the subject scene through a second image capturing unit of the at least two image capturing units in response to the existence of the plurality of specific targets satisfying the th predetermined condition, and combining the th image and the second image as a captured image of the subject scene.
Further, the image capturing method according to embodiments of the present disclosure, wherein the -th predetermined condition is that the number of the plurality of specific targets is 2 or more.
Further, an image capturing method according to embodiments of the present disclosure, wherein the -th predetermined condition is that the number of the plurality of specific targets is equal to 2, and a distance between two of the specific targets is less than a predetermined threshold distance.
Further, the image capturing method according to embodiments of the present disclosure, wherein determining whether there are a plurality of specific targets satisfying a th predetermined condition in the inspection image includes determining whether there are two specific targets in the inspection image, determining a specific point on each specific targets of the two specific targets in response to determining that there are two specific targets, acquiring coordinate information of the specific point, and determining whether a distance between the specific points on each specific targets is less than the predetermined threshold distance based on the coordinate information of the specific point.
Further, an image capturing method according to embodiments of the present disclosure, wherein the -th predetermined condition is that the number of the plurality of specific targets is equal to 2, and a depth distance between two of the specific targets is less than a predetermined threshold depth distance.
Further, the image capturing method according to embodiments of the present disclosure, wherein determining whether there are a plurality of specific targets satisfying a th predetermined condition in the inspection image includes determining whether there are two specific targets in the inspection image, determining a specific point on each specific targets of the two specific targets in response to determining that there are two specific targets, acquiring depth information of the specific point, and determining whether a depth distance between the specific points on each specific targets is less than the predetermined threshold depth distance based on the depth information of the specific point.
Further, the image capturing methods according to embodiments of the present disclosure, wherein the th predetermined condition is that the number of the specific targets is greater than 2, and a distance of two specific targets having the largest and second largest imaging areas in the detection image among the specific targets is smaller than a predetermined threshold distance.
Furthermore, the image capturing method according to the present disclosure, wherein the obtaining a th image of the subject scene by the image capturing unit and the obtaining a second image of the subject scene by a second image capturing unit of the at least two image capturing units comprises obtaining a th image of the subject scene with of the specific targets as focal points by the image capturing unit and obtaining a second image of the subject scene with another of the specific targets as focal points by the second image capturing unit.
Further, an image capturing method according to embodiments of the present disclosure, wherein combining the th image and the second image as the captured image of the photographic scene includes replacing image data of the same photographic scene coordinates in the th image with image data corresponding to the second image, and taking the th image after the replacement as the captured image.
According to another embodiments of the disclosure, there are provided electronic devices including at least two image capturing units for capturing images of a subject scene, and a processing unit for controlling the at least two image capturing units to acquire the images of the subject scene, wherein the processing unit controls acquisition of a detection image of the subject scene by a th image capturing unit of the at least two image capturing units, the processing unit determines whether a plurality of specific targets satisfying a th predetermined condition exist in the detection image, in response to existence of the plurality of specific targets satisfying the th predetermined condition, the processing unit controls acquisition of a image of the subject scene by the th image capturing unit and acquisition of a second image of the subject scene by a second image capturing unit of the at least two image capturing units, and combines the th image and the second image as a captured image of the subject scene.
Further, an electronic device according to another embodiments of the present disclosure, wherein the at least two image capture units have different pixels.
Further, an electronic device according to another embodiments of the present disclosure, wherein the th predetermined condition is that the number of the plurality of specific targets is 2 or more.
Furthermore, an electronic device according to another embodiments of the present disclosure, wherein the th predetermined condition is that the number of the plurality of specific targets is equal to 2, and a distance between two of the specific targets is less than a predetermined threshold distance.
Furthermore, the electronic device according to another embodiments of the present disclosure, wherein the processing unit determines whether two specific targets exist in the inspection image, determines a specific point on each specific targets of the two specific targets in response to determining that two specific targets exist, acquires coordinate information of the specific point, and determines whether a distance between the specific points on each specific targets is less than the predetermined threshold distance based on the coordinate information of the specific point.
Further, an electronic device according to another embodiments of the present disclosure, wherein the th predetermined condition is that the number of the plurality of specific targets is equal to 2, and a depth distance between two of the specific targets is less than a predetermined threshold depth distance.
Furthermore, the electronic device according to another embodiments of the present disclosure, wherein the processing unit determines whether two specific targets exist in the inspection image, determines a specific point on each specific targets of the two specific targets in response to determining that two specific targets exist, acquires depth information of the specific point, and determines whether a depth distance between the specific points on each specific targets is less than the predetermined threshold depth distance based on the depth information of the specific point.
Further, an electronic device according to another embodiments of the present disclosure, wherein the th predetermined condition is that the number of the specific targets is greater than 2, and a distance of two specific targets having the largest and second largest imaging areas in the detection image among the specific targets is smaller than a predetermined threshold distance.
Furthermore, an electronic device according to another embodiments of the present disclosure, wherein the th image of the subject scene is acquired by the th image capturing unit with of the plurality of specific targets as focal points, and the second image of the subject scene is acquired by the second image capturing unit with another of the plurality of specific targets as focal points.
Further, the electronic device according to another embodiments of the present disclosure, wherein the processing unit replaces image data of the same subject scene coordinates in the th image with image data corresponding to the second image, and takes the th image after the replacement as the captured image.
It is to be understood that both the foregoing -general description and the following detailed description are exemplary and are intended to provide further illustrations of the claimed technology.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent upon consideration of the following detailed description of the embodiments of the present invention taken in conjunction with the accompanying drawings, which are included to provide a further understanding of the embodiments of the present invention and form part of the specification, which together with the embodiment serve to explain the invention and are not to be construed as limiting the invention.
FIG. 1 is a block diagram illustrating an electronic device according to an embodiment of the invention;
FIG. 2 is a flow chart summarizing an image capture method according to an embodiment of the invention;
FIG. 3 is a flowchart further illustrating an example of an image capture method according to an embodiment of the invention;
FIG. 4 is a diagram further illustrating step the distance between certain points in an th example of an image capture method in accordance with an embodiment of the present invention;
fig. 5A to 5C are schematic diagrams further illustrating a process of obtaining a captured image in an th example of an image capturing method according to an embodiment of the present invention;
FIG. 6 is a flowchart further to step illustrating a second example of an image capture method according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating, at step , the depth distance between particular points in a second example of an image capture method, in accordance with an embodiment of the present invention, and
fig. 8 is a flowchart further illustrating a third example of an image capture method according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the present invention more apparent, exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings, obviously, the described embodiments are only some embodiments of the present invention, not all embodiments of the present invention, and it should be understood that the present invention is not limited by the exemplary embodiments described herein.
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a block diagram illustrating an electronic device according to an embodiment of the present invention. As shown in fig. 1, an electronic device 1 according to an embodiment of the present invention includes at least two image capturing units 10 and 20 and a processing unit 30. It is to be readily understood that fig. 1 shows only the elements that are germane to the present invention. However, the electronic apparatus according to the embodiment of the present invention is not limited thereto, but may further include other units such as an input unit, a display unit, a communication unit, and the like, and a detailed description thereof will be omitted herein.
Specifically, an th image capturing unit 10 and a second image capturing unit 20 are illustrated in FIG. 1. in embodiments of the present invention, the th image capturing unit 10 and the second image capturing unit 20 are used to capture images of a subject scene. the th image capturing unit 10 and the second image capturing unit 20 are, for example, RGB cameras or depth cameras. in embodiments of the present invention, the th image capturing unit 10 and the second image capturing unit 20 have different pixels. for example, the th image capturing unit 10 is a master camera having a high pixel level and the second image capturing unit 20 is a slave camera having a relatively low pixel level. furthermore, the th image capturing unit 10 and the second image capturing unit 20 are preferably disposed on the same side of the electronic device 1. for example, the th image capturing unit 10 and the second image capturing unit 20 may be both a front or rear camera of the electronic device 1.
The processing unit 30 is used to control the th and second image capturing units 10, 20 to obtain images of the subject scene in embodiments of the invention, the processing unit 30 is a dedicated Graphics Processing Unit (GPU) of the electronic device 1, alternatively, the processing unit 30 is a Central Processing Unit (CPU) of the electronic device 1
In particular, the processing unit 30 of the electronic apparatus 1 according to the embodiment of the present invention can control the th image capturing unit 10 and the second image capturing unit 20 to capture an image including a clear image of each subject when photographing a scene including a plurality of subjects, hereinafter, an image capturing method used by the electronic apparatus according to the embodiment of the present invention will be described in further detail with reference to FIGS. 2 to 8 and .
FIG. 2 is a flow chart summarizing an image capture method according to an embodiment of the present invention. As shown in fig. 2, the image capturing method according to the embodiment of the present invention includes the following steps.
In step S201, the th image capturing unit 10 acquires a detected image of a photographic subject scene As described above, in the case where a plurality of subjects exist in the photographic subject scene, there may not be a sharp image of every of the plurality of subjects in the detected image due to the focusing ability limitation of the th image capturing unit 10, after which the process proceeds to step S202.
In step S202, the processing unit 30 determines whether a plurality of specific targets satisfying a th predetermined condition exist in the detected image, in embodiments of the present invention, the specific targets are human faces, for example, as will be described in detail below, the th predetermined condition may be that the number of the plurality of specific targets is 2 or more, further the th predetermined condition may be that a distance between two specific targets is less than a predetermined threshold distance in a case where two specific targets exist, alternatively, the th predetermined condition may be that a depth distance between two specific targets is less than a predetermined threshold depth distance in a case where two specific targets exist.
If a positive result is obtained in step S202, that is, a plurality of specific objects satisfying the predetermined condition are detected in the image, the process proceeds to step S203.
As will be described in detail below, in embodiments of the present invention, the th image of the subject scene may be the image of the subject scene acquired by the th image capturing unit 10 with of the plurality of specific targets as the focal points, the second image of the subject scene may be the image of the subject scene acquired by the second image capturing unit 20 with another of the plurality of specific targets as the focal points, and thereafter, the process proceeds to step S204.
In step S204, the processing unit 30 combines the th image and the second image as the captured image of the photographic scene as will be described in detail below, in embodiments of the present invention, the processing unit 30 replaces image data of the same photographic scene coordinates in the th image with image data corresponding to the second image, and the th image after the replacement is taken as the captured image.
In contrast, if a negative result is obtained in step S202, that is, a plurality of specific targets satisfying the predetermined condition of are not present in the detected image, the process proceeds to step S205.
In step S205, the processing unit 30 takes the detected image as the captured image of the photographic scene in embodiments of the present invention, the absence of specific objects in the detected image that satisfy the predetermined condition of represents only a single subject in the photographic scene, or only subjects in the plurality of subjects are subjects that need to be imaged sharp although a plurality of subjects are present, therefore, the processing unit 30 can directly take the th image capturing unit 10 to take the detected image of the photographic scene as the final captured image of the photographic scene.
As the image capturing method according to the embodiment of the present invention described with reference to fig. 2, in the case where a plurality of subjects exist in a subject scene, an image of each subject that requires sharp imaging can be obtained by judging that a plurality of specific targets satisfying the th predetermined condition exist in the detected image.
Hereinafter, to third examples of an image capturing method according to an embodiment of the present invention will be described in further detail with reference to with reference to fig. 3 to 8.
FIG. 3 is a flowchart further illustrating step example of an image capture method according to an embodiment of the invention, as shown in FIG. 3, example of an image capture method according to an embodiment of the invention includes the following steps.
In step S301, the th image capturing unit 10 acquires a detection image of a photographic subject scene As described above, in the case where a plurality of subjects exist in the photographic subject scene, there may not be a sharp image of every of the plurality of subjects in the detection image due to the focusing ability limitation of the th image capturing unit 10, after which the process proceeds to step S302.
In step S302, the processing unit 30 determines whether two specific objects are present in the detected image, in the th example of the image capturing method according to the embodiment of the present invention, whether two specific objects are present in the detected image is an example of the th predetermined condition described with reference to FIG. 2.
If a negative result is obtained in step S302, that is, if there are no two specific targets in the detection image, the process proceeds to step S308. in step S308, since there is only a single subject in the photographic scene, the processing unit 30 can directly acquire the th image capturing unit 10 the detection image of the photographic scene as the final captured image of the photographic scene.
In contrast, if a positive result is obtained in step S302, that is, two specific targets are present in the detection image, the process proceeds to step S303.
In step S303, the processing unit 30 determines the specific point on each specific target in embodiments of the present invention, the specific point on each specific target is, for example, the nose, eyes, etc. on a human face.
In step S304, the processing unit 30 acquires coordinate information of a specific point. Thereafter, the process proceeds to step S305.
In step S305, the processing unit 30 determines whether the distance between the specific points is less than a predetermined threshold distance, hi embodiments of the present invention, the processing unit 30 determines whether the distance between the noses on two faces is less than a predetermined threshold distance.
If a negative result is obtained in step S305 that the distance between the specific points is not less than the predetermined threshold distance, indicating that the distance between two faces, faces being subjects requiring no active photographing, is far, then the process proceeds to step S308. as described above, in step S308, the processing unit 30 may directly acquire the th image capturing unit 10 as the final captured image of the subject scene.
Conversely, if a positive result is obtained in step S305, i.e., the distance between the specific points is less than the predetermined threshold distance, indicating that the distance between the two faces is close enough, the two specific objects are performing the group-photo operation, and it is necessary to acquire clear images for both of the two specific objects. Then, the process proceeds to step S306.
In step S306, the processing unit 30 controls the acquisition of the th image of the subject scene by the th image capturing unit 10 and the acquisition of the second image of the subject scene by the second image capturing unit 20. the th image of the subject scene may be the image of the subject scene acquired by the th image capturing unit 10 with of the plurality of specific targets as the focal point, the second image of the subject scene may be the image of the subject scene acquired by the second image capturing unit 20 with of the plurality of specific targets as the focal point, and thereafter, the process proceeds to step S307.
In step S307, the processing unit 30 combines the th image and the second image as a captured image of the photographic scene, for example, the processing unit 30 replaces image data of the same photographic scene coordinates in the th image with image data corresponding to the second image, and takes the th image after the replacement as the captured image.
As in the th example of the image capturing method according to the embodiment of the present invention described with reference to fig. 3, it is determined whether two specific targets requiring sharp imaging exist in a subject scene, and in the case where two specific targets exist, the two specific targets are clearly imaged by the th image capturing unit 10 and the second image capturing unit 20, respectively, and captured images of the th image capturing unit 10 and the second image capturing unit 20 are combined, thereby ensuring that a captured image including clear imaging of the two specific targets requiring sharp imaging is acquired.
Fig. 4 is a schematic diagram illustrating a distance between specific points in a th example of an image capturing method according to an embodiment of the present invention at step .
As shown in FIG. 4, in the inspection image 40 of the photographic scene acquired by the th image capturing unit 10, the processing unit 30 determines that there are two specific targets, namely, the th specific target 41 and the second specific target 42. the processing unit 30 further acquires a distance L between the th specific point 411 on the th specific target 41 and the th specific point 412 on the second specific target 42. if the distance L is smaller than a predetermined threshold distance (for example, the predetermined threshold distance is 50cm), it indicates that the th specific target 41 and the second specific target 42 are performing a group-shot operation.
Fig. 5A to 5C are schematic diagrams further illustrating a process of obtaining a captured image in th example of the image capturing method according to the embodiment of the present invention.
After determining that the th specific target 41 and the second specific target 42 are performing a group-taking operation as shown in fig. 4, the processing unit 30 controls the th image capturing unit 10 to acquire a th image 51 of the photographed scene with the th specific target 41 as a focus as shown in fig. 5A, the th specific target 41 is sharply imaged at the th image 51, and further, the second specific target 42 is not sharply imaged because the second specific target 42 is not at the th image capturing unit 10.
Meanwhile, as shown in FIG. 5B, the processing unit 30 controls the second image capturing unit 20 to acquire a second image 52 of the photographed scene with the second specific target 42 as a focus, the second specific target 42 is clearly imaged in the second image 52, and furthermore, the th specific target 41 is not clearly imaged since the th specific target 41 is not at the focus position of the second image capturing unit 20.
Thereafter, as shown in FIG. 5C, the processing unit 30 combines the th image 51 and the second image 52 as a captured image 53 of the photographic scene in the captured image 53, both the th specific target 41 and the second specific target 42 obtain sharp imaging.
Fig. 6 is a flowchart further illustrating step of a second example of an image capturing method according to an embodiment of the present invention as shown in fig. 6, the second example of an image capturing method according to an embodiment of the present invention includes the following steps.
In step S601, the th image capturing unit 10 acquires a detection image of a photographic subject scene as described above, in the case where a plurality of subjects exist in the photographic subject scene, there may not be a clear image of every of the plurality of subjects in the detection image due to the focusing ability limitation of the th image capturing unit 10.
In step S602, the processing unit 30 determines whether two specific objects are present in the detected image, in a second example of the image capturing method according to the embodiment of the present invention, whether two specific objects are present in the detected image is an example of the predetermined condition described with reference to FIG. 2.
If a negative result is obtained in step S602, that is, two specific targets are not present in the detection image, the process proceeds to step S608 in step S608, since there is only a single subject in the photographic scene, the processing unit 30 can directly acquire th image capturing unit 10 the detection image of the photographic scene as the final captured image of the photographic scene.
In contrast, if a positive result is obtained in step S602, that is, two specific targets are present in the detection image, the process proceeds to step S603.
In step S603, the processing unit 30 determines the specific point on each specific target in embodiments of the present invention, the specific point on each specific target is, for example, the nose, eyes, etc. on a human face.
Unlike the th example described above with reference to fig. 3, in the second example of the image capturing method according to the embodiment of the present invention, the th image capturing unit 10 is a depth camera that can acquire depth information, the th image capturing unit 10 acquires a detection image of a photographic scene including depth information of each specific target, and thereafter, the process proceeds to step S605.
In step S605, the processing unit 30 determines whether the depth distance between the specific points is less than a predetermined depth threshold distance, hi embodiments of the present invention, the processing unit 30 determines whether the depth distance of the noses on the two faces is less than a predetermined threshold distance.
If a negative result is obtained in step S605 that the depth distance between the specific points is not less than the predetermined depth threshold distance, indicating that the front-rear distances of two faces, of which faces are not subjects that need to be actively photographed, are far apart, then the process proceeds to step S608, as described above, in step S608, the processing unit 30 may directly cause the -th image capturing unit 10 to acquire the detected image of the subject scene as the final captured image of the subject scene
In contrast, if a positive result is obtained in step S605, that is, the depth distance between the specific points is smaller than the predetermined depth threshold distance, indicating that the anteroposterior distances of the two faces are close enough, the two specific objects are performing the group photo operation, and it is necessary to acquire clear images for both the specific objects. Then, the process proceeds to step S606.
In step S606, the processing unit 30 controls the acquisition of the th image of the subject scene by the th image capturing unit 10 and the acquisition of the second image of the subject scene by the second image capturing unit 20. the th image of the subject scene may be the image of the subject scene acquired by the th image capturing unit 10 with of the plurality of specific targets as the focal point, the second image of the subject scene may be the image of the subject scene acquired by the second image capturing unit 20 with of the plurality of specific targets as the focal point, and thereafter, the process proceeds to step S607.
In step S607, the processing unit 30 combines the th image and the second image as a captured image of the photographic scene, for example, the processing unit 30 replaces image data of the same photographic scene coordinates in the th image with image data corresponding to the second image, and takes the th image after the replacement as the captured image.
As the second example of the image capturing method according to the embodiment of the present invention described with reference to fig. 6, it is determined whether two specific targets requiring sharp imaging exist in the subject scene, and in the case where two specific targets exist, the two specific targets are clearly imaged with the th image capturing unit 10 and the second image capturing unit 20, respectively, and the captured images of the th image capturing unit 10 and the second image capturing unit 20 are combined, thereby ensuring that a clearly imaged captured image including the two specific targets requiring sharp imaging is acquired.
Fig. 7 is a schematic diagram illustrating, at step , the depth distance between particular points in a second example of an image capture method according to an embodiment of the present invention.
As shown in fig. 7, in the inspection image 70 of the photographic scene acquired by the th image capturing unit 10, the processing unit 30 judges that there are two specific targets, i.e., the th specific target 71 and the second specific target 72, the processing unit 30 further acquires a depth distance D between the th specific point 711 on the th specific target 71 and the th specific point 712 on the second specific target 72, indicates that the th specific target 71 and the second specific target 72 are performing a composition operation if the depth distance D is smaller than a predetermined depth threshold distance (e.g., the predetermined depth threshold distance is 100cm), and thereafter, the operations performed by the processing unit 30 are as shown in fig. 5A to 5C, and a repeated description thereof will be omitted herein.
Fig. 8 is a flowchart further illustrating step of a third example of an image capturing method according to an embodiment of the present invention the third example of an image capturing method according to an embodiment of the present invention, as shown in fig. 8, includes the following steps.
As described above, in the case where a plurality of subjects exist in the photographic scene due to the focusing capability limitation of the th image capturing unit 10, clear images of every of the plurality of subjects may not be present in the detection image.
Unlike the flows of fig. 3 and 6, whether or not there are more than two specific objects in the detected image is another example of the predetermined condition described with reference to fig. 2, in embodiments of the present invention, the specific object is, for example, a human face.
If a positive result is obtained in step S802, that is, more than two specific targets are present in the detection image, the process proceeds to step S804.
In step S804, the processing unit 30 selects two specific targets having the largest and second largest imaging areas, in this case, the two specific targets having the largest and second largest imaging areas are the specific targets closest to the -th image capturing unit 10, that is, the two specific targets having the largest and second largest imaging areas are determined as the specific targets requiring sharp imaging.
In contrast, if a negative result is obtained in step S802, that is, more than two specific targets are not present in the detection image, the process proceeds to step S803.
In step S803, the processing unit 30 further determines whether two specific objects exist in the detection image.
If a negative result is obtained in step S803, that is, if there are no two specific targets in the detection image, the process proceeds to step S808. in step S808, since there is only a single subject in the photographic scene, the processing unit 30 can directly acquire the th image capturing unit 10 the detection image of the photographic scene as the final captured image of the photographic scene.
In contrast, if a positive result is obtained in step S803, that is, two specific targets are present in the detection image, the process proceeds to step S805.
In step S805, the processing unit 30 determines whether the distance of two specific targets is less than a predetermined threshold distance. In the third example of the image capturing method according to the embodiment of the present invention, the predetermined threshold distance may be a predetermined threshold distance set for a parallel distance between specific points on each of the specific targets described with reference to fig. 3, or the predetermined threshold distance may be a predetermined threshold depth distance set for a depth distance between specific points on each of the specific targets described with reference to fig. 6.
If a negative result is obtained in step S805, that is, the distance between the two specific targets is not less than the predetermined threshold distance, that is, it indicates that the distance between the two faces is far, of which faces are not subjects requiring active photographing, or it indicates that the front-rear distance between the two faces is far, of which faces are not subjects requiring active photographing, then the process proceeds to step S808. as described above, in step S808, the processing unit 30 may directly acquire the th image capturing unit 10 as the final captured image of the photographic scene.
In contrast, if a positive result is obtained in step S805, that is, the distance of two specific targets is smaller than the predetermined threshold distance, the process proceeds to step S806.
In step S806, the processing unit 30 controls the th image of the photographic scene to be acquired with of the plurality of specific targets as a focus by the th image capturing unit 10, and the second image of the photographic scene to be acquired with another of the plurality of specific targets as a focus by the second image capturing unit 20.
In step S807, the processing unit 30 combines the th image and the second image as a captured image of the photographic scene, for example, the processing unit 30 replaces image data of the same photographic scene coordinates in the th image with image data corresponding to the second image, and takes the th image after the replacement as the captured image.
As the image capturing method according to the embodiment of the present invention described with reference to fig. 8, it is possible to obtain an image of each subject requiring sharp imaging in the case where a plurality of subjects exist in a subject scene by judging that a plurality of specific targets satisfying the th predetermined condition exist in a detection image.
In the above, an image capturing method and an electronic apparatus using the image capturing method according to an embodiment of the present invention capable of capturing an image including a clear image of each subject when there are two or more subjects is described with reference to fig. 1 to 8.
It should be noted that in this specification, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises an series of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Finally, it should be noted that the -series processing described above includes not only processing performed in time series in the order described herein, but also processing performed in parallel or separately, rather than in time series.
Based on the understanding that the present invention will contribute to the background art, all or part of which may be embodied in the form of a software product that may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and that includes instructions for causing computer devices (which may be personal computers, servers, or network devices, etc.) to perform the methods described in the various embodiments or parts of the embodiments of the present invention.
While the present invention has been described in detail, the principle and embodiments of the present invention have been illustrated by the specific examples and the description is only for the purpose of understanding the method and the core concept of the present invention, and meanwhile, the invention will not be limited by the content of the present description since the modifications of the specific embodiments and the application scope will occur to those skilled in the art based on the concept of the present invention.
Claims (13)
1, image capture method for use with an electronic device having at least two image capture units, the image capture method comprising:
acquiring a detection image of the shot scene only by an th image capturing unit of the at least two image capturing units;
judging whether a plurality of specific targets satisfying a predetermined condition exist in the detection image;
in response to the presence of a plurality of particular targets satisfying the th predetermined condition, acquiring a th image of the photographic scene by the th image capturing unit and a second image of the photographic scene by a second image capturing unit of the at least two image capturing units, and
combining the th image and the second image as a captured image of the photographic scene,
wherein the th predetermined condition is that the number of the plurality of specific targets is equal to 2, and the distance between two of the specific targets is less than a predetermined threshold distance,
wherein acquiring the st image of the photographic scene by the th image capture unit and acquiring the second image of the photographic scene by the second image capture unit of the at least two image capture units comprises:
acquiring a th image of the subject scene with of the plurality of specific targets as focal points by the th image capturing unit, acquiring a second image of the subject scene with another of the plurality of specific targets as focal points by the second image capturing unit, and
wherein combining the th image and the second image as a captured image of the photographic scene comprises:
replacing image data of the same subject scene coordinates in the th image with image data corresponding to the second image, the th image after the replacement being the captured image.
2. The image capturing method as claimed in claim 1, wherein the judging whether or not a plurality of specific targets satisfying a predetermined condition exist in the detection image includes:
determining whether two specific targets are present in the inspection image;
in response to determining that there are two particular targets, determining a particular point on each of the two particular targets, obtaining coordinate information for the particular point;
and judging whether the distance between the specific points on each specific targets is smaller than the preset threshold distance or not based on the coordinate information of the specific points.
An image capturing method of , applied to an electronic device having at least two image capturing units, the image capturing method comprising:
acquiring a detection image of the shot scene only by an th image capturing unit of the at least two image capturing units;
judging whether a plurality of specific targets satisfying a predetermined condition exist in the detection image;
in response to the presence of a plurality of particular targets satisfying the th predetermined condition, acquiring a th image of the photographic scene by the th image capturing unit and a second image of the photographic scene by a second image capturing unit of the at least two image capturing units, and
combining the th image and the second image as a captured image of the photographic scene,
wherein the th predetermined condition is that the number of the plurality of particular objects is equal to 2, and the depth distance between two of the particular objects is less than a predetermined threshold depth distance,
wherein acquiring the st image of the photographic scene by the th image capture unit and acquiring the second image of the photographic scene by the second image capture unit of the at least two image capture units comprises:
acquiring a th image of the subject scene with of the plurality of specific targets as focal points by the th image capturing unit, acquiring a second image of the subject scene with another of the plurality of specific targets as focal points by the second image capturing unit, and
wherein combining the th image and the second image as a captured image of the photographic scene comprises:
replacing image data of the same subject scene coordinates in the th image with image data corresponding to the second image, the th image after the replacement being the captured image.
4. An image capturing method as claimed in claim 3, wherein judging whether or not a plurality of specific targets satisfying a predetermined condition exist in the detection image comprises:
determining whether two specific targets are present in the inspection image;
in response to determining that there are two particular targets, determining a particular point on each of the two particular targets, obtaining depth information for the particular point;
determining whether a depth distance between the specific points on the specific targets is less than the predetermined threshold depth distance based on the depth information of the specific points.
5, image capture method for use with an electronic device having at least two image capture units, the image capture method comprising:
acquiring a detection image of the shot scene only by an th image capturing unit of the at least two image capturing units;
judging whether a plurality of specific targets satisfying a predetermined condition exist in the detection image;
in response to the presence of a plurality of particular targets satisfying the th predetermined condition, acquiring a th image of the photographic scene by the th image capturing unit and a second image of the photographic scene by a second image capturing unit of the at least two image capturing units, and
combining the th image and the second image as a captured image of the photographic scene,
wherein the th predetermined condition is that the number of the specific targets is greater than 2, and a distance between two specific targets having the largest and second largest imaging areas in the detection image among the specific targets is smaller than a predetermined threshold distance,
wherein acquiring the st image of the photographic scene by the th image capture unit and acquiring the second image of the photographic scene by the second image capture unit of the at least two image capture units comprises:
acquiring a th image of the subject scene with of the plurality of specific targets as focal points by the th image capturing unit, acquiring a second image of the subject scene with another of the plurality of specific targets as focal points by the second image capturing unit, and
wherein combining the th image and the second image as a captured image of the photographic scene comprises:
replacing image data of the same subject scene coordinates in the th image with image data corresponding to the second image, the th image after the replacement being the captured image.
An image capture device of the type , comprising:
at least two image capturing units for capturing images of a subject scene; and
a processing unit for controlling the at least two image capturing units to acquire images of the photographic scene,
wherein the processing unit controls acquisition of a detection image of the photographic scene only by an th image capturing unit of the at least two image capturing units;
the processing unit judges whether or not a plurality of specific targets satisfying a th predetermined condition exist in the detection image;
in response to the presence of a plurality of specific targets satisfying the th predetermined condition, the processing unit controls acquisition of a th image of the photographic scene by the th image capturing unit and acquisition of a second image of the photographic scene by a second image capturing unit of the at least two image capturing units, and
combining the th image and the second image as a captured image of the photographic scene,
wherein the th predetermined condition is that the number of the plurality of specific targets is equal to 2, and the distance between two of the specific targets is less than a predetermined threshold distance,
wherein a th image of the subject scene is acquired with of the plurality of specific targets as a focus by the th image capturing unit, a second image of the subject scene is acquired with another of the plurality of specific targets as a focus by the second image capturing unit, and
wherein the processing unit replaces image data of the same subject scene coordinates in the th image with image data corresponding to the second image, the th image after replacement being the captured image.
7. The image capturing device of claim 6, wherein the processing unit determines whether two specific targets are present in the detection image;
in response to determining that there are two particular targets, determining a particular point on each of the two particular targets, obtaining coordinate information for the particular point;
and judging whether the distance between the specific points on each specific targets is smaller than the preset threshold distance or not based on the coordinate information of the specific points.
8. The image capturing device of claim 6 or 7, wherein the at least two image capturing units have different pixels.
An image capture device of the type , comprising:
at least two image capturing units for capturing images of a subject scene; and
a processing unit for controlling the at least two image capturing units to acquire images of the photographic scene,
wherein the processing unit controls acquisition of a detection image of the photographic scene only by an th image capturing unit of the at least two image capturing units;
the processing unit judges whether or not a plurality of specific targets satisfying a th predetermined condition exist in the detection image;
in response to the presence of a plurality of specific targets satisfying the th predetermined condition, the processing unit controls acquisition of a th image of the photographic scene by the th image capturing unit and acquisition of a second image of the photographic scene by a second image capturing unit of the at least two image capturing units, and
combining the th image and the second image as a captured image of the photographic scene,
wherein the th predetermined condition is that the number of the plurality of particular objects is equal to 2, and the depth distance between two of the particular objects is less than a predetermined threshold depth distance,
wherein a th image of the subject scene is acquired with of the plurality of specific targets as a focus by the th image capturing unit, a second image of the subject scene is acquired with another of the plurality of specific targets as a focus by the second image capturing unit, and
wherein the processing unit replaces image data of the same subject scene coordinates in the th image with image data corresponding to the second image, the th image after replacement being the captured image.
10. The image capturing device of claim 9, wherein the processing unit determines whether two specific targets are present in the detection image;
in response to determining that there are two particular targets, determining a particular point on each of the two particular targets, obtaining depth information for the particular point;
determining whether a depth distance between the specific points on the specific targets is less than the predetermined threshold depth distance based on the depth information of the specific points.
11. The image capturing device of claim 9 or 10, wherein the at least two image capturing units have different pixels.
An image capture device of the type 12, , comprising:
at least two image capturing units for capturing images of a subject scene; and
a processing unit for controlling the at least two image capturing units to acquire images of the photographic scene,
wherein the processing unit controls acquisition of a detection image of the photographic scene only by an th image capturing unit of the at least two image capturing units;
the processing unit judges whether or not a plurality of specific targets satisfying a th predetermined condition exist in the detection image;
in response to the presence of a plurality of specific targets satisfying the th predetermined condition, the processing unit controls acquisition of a th image of the photographic scene by the th image capturing unit and acquisition of a second image of the photographic scene by a second image capturing unit of the at least two image capturing units, and
combining the th image and the second image as a captured image of the photographic scene,
wherein the th predetermined condition is that the number of the specific targets is greater than 2, and a distance between two specific targets having the largest and second largest imaging areas in the detection image among the specific targets is smaller than a predetermined threshold distance,
wherein a th image of the subject scene is acquired with of the plurality of specific targets as a focus by the th image capturing unit, a second image of the subject scene is acquired with another of the plurality of specific targets as a focus by the second image capturing unit, and
wherein the processing unit replaces image data of the same subject scene coordinates in the th image with image data corresponding to the second image, the th image after replacement being the captured image.
13. The image capturing device of claim 12, wherein the at least two image capturing units have different pixels.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510548744.1A CN105163025B (en) | 2015-08-31 | 2015-08-31 | Image capturing method and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510548744.1A CN105163025B (en) | 2015-08-31 | 2015-08-31 | Image capturing method and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105163025A CN105163025A (en) | 2015-12-16 |
CN105163025B true CN105163025B (en) | 2020-01-31 |
Family
ID=54803768
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510548744.1A Active CN105163025B (en) | 2015-08-31 | 2015-08-31 | Image capturing method and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105163025B (en) |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101251944B1 (en) * | 2005-08-04 | 2013-04-08 | 코닌클리케 필립스 일렉트로닉스 엔.브이. | Apparatus for monitoring a person having an interest to an object, and method thereof |
KR100975512B1 (en) * | 2007-03-09 | 2010-08-11 | 오므론 가부시키가이샤 | Recognition processing method and image processing device using the same |
CN101216883B (en) * | 2007-12-29 | 2010-11-10 | 北京中星微电子有限公司 | A photography method and device |
JP4513905B2 (en) * | 2008-06-27 | 2010-07-28 | ソニー株式会社 | Signal processing apparatus, signal processing method, program, and recording medium |
DK2359593T3 (en) * | 2008-11-25 | 2018-09-03 | Tetravue Inc | High-resolution three-dimensional imaging systems and methods |
CN102063610B (en) * | 2009-11-13 | 2013-08-28 | 鸿富锦精密工业(深圳)有限公司 | Image identification system and method thereof |
CN101720027B (en) * | 2009-11-27 | 2011-06-01 | 西安电子科技大学 | Method for cooperative acquisition of multi-target videos under different resolutions by variable-focus array camera |
CN102999918B (en) * | 2012-04-19 | 2015-04-22 | 浙江工业大学 | Multi-target object tracking system of panorama video sequence image |
JP2015001609A (en) * | 2013-06-14 | 2015-01-05 | ソニー株式会社 | Control device and storage medium |
KR102124617B1 (en) * | 2013-09-03 | 2020-06-19 | 삼성전자주식회사 | Method for composing image and an electronic device thereof |
TWI521255B (en) * | 2013-11-29 | 2016-02-11 | 光寶科技股份有限公司 | Automatic focusing method, and automatic focusing device, image capturing device using the same |
-
2015
- 2015-08-31 CN CN201510548744.1A patent/CN105163025B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105163025A (en) | 2015-12-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3496383A1 (en) | Image processing method, apparatus and device | |
JP6347675B2 (en) | Image processing apparatus, imaging apparatus, image processing method, imaging method, and program | |
JP6800628B2 (en) | Tracking device, tracking method, and program | |
JP2014014076A (en) | Image blur based on 3d depth information | |
JP2017006330A (en) | Medical picture processing device, medical picture processing method, and medical observation system | |
JP6570296B2 (en) | Image processing apparatus, image processing method, and program | |
CN105744138B (en) | Quick focusing method and electronic equipment | |
EP3328065A1 (en) | Dual-camera focusing method and apparatus, and terminal device | |
CN110111241B (en) | Method and apparatus for generating dynamic image | |
IL301734A (en) | System and method for creating background blur in camera panning or motion | |
JP2018195084A (en) | Image processing apparatus, image processing method, program, and storage medium | |
CN108447105A (en) | A kind of processing method and processing device of panoramic picture | |
CN108198189B (en) | Picture definition obtaining method and device, storage medium and electronic equipment | |
WO2014014135A1 (en) | Method and apparatus for refocusing captured images, and computer-readable recording medium | |
CN116051736A (en) | Three-dimensional reconstruction method, device, edge equipment and storage medium | |
JP2017098613A (en) | Imaging apparatus, its control method, and control program | |
GB2537886A (en) | An image acquisition technique | |
JP2015207090A (en) | Image processor, and control method thereof | |
JP2020072349A (en) | Image processing device and image processing method | |
JP6305232B2 (en) | Information processing apparatus, imaging apparatus, imaging system, information processing method, and program. | |
CN105163025B (en) | Image capturing method and electronic device | |
EP3429186B1 (en) | Image registration method and device for terminal | |
JP2018129825A (en) | Information processing apparatus and method, information processing system, and program | |
JP2009116686A (en) | Imaging target detection apparatus and method | |
KR20180115108A (en) | Normal vector extraction apparatus and method thereof based on stereo vision for hull underwater inspection using underwater robot |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |