This guide gets you from zero to running computer vision applications with PixelFlow. You’ll install the library, run your first detection, and see the power of unified CV workflows.
Here’s how simple it is to get professional computer vision results:
Copy
import pixelflow as pfimport cv2from ultralytics import YOLO# Load any YOLO modelmodel = YOLO('yolov8n.pt') # Downloads automatically first time# Load your imageimage = cv2.imread('your_image.jpg')# Run detectionresults = model(image)# Convert to PixelFlow formatdetections = pf.from_ultralytics(results[0])# Professional annotations in one lineannotated = pf.annotate.box(image, detections)# Display or save resultcv2.imshow('PixelFlow Result', annotated)cv2.waitKey(0)
All examples use the same PixelFlow workflow: Model Output � Convert � Annotate. This pattern works across every supported framework.
# Blur faces for privacy complianceperson_detections = detections.filter_by_class([0]) # Person class = 0 in COCOprivacy_safe = pf.annotate.blur(image, person_detections)
Pro Tip: PixelFlow’s modular design means you can use any component independently. Start with basic detection and annotations, then add tracking, zones, and advanced features as needed.