Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    \$\begingroup\$ It looks like cv2.ROTATE_90_CLOCKWISE is just an enum with value 0. So you could just do cv2.imwrite(p:=input(),cv2.rotate(cv2.imread(p),0)) \$\endgroup\$ Commented Feb 16, 2023 at 22:34
  • \$\begingroup\$ BTW the from cv2 import* version works for me. Have you tried with a linebreak instead of a ;? \$\endgroup\$ Commented Feb 16, 2023 at 22:40
  • \$\begingroup\$ @Stef yeah I did, it still didn't work. I'll update it with the 0 later. \$\endgroup\$ Commented Feb 17, 2023 at 7:41