更新除穿孔算法,解决真实600dpi除穿孔失败的问题
This commit is contained in:
parent
7f4bb50a57
commit
a423b0c8ba
|
@ -212,7 +212,7 @@ void CImageApplyOutHole::apply(std::vector<cv::Mat>& mats, bool isTwoSide)
|
|||
for (size_t i = 0; i < hole_contours.size(); i++)
|
||||
{
|
||||
std::vector<std::vector<cv::Point>> contourss_temp;
|
||||
dilateContour(hole_contours[i], 5);
|
||||
dilateContour(hole_contours[i], m_borderSize / 4);
|
||||
contourss_temp.push_back(hole_contours[i]);
|
||||
cv::Mat front_temp = mats[0](roi_front);
|
||||
hg::fillPolys(front_temp, contourss_temp, color);
|
||||
|
|
|
@ -27,7 +27,8 @@
|
|||
* 2022/11/17 v1.9.2 修复寻找孔洞轮廓BUG。
|
||||
* 2023/05/16 v1.9.3 修复提取纸张最大轮廓的逻辑BUG。
|
||||
* 2023/11/18 v1.10 替换形态学膨胀孔洞轮廓,改为特征矩阵膨胀轮廓说
|
||||
* 版本号:v1.10
|
||||
* 2023/11/28 v1.10.1 形态学kSize根据borderSize调整
|
||||
* 版本号:v1.10.1
|
||||
|
||||
* ====================================================
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue