File size: 258 Bytes
44883c8
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import cv2

def run(frames):
    results = []
    for frame in frames:
        annotated = frame.copy()
        cv2.putText(annotated, "Tree Height", (10, 40), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 0, 0), 2)
        results.append(annotated)
    return results