Naked-eye suspended three-dimensional video display method, device, equipment and storage medium
View Patent ↗Disclosed are a naked-eye suspended three-dimensional video display method, a device, an equipment and a storage medium. The method includes: placing a single-viewpoint video file in a preset four-dimensional coordinate system based on a preset parallax, wherein the preset four-dimensional coordinate system is generated by a three-dimensional display coordinate system and a parallax coordinate axis, and the parallax coordinate axis is established based on a multi-viewpoint parameter and the three-dimensional display coordinate system; determining multiple target viewpoints in the preset four-dimensional coordinate system according to a position of the single-viewpoint video file and the multi-viewpoint parameter; rendering the single-viewpoint video file based on each target viewpoint, and obtaining a parallax file corresponding to each target viewpoint; rendering and integrating each parallax file, and obtaining a naked-eye suspended three-dimensional video; determining grating parameters according to the naked-eye suspended three-dimensional video; and displaying the naked-eye suspended three-dimensional video.
1. A naked-eye suspended three-dimensional video display method, comprising:
placing a single-viewpoint video file in a preset four-dimensional coordinate system based on a preset parallax, wherein the preset four-dimensional coordinate system is generated by a three-dimensional display coordinate system and a parallax coordinate axis, and the parallax coordinate axis is established based on a multi-viewpoint parameter and the three-dimensional display coordinate system;
determining multiple target viewpoints in the preset four-dimensional coordinate system according to a position of the single-viewpoint video file and the multi-viewpoint parameter;
rendering the single-viewpoint video file based on each target viewpoint, and obtaining a parallax file corresponding to each target viewpoint;
rendering and integrating each parallax file, and obtaining a naked-eye suspended three-dimensional video;
determining grating parameters according to the naked-eye suspended three-dimensional video; and
displaying the naked-eye suspended three-dimensional video according to the grating parameters.
2. The naked-eye suspended three-dimensional video display method according to claim 1 , wherein the placing the single-viewpoint video file in the preset four-dimensional coordinate system based on the preset parallax comprises:
determining a target placement position on the parallax coordinate axis in the preset four-dimensional coordinate system based on the preset parallax; and
taking the target placement position as a location of the single-viewpoint video file, and placing the single-viewpoint video file in the target placement position.
3. The naked-eye suspended three-dimensional video display method according to claim 2 , wherein before the determining the target placement position on the parallax coordinate axis in the preset four-dimensional coordinate system based on the preset parallax, the method further comprises:
establishing the parallax coordinate axis based on the multi-viewpoint parameter and the three-dimensional display coordinate system; and
determining a display sub-coordinate system according to the multi-viewpoint parameter, and establishing the preset four-dimensional coordinate system according to the display sub-coordinate system and the parallax coordinate axis.
4. The naked-eye suspended three-dimensional video display method according to claim 1 , wherein the determining multiple target viewpoints in the preset four-dimensional coordinate system according to the position of the single-viewpoint video file and the multi-viewpoint parameter comprises:
determining a target shooting axis in the preset four-dimensional coordinate system according to the position of the single-viewpoint video file; and
determining the multiple target viewpoints at preset intervals according to the target shooting axis and the multi-viewpoint parameter.
5. The naked-eye suspended three-dimensional video display method according to claim 1 , wherein the determining grating parameters according to the naked-eye suspended three-dimensional video comprises:
obtaining a corresponding multi-viewpoint parameter according to the naked-eye suspended three-dimensional video; and
determining the grating parameters according to the multi-viewpoint parameter.
6. The naked-eye suspended three-dimensional video display method according to claim 1 , wherein before the placing the single-viewpoint video file in the preset four-dimensional coordinate system based on the preset parallax, the method further comprises:
performing cutout processing on an original video file, and obtaining a transparent display video file; and
taking the transparent display video file as the single-viewpoint video file.
7. The naked-eye suspended three-dimensional video display method according to claim 1 , wherein the rendering the single-viewpoint video file based on each target viewpoint, and obtaining the parallax file corresponding to each target viewpoint comprises:
shooting the single-viewpoint video file based on each target viewpoint, and obtaining a shooting file; and
coloring each pixel in the shooting file, and obtaining the parallax file corresponding to each target viewpoint.
8. A naked-eye suspended three-dimensional video display device, comprising:
a file placement module configured to place a single-viewpoint video file in a preset four-dimensional coordinate system based on a preset parallax, wherein the preset four-dimensional coordinate system is generated by a three-dimensional display coordinate system and a parallax coordinate axis, and the parallax coordinate axis is established based on a multi-viewpoint parameter and the three-dimensional display coordinate system;
a viewpoint determination module configured to determine multiple target viewpoints in the preset four-dimensional coordinate system according to a position of the single-viewpoint video file and the multi-viewpoint parameter;
a file rendering module configured to render the single-viewpoint video file based on each target viewpoint, and obtain a parallax file corresponding to each target viewpoint;
a file integration module configured to render and integrate each parallax file, and obtain a naked-eye suspended three-dimensional video;
a parameter determination module configured to determine grating parameters according to the naked-eye suspended three-dimensional video; and
a video display module configured to display the naked-eye suspended three-dimensional video according to the grating parameters.
9. A naked-eye suspended three-dimensional video display equipment, comprising: a memory, a processor and a naked-eye suspended three-dimensional video display program stored on the memory and operable on the processor, wherein the naked-eye suspended three-dimensional video display program is configured to realize the naked-eye suspended three-dimensional video display method according to claim 1 .
10. A non-transitory computer-readable storage medium storing a naked-eye suspended three-dimensional video display program, wherein the naked-eye suspended three-dimensional video display method according to claim 1 is realized when the naked-eye suspended three-dimensional video display program is executed by a processor.