Skip to content

JSYOU/python_chromaKey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python_chromaKey

dependencies

Python version - 2.7 or 3 openCV version - 2.4 or 3.3

How to use

Use image file

import ckpy
##You can use cv2.imread("image") or io.imread("image") load image
img = cv2.imread("./image_file")
res = ckpy.chromaKey(img)
cv2.imshow('res',res)

Use webcam

import ckpy
cap = cv2.VideoCapture(0)
while (1):
    ret, frame = cap.read()
    res = ckpy.chromaKey(frame)
    cv2.imshow('frame',frame)

Res will show a photo or video from the subject of remove a background

You can mix anything you want in the image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages