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)
You’re now ready to build production computer vision applications! Here’s where to go next:
Detections
Master the unified detection format that works with any model
Annotations
Explore all 20+ professional annotation functions
Object Tracking
Add multi-object tracking to your applications
Spatial Analytics
Use zones and crossings for location-based insights
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.