...
The $200 CV camera is a global shutter camera with a 40° field of view (FOV) 8mm rectilinear lens (smallest FOV available).
...
The focus distance can be changed by rotating the lens along the threads of the lens holder.
Hardware
Lens FOV
For 8mm lens ordered with sensor:
Horizontal FOV: ~37.178°
Vertical FOV: ~23.742°
Measurement
Print and place square grid paper on flat surface.
A grid on an electronic screen works as well.
Measure ratio of square side length to SI unit.
23squares : 13cm
Plug the camera into computer and display the video.
Point the camera perpendicularly to the grid and ensure that grid is aligned with the edges of the video frame.
Change the distance of the camera from the grid so that there is a whole number of squares from left edge to right edge of video frame. Record the count.
18squares width
Without moving the camera, measure the perpendicular distance from the grid to the closest end of the camera lens.
15cm to end of lens
Estimate the focal point of the lens.
2.5mm lens end length, focal point estimated halfway
Calculate the horizontal field of view:
Convert the horizontal distance to SI units:
Horizontal distance in SI = Square count * (Square side length in SI units / Square side length in squares)
Convert perpendicular distance to the same units as the horizontal distance
Triangle ratio:
Opposite over adjacent = Horizontal distance / 2 / Perpendicular distance
Get the angle:
Angle = arctan(Opposite over adjacent)
Final answer:
Horizontal field of view = Angle * 2
Calculate the vertical field of view:
Follow steps 1-3 of horizontal field of view
Multiply by ratio correction:
Correction = Vertical resolution / Horizontal resolution
Follow steps 4-5 of horizontal field of view
Combined:
Code Block |
---|
~37.178° = arctan(18 * (13 / 23) / 2 / 15.125) * 2
~23.742° = arctan(18 * (13 / 23) / 2 / 15.125 * (10 / 16)) * 2 |
...
Electrical
Input voltage: 5VDC
...