frame_size

imagepypelines.frame_size(img)[source]

return the height and width of a given img

Parameters:img (np.ndarray) – input img to find frame_size of
Returns:frame_size, height and width of the input img
Return type:tuple

Example

>>> import imagepypelines as ip
>>> height, width = ip.frame_size( ip.lenna() )