approxPolyDP(): Approximates a polygonal curve(s) with the specified precision.
Python: cv2.approxPolyDP(curve, epsilon, closed[, approxCurve]) → approxCurve¶
Parameters:
1. curve –
Input vector of a 2D point stored in:
std::vector or Mat (C++ interface)
Nx2 numpy array (Pytho
#encoding:utf-8
class people :
name = ''
age = 0
weight = 0
def __init__(self,n,a,w,g):
self.name = n
self.age = a
self.weight =w
self.grade = g
def speak(self):
print('%s 说:我 %d 岁'%(self.name,self.age))
p = people('a