Abstract:
A photographing method includes: starting a camera in response to a first operation; entering a first video recording mode in response to a second operation; capturing first video frames in response to a third operation; and stopping capturing the first video frames in response to a fourth operation, to obtain a target video. The ith second video frame in the target video is obtained by fusing a foreground image of the kth first video frame captured by the camera and a background image of the jth first video frame captured by the camera, and the (i+1)th second video frame in the target video is obtained by fusing a foreground image of the (k+m)th first video frame captured by the camera and a background image of the (j+n)th first video frame captured by the camera, where m≠n. In this way, the electronic device can record a video with a special effect.
Abstract:
Embodiments of the present invention provide a video coding method for INTRA and a video coding apparatus. The method includes performing a traversal prediction on a current-layer coding unit CU, a prediction mode of a sub-Cu that is divided, from the current-layer CU, and a syntax element that is needed for coding of the current-layer CU; and if the best CU division mode is to divide the current-layer CU into four sub-CUs whose depth is N+1, and prediction modes of the four sub-CUs whose depth is N+1 are the same, performing coding, by using the current-layer CU as a coding unit, on the current-layer CU according to the best CU division mode, the prediction mode of the sub-CU that is divided from the current-layer CU according to the best CU division mode, and the syntax element that is needed for coding of the current-layer CU.
Abstract:
This application provides an image processing method, including: after binocular image data of a photographing scene that is generated by dual cameras is obtained, determining binocular depth data by using the binocular image data, to determine an error region in an image, correcting depths of the error region based on time of flight (TOF) data corresponding to the scene, and finally performing blurring processing on monocular image data in the binocular image data by using corrected binocular depth data. Because TOF is considered when the depths of the error region are corrected, the method can effectively avoid a depth estimation error caused by relatively poor precision and stability of a binocular depth estimation manner, so that depth estimation precision and stability are improved.