A method for preprocessing an image, comprising: obtaining (S101; S201) a current data frame captured through a camera by a pre-created drawing surface window, wherein the pre-created drawing surface window is SurfaceTexture called by a central processing unit, CPU, in response to a preview activating instruction of the camera, in a graphic library, GL, thread for setting a window management environment of the OpenGL; converting (S102; S202) the current data frame into a preview texture corresponding to the current data frame by the pre-created drawing surface window; and sending (S103; S203) the preview texture corresponding to the current data frame to a graphics processing unit, GPU, processing, by the GPU, the preview texture corresponding to the current data frame, and sending, by the CPU, the preview texture processed to an advanced driving assistance system, ADAS; being characterized in that, processing the preview texture corresponding to the current data frame comprises: converting a color of the preview texture corresponding to the current data frame within a storage space occupied by the GPU by calling a preset shader by the GPU; converting a pixel format of the preview texture corresponding to the current data frame within the storage space occupied by the GPU from a red-green-blue, RGB, format into a YUV format; or scaling a size of the preview texture corresponding to the current data frame within the storage space occupied by the GPU. obtaining (S101; S201) a current data frame captured through a camera by a pre-created drawing surface window, wherein the pre-created drawing surface window is SurfaceTexture called by a central processing unit, CPU, in response to a preview activating instruction of the camera, in a graphic library, GL, thread for setting a window management environment of the OpenGL; converting (S102; S202) the current data frame into a preview texture corresponding to the current data frame by the pre-created drawing surface window; and sending (S103; S203) the preview texture corresponding to the current data frame to a graphics processing unit, GPU, processing, by the GPU, the preview texture corresponding to the current data frame, and sending, by the CPU, the preview texture processed to an advanced driving assistance system, ADAS; being characterized in that, processing the preview texture corresponding to the current data frame comprises: converting a color of the preview texture corresponding to the current data frame within a storage space occupied by the GPU by calling a preset shader by the GPU; converting a pixel format of the preview texture corresponding to the current data frame within the storage space occupied by the GPU from a red-green-blue, RGB, format into a YUV format; or scaling a size of the preview texture corresponding to the current data frame within the storage space occupied by the GPU. converting a color of the preview texture corresponding to the current data frame within a storage space occupied by the GPU by calling a preset shader by the GPU; converting a pixel format of the preview texture corresponding to the current data frame within the storage space occupied by the GPU from a red-green-blue, RGB, format into a YUV format; or scaling a size of the preview texture corresponding to the current data frame within the storage space occupied by the GPU.