Skip to content

Matoi647/autostereogram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

生成自动立体图和视频

效果演示

素材来自https://www.bilibili.com/video/BV1x5411o7Kn/

原图

original image

自动立体图

!autostereogram

自动立体图(附有焦点)

autostereogram(focus)

使用方法

  1. 安装ffmpeg: https://ffmpeg.org/download.html
  2. 安装numpy和opencv-python
pip install numpy opencv-python

克隆项目

git clone https://github.com/Matoi647/autostereogram.git

制作自动立体图需要使用深度图,如果没有深度图,可以使用asg.binarize_video()将图像二值化作为替代

import autostereogram as asg

asg.asg_img(r"YOUR_IMAGE_PATH", r"OUTPUT_PATH")
# asg.binarize_video(r"YOUR_VIDEO_PATH", r"OUTPUT_PATH")
# asg.asg_video(r"YOUR_VIDEO_PATH", r"OUTPUT_PATH")

About

Generate Autostereogram and Video

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages