Skip to content

Commit

Permalink
Merge pull request #1 from vestri/master
Browse files Browse the repository at this point in the history
Some correction to make pylsd working with Python 3.5
  • Loading branch information
primetang authored Feb 9, 2017
2 parents 7ac78df + aec4a06 commit f498c4a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/example_cv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
src = cv2.imread(fullName, cv2.IMREAD_COLOR)
gray = cv2.cvtColor(src, cv2.COLOR_BGR2GRAY)
lines = lsd(gray)
for i in xrange(lines.shape[0]):
for i in range(lines.shape[0]):
pt1 = (int(lines[i, 0]), int(lines[i, 1]))
pt2 = (int(lines[i, 2]), int(lines[i, 3]))
width = lines[i, 4]
Expand Down
2 changes: 1 addition & 1 deletion pylsd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# @Link : https://github.com/primetang/pylsd
# @Version : 0.0.1

from lsd import lsd
from pylsd import lsd
2 changes: 1 addition & 1 deletion pylsd/bindings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# @Link : https://github.com/primetang/pylsd
# @Version : 0.0.1

from lsd_ctypes import *
from pylsd.bindings.lsd_ctypes import *
2 changes: 1 addition & 1 deletion pylsd/bindings/lsd_ctypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def load_lsd_library():
try:
lsdlib = ctypes.cdll[os.path.join(root_dir, libdir, libname)]
return lsdlib
except Exception, e:
except Exception as e:
pass
tmp = os.path.dirname(root_dir)
if tmp == root_dir:
Expand Down
2 changes: 1 addition & 1 deletion pylsd/lsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# @Link : https://github.com/primetang/pylsd
# @Version : 0.0.1

from bindings.lsd_ctypes import *
from pylsd.bindings.lsd_ctypes import *


def lsd(src):
Expand Down

0 comments on commit f498c4a

Please sign in to comment.