PauloFN commited on
Commit
363029c
·
1 Parent(s): 786a522

sqlite error

Browse files
draft_computation/draft_computation_app/app.py CHANGED
@@ -55,13 +55,13 @@ def calculate_draft(pose_results, segment_data, original_image):
55
  square_size = utils.calc_sqr_size(constants.DEFAULT_SQUARE_SIZE_CM, twenty_cm_in_pixels)
56
  square_size *= 1.3
57
 
58
- half_size = int(square_size / 2)
59
 
60
  h, w, _ = image.shape
61
 
62
- x1 = int(x - half_size - (square_size * 0.3))
63
  y1 = int(y - half_size)
64
- x2 = int(x + half_size)
65
  y2 = int(y + half_size)
66
 
67
  if x1 < 0: x1 = 0
 
55
  square_size = utils.calc_sqr_size(constants.DEFAULT_SQUARE_SIZE_CM, twenty_cm_in_pixels)
56
  square_size *= 1.3
57
 
58
+ half_size = int(square_size/ 2)
59
 
60
  h, w, _ = image.shape
61
 
62
+ x1 = int(x - int(half_size*1.2))
63
  y1 = int(y - half_size)
64
+ x2 = int(x + int(half_size*1.2))
65
  y2 = int(y + half_size)
66
 
67
  if x1 < 0: x1 = 0