Skip to content

個人的にFastAPIを触ってみるためのリポジトリ

Notifications You must be signed in to change notification settings

hasesuns/hadean-vision-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hadean Vision

Python package CI Code style: black

beach_hadean.png

A recreation the image processing of the third part of the "Stargate Sequence" (from "2001: A Space Odyssey" ).

How to use as a library

$ pip install git+ssh://[email protected]:hasesuns/hadean-vision-api.git

from hadeanvision.convert_picture import ConvertParams, convert

input_img = cv2.imread("./beach.jpg")
convert_params = ConvertParams(  # sample vals
    num_colors = 5,
    rgb_list =[(0, 255, 255), (10, 50, 80), (170, 80, 10), (50, 0, 5), (0, 10, 40)]  
)
output_img = convert(input_img, convert_params)

cv2.imwrite(output_img_path, "./beach_hadean.png")

Sample

input output
beach.jpg beach_hadean.png

todo

  • Use original luminance information
  • Support for video input

About

個人的にFastAPIを触ってみるためのリポジトリ

Topics

Resources

Stars

Watchers

Forks

Languages