diff --git a/examples/blobs2.py b/examples/blobs2.py index 69013750..b7fd54f7 100644 --- a/examples/blobs2.py +++ b/examples/blobs2.py @@ -1,5 +1,4 @@ from machinevisiontoolbox import Image -import matplotlib.pyplot as plt mb = Image.Read("multiblobs.png") diff --git a/examples/randomdots.py b/examples/randomdots.py index 79624039..00f6bfd2 100644 --- a/examples/randomdots.py +++ b/examples/randomdots.py @@ -4,7 +4,6 @@ # could be the basis of texture for stereo calibration from machinevisiontoolbox import Image -import matplotlib.pyplot as plt image = Image.Random(200) image.threshold_interactive(block=True) diff --git a/examples/ransac_line.py b/examples/ransac_line.py index a183da9a..e9522859 100644 --- a/examples/ransac_line.py +++ b/examples/ransac_line.py @@ -7,7 +7,6 @@ def ransac_line(x, y, npoints=2, maxiter=20, t=1e-6, d=4): iterations = 0 - n = len(x) best_fit = np.inf best_model = None diff --git a/symbolic/bundle-adjust.py b/symbolic/bundle-adjust.py index 9067d1a7..4bdc502f 100644 --- a/symbolic/bundle-adjust.py +++ b/symbolic/bundle-adjust.py @@ -1,8 +1,7 @@ import sys from datetime import datetime -from machinevisiontoolbox import Camera from spatialmath import base -from sympy import * +from sympy import Matrix, pycode, simplify, sqrt import numpy as np # Camera intrinsics