Skip to content

Instantly share code, notes, and snippets.

View Asadullah-Dal17's full-sized avatar
🌐
Searching for work

Asadullah Dal Asadullah-Dal17

🌐
Searching for work
View GitHub Profile
@Asadullah-Dal17
Asadullah-Dal17 / quickdemo.py
Created December 17, 2021 07:22 — forked from horverno/quickdemo.py
Aruco marker-based OpenCV distance measurement
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
@Asadullah-Dal17
Asadullah-Dal17 / rgb_to_hsv_np.py
Created October 22, 2021 12:01 — forked from PolarNick239/rgb_to_hsv_np.py
numpy RGB to HSV
#
# Copyright (c) 2016, Nikolay Polyarnyi
# All rights reserved.
#
import numpy as np
def rgb_to_hsv(rgb):
"""
@Asadullah-Dal17
Asadullah-Dal17 / utils.py
Last active August 14, 2022 09:47
This allow to draw text with color, blur background, it also have functionality to draw transparent shapes,
'''
Author: Asadullah Dal
Youtube Channel: https://www.youtube.com/c/aiphile
'''
import cv2 as cv
import numpy as np
@Asadullah-Dal17
Asadullah-Dal17 / mediapipe_landmarks_detection.py
Last active September 1, 2021 07:03
Mediapipe landmarks detection for each individual part, like an face-oval, eyes, lips, and Eyebrows
import cv2 as cv
import mediapipe as mp
import time
from numpy import greater
import utils
# variables
frame_counter =0
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)