CN112653830A - Group photo shooting implementation method, wearable device, computer device and storage medium - Google Patents

Group photo shooting implementation method, wearable device, computer device and storage medium Download PDF

Info

Publication number
CN112653830A
CN112653830A CN201910968346.3A CN201910968346A CN112653830A CN 112653830 A CN112653830 A CN 112653830A CN 201910968346 A CN201910968346 A CN 201910968346A CN 112653830 A CN112653830 A CN 112653830A
Authority
CN
China
Prior art keywords
face
camera
shooting
group photo
frame
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.)
Granted
Application number
CN201910968346.3A
Other languages
Chinese (zh)
Other versions
CN112653830B (en
Inventor
张腾飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201910968346.3A priority Critical patent/CN112653830B/en
Publication of CN112653830A publication Critical patent/CN112653830A/en
Application granted granted Critical
Publication of CN112653830B publication Critical patent/CN112653830B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The invention provides a method for realizing group photo shooting, wearable equipment, computer equipment and a storage medium, wherein the method comprises the following steps: starting a face recognition automatic photographing function of the wearable device; the wearable device comprises a main machine body and a rotary connecting piece, wherein the main machine body is movably connected with the rotary connecting piece, and a camera is arranged on the main machine body; if a face exists in the view-finding frame, shooting to obtain a current face image, and controlling the rotary connecting piece to rotate so that the rotary connecting piece drives the camera to rotate for shooting; and acquiring all next face images shot in the camera rotation process, and synthesizing according to the current face image and all next face images to obtain a group photo. The method and the device automatically realize group photo shooting and improve the use experience of group photo shooting.

Description

Group photo shooting implementation method, wearable device, computer device and storage medium
Technical Field
The invention relates to the technical field of wearable equipment, in particular to a group photo shooting implementation method, wearable equipment, computer equipment and a storage medium.
Background
At present, cameras have been widely used in wearable devices, and most of wearable devices are provided with dual cameras, i.e., a front camera and a rear camera.
At present, group photo shooting has become a trend, but for the occasion of small-sized gathering, in order to ensure more partners to enter the mirror, two schemes are generally adopted at present. The first is to ensure more faces to be in the mirror by increasing the physical distance between the camera of the wearable device and the object to be photographed, such as in the form of a selfie stick. The second type is that the user holds wearable equipment by hand and rotates wearable equipment to the shooting angle of the camera of adjustment wearable equipment, and then after shooting the image of multi-angle, carries out the later stage synthesis with the image of multi-angle and obtains the panorama photo.
However, the first scheme has obvious limitation on shooting space and cannot be applied to most scenes; the second scheme has high requirements on the operation skill of a user, and once the second scheme shakes, the quality of the synthesized panoramic photo is poor, and the use experience is poor. Therefore, how to automatically realize group photo shooting and improve the use experience of group photo shooting are problems which need to be solved urgently.
Disclosure of Invention
The invention aims to provide a group photo shooting implementation method, wearable equipment, computer equipment and a storage medium, which can automatically implement group photo shooting and improve the use experience of group photo shooting.
The technical scheme provided by the invention is as follows:
the invention provides a method for realizing group photo shooting, which comprises the following steps:
starting a face recognition automatic photographing function of the wearable device; the wearable device comprises a main machine body and a rotary connecting piece, wherein the main machine body is movably connected with the rotary connecting piece, and a camera is arranged on the main machine body;
if a face exists in the view-finding frame, shooting to obtain a current face image, and controlling the rotary connecting piece to rotate so that the rotary connecting piece drives the camera to rotate for shooting;
and acquiring all next face images shot in the camera rotation process, and synthesizing according to the current face image and all next face images to obtain a group photo.
Further, if there is a face in the view-finding frame, the current face image is captured and acquired, and the rotating connecting piece is controlled to rotate, so that the rotating connecting piece drives the camera to rotate and capture the image, which includes the following steps:
identifying whether a face exists in the view-finding frame in the current group photo shooting mode;
if the face exists in the view-finding frame, adjusting the focal length of the photographing camera and the turning angle of the host body; the photographing camera is a camera used in the current group photo shooting mode;
if the face reaches when presetting the condition in the finder frame after the regulation, shoot and acquire current face image, and control swivel connected coupler rotates, so that swivel connected coupler drives the rotatory shooting of camera of shooing.
Further, if when people's face exists in the view-finding frame, adjusting the focal length of the photographing camera and the turning angle of the host body comprises the following steps:
if the face exists in the view frame, calculating to obtain a proportion value of the face occupying the view frame at the current moment, and calculating to obtain a first distance value between the forehead hairline position and the center point of the view frame and a second distance value between the chin bottom position and the center point of the view frame according to the corresponding contour of the face;
calculating a target adjusting angle value of the host body according to the first distance value and the second distance value;
and adjusting the turning angle of the host body according to the target adjusting angle value, adjusting the focal length of the photographing camera until the proportional value is within a preset proportional range, and determining that the face in the adjusted viewing frame reaches a preset condition.
Further, if the face reaches when presetting the condition in the frame of finding a view after the regulation, shoot and acquire current face image, and control swivel connected coupler rotates, so that swivel connected coupler drives the rotatory shooting of camera of shooing includes the step:
if the adjusted face in the viewing frame reaches a preset condition, shooting to obtain the current face image;
controlling the rotary connecting piece to drive the photographing camera to carry out forward rotation photographing to obtain a next face image;
if no face exists in the viewing frame after the face is forwardly rotated to a first preset angle, controlling the rotary connecting piece to drive the photographing camera to carry out reverse rotation photographing to obtain a next face image;
and if the face does not exist in the viewing frame after the rotating in the reverse direction to the second preset angle, determining that all users to be subjected to group photo in the current group photo shooting mode go into the mirror, and controlling the rotating connecting piece to stop rotating.
The present invention also provides a wearable device comprising:
the camera comprises a main body and a rotary connecting piece, wherein the main body is movably connected with the rotary connecting piece and is provided with a camera;
the starting module is used for starting a face recognition automatic photographing function of the wearable equipment;
the control module is used for shooting and acquiring a current face image if a face exists in the view-finding frame, and controlling the rotary connecting piece to rotate so that the rotary connecting piece drives the camera to rotate for shooting;
and the processing module is used for acquiring all next face images shot in the camera rotation process, and synthesizing the next face images according to the current face image and all next face images to obtain a group photo.
Further, the control module includes:
the identification unit is used for identifying whether a human face exists in the view-finding frame in the current group photo shooting mode;
the adjusting unit is used for adjusting the focal length of the photographing camera and the overturning angle of the host body if the face exists in the view-finding frame; the photographing camera is a camera used in the current group photo shooting mode;
and the control unit is used for shooting and acquiring the current face image if the face in the adjusted view-finding frame reaches a preset condition, and controlling the rotating connecting piece to rotate so as to drive the rotating camera to shoot in a rotating way.
Further, the adjusting unit includes:
the calculating subunit is configured to calculate, if a human face exists in the view frame, a proportion value of the human face occupying the view frame at the current moment, and calculate, according to a profile corresponding to the human face, a first distance value between a forehead hairline position and a center point of the view frame, and a second distance value between a chin bottom position and the center point of the view frame; calculating a target adjusting angle value of the host body according to the first distance value and the second distance value;
and the adjusting subunit is used for adjusting the turning angle of the host body according to the target adjusting angle value, adjusting the focal length of the photographing camera until the proportional value is within a preset proportional range, and determining that the face in the adjusted viewing frame reaches a preset condition.
Further, the control unit includes:
the shooting subunit is used for shooting and acquiring the current face image if the adjusted face in the view-finding frame reaches a preset condition;
the rotation control subunit controls the rotating connecting piece to drive the photographing camera to rotate in the forward direction, and controls the rotating connecting piece to drive the photographing camera to rotate in the reverse direction if no human face exists in the viewing frame after the rotating in the forward direction reaches a first preset angle; and if the face does not exist in the viewing frame after the rotating in the reverse direction to the second preset angle, determining that all users to be subjected to group photo in the current group photo shooting mode go into the mirror, and controlling the rotating connecting piece to stop rotating.
And the shooting subunit is also used for shooting in the forward rotation and reverse rotation processes to acquire the next face image.
The invention also provides computer equipment, which comprises a processor and a memory, wherein the memory is used for storing the computer program; the processor is used for executing the computer program stored in the memory to realize the operation executed by the group photo shooting realization method.
The invention also provides a storage medium, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to realize the operation executed by the group photo shooting realization method.
By the method for realizing group photo shooting, the wearable device, the computer device and the storage medium, the group photo shooting can be automatically realized, and the use experience of the group photo shooting is improved.
Drawings
The above features, technical features, advantages and implementations of the method for image capturing, the wearable device, the computer device and the storage medium will be further described in the following detailed description of preferred embodiments with reference to the accompanying drawings.
FIG. 1 is a flow chart of one embodiment of a group photo implementation of the present invention;
FIG. 2 is a flow chart of another embodiment of a group photo implementation of the present invention;
FIG. 3 is a flow chart of another embodiment of a group photo implementation of the present invention;
FIG. 4 is a flow chart of another embodiment of a group photo implementation of the present invention;
FIG. 5 is a schematic block diagram of one embodiment of a telephone watch of the present invention;
FIG. 6 is a schematic structural diagram of one embodiment of a wearable device of the present invention;
FIG. 7 is a schematic diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this document, "one" means not only "only one" but also a case of "more than one".
An embodiment of the present invention, as shown in fig. 1, is a method for implementing group photo shooting, including:
s100, starting a face recognition automatic photographing function of the wearable device; the wearable device comprises a main machine body and a rotary connecting piece, wherein the main machine body is movably connected with the rotary connecting piece, and a camera is arranged on the main machine body;
specifically, the wearable device comprises a smart phone with a camera and a smart watch. Can only set up a camera on wearable equipment's the host computer body, also can set up leading camera and rear camera. When a user has a group photo shooting requirement, inputting group photo shooting requirement information to the wearable device, for example, inputting 'starting a face recognition automatic shooting function' through voice input, or manually switching and selecting 'a button or a control corresponding to the face recognition automatic shooting function', once the wearable device obtains the group photo shooting requirement information, starting the face recognition automatic shooting function, namely, detecting whether a face exists in a view-finding frame in real time, and if the face exists, automatically shooting to obtain a face image.
S200, if a face exists in the view-finding frame, shooting to obtain a current face image, and controlling the rotary connecting piece to rotate so that the rotary connecting piece drives the camera to rotate to shoot;
specifically, a viewing frame exists on a shooting interface of the camera, the wearable device can start a face detection function, and once a face is monitored to exist in the viewing frame, the face in a focusing range of the viewing frame at the current moment can be shot and obtained to obtain a current face image. Because host computer body swing joint is in swivel connected coupler, consequently, swivel connected coupler rotates thereby to drive host computer body and rotate along with swivel connected coupler's rotation, and because the camera sets up on host computer body, consequently the camera rotates along with swivel connected coupler's rotation. After the wearable device shoots and obtains current face image, control swivel connected coupler and rotate to make swivel connected coupler drive the rotatory limit in the camera and shoot, thereby make the camera drive rotatory in-process by swivel connected coupler, in case detect and shoot in real time when finding a view the frame and have the face and acquire next face image.
S300, all next face images shot in the camera rotation process are obtained, and a group photo is obtained by synthesizing the current face image and all next face images.
Specifically, the current face image and the next face image both include the face of the subject to be photographed and the scene around the subject to be photographed. All next face images shot in the rotation process of the camera are obtained from the camera in the mode, and the obtained current face images and all face images are synthesized to obtain a group photo.
In this embodiment, carry out the rotatory limit of rotation through the rotatory camera (leading camera and/or rear camera) that drives the setting on the host computer body of swivel connected coupler and shoot, thereby under the condition that the shooting parameter of current camera has been decided, increase the shooting scope and the shooting angle of camera from external factors, make a plurality of people's faces border on and shoot the group photo, and will wear or hand-held wearable equipment when can realizing many people group photo and also add to the group photo in, can realize the group photo automatically and shoot, promote the use experience that the group photo was shot.
In addition, because swivelling joint spare swing joint is in the host computer body, and the camera sets up on the host computer body for the camera rotates along with the swivelling joint spare and shoots, need not like prior art, uses to increase and shoots the distance, reduces additionally to carry from the demand of rapping bar. Moreover, the wearable device does not need to be held by a user to adjust the body posture (for example, the arm is extended or the wrist is bent), and all group photo users are often wanted to enter the device, the body posture of the photographer can be adjusted to be uncomfortable, the phenomenon that the lens shakes in the body posture process of the user is avoided, the shooting experience is further improved, and meanwhile the quality of the group photo can be improved.
An embodiment of the present invention, as shown in fig. 2, is a method for implementing group photo shooting, including:
s100, starting a face recognition automatic photographing function of the wearable device; the wearable device comprises a main machine body and a rotary connecting piece, wherein the main machine body is movably connected with the rotary connecting piece, and a camera is arranged on the main machine body;
s210, identifying whether a face exists in a view-finding frame in the current group photo shooting mode;
specifically, in the current group photo shooting mode, whether a face exists in the view finder can be identified through a face identification algorithm. The face recognition algorithm is the prior art, and is not described in detail herein. The method comprises the steps of analyzing group photo shooting requirement information input by a user to obtain a shooting camera selected by the user at present, wherein the shooting camera can be a front-facing camera or a rear-facing camera, and the group photo shooting mode comprises a front-facing group photo shooting mode, namely a group photo self-shooting mode, and a rear-facing group photo shooting mode.
S220, if a face exists in the view-finding frame, adjusting the focal length of the photographing camera and the turning angle of the host body; the photographing camera is a camera used in the current group photo shooting mode;
specifically, the front camera corresponds to the front view-finding frame, and the rear camera corresponds to the rear view-finding frame. When the photographing camera obtained by analyzing the group photo shooting requirement information is the front-facing camera, namely the current group photo shooting mode is the front-facing group photo shooting mode, the focal length of the front-facing camera is adjusted, the overturning angle of the host body is adjusted according to the position of the face in the front-facing viewing frame, so that the central point of the face can be superposed with the central point of the front-facing viewing frame as much as possible, and the face of the face image shot by the front-facing camera can be clearer and more complete. Similarly, when the camera of shooing is the rear camera according to the analysis of the group photo shooting demand information, namely when the current group photo shooting mode is the rear group photo shooting mode, the focal length of the rear camera and the turning angle of the host body can be adjusted according to the position of the face in the rear view finder. Of course, if the photographing camera is a front camera and a rear camera, the focal lengths of the front camera and the rear camera are respectively adjusted, and the turnover angle of the host body is comprehensively adjusted according to the position of the face in the front view-finding frame and the position of the face in the rear view-finding frame.
Illustratively, when the rear group photo taking mode is turned on, at this time, the rear view finder is displayed on the main interface of the wearable device to display the lens view finding range of the front and rear cameras, at this time, the rear cameras can recognize all faces in the rear view finder through face recognition to obtain face information, and the face information includes face features, face size, the number of recognized faces, and the like, which is not limited in this invention.
It can be understood that in the invention, after the face recognition automatic photographing function is started in the current group photo photographing mode, the intelligent self-photographing is realized through the invention to obtain the group photo, and the user can click to start the face recognition automatic photographing function through the quick setting interface of the wearable device.
S230, if the face in the adjusted view-finding frame reaches a preset condition, shooting to obtain a current face image, and controlling the rotary connecting piece to rotate so that the rotary connecting piece drives the shooting camera to rotate to shoot;
specifically, the people's face reaches the preset condition in the frame of finding a view after the regulation, and the scope of finding a view of camera that also shoots reaches the preset condition, and the preset condition can have a plurality ofly, includes: the number of the human faces in the view-finding frame reaches a preset number, the proportion occupied by the maximum human faces in the view-finding frame is within a preset proportion range, and the like. The satisfaction of above-mentioned preset condition all can reach through the scope of finding a view of adjusting the camera of shooing, can wearing equipment on the basis of the people's face of discerning, adjust the rotation angle of camera focus or main part body of shooing, can change the scope of finding a view, the scope of finding a view changes, the people's face that can discern in the frame of finding a view also will discover to change, the people's face of discerning in the wearable equipment real-time identification frame of finding a view, and the shooting focus of the camera of shooing is adjusted in real time, the people's face in the frame of finding a view after adjusting accords with above-mentioned preset. During adjustment, in order to accelerate the adjustment speed, coarse adjustment can be performed during first adjustment, if the face of the view-finding frame does not reach the preset condition after the coarse adjustment, at the moment, the wearable device further adjusts finely on the basis of the coarse adjustment, and gradually adjusts the focal length of the photographing camera and the overturning angle of the host body (the adjusting amplitude of each time is smaller than the first coarse adjustment) until the face in the view-finding frame reaches the preset condition. When the face reaches the preset condition in the adjusted view-finding frame, the face of the current shooting range of the shooting acquisition at the current moment is shot to obtain the current face image, and the rotating connecting piece is controlled to rotate, so that the rotating connecting piece drives the shooting camera to rotate, and the shooting camera can shoot while rotating.
S300, all next face images shot in the camera rotation process are obtained, and a group photo is obtained by synthesizing the current face image and all next face images.
The same parts in this embodiment as those in the above embodiment refer to the above embodiment, and are not described in detail here. In this embodiment, when there is the people's face in the frame of finding a view, adjust the focus of the camera of shooing and the rotation angle of host computer body, after the people's face reaches preset condition in the frame of finding a view after adjusting, through rotatory drive camera (leading camera and/or rear camera) of setting on the host computer body of swivel connected coupler carry out the limit and rotate the limit and shoot, not only under the condition that the shooting parameter of current camera has been decided, increase the shooting scope and the shooting angle of camera from external factors, make a plurality of people's face go into the border and shoot the group photo, the photographer who will wear or handheld wearable equipment carries out the shooting when realizing many people group photo also adds to the group photo in, can automize and realize the group photo and shoot. In addition, the quality of shooting and acquiring the face image can be improved, so that the quality of the photo of the group photo is greatly improved, and the use experience of group photo shooting is improved.
An embodiment of the present invention, as shown in fig. 3, is a method for implementing group photo shooting, including:
s100, starting a face recognition automatic photographing function of the wearable device; the wearable device comprises a main machine body and a rotary connecting piece, wherein the main machine body is movably connected with the rotary connecting piece, and a camera is arranged on the main machine body;
s210, identifying whether a face exists in a view-finding frame in the current group photo shooting mode;
s221, if a face exists in the view frame, calculating to obtain a proportion value of the face occupying the view frame at the current moment, and calculating to obtain a first distance value between the forehead hairline position and the center point of the view frame and a second distance value between the chin bottom position and the center point of the view frame according to the corresponding contour of the face;
specifically, through the eyes in the discernment frame, face characteristic information such as mouth, the people face position in the locking frame, and the initiative is as the theme of shooting with the people face, set up accurate focus and exposure, ensure the clarity and the exposure accuracy of people face, and when having a plurality of personalities in the frame of looking a view, the work that face identification function also can be accurate, main object is discerned, wearable equipment can possess many face identification function certainly, lock a plurality of personalities face simultaneously, the adjustment makes clearly.
In practical application, the optical design of the camera lens determines the parameters of the lens of the camera, such as the closest focusing distance, the depth of field, the height of the visual field, the height of the effective imaging surface of the camera, the lens magnification factor and the like, and the parameters can be used for performing conversion calculation of a world coordinate system and a camera coordinate system, so that the proportion value of the face occupying a view frame at the current moment is calculated, and a first distance value between the forehead hairline position and the center point of the view frame and a second distance value between the chin bottom position and the center point of the view frame are calculated according to the corresponding contour of the face to obtain the distance between the face of a shooting object and the lens at the current moment. The conversion calculation between the world coordinate system and the camera coordinate system is the prior art, and is not described in detail herein.
S222, calculating according to the first distance value and the second distance value to obtain a target adjusting angle value of the host body;
s223, adjusting the turning angle of the host body according to the target adjusting angle value, adjusting the focal length of the photographing camera until the proportion value is within a preset proportion range, and determining that the face in the adjusted viewing frame reaches a preset condition;
specifically, the target adjustment angle value of the host body is obtained through calculation according to the first distance value and the second distance value, so that the host body is turned over to the target adjustment angle value, and the face aligned with the lens of the photographing camera can be completely seen in the viewing frame. And adjusting the turning angle of the host body according to the target adjustment angle value, and adjusting the focal length of the photographing camera until the proportional value is within the preset proportional range. The preset proportion range comprises a preset maximum proportion value and a preset minimum proportion value. The portrait proportion can be confirmed by matching with a preset portrait template, and portrait templates with different proportions, such as a half-body portrait template, a whole-body portrait template and the like, can be prestored in the wearable device.
Firstly, coarse adjustment is carried out, the focal length of the camera is adjusted to a value with a larger adjustment range, and under the focal length, the proportion value of the portrait corresponding to the face in the view finder reaches a preset maximum proportion value, wherein the preset maximum proportion value can be 50%, that is, the portrait corresponding to the face is a half-length portrait. And after coarse adjustment, judging the face recognized in the view-finding frame again, confirming whether the proportion of the maximum face in the view-finding frame occupying the view-finding frame at the moment is not more than a preset maximum proportion value, if so, indicating that the view-finding range of the photographing camera at the moment reaches a preset condition, and confirming that the face in the adjusted view-finding frame reaches the preset condition without adjustment. If the proportion value of the face occupying the view frame in the view frame reaches the preset maximum proportion value, the wearable device is further finely adjusted on the basis of the coarse adjustment, and the focal length of the photographing camera is gradually adjusted (the adjustment amplitude is smaller than that of the coarse adjustment) until the proportion of the face occupying the view frame in the view frame is not larger than the preset maximum proportion value. Similarly, the preset minimum ratio is the same as above, and will not be described in detail here.
S230, if the face in the adjusted view-finding frame reaches a preset condition, shooting to obtain a current face image, and controlling the rotary connecting piece to rotate so that the rotary connecting piece drives the shooting camera to rotate to shoot;
s300, all next face images shot in the camera rotation process are obtained, and a group photo is obtained by synthesizing the current face image and all next face images.
The same parts in this embodiment as those in the above embodiment refer to the above embodiment, and are not described in detail here. In this embodiment, the target angle of adjustment value that calculates with first distance value and second distance value adjusts the rotation angle of host computer body, and adjust the focus of camera of shooing on the basis of people's face in the frame of looking for a view, after the proportion value that occupies the frame of looking for a view is in presetting the proportion within range, thereby when having got more suitable range of looking for a view and having avoided last shooting, the problem that people's face is unsuitable (too big or undersize) appears in the range of looking for a view of camera of shooing, can promote the quality that obtains the face image of shooing, thereby promote the photo quality who obtains the group photo greatly, promote the use experience that the group photo was shot.
In an embodiment of the present invention, as shown in fig. 4, a method for implementing group photo shooting includes:
s100, starting a face recognition automatic photographing function of the wearable device; the wearable device comprises a main machine body and a rotary connecting piece, wherein the main machine body is movably connected with the rotary connecting piece, and a camera is arranged on the main machine body;
s210, identifying whether a face exists in a view-finding frame in the current group photo shooting mode;
s220, if a face exists in the view-finding frame, adjusting the focal length of the photographing camera and the turning angle of the host body; the photographing camera is a camera used in the current group photo shooting mode;
s231, shooting to obtain a current face image if the face in the adjusted view-finding frame reaches a preset condition;
s232, controlling the rotary connecting piece to drive the photographing camera to carry out forward rotation photographing to obtain a next face image;
s233, if the face does not exist in the viewing frame after the forward rotation to the first preset angle, controlling the rotary connecting piece to drive the camera to carry out reverse rotation shooting to obtain the next face image;
s234, if the face does not exist in the viewing frame after the rotating in the reverse direction to the second preset angle, determining that all the users to be photographed enter the glasses in the current group photo shooting mode, and controlling the rotating connecting piece to stop rotating;
specifically, the same portions of this embodiment as those of the above embodiment refer to the above embodiment, and are not described in detail herein. In this embodiment, the host computer body can be dug up until reaching the rotation angle of host computer body to can make the main part body freely rotate to all around. The main machine body can automatically adjust the turning angle according to the face information in the view-finding frame, the rotary connecting piece can automatically rotate according to the face information in the view-finding frame, and the photographing camera can automatically adjust the focal length according to the face information in the view-finding frame. Wherein, when the swivel connected coupler drives the camera of shooing and reaches first predetermined angle towards the first direction first side rotation, then automatic reverse rotation when the rotatory in-process that reaches first predetermined angle is looked the frame and is not had the people's face in, swivel connected coupler drives the camera of shooing and carries out forward rotation and then automatic reverse rotation when the in-process of first predetermined angle is not discerned the people's face promptly. And, when the swivel connected coupler drives the camera of shooing and reaches the second and predetermine the angle towards second direction one side rotation, when the rotatory in-process that reaches the second and predetermine the angle does not have the people's face in the frame, swivel connected coupler drives the camera of shooing and carries out the in-process that the angle was predetermine to the second promptly and when not discerning the people's face, then automatic counter rotation. And automatically rotating in the reverse direction, namely when the face is not recognized in the process that the rotating connecting piece drives the photographing camera to rotate in the reverse direction to the second preset angle, determining that all the users to be photographed enter the mirror in the current group photo photographing mode, and controlling the rotating connecting piece to stop rotating.
S300, all next face images shot in the camera rotation process are obtained, and a group photo is obtained by synthesizing the current face image and all next face images.
The same parts in this embodiment as those in the above embodiment refer to the above embodiment, and are not described in detail here. In this embodiment, the swivel connected coupler drives the camera of shooing and carries out forward rotation and reverse rotation under current group photo shooting mode to make the camera of shooing can increase the shooting scope, guarantee. The rotatory camera (leading camera and/or rear camera) that drives the setting on the host computer body of rotating connector is shot at forward rotation and reverse rotation's in-process and is obtained a next human face image, not only under the condition that the shooting parameter of current camera has been decided, increase the shooting scope and the shooting angle of camera from external factors, make a plurality of people face border on the group photo, the photographer who will wear or hand-held wearable equipment when realizing many people group photo also adds to the group photo, can realize the group photo automatically and shoot, promote the use experience that the group photo was shot.
Illustratively, as shown in fig. 5, the wearable device is a telephone watch 1, the telephone watch 1 includes a carrying base 17, a watch body 11a (i.e., a rotating component of the present invention), and a rotary connector 12, the watch body 11a is provided with a camera, the camera includes a front camera 16a and a rear camera (not shown), the carrying base 17 includes a first opposite side, the watch body 11a is provided with a first connecting portion, the rotary connector 12 includes a rotary connecting portion and a second connecting portion, the rotary connecting portion is movably disposed on the first opposite side, the second connecting portion is disposed on the rotary connecting portion, and the second connecting portion is movably connected to the first connecting portion, and the rotary connecting portion can rotate relative to the first opposite side, so that the watch body 11a can rotate relative to the first opposite side and form different postures. The different postures at least include a first posture and a second posture, and when the watch body 11a rotates to the second posture relative to the first opposite side, the first connecting part of the watch body 11a can rotate relative to the second connecting part, so that the watch body 11a can rotate relative to the second connecting part. The first posture is a posture in which the watch body 11a is stacked on the bearing base 17, and the second posture is a posture in which the watch body 11a rotates relative to the bearing base 17 and forms a certain angle.
The watch main body 11a of the telephone watch 1 can be turned over and can automatically rotate around, when a user takes a picture, only the arm wearing the telephone watch 1 needs to be extended as required, when the user starts the face recognition automatic picture taking function of the telephone watch 1, the watch main body 11a of the telephone watch 1 is turned up, the turning angle of the watch main body reaches a target adjusting angle value, then the watch main body is rotated by the rotation connecting piece 12, so that the watch main body 11a is driven to rotate to drive the camera to take a picture while rotating, when the watch main body 11a of the telephone watch 1 rotates to one side to reach a first preset angle and the face is not recognized in the process, the watch main body automatically rotates reversely until the watch main body rotates to a second preset angle and the face is not recognized in the process, the watch main body 11a is judged that all group users are put into the mirror, all face images are synthesized to obtain a group photo, the group photo shooting mode can conveniently and efficiently obtain the best group photo, effectively reduce the operation burden of the user and improve the user experience.
Preferably, when the wearable device is provided with the front camera and the rear camera, only the photographing function of the front camera (or the rear camera) is started according to the user requirement, the front camera (or the rear camera) performs rotary photographing along with the rotation of the rotary connecting piece, a scene picture in the current face image can be photographed and acquired according to the front camera (or the rear camera) and used as a background image, and a scene picture in any one next face image can be photographed and acquired according to the front camera (or the rear camera) and used as a background image. Then, the wearable device obtains the face in the current face image by shooting the background image and the front-facing camera (or the rear-facing camera), and obtains the corresponding group photo by image synthesis of the faces in all the next face images.
Of course, if the photographing function of the front camera and the rear camera is simultaneously started according to the user requirement, the front camera and the rear camera respectively rotate to photograph along with the rotation of the rotating connecting piece, a scene picture in the current face image can be acquired as a background image according to the photographing of the front camera, and a scene picture in any next face image acquired by the photographing of the front camera can also be taken as a background image. And then, the wearable device shoots the background image and the front-facing camera to obtain the face in the current face image, and carries out image synthesis on the faces in all the next face images to obtain a group photo corresponding to the front-facing camera. And in the same way, the group photo corresponding to the front camera can be obtained.
In one embodiment of the present invention, as shown in fig. 6, a wearable device 10 includes:
the main machine body 11 is movably connected to the rotary connecting piece 12, and the camera 16 is arranged on the main machine body 11;
the starting module 13 is configured to start a face recognition automatic photographing function of the wearable device 10;
in particular, the wearable device 10 includes a smartphone, a smart watch, having a camera 16. Only one camera 16 may be provided on the host body 11 of the wearable device 10, or a front camera 16 and a rear camera 16 may be provided. When the user has a group photo shooting requirement, inputting group photo shooting requirement information to the wearable device 10, for example, inputting "start the face recognition automatic shooting function" by voice, or manually switching and selecting "a button or a control corresponding to the face recognition automatic shooting function", once the wearable device 10 acquires the group photo shooting requirement information, starting the face recognition automatic shooting function, namely, detecting whether a face exists in the view-finding frame in real time, and if so, automatically shooting to acquire a face image.
The control module 14 is configured to, if a face exists in the finder frame, capture a current face image, and control the rotating connector 12 to rotate, so that the rotating connector 12 drives the camera 16 to rotate for capturing;
specifically, a view frame exists on the shooting interface of the camera 16, the wearable device 10 may start the face detection function, and once it is monitored that a face exists in the view frame, the face within the focusing range of the view frame at the current moment is shot and obtained to obtain the current face image. Because the main body 11 is movably connected to the rotary connecting member 12, the rotary connecting member 12 rotates to drive the main body 11 to rotate along with the rotation of the rotary connecting member 12, and because the camera 16 is arranged on the main body 11, the camera 16 rotates along with the rotation of the rotary connecting member 12. After the wearable device 10 shoots and obtains current face image, control swivel connected coupler 12 and rotate to make swivel connected coupler 12 drive 16 limit rotatory limit shooting, thereby make camera 16 drive rotatory in-process by swivel connected coupler 12, in case detect the frame of finding a view when there is the face in real time shoot and acquire next face image.
And the processing module 15 is configured to acquire all next face images captured in the rotation process of the camera 16, and synthesize the next face images according to the current face image and all next face images to obtain a group photo.
Specifically, the current face image and the next face image both include the face of the subject to be photographed and the scene around the subject to be photographed. All next face images shot in the rotation process of the camera 16 are obtained from the camera in the above mode, and the obtained current face images and all face images are synthesized to obtain a group photo.
In this embodiment, drive camera 16 (leading camera 16 and/or rear camera 16) that sets up on host computer body 11 through swivel connected coupler 12 is rotatory and carry out the rotatory limit shooting, thereby under the condition that the shooting parameter of current camera 16 has been decided, increase camera 16's shooting scope and shooting angle from external factors, make a plurality of people face border on the group photo, and in can realizing that many people will wear or hand wearable equipment 10 when taking the group photo also add to the group photo, can realize the group photo automatically and shoot, promote the use experience that the group photo was shot.
In addition, because swivel connected coupler 12 swing joint is in host computer body 11, and camera 16 sets up on host computer body 11 for camera 16 rotates along with swivel connected coupler 12 and shoots, need not like prior art, uses to increase and shoots the distance, reduces the demand of additionally carrying from the rapping bar. Moreover, the wearable device 10 does not need to be held by a user to adjust the body posture (for example, extending the arm or bending the wrist), and all group photo users are often wanted to enter the room, so that the body posture of the photographer can be adjusted to be uncomfortable, and the phenomenon that the lens shakes during the body posture of the user is avoided, so that the shooting experience is improved, and meanwhile, the quality of the group photo can be improved.
Based on the foregoing embodiment, the control module 14 includes:
the identification unit is used for identifying whether a face exists in the view-finding frame in the current group photo shooting mode;
specifically, in the current group photo shooting mode, whether a face exists in the view finder can be identified through a face identification algorithm. The face recognition algorithm is the prior art, and is not described in detail herein. The group photo shooting requirement information input by the user is analyzed to obtain the photo camera 16 selected by the user at present, the photo camera 16 can be a front camera 16 or a rear camera 16, and the group photo shooting mode comprises a front group photo shooting mode, namely a group photo self-shooting mode, and a rear group photo shooting mode.
The adjusting unit is used for adjusting the focal length of the photographing camera 16 and the turning angle of the host body 11 if a human face exists in the view-finding frame; the photographing camera 16 is the camera 16 used in the current group photo shooting mode;
specifically, the front camera 16 corresponds to a front view finder, and the rear camera 16 corresponds to a rear view finder. When the photographing camera 16 is the front-facing camera 16 obtained by analyzing the group photo shooting requirement information, namely the current group photo shooting mode is the front-facing group photo shooting mode, the focal length of the front-facing camera 16 is adjusted, and the turning angle of the host body 11 is adjusted according to the position of the face in the front-facing viewing frame, so that the center point of the face can be overlapped with the center point of the front-facing viewing frame as much as possible, and the face of the face image shot by the front-facing camera 16 can be clearer and more complete. Similarly, when the camera 16 is the rear camera 16, which is obtained by analyzing the group photo shooting requirement information, that is, when the current group photo shooting mode is the rear group photo shooting mode, the focal length of the rear camera 16 and the turning angle of the host body 11 can be adjusted according to the position of the face in the rear view finder. Of course, if the photographing camera 16 is a front camera 16 and a rear camera 16, the focal lengths of the front camera 16 and the rear camera 16 are respectively adjusted, and the turning angle of the main body 11 is comprehensively adjusted according to the position of the face in the front view frame and the position of the face in the rear view frame.
Illustratively, when the rear group photo taking mode is turned on, at this time, the rear view finder is displayed on the main interface of the wearable device 10 to display the lens view range of the front and rear cameras 16, at this time, the rear cameras 16 can recognize all faces in the rear view finder through face recognition to obtain face information, where the face information includes face features, face size, the number of recognized faces, and the like, and the present invention is not limited thereto.
It can be understood that, in the present invention, after the face recognition automatic photographing function is started in the current group photo shooting mode, the present invention can realize intelligent self-photographing to obtain a group photo, and the user can click to start the face recognition automatic photographing function through the shortcut setting interface of the wearable device 10.
And the control unit is used for shooting and acquiring the current face image if the face in the adjusted view-finding frame reaches a preset condition, and controlling the rotating connecting piece 12 to rotate so that the rotating connecting piece 12 drives the photographing camera 16 to rotate and shoot.
Specifically, the face reaches the preset condition in the frame after the regulation, also the frame range of the camera 16 that shoots reaches the preset condition, and the preset condition can be a plurality of, include: the number of the human faces in the view-finding frame reaches a preset number, the proportion occupied by the maximum human faces in the view-finding frame is within a preset proportion range, and the like. The satisfaction of above-mentioned preset condition all can reach through the scope of finding a view of adjusting camera 16, can wearing equipment 10 on the basis of the face of discernment, adjust the flip angle of camera 16 focus or the main part body of shooing, can change the scope of finding a view, the scope of finding a view changes, the face that can discern in the frame of finding a view also will find the change, wearable equipment 10 real-time identification frame interior discernment face of a view, and real-time adjustment camera 16's the focus of shooing, the face in the frame of finding a view after adjusting accords with above-mentioned preset condition. During adjustment, in order to accelerate the adjustment speed, coarse adjustment can be performed during first adjustment, if the face of the finder frame does not reach the preset condition after the coarse adjustment, at this time, the wearable device 10 further adjusts finely on the basis of the coarse adjustment, and gradually adjusts the focal length of the photographing camera 16 and the turning angle of the host body 11 (the adjustment range of each time is smaller than the first coarse adjustment) until the face in the finder frame reaches the preset condition. When the face reaches the preset condition in the adjusted view-finding frame, the face of the current shooting range of the current moment is shot and acquired to obtain the current face image, and the rotating connecting piece 12 is controlled to rotate, so that the rotating connecting piece 12 drives the shooting camera 16 to rotate, and the shooting camera 16 can shoot while rotating.
The same parts in this embodiment as those in the above embodiment refer to the above embodiment, and are not described in detail here. In this embodiment, when there is the people's face in the frame of finding a view, adjust the focus of camera 16 and the rotation angle of host computer body 11 of shooing, after the people's face reaches preset conditions in the frame of finding a view after adjusting, through rotatory camera 16 (leading camera 16 and/or rear camera 16) that drive setting on host computer body 11 of swivel connected coupler 12 carry out the rotatory limit and shoot, not only under the circumstances that the shooting parameter of current camera 16 has been decided, increase camera 16's shooting scope and shooting angle from external factors, make a plurality of people's face border on shoot the group photo, the photographer who will wear or handheld wearable equipment 10 to shoot when realizing many group photo also adds to the group photo in, can automize and realize the group photo and shoot. In addition, the quality of shooting and acquiring the face image can be improved, so that the quality of the photo of the group photo is greatly improved, and the use experience of group photo shooting is improved.
Based on the foregoing embodiment, the adjusting unit includes:
the calculating subunit is used for calculating to obtain a proportion value of the face occupying the finder frame at the current moment if the face exists in the finder frame, and calculating to obtain a first distance value between the forehead hairline position and the center point of the finder frame and a second distance value between the chin bottom position and the center point of the finder frame according to the corresponding contour of the face; calculating a target adjusting angle value of the host body 11 according to the first distance value and the second distance value;
specifically, through eyes in the discernment frame, face characteristic information such as mouth, the people face position in the locking frame, and the initiative is as the theme of shooting with the people face, set up accurate focus and exposure, ensure the clarity and the exposure accuracy of people face, and when having a plurality of personalities in the frame of looking a view, the work that face identification function also can be accurate, main object is discerned, wearable equipment 10 can possess many face identification functions certainly, lock a plurality of personalities face simultaneously, the adjustment makes clearly.
In practical application, the optical design of the camera lens determines the parameters of the lens of the camera 16, such as the closest focusing distance, the depth of field, the height of the visual field, the height of the effective imaging plane of the camera, the lens magnification factor, and the like, and the parameters are used for performing conversion calculation between the world coordinate system and the camera coordinate system, so as to calculate the proportion value of the face occupying the finder frame at the current moment, and calculate the first distance value between the forehead hairline position and the center point of the finder frame and the second distance value between the chin bottom position and the center point of the finder frame according to the corresponding contour of the face to obtain the distance between the face of the subject and the lens at the current moment. The conversion calculation between the world coordinate system and the camera coordinate system is the prior art, and is not described in detail herein.
And the adjusting subunit is used for adjusting the turning angle of the host body 11 according to the target adjusting angle value, adjusting the focal length of the photographing camera 16 until the proportional value is within a preset proportional range, and determining that the face in the adjusted viewing frame reaches a preset condition.
Specifically, the target adjustment angle value of the host body 11 is calculated according to the first distance value and the second distance value, so that the host body 11 is turned over to the target adjustment angle value, and the face aligned with the lens of the photographing camera 16 can be completely seen in the viewing frame. And adjusting the turning angle of the host body 11 according to the target adjustment angle value, and adjusting the focal length of the photographing camera 16 until the proportional value is within the preset proportional range. The preset proportion range comprises a preset maximum proportion value and a preset minimum proportion value. The portrait proportion can be confirmed by matching with a preset portrait template, and portrait templates with different proportions, such as a half-body portrait template, a whole-body portrait template, and the like, can be prestored in the wearable device 10.
First, coarse adjustment is performed to adjust the focal length of the camera 16 to a value with a large adjustment range, and at the focal length, the ratio of the portrait corresponding to the face in the finder frame reaches a preset maximum ratio, where the preset maximum ratio may be 50%, that is, the portrait corresponding to the face is a half-length portrait. And after coarse adjustment, judging the face recognized in the view-finding frame again, confirming whether the proportion of the maximum face in the view-finding frame occupying the view-finding frame at the moment is not more than a preset maximum proportion value, if so, indicating that the view-finding range of the photographing camera 16 reaches a preset condition at the moment, and confirming that the face in the adjusted view-finding frame reaches the preset condition without adjustment. If the ratio of the face occupying the finder frame in the finder frame reaches the preset maximum ratio, the wearable device 10 further fine-tunes and gradually adjusts the focal length of the camera 16 (the adjustment range is smaller than that during the coarse tuning) based on the coarse tuning until the ratio of the face occupying the finder frame in the finder frame is not greater than the preset maximum ratio. Similarly, the preset minimum ratio is the same as above, and will not be described in detail here.
The same parts in this embodiment as those in the above embodiment refer to the above embodiment, and are not described in detail here. In this embodiment, the target angle of adjustment value that calculates with first distance value and second distance value adjusts the rotation angle of host computer body 11, and adjust the focus of taking a photograph camera 16 on the basis of the people's face in the frame of finding a view, after the proportion value that the people's face occupied the frame of finding a view is in presetting the proportion within range, thereby when having got more suitable range of finding a view and having avoided last shooting, the problem that the people's face is unsuitable (too big or undersize) appears in the range of finding a view of camera 16 of taking a photograph, can promote the quality of shooing and obtaining the face image, thereby promote the photo quality who obtains the group photo greatly, promote the use experience that the group photo was shot.
Based on the foregoing embodiment, the control unit includes:
the shooting subunit is used for shooting and acquiring a current face image if the adjusted face in the view-finding frame reaches a preset condition;
the rotation control subunit controls the rotating connecting piece 12 to drive the photographing camera 16 to rotate in the forward direction, and controls the rotating connecting piece 12 to drive the photographing camera 16 to rotate in the reverse direction if no human face exists in the viewing frame after the forward rotation reaches a first preset angle; if the face does not exist in the viewing frame after the rotating direction is rotated to the second preset angle, all the users to be photographed in the current group photo shooting mode are determined to be in the mirror, and the rotating connecting piece 12 is controlled to stop rotating.
And the shooting subunit is also used for shooting in the forward rotation and reverse rotation processes to acquire the next face image.
Specifically, the same portions of this embodiment as those of the above embodiment refer to the above embodiment, and are not described in detail herein. In this embodiment, the main body 11 can be turned up until reaching the turning angle of the main body 11, so that the main body can freely rotate around. The main body 11 can automatically adjust the turning angle according to the face information in the view finder, the rotary connecting piece 12 can automatically rotate according to the face information in the view finder, and the photographing camera 16 can automatically adjust the focal length according to the face information in the view finder. Wherein, when the swivel joint spare 12 drives the camera 16 of shooing and reaches first predetermined angle towards the first direction one side rotation, then automatic reverse rotation when not having the people's face in the rotatory in-process of reaching first predetermined angle frame, the swivel joint spare 12 drives the camera 16 of shooing and carries out forward rotation promptly and then automatic reverse rotation when the in-process of first predetermined angle does not discern the people's face. Moreover, when the rotary connector 12 drives the camera 16 to rotate towards one side of the second direction to reach a second preset angle, and no face exists in the viewing frame when the camera rotates to reach the second preset angle, that is, when the camera 16 is driven by the rotary connector 12 to rotate reversely to the second preset angle, the face is not recognized, the camera is automatically rotated reversely. And automatically rotating in the reverse direction, namely when the face is not recognized in the process that the rotary connecting piece 12 drives the photographing camera 16 to rotate in the reverse direction to the second preset angle, determining that all the users to be group-filmed in the current group-filming photographing mode go into the mirror, and controlling the rotary connecting piece 12 to stop rotating.
The same parts in this embodiment as those in the above embodiment refer to the above embodiment, and are not described in detail here. In this embodiment, the rotating connection member 12 drives the photographing camera 16 to rotate forward and rotate backward in the present group photo shooting mode, so that the photographing camera 16 can increase the shooting range and ensure the same. The camera 16 (leading camera 16 and/or rear camera 16) that drives the setting on host computer body 11 through the rotation of swivel connected coupler 12 is shot at the in-process of forward rotation and reverse rotation and is obtained a next face image, not only under the condition that the shooting parameter of current camera 16 has been decided, increase camera 16's shooting scope and shooting angle from external factors, make a plurality of people face border on the group photo, will wear when realizing many people group photo or hand wearable equipment 10 and carry out the photographer who shoots also add to the group photo, can automize and realize the group photo and shoot, promote the use experience that the group photo was shot.
One embodiment of the present invention, as shown in fig. 7, a computer apparatus 100, comprises a processor 110, a memory 120, wherein the memory 120 is used for storing a computer program; the processor 110 is configured to execute the computer program stored in the memory 120 to implement the group photo shooting implementation method in the embodiment of the method corresponding to any one of fig. 1 to fig. 4.
Fig. 7 is a schematic structural diagram of a computer device 100 according to an embodiment of the present invention. Referring to fig. 7, the computer device 100 includes a processor 110 and a memory 120, and may further include a communication interface 140 and a communication bus 120, and may further include an input/output interface 130, wherein the processor 110, the memory 120, the input/output interface 130 and the communication interface 140 complete communication with each other through the communication bus 120. The memory 120 stores a computer program, and the processor 110 is configured to execute the computer program stored in the memory 120 to implement the group photo shooting implementation method in the method embodiment corresponding to any one of fig. 1 to 4.
A communication bus 120 is a circuit that connects the described elements and enables transmission between the elements. For example, the processor 110 receives commands from other elements through the communication bus 120, decrypts the received commands, and performs calculations or data processing according to the decrypted commands. The memory 120 may include program modules such as a kernel (kernel), middleware (middleware), an Application Programming Interface (API), and an application. The program modules may be comprised of software, firmware or hardware, or at least two of the same. The input/output interface 130 relays commands or data input by a user through input/output devices (e.g., sensors, keyboards, touch screens). The communication interface 140 connects the computer device 100 to other network devices, user devices, networks. For example, the communication interface 140 may be connected to a network by wire or wirelessly to connect to external other network devices or user devices. The wireless communication may include at least one of: wireless fidelity (WiFi), Bluetooth (BT), Near Field Communication (NFC), Global Positioning Satellite (GPS) and cellular communications, among others. The wired communication may include at least one of: universal Serial Bus (USB), high-definition multimedia interface (HDMI), asynchronous transfer standard interface (RS-232), and the like. The network may be a telecommunications network and a communications network. The communication network may be a computer network, the internet of things, a telephone network. The computer device 100 may connect to a network through the communication interface 140, and protocols by which the computer device 100 communicates with other network devices may be supported by at least one of an application, an Application Programming Interface (API), middleware, a kernel, and the communication interface 140.
In an embodiment of the present invention, a storage medium stores at least one instruction, and the instruction is loaded and executed by a processor to implement the operations performed by the embodiments corresponding to the above group photo shooting implementation method. For example, the computer readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
They may be implemented in program code that is executable by a computing device such that it is executed by the computing device, or separately, or as individual integrated circuit modules, or as a plurality or steps of individual integrated circuit modules. Thus, the present invention is not limited to any specific combination of hardware and software.
It should be noted that the above embodiments can be freely combined as necessary. The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for realizing group photo shooting is characterized by comprising the following steps:
starting a face recognition automatic photographing function of the wearable device; the wearable device comprises a main machine body and a rotary connecting piece, wherein the main machine body is movably connected with the rotary connecting piece, and a camera is arranged on the main machine body;
if a face exists in the view-finding frame, shooting to obtain a current face image, and controlling the rotary connecting piece to rotate so that the rotary connecting piece drives the camera to rotate for shooting;
and acquiring all next face images shot in the camera rotation process, and synthesizing according to the current face image and all next face images to obtain a group photo.
2. The method for realizing group photo shooting according to claim 1, wherein if a face exists in the view finder, shooting to obtain a current face image, and controlling the rotating connecting piece to rotate so that the rotating connecting piece drives the camera to rotate for shooting comprises the steps of:
identifying whether a face exists in the view-finding frame in the current group photo shooting mode;
if the face exists in the view-finding frame, adjusting the focal length of the photographing camera and the turning angle of the host body; the photographing camera is a camera used in the current group photo shooting mode;
if the face reaches when presetting the condition in the finder frame after the regulation, shoot and acquire current face image, and control swivel connected coupler rotates, so that swivel connected coupler drives the rotatory shooting of camera of shooing.
3. The method for realizing group photo shooting according to claim 2, wherein if a human face exists in the view finder, adjusting the focal length of the photo camera and the turning angle of the host body comprises the steps of:
if the face exists in the view frame, calculating to obtain a proportion value of the face occupying the view frame at the current moment, and calculating to obtain a first distance value between the forehead hairline position and the center point of the view frame and a second distance value between the chin bottom position and the center point of the view frame according to the corresponding contour of the face;
calculating a target adjusting angle value of the host body according to the first distance value and the second distance value;
and adjusting the turning angle of the host body according to the target adjusting angle value, adjusting the focal length of the photographing camera until the proportional value is within a preset proportional range, and determining that the face in the adjusted viewing frame reaches a preset condition.
4. The method for realizing group photo shooting according to claim 2, wherein when the face in the adjusted view-finding frame reaches a preset condition, shooting and acquiring the current face image, and controlling the rotating connecting piece to rotate so that the rotating connecting piece drives the shooting camera to rotate for shooting comprises the steps of:
if the adjusted face in the viewing frame reaches a preset condition, shooting to obtain the current face image;
controlling the rotary connecting piece to drive the photographing camera to carry out forward rotation photographing to obtain a next face image;
if no face exists in the viewing frame after the face is forwardly rotated to a first preset angle, controlling the rotary connecting piece to drive the photographing camera to carry out reverse rotation photographing to obtain a next face image;
and if the face does not exist in the viewing frame after the rotating in the reverse direction to the second preset angle, determining that all users to be subjected to group photo in the current group photo shooting mode go into the mirror, and controlling the rotating connecting piece to stop rotating.
5. A wearable device, comprising:
the camera comprises a main body and a rotary connecting piece, wherein the main body is movably connected with the rotary connecting piece and is provided with a camera;
the starting module is used for starting a face recognition automatic photographing function of the wearable equipment;
the control module is used for shooting and acquiring a current face image if a face exists in the view-finding frame, and controlling the rotary connecting piece to rotate so that the rotary connecting piece drives the camera to rotate for shooting;
and the processing module is used for acquiring all next face images shot in the camera rotation process, and synthesizing the next face images according to the current face image and all next face images to obtain a group photo.
6. The wearable device of claim 5, wherein the control module comprises:
the identification unit is used for identifying whether a human face exists in the view-finding frame in the current group photo shooting mode;
the adjusting unit is used for adjusting the focal length of the photographing camera and the overturning angle of the host body if the face exists in the view-finding frame; the photographing camera is a camera used in the current group photo shooting mode;
and the control unit is used for shooting and acquiring the current face image if the face in the adjusted view-finding frame reaches a preset condition, and controlling the rotating connecting piece to rotate so as to drive the rotating camera to shoot in a rotating way.
7. The wearable device according to claim 6, wherein the adjustment unit comprises:
the calculating subunit is configured to calculate, if a human face exists in the view frame, a proportion value of the human face occupying the view frame at the current moment, and calculate, according to a profile corresponding to the human face, a first distance value between a forehead hairline position and a center point of the view frame, and a second distance value between a chin bottom position and the center point of the view frame; calculating a target adjusting angle value of the host body according to the first distance value and the second distance value;
and the adjusting subunit is used for adjusting the turning angle of the host body according to the target adjusting angle value, adjusting the focal length of the photographing camera until the proportional value is within a preset proportional range, and determining that the face in the adjusted viewing frame reaches a preset condition.
8. The wearable device according to claim 6, wherein the control unit comprises:
the shooting subunit is used for shooting and acquiring the current face image if the adjusted face in the view-finding frame reaches a preset condition;
the rotation control subunit controls the rotating connecting piece to drive the photographing camera to rotate in the forward direction, and controls the rotating connecting piece to drive the photographing camera to rotate in the reverse direction if no human face exists in the viewing frame after the rotating in the forward direction reaches a first preset angle; and if the face does not exist in the viewing frame after the rotating in the reverse direction to the second preset angle, determining that all users to be subjected to group photo in the current group photo shooting mode go into the mirror, and controlling the rotating connecting piece to stop rotating.
And the shooting subunit is also used for shooting in the forward rotation and reverse rotation processes to acquire the next face image.
9. A computer device comprising a processor, a memory, wherein the memory is configured to store a computer program; the processor is configured to execute the computer program stored in the memory to implement the operations performed by the group photo shooting implementation method according to any one of claims 1 to 4.
10. A storage medium having at least one instruction stored therein, the instruction being loaded and executed by a processor to implement the operations performed by the group photo taking implementation method according to any one of claims 1 to 4.
CN201910968346.3A 2019-10-12 2019-10-12 Group photo shooting implementation method, wearable device, computer device and storage medium Active CN112653830B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910968346.3A CN112653830B (en) 2019-10-12 2019-10-12 Group photo shooting implementation method, wearable device, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910968346.3A CN112653830B (en) 2019-10-12 2019-10-12 Group photo shooting implementation method, wearable device, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN112653830A true CN112653830A (en) 2021-04-13
CN112653830B CN112653830B (en) 2022-10-18

Family

ID=75343726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910968346.3A Active CN112653830B (en) 2019-10-12 2019-10-12 Group photo shooting implementation method, wearable device, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN112653830B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110187815A1 (en) * 2009-11-05 2011-08-04 Kimiharu Asami Image pickup apparatus and image acquiring method
CN203522885U (en) * 2013-07-11 2014-04-02 汕头大学 Self-photographing control device
WO2015180548A1 (en) * 2014-05-30 2015-12-03 努比亚技术有限公司 Method and device for implementing automatic shooting
CN108495045A (en) * 2018-05-17 2018-09-04 Oppo广东移动通信有限公司 Image capturing method, device, electronic device and storage medium
CN109218816A (en) * 2018-11-26 2019-01-15 平安科技(深圳)有限公司 A kind of volume adjusting method and device based on Face datection

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110187815A1 (en) * 2009-11-05 2011-08-04 Kimiharu Asami Image pickup apparatus and image acquiring method
CN203522885U (en) * 2013-07-11 2014-04-02 汕头大学 Self-photographing control device
WO2015180548A1 (en) * 2014-05-30 2015-12-03 努比亚技术有限公司 Method and device for implementing automatic shooting
CN108495045A (en) * 2018-05-17 2018-09-04 Oppo广东移动通信有限公司 Image capturing method, device, electronic device and storage medium
CN109218816A (en) * 2018-11-26 2019-01-15 平安科技(深圳)有限公司 A kind of volume adjusting method and device based on Face datection

Also Published As

Publication number Publication date
CN112653830B (en) 2022-10-18

Similar Documents

Publication Publication Date Title
US11860511B2 (en) Image pickup device and method of tracking subject thereof
JP5567235B2 (en) Image processing apparatus, photographing apparatus, program, and image processing method
EP2548368B1 (en) Portrait image synthesis from multiple images captured on a handheld device
EP1998558B1 (en) Image pickup apparatus equipped with function of detecting image shaking
US8638372B2 (en) Image capture unit with changeable image capture direction
WO2015064144A1 (en) Image capturing device, image capturing method, and program
CN105657257B (en) Image pickup method, device, system, mobile terminal and the self-shooting bar of distant view photograph
CN112219393A (en) Portable information terminal
WO2014071840A1 (en) Method and device for taking photo and video
JP2009054130A (en) Image processor, image processing method, and digital still camera
WO2022057723A1 (en) Video anti-shake processing method and electronic device
US10462358B2 (en) Information processing apparatus, information processing system, and information processing method
CN110740260A (en) shooting method, device and computer readable storage medium
CN113302908B (en) Control method, handheld cradle head, system and computer readable storage medium
JP2018152787A (en) Imaging device, external device, imaging system, imaging method, operation method, and program
WO2022000138A1 (en) Photographing control method and apparatus, and gimbal and photographing system
CN110365910B (en) Self-photographing method and device and electronic equipment
CN112653830B (en) Group photo shooting implementation method, wearable device, computer device and storage medium
JP2010028446A (en) Imaging apparatus, imaging method, and program
WO2022041013A1 (en) Control method, handheld gimbal, system, and computer readable storage medium
JP7128347B2 (en) Image processing device, image processing method and program, imaging device
JP2000099691A (en) Device for photographing person
CN113170050A (en) Image acquisition method, electronic equipment and mobile equipment
WO2021026782A1 (en) Control method and control apparatus for handheld cradle head, handheld cradle head and storage medium
JP7054437B2 (en) Image processing equipment, image processing methods and programs

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