def __init__(self): Localisation.__init__(self) self.epsilon = 500000 self.centreCamera = 800 self.angleCamera = 22.5 self.xIndex = 0 self.yIndex = 1
def __init__(self): Localisation.__init__(self) self.minimumPerimetreRobot = 300 self.maximumPerimetreRobot = 750 self.nbreCote = 4 self.basSV_Mauve = 90 self.basSV_Orange = 130 self.hauteurTable = 180 self.hauteurRobot = 35 self.centreCameraX = 800 self.centreCameraY = 600 self.angleDemiCamera = 22.5 self.mauve = np.uint8([[[255,0,165]]]) self.orange = np.uint8([[[40,127,252]]]) self.hsv_mauve = cv2.cvtColor(self.mauve,cv2.COLOR_BGR2HSV) self.hsv_orange = cv2.cvtColor(self.orange,cv2.COLOR_BGR2HSV) self.bas_mauve = np.array([self.hsv_mauve.item(0) - self.deltaHue, self.basSV_Mauve, self.basSV_Mauve]) self.bas_orange = np.array([self.hsv_orange.item(0) - self.deltaHue, self.basSV_iles, self.basSV_Orange]) self.haut_mauve = np.array([self.hsv_mauve.item(0) + self.deltaHue, self.hautSV_iles, self.hautSV_iles]) self.haut_orange = np.array([self.hsv_orange.item(0) + self.deltaHue, self.hautSV_iles, self.hautSV_iles])
def __init__(self): Localisation.__init__(self) self.hsv_rougeMinimum = 150 self.hsv_rougeMaximum = 179 self.basSVRouge = 100 self.bleu = np.uint8([[[255,255,0]]]) self.hsv_bleu = cv2.cvtColor(self.bleu,cv2.COLOR_BGR2HSV) self.nombreCoteTriangle = 3 self.nombreCoteCarre = 4 self.nombreCotePentagone = 5 self.bas_bleu = np.array([self.hsv_bleu.item(0) - self.deltaHue, self.basSV_iles, self.basSV_iles]) self.bas_rouge = np.array([self.hsv_rougeMinimum, int(self.basSVRouge * 1.5), self.basSVRouge]) self.haut_bleu = np.array([self.hsv_bleu.item(0) + self.deltaHue, self.hautSV_iles, self.hautSV_iles]) self.haut_rouge = np.array([self.hsv_rougeMaximum, self.hautSV_iles, self.hautSV_iles])
def __init__(self): Localisation.__init__(self) self.minimumPerimetreRepere = 1000 self.maximumPerimetreRepere = 4000 self.coteEnCM = 66