Replies: 1 comment 2 replies
-
@hsnawn hello, Thank you for sharing your detailed workflow and the challenges you're encountering. It's great to see your dedication to achieving high precision in your project. Here are a few suggestions that might help improve your results:
Here’s a small code snippet to illustrate how you might apply morphological operations using OpenCV in Python: import cv2
import numpy as np
# Load your mask image
mask = cv2.imread('mask.png', 0)
# Apply dilation and erosion
kernel = np.ones((5, 5), np.uint8)
dilated_mask = cv2.dilate(mask, kernel, iterations=1)
eroded_mask = cv2.erode(dilated_mask, kernel, iterations=1)
# Save or display the refined mask
cv2.imwrite('refined_mask.png', eroded_mask) Lastly, ensure that you are using the latest versions of the Ultralytics packages to benefit from the latest improvements and bug fixes. I hope these suggestions help you achieve the high precision you’re aiming for. If you have any further questions or need more assistance, feel free to ask! |
Beta Was this translation helpful? Give feedback.
-
I’m currently working on a project where I need to extract individual images from scanned album pages with extreme precision. Each scan is at a resolution of 5792x5792.
Here’s my current workflow:
While the results are decent, I am aiming for highly accurate masks and facing some issues:
I have also tried using Mask RCNN, but the results were slightly worse compared to YOLOv8 and YOLOv9 Segmentation. Additionally, I attempted mask refinement techniques, but they ended up degrading the mask quality.
I’m looking for suggestions on any preprocessing, post-processing, or potentially a different approach that could help me achieve my goal with very high precision.
Any advice or recommendations would be greatly appreciated!
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions