Skip to content

Commit

Permalink
Remove old print syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
onurtemizkan committed Feb 27, 2019
1 parent 57064ad commit 7064e38
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 59 deletions.
3 changes: 0 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[requires]
python_version = "2.7"

[packages]
numpy = "*"
scipy = "*"
Expand Down
61 changes: 13 additions & 48 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ This repository contains the implementation of

### Requirements

- `python 2.7`
- `numpy`
- `scipy`
- `pipenv`
- `pylint`

### Running

Expand Down
Empty file added __init__.py
Empty file.
12 changes: 6 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ def calibrate():
end = timer()
homographies = compute_homography(data)
end("Homography Estimation")
print "homographies"
print homographies
print("homographies")
print(homographies)

end = timer()
intrinsics = get_camera_intrinsics(homographies)
end("Intrinsics")

print "intrinsics"
print intrinsics
print("intrinsics")
print(intrinsics)

end = timer()
extrinsics = get_camera_extrinsics(intrinsics, homographies)
end("Extrinsics")

print "extrinsics"
print extrinsics
print("extrinsics")
print(extrinsics)

end = timer()
distortion = estimate_lens_distortion(
Expand Down
2 changes: 1 addition & 1 deletion utils/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def timer():

def end(method_name="Unnamed function"):

print method_name + " took : " + str(time.time() - start) + " seconds."
print(method_name + " took : " + str(time.time() - start) + " seconds.")
return

return end

0 comments on commit 7064e38

Please sign in to comment.