Focal length from HFOV

PHOTO EMBED

Thu Feb 03 2022 18:11:11 GMT+0000 (Coordinated Universal Time)

Saved by @saching12 #depthai #python #fov

import math

def getFocallength(hFov_deg, width):
	return width/(2 * math.tan((hFov_deg * math.pi / 180)/2))
content_copyCOPY