Skip to content

Commit

Permalink
Fix: 변경 마킹인식 범위 조절 강하게
Browse files Browse the repository at this point in the history
  • Loading branch information
semnisem committed Nov 20, 2024
1 parent 91d37ce commit 722301f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/AIProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def segment_from_boxes(self, image, bbox, save_path=None):
mask_np = mask_np.squeeze()
if i in self.indices:
# kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (13, 13)) # Adjust size as needed
kernel = np.ones((11, 11), np.uint8)
kernel = np.ones((25, 25), np.uint8)
mask_np = cv2.morphologyEx(mask_np, cv2.MORPH_GRADIENT, kernel)
masks_np = cv2.bitwise_or(masks_np, mask_np)
# cv2.imwrite(f'mask_box{i}.jpg', masks_np)
Expand Down

0 comments on commit 722301f

Please sign in to comment.