主权项 |
1. A method comprising:
capturing frames of a video signal using a camera at a computing device; monitoring, with a motion sensor of the computing device, motion of the camera; determining a functional state of the computing device based at least in part on one or more samples that are generated by the motion sensor and describe motion of the camera; responsive to determining that the computing device is in a first functional state, not selectively stabilizing the video signal; responsive to determining that the computing device is in a second functional state, selectively stabilizing the video signal in real-time, the selectively stabilizing comprising repeating, for each captured frame of the video signal:
determining a pixel displacement between the captured frame and a previous frame of the video signal;determining an accumulated pixel displacement based on the determined pixel displacement between the captured frame and the previous frame of the video signal;determining a filtered accumulated pixel displacement for the captured frame based on a weighted sum of the determined accumulated pixel displacement for the captured frame and a filtered accumulated pixel displacement of the previous frame; andshifting an image of one or more of the captured frame or the previous frame based on the determined filtered pixel displacement; and transmitting the video signal, with or without stabilization, from the computing device to an additional computing device. |