A video processing method based on augmented reality, comprising: receiving a merchant-related image; acquiring an image captured by a device, and recognizing a target object from the captured image by comparing the captured image with the merchant-related image and recognizing the target object from the captured image according to a result of the comparison, wherein the merchant-related image includes the target object; searching for a video file corresponding to the target object, wherein the video file has a specified background color and does not carry alpha channel values; recognizing , with regard to a video frame of the video file, a foreground portion and a background portion of the video frame, and processing the background portion of the video frame to make the background portion of the video frame transparent; calculating a full alpha channel to make the background portion transparent by using a graphics processing unit, GPU, comprising: converting each pixel in a video frame into a YCrCb, YUV color code, format, and calculating a color vector of each pixel; calculating a color vector of the specified background color in the same way; calculating the distance between the color vector of each pixel and the color vector of the specified background color; and first using Clamping to limit within an interval the values of the distances, then using Hermite interpolation to interpolate a result, and using the result of the interpolation as alpha values each for a respective pixel; and synthesizing , after determining a position of the foreground portion in a currently captured image, the processed video frame with the currently captured image to obtain a synthesized video frame. receiving a merchant-related image; acquiring an image captured by a device, and recognizing a target object from the captured image by comparing the captured image with the merchant-related image and recognizing the target object from the captured image according to a result of the comparison, wherein the merchant-related image includes the target object; searching for a video file corresponding to the target object, wherein the video file has a specified background color and does not carry alpha channel values; recognizing , with regard to a video frame of the video file, a foreground portion and a background portion of the video frame, and processing the background portion of the video frame to make the background portion of the video frame transparent; calculating a full alpha channel to make the background portion transparent by using a graphics processing unit, GPU, comprising: converting each pixel in a video frame into a YCrCb, YUV color code, format, and calculating a color vector of each pixel; calculating a color vector of the specified background color in the same way; calculating the distance between the color vector of each pixel and the color vector of the specified background color; and first using Clamping to limit within an interval the values of the distances, then using Hermite interpolation to interpolate a result, and using the result of the interpolation as alpha values each for a respective pixel; and calculating a color vector of the specified background color in the same way; calculating the distance between the color vector of each pixel and the color vector of the specified background color; and first using Clamping to limit within an interval the values of the distances, then using Hermite interpolation to interpolate a result, and using the result of the interpolation as alpha values each for a respective pixel; and synthesizing , after determining a position of the foreground portion in a currently captured image, the processed video frame with the currently captured image to obtain a synthesized video frame. <EOS>