Python version
- 2.7 or 3
openCV version
- 2.4 or 3.3
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)
import ckpy
cap = cv2.VideoCapture(0)
while (1):
ret, frame = cap.read()
res = ckpy.chromaKey(frame)
cv2.imshow('frame',frame)