cv2.approxpolydp()函数的源码
时间: 2024-02-21 22:59:05 浏览: 83
OpenCV-Python图像的加法运算cv2.add函数详解.rar
char num2[MAX_LEN];
char res[MAX_LEN*2];
printf("Enter the first number: ");
scanf("%s",num以下是cv2.approxPolyDP()函数的源码:
```python
def approxPolyDP(curve, epsilon, closed):
1);
printf("Enter the second number: ");
scanf("%s",num2);
multiply(num1,num2,res);
printf """Approximates a polygonal curve(s) with the specified precision.
The function cv::approxPolyDP approximates a curve or a polygon("Product: %s\n",res);
return 0;
}
```
注意:此代码仅供参考,不保证 with another curve/polygon with less vertices so that the distance between them is less or equal to the specified precision. It uses the Douglas-Pe完全正确,仍需进行测试和优化。
阅读全文