예제 #1
0
파일: subject.py 프로젝트: lacatus/TFM
    def paintrotbox(self, frame):

        # OpenCV 2.4.8
        box = cv2.cv.BoxPoints(self.rot_box)
        """
        # OpenCV 3.0.0
        box = cv2.boxPoints(self.rot_box)
        """
        box = np.int0(box)
        cv2.drawContours(frame, [box], 0, (0, 0, 255), 2)
예제 #2
0
파일: subject.py 프로젝트: konanrobot/TFM
    def paintrotbox(self, frame):

        # OpenCV 2.4.8
        box = cv2.cv.BoxPoints(self.rot_box)
        """
        # OpenCV 3.0.0
        box = cv2.boxPoints(self.rot_box)
        """
        box = np.int0(box)
        cv2.drawContours(frame, [box], 0, (0, 0, 255), 2)
예제 #3
0
파일: subject.py 프로젝트: misaelzapata/TFM
    def paintrotboxcolor(self, frame, color):

        box = cv2.cv.BoxPoints(self.rot_box)
        box = np.int0(box)

        if self.overlap and self.overcome:
            cv2.drawContours(frame, [box], 0, (255, 255, 255), 2)

        elif self.overlap:
            cv2.drawContours(frame, [box], 0, (0, 0, 0), 2)

        elif self.overcome:
            cv2.drawContours(frame, [box], 0, (255, 0, 255), 2)

        else:
            cv2.drawContours(frame, [box], 0, color, 2)
예제 #4
0
파일: subject.py 프로젝트: lacatus/TFM
    def paintrotboxcolor(self, frame, color):

        # OpenCV 2.4.8
        box = cv2.cv.BoxPoints(self.rot_box)
        """
        # OpenCV 3.0.0
        box = cv2.boxPoints(self.rot_box)
        """
        box = np.int0(box)

        if self.overlap and self.overcome:
            cv2.drawContours(frame, [box], 0, (255, 255, 255), 2)

        elif self.overlap:
            cv2.drawContours(frame, [box], 0, (0, 0, 0), 2)

        elif self.overcome:
            cv2.drawContours(frame, [box], 0, (255, 0, 255), 2)

        else:
            cv2.drawContours(frame, [box], 0, color, 2)
        self.paintellipse(frame)
예제 #5
0
파일: subject.py 프로젝트: konanrobot/TFM
    def paintrotboxcolor(self, frame, color):

        # OpenCV 2.4.8
        box = cv2.cv.BoxPoints(self.rot_box)
        """
        # OpenCV 3.0.0
        box = cv2.boxPoints(self.rot_box)
        """
        box = np.int0(box)

        if self.overlap and self.overcome:
            cv2.drawContours(frame, [box], 0, (255, 255, 255), 2)

        elif self.overlap:
            cv2.drawContours(frame, [box], 0, (0, 0, 0), 2)

        elif self.overcome:
            cv2.drawContours(frame, [box], 0, (255, 0, 255), 2)

        else:
            cv2.drawContours(frame, [box], 0, color, 2)
        self.paintellipse(frame)
예제 #6
0
파일: subject.py 프로젝트: misaelzapata/TFM
    def paintrotbox(self, frame):

        box = cv2.cv.BoxPoints(self.rot_box)
        box = np.int0(box)
        cv2.drawContours(frame, [box], 0, (0, 0, 255), 2)