Video chatting applications can be found on many types of computing devices such as mobile phones, tablets, and laptops. A user concerned about his or her appearance or the appearance of his or her background may not wish to video chat. A user wishing to remain anonymous may also not wish to video chat.
In the drawings:
Use of the same reference numbers in different figures indicates similar or identical elements.
As used herein, the term “includes” means includes but not limited to, the term “including” means including but not limited to. The terms “a” and “an” are intended to denote at least one of a particular element. The term “based on” means based at least in part on. The term “or” is used to refer to a nonexclusive such that “A or B” includes “A but not B,” “B but not A,” and “A and B” unless otherwise indicated.
In examples of the present disclosure, a video chatting application alone or with a plug-in enhances a video chat by applying real-time visual effects to a live video stream. The video chatting application may improve the appearance of a user in the live video stream to encourage the use of video chatting. The video chatting application may enrich the live video stream with static or dynamic visual elements to make video chatting more fun. The video chatting application may obscure the identity of the user or the background to improve privacy.
Computing device 102 includes a processor 108, a volatile memory 110, a nonvolatile memory 112, a camera 114, an input device 116, a display 118, and a wired or wireless network interface card (NIC) 120. Nonvolatile memory 112 stores a video chatting application 122 and a plug-in 124 that adds features to video chatting application 122. Alternatively video chatting application 122 includes the features of plug-in 124. Processor 108 loads the code of video chatting application 122 and plug-in 124 from nonvolatile memory 112 to volatile memory 110, executes the code, and stores application data in volatile memory 110. Input device 116 may be a mouse, a touchpad, a touchscreen, or a keyboard.
A user 126 at computing device 102 runs video chatting application 122 to video chat with a user 128 at computing device 104. Executing video chatting application 122, processor 108 transmits a local live video stream captured by camera 114 to computing device 104. Processor 108 shows a remote live video stream received from computing device 104 on display 118. Processor 108 may also show the local live video stream on display 118 where the remote live video stream appears in a larger window and the local live video stream appears in a smaller window superimposed over the larger window.
Plug-in 124 enriches a video chat by enhancing the local live video stream in real-time. Executing plug-in 124, processor 108 detects a face, facial features, an upper torso, and a gesture, if any, from the local live video stream in real-time. Based on the detected face, facial features, upper torso, and gesture, if any, processor 108 applies visual effects to the local live video stream in real-time. The visual effects may include retouching the face, applying cosmetics to the face, adding static or dynamic visual elements to or about the face, obscuring the face, a facial feature, or a background, and removing or replacing the background.
In block 202, processor 108 receives a live video stream captured by camera 114 (
In block 204, processor 108 starts to process the frames in the live video stream by selecting a next frame from the live video stream. Block 204 may be followed by block 206.
In block 206, processor 108 applies one or more enhancements to the frame. Block 206 may be followed by block 208.
In block 208, processor 108 detects a face, an upper torso, and a gesture, if any, from the frame. Processor 108 may execute analyzers that have been trained with positive and negative samples based on various features to detect face, upper torso, and gestures. Block 208 may be followed by block 210.
In block 210, processor 108 applies one or more visual effects to the frame based on the detected face, upper torso, and gesture, if any. Block 210 may be followed by block 212.
In block 212, processor 108 transmits the frame to computing device 104 (
In block 214, processor 108 determines if the frame is the last frame in the live video stream. If so, block 214 may be followed by block 216, which ends method 200. Otherwise block 214 may loop back to block 204 to process the next frame in the live video stream.
In block 302, processor 108 receives a live video stream captured by camera 114 (
In block 304, processor 108 starts to process the frames in the live video stream by selecting a next frame from the live video stream. Block 304 may be followed by block 306. Block 304 is similar to block 204 (
In block 306, processor 108 applies one or more enhancements to the frame. Processor 108 may adjust the lighting in the frame, such as correcting overexposure, underexposure, or uneven lighting (e.g., dim, side, top, or bottom lighting). Processor 108 may also remove noise and blurring from the frame.
In one example, processor 108 enhances all the frames in the live video stream. In another example, processor 108 starts to enhance the frames in the live video stream when it detects poor exposure, poor lighting, noise, or blurring in the live video stream. Processor 108 may determine if the live video stream has poor exposure, poor lighting, noise, or blurring in each frame or every few frames. In another example, a user selects one or more enhancements during the video chat or an initial setup of video chatting plug-in 124 prior to the video chat.
Block 306 may be followed by block 308. Block 306 is similar to block 206 (
In block 308, processor 108 detects a face, outlines of facial features, and points of the facial features. The facial features include cheeks, mouth, eyes, eye brows, nose, irises, pupils, teeth, lips, and T-zone (e.g., an area including the nose and across the forehead). User 126 may manually fine-tune the locations of the facial feature points during an initial setup of video chatting plug-in 124 prior to the video chat. Processor 108 may also detect facial hair, glasses, and hair style, and estimate age, gender, and race. Processor 108 may not estimate age, gender, and race in each frame. For example, processor 108 may recognize the same face from frame to frame so it does not need to estimate age, gender, and race again.
Processor 108 detects an upper torso (e.g., neck and shoulders) from the frame. As the detected face and upper torso form the foreground of the frame, processor 108 designates the remaining area in the frame as the background of the frame.
Processor 108 detects gestures. The gestures include facial gestures (e.g., emotional expressions), hand gestures, and movements of other body parts. Processor 108 may use preceding frames to detect gestures in the current frame.
Processor 108 may execute analyzers that have been trained with positive and negative samples based on various features to detect face, facial features, facial hair, glasses, hair style, age, gender, race, upper torso, and gestures. Once the face, facial feature outlines, facial feature points, facial hair, glasses, hair style, upper torso, and gestures have been detected in a prior frame, their locations in the prior frame may be used as the starting point to search for the new locations in the subsequent frame. Furthermore, locations of the face, facial features, facial hair, glasses, upper torso, and gestures may be correlated to assist in their detection.
Block 308 may be followed by block 310. Block 308 is similar to block 208 (
In block 310, processor 108 applies one or more visual effects to the frame. Processor 108 may retouch the face, apply cosmetics to the face, add static or dynamic visual elements to or about the face, or morph the face.
When freshener icon 406 on screen 400 is selected, processor 108 generates a screen 500 shown in
When passion icon 408 on screen 400 is selected, processor 108 generates a screen 600 shown in
The animations include blowing kisses, tearing, sparkling eyes, WOW, questions, and puckering lips. The tearing animation is anchored to the eyes and appears as giant tears 606 streaming from the eyes. The blowing kisses animation is anchored to the mouth and appears as a stream of kisses flying away from the mouth. The blowing kisses animation may be continuous or triggered by the gesture of blowing a kiss. The sparkling eyes animation is anchored to the eyes and appears as sparkles emanating from the eyes. The WOW animation is anchored to a corner of the mouth and appears as a callout cloud with the word WOW. The WOW animation may be continuous or triggered by the gesture of mouthing the word WOW. The questions animation is anchored above the head and appears as large question marks. The question animation may be continuous or triggered by the gesture of a confused facial expression. The puckering lips animation is anchored to the mouth and appears as a stream of puckered lips flying away from the mouth. The puckering lips animation may be continuous or triggered by the gesture of puckered lips.
When funhouse mirror icon 410 on screen 400 is selected, processor 108 generates a screen 700 shown in
When secret icon 412 on screen 400 is selected, processor 108 generates a screen 800 shown in
When sticker icon 414 on screen 400 is selected, processor 108 generates a screen 1000 shown in
When makeup icon 416 is selected, processor 108 generates a screen 1100 shown in
Referring to back to
In block 312, processor 108 transmits the frame to computing device 104 (
In block 314, processor 108 determines if the frame is the last frame in the live video stream. If so, block 314 may be followed by block 316, which ends method 300. Otherwise block 314 may loop back to block 304 to process the next frame in the live video stream. Block 314 is similar to block 214 (
Various other adaptations and combinations of features of the embodiments disclosed are within the scope of the present disclosure. Numerous embodiments are encompassed by the following claims.