how to scale an image on python-opencv?

When i tried to scale the photo in python it gives me this error:

IndentationError: unindent does not match any outer indentation level

My code:

cv.SetImageROI(image, (pt1[0], pt1[1],pt2[0]-pt1[0], int((pt2[1] - pt1[1]) * 0.6)))

Answers


The problem is with your indentation in python.

In python code must be aligned together when in the same scope.


Need Your Help

How can I reference Microsoft.Office.Interop.Excel version 14 instead of 15?

visual-studio-2012 reference windows-services office-interop excel-2013

I am updating a custom Windows Service that is currently installed on a Windows 2003 server. The service reads excel files sent to an email address, and writes to that same file. Installed on the s...

Getting many Binding "Information" in WPF output window

.net wpf binding

When I start my app I get a lot of information like this: