TangAL0203 / ddd_kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

collect common 3d code

This repo is a code collector, including some code commonly used for cver.

video

  1. video generation
from ddd import video
video.frames2video(frame_dir='path2img', 'temp.avi', fps=15)

img

  1. io
from ddd import image
img = image.io.imread(img_path, flag='color', channel_order='bgr')
image.io.imwrite(img, file_path='xxx/yyy.jpg')
  1. colorspace convert
from ddd.image import colorspace
# then get func you need to do the conversion, e.g.
bgr_img = colorspace.gray2bgr(img)

About


Languages

Language:Python 94.1%Language:Cuda 3.6%Language:C++ 1.8%Language:CMake 0.5%