Get Started
Deployment - Python
Deploy your Kinetix ML pipeline to Python in less than 5 minutes.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Deploy your Kinetix ML pipeline to Python in less than 5 minutes.
pip install KMLPipePy
from KMLPipePy import KMLPipeline
pipe = KMLPipeline("[Your Project Name]", 1, "[Your API Key]")
pipe.initialize()
pipe.execute([]) # the [] should be replaced with your list of inputs
from KMLPipePy import KMLPipeline
from KMLPipePy.types import Canvas
import cv2
import time
pipe = KMLPipeline("[Project Name]", 1, "[API Key]")
pipe.initialize() # initialize the pipeline
out = Canvas() # initialize output drawing canvas
cam = cv2.VideoCapture(0) # start OpenCV webcam capture
while True:
res, image = cam.read() # read image from webcam
if image is not None and image.any():
out.set_image(image)
t0 = time.time()
outputs = pipe.execute([image, out]) # execute pipeline
print(outputs)
t1 = time.time()
print(f"{1/(t1-t0)} fps")
if out.show(1):
break
cam.release()