๐
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from picamera.array import PiRGBArray | |
from picamera import PiCamera | |
import time | |
import sys | |
import numpy as np | |
sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages') | |
import cv2 | |
import cv2.aruco as aruco | |
import numpy as np | |
import rectangleArea as ra |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright (c) 2016, Nikolay Polyarnyi | |
# All rights reserved. | |
# | |
import numpy as np | |
def rgb_to_hsv(rgb): | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Author: Asadullah Dal | |
Youtube Channel: https://www.youtube.com/c/aiphile | |
''' | |
import cv2 as cv | |
import numpy as np |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 as cv | |
import mediapipe as mp | |
import time | |
from numpy import greater | |
import utils | |
# variables | |
frame_counter =0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
# variables | |
# distance from camera to object(face) measured | |
Known_distance = 30 #centimeter | |
# width of face in the real world or Object Plane | |
Known_width =14.3 | |
# Colors | |
GREEN = (0,255,0) | |
RED = (0,0,255) | |
WHITE = (255,255,255) |