Original Quadrilateral.pts sorting method failed to sort horizontal coordinates correctly, which resulted in wrong direction determination and wrong warp_transform for OCR. For example:
[[ 367, 1333],
[ 378, 1376],
[ 191, 1430],
[ 180, 1387]])
Direction must be provided to sort the coordinates correctly.
Original Quadrilateral.pts sorting method failed to sort horizontal coordinates correctly, which resulted in wrong direction determination and wrong warp_transform for OCR. For example: [[ 367, 1333], [ 378, 1376], [ 191, 1430], [ 180, 1387]])
Direction must be provided to sort the coordinates correctly.
Test image:
Before:
Fix:
Close #628