Skip to content

Commit

Permalink
SW-195 Fix broken undistortion (#7)
Browse files Browse the repository at this point in the history
* Fix necessary imports.
  • Loading branch information
amrsoll authored Jul 19, 2021
1 parent 4bdf1b0 commit f31e81a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions octoprint_camera/lens.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
import octoprint_mrbeam
from octoprint_mrbeam.camera import lens
from octoprint_mrbeam.camera.definitions import STATE_PENDING_CAMERA
# Plese keep these imports
# They provide this module with the relevant lens distortion functions.
# When the code itself is migrated into this module, then we only need
# to remove this import - and all the other modules in OctoPrint-Camera
# are already pointing to octoprint_camera.lens.undistort/undistort_dict.
from octoprint_mrbeam.camera.lens import undistort, undist_dict

from .util.flask import file_to_b64

Expand Down

0 comments on commit f31e81a

Please sign in to comment.