Suppose I have this image:

How to automaticallly detect the outher box and correct the corners of the image based on that outher box, so that the image looks like this?

| 1 | initial version |
Suppose I have this image:

How to automaticallly detect the outher box and correct the corners of the image based on that outher box, so that the image looks like this?

| 2 | No.2 Revision |
Suppose I have this image:

How to automaticallly automatically detect the outher box and correct And Correct the corners of the destination image based on that outher box, so that the image looks like this?
