Three-dimensionalization method and apparatus for two-dimensional image, device and computer-readable storage medium
Abstract:
This application provides a three-dimensionalization method and apparatus for a two-dimensional image, an electronic device, and a computer-readable storage medium. The method includes performing depth perception processing on a two-dimensional image, to obtain a depth value of each pixel in the two-dimensional image; performing migration processing on the two-dimensional image from multiple perspectives, to obtain a migration result of the two-dimensional image corresponding to each perspective; determining a color value of each pixel in a migration image corresponding to each perspective, based on the depth value of each pixel in the two-dimensional image and the migration result of the two-dimensional image corresponding to each perspective; generating, based on the color value of each pixel in the migration image of each perspective, the migration image corresponding to the perspective; and encapsulating the migration images of the multiple perspectives in an order, to obtain a three-dimensional video.
Information query
Patent Agency Ranking
0/0