xuebinqin / U-2-Net

The code for our newly accepted paper in Pattern Recognition 2020: "U^2-Net: Going Deeper with Nested U-Structure for Salient Object Detection."
Apache License 2.0
8.31k stars 1.43k forks source link

有什么办法只保留抠图部分尺寸,不需要原图尺寸大小,谢谢 #380

Open zhoujian1028 opened 3 months ago

locusbear commented 3 months ago

你用opencv对mask做边缘检测,得到最大外接矩形再裁剪呗