Skip to content

Commit

Permalink
fixed two small typos
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlib committed Feb 29, 2024
1 parent 4fb06da commit bfa5ff9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions openptv_python/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ def from_file(cls, ori_file: str, add_file: str | None):
# Additional parameters
if add_file is not None:
with open(add_file, "r", encoding="utf-8") as fp:
tmp = list(map(float, fp.readline().split()))
addtmp = list(map(float, fp.readline().split()))

ret.set_radial_distortion(np.array(tmp[:3]))
ret.set_decentering(np.array(tmp[3:5]))
ret.set_affine_distortion(np.array(tmp[5:]))
ret.set_radial_distortion(np.array(addtmp[:3]))
ret.set_decentering(np.array(addtmp[3:5]))
ret.set_affine_distortion(np.array(addtmp[5:]))

# except FileNotFoundError:
else:
Expand Down
2 changes: 1 addition & 1 deletion openptv_python/orientation.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def orient(
pix: List[Target],
flags: OrientPar,
sigmabeta: np.ndarray,
dm: float = 0.000001,
dm: float = 0.000001,
drad: float = 0.000001
) -> Optional[np.ndarray]:
"""Calculate orientation of the camera, updating its calibration.
Expand Down

0 comments on commit bfa5ff9

Please sign in to comment.