CentralCamera.f#

property CentralCamera.f: ndarray#

Set/get focal length

Returns:

focal length in horizontal and vertical directions

Return type:

ndarray(2)

Return focal length in horizontal and vertical directions.

Example:

>>> from machinevisiontoolbox import CentralCamera
>>> camera = CentralCamera.Default(name='camera1')
>>> camera.f
array([0.008, 0.008])
>>> camera.f = 0.015
>>> camera.f
array([0.015, 0.015])
>>> camera.f = [0.015, 0.020]
>>> camera.f
array([0.015, 0.02 ])

Note

These are normally identical but will differ if the sensor has non-square pixels or the frame grabber is changing the aspect ratio of the image.

Seealso:

fu fv