Since I can notice that object's color is different than the background, I found this guide helpful. The concept is the following: 1.apply RGB filters to your image, 2.grab contours using OpenCV, then 3.apply some handcraft conditions to them so as to fit your desired output, and finally 4.produce the box.
If all of your images share the same color patterns, this should work.. If not, it will prove noisy..
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.