Skip to content

Instantly share code, notes, and snippets.

View franva's full-sized avatar
😁

Winston Fan franva

😁
View GitHub Profile
@franva
franva / depth_on_cam.py
Created April 16, 2023 14:36
Calculate Depth on AICAm
import math
import depthai as dai
import cv2
pipeline = dai.Pipeline()
img_size = 672
def init_depth(pipeline):
# Define sources and outputs