The Image.transform documentation describes the data parameter as
Extra data to the transformation method.
However, the documentation doesn't mention which data needs to be provided and in what format.
I am using perspective transform in a project and I was able to reverse engineer that a 1D numpy array of 8 floats works, but as I am lacking some of the theory behind it, it was unintuitive and I'm still not sure what the best way to generate those 8 numbers is.
The Image.transform documentation describes the
dataparameter asHowever, the documentation doesn't mention which data needs to be provided and in what format.
I am using perspective transform in a project and I was able to reverse engineer that a 1D numpy array of 8 floats works, but as I am lacking some of the theory behind it, it was unintuitive and I'm still not sure what the best way to generate those 8 numbers is.