Skip to content

Commit

Permalink
fixing #219
Browse files Browse the repository at this point in the history
  • Loading branch information
mkassner committed Oct 30, 2015
1 parent fcb0f5b commit 70ae734
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def get_count(self):
return self.count

def advance(self,_):
if self.count ==10:
if self.count == 10:
logger.info("Capture 10 calibration patterns.")
self.button.status_text = "%i to go" %(self.count)

Expand Down Expand Up @@ -178,6 +178,8 @@ def calculate(self):
camera_calibration = {'camera_matrix':camera_matrix,'dist_coefs':dist_coefs,'camera_name':self.g_pool.capture.name,'resolution':self.g_pool.capture.frame_size}
save_object(camera_calibration,os.path.join(self.g_pool.user_dir,"camera_calibration"))
logger.info("Calibration saved to user folder")
self.count = 10


def update(self,frame,events):
if self.collect_new:
Expand Down

0 comments on commit 70ae734

Please sign in to comment.