View Code? Open in Web Editor
NEW
Object detection by opencv based on the same image background
License: GNU General Public License v2.0
object-detection-by-opencv's Introduction
Object detection by Opencv
- Using HSV inrange to filter background out;
- Find contours and min rectangel box of the contour(Example case biggest one);
- Then put all pixel in the contour into black image. So we get mask image;
- Rotate and crop to be final image;
- Setting HSV lower bound and Upper bound in (HSV_inrange.py)
- Replace those value in function img_process
- set input path in function main
object-detection-by-opencv's People
Contributors
Watchers