Commit 5ba95873 authored by François Darmon's avatar François Darmon Committed by Francisco Massa
Browse files

Update functional.py (#1017)

Change documentation of perspective(). The doc was about an old version that used directly transformation parameters
parent 7693c896
...@@ -437,8 +437,8 @@ def perspective(img, startpoints, endpoints, interpolation=Image.BICUBIC): ...@@ -437,8 +437,8 @@ def perspective(img, startpoints, endpoints, interpolation=Image.BICUBIC):
Args: Args:
img (PIL Image): Image to be transformed. img (PIL Image): Image to be transformed.
coeffs (tuple) : 8-tuple (a, b, c, d, e, f, g, h) which contains the coefficients. startpoints: List containing [top-left, top-right, bottom-right, bottom-left] of the orignal image
for a perspective transform. endpoints: List containing [top-left, top-right, bottom-right, bottom-left] of the transformed image
interpolation: Default- Image.BICUBIC interpolation: Default- Image.BICUBIC
Returns: Returns:
PIL Image: Perspectively transformed Image. PIL Image: Perspectively transformed Image.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment