pdf – Scanner app like tool in macOS

There are many scanner apps for smartphones like Microsoft Lens, Scanner Pro, Adobe Scan, etc. They usually apply some filters to make documents clean and some rotate/flatten tools to fix skewness.

When I have a picture of some documents already in my macOS, is there a tool that can do the same job? Is the same job can be done in any app? Preview or Acrobat or anything else? Of course, I can move the picture to my smartphone and then use a scanner app, but I am looking for a direct macOS method.