Skip to content

Commit bfa5ff9

Browse files
committed
fixed two small typos
1 parent 4fb06da commit bfa5ff9

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

openptv_python/calibration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ def from_file(cls, ori_file: str, add_file: str | None):
167167
# Additional parameters
168168
if add_file is not None:
169169
with open(add_file, "r", encoding="utf-8") as fp:
170-
tmp = list(map(float, fp.readline().split()))
170+
addtmp = list(map(float, fp.readline().split()))
171171

172-
ret.set_radial_distortion(np.array(tmp[:3]))
173-
ret.set_decentering(np.array(tmp[3:5]))
174-
ret.set_affine_distortion(np.array(tmp[5:]))
172+
ret.set_radial_distortion(np.array(addtmp[:3]))
173+
ret.set_decentering(np.array(addtmp[3:5]))
174+
ret.set_affine_distortion(np.array(addtmp[5:]))
175175

176176
# except FileNotFoundError:
177177
else:

openptv_python/orientation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def orient(
195195
pix: List[Target],
196196
flags: OrientPar,
197197
sigmabeta: np.ndarray,
198-
dm: float = 0.000001,
198+
dm: float = 0.000001,
199199
drad: float = 0.000001
200200
) -> Optional[np.ndarray]:
201201
"""Calculate orientation of the camera, updating its calibration.

0 commit comments

Comments
 (0)