PauloFN commited on
Commit
786a522
·
1 Parent(s): 146f4af

sqlite error

Browse files
draft_computation/draft_computation_app/app.py CHANGED
@@ -53,13 +53,13 @@ def calculate_draft(pose_results, segment_data, original_image):
53
 
54
  twenty_cm_in_pixels = utils.calc_distance(mark_group[0], mark_group[1])
55
  square_size = utils.calc_sqr_size(constants.DEFAULT_SQUARE_SIZE_CM, twenty_cm_in_pixels)
56
- square_size *= 1.2
57
 
58
  half_size = int(square_size / 2)
59
 
60
  h, w, _ = image.shape
61
 
62
- x1 = int(x - half_size - (square_size * 0.2))
63
  y1 = int(y - half_size)
64
  x2 = int(x + half_size)
65
  y2 = int(y + half_size)
 
53
 
54
  twenty_cm_in_pixels = utils.calc_distance(mark_group[0], mark_group[1])
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)
draft_computation/draft_computation_app/constants.py CHANGED
@@ -1,4 +1,4 @@
1
  CONF_THRESHOLD = 0.25
2
- DEFAULT_SQUARE_SIZE_CM = 17
3
  CROP_OUTPUT_FOLDER = "output"
4
  SAVE_CROPPED_IMAGE = False
 
1
  CONF_THRESHOLD = 0.25
2
+ DEFAULT_SQUARE_SIZE_CM = 20
3
  CROP_OUTPUT_FOLDER = "output"
4
  SAVE_CROPPED_IMAGE = False