Skip to content

Instantly share code, notes, and snippets.

Avatar

Tejas Tank tejastank

View GitHub Profile
View gist:89a0e0bc55a0fcacd6bc446df3d6d4cc
import requests
import json
URL_BASE = 'https://rest.developer.yodlee.com/services/srest/restserver/v1.0'
# assumes you've signed up for dev access, and already done the one-time linking of bank accounts
# to user accounts via the Yodlee website
# cobrand login
payload = { 'cobrandLogin': 'sbCob<account>', 'cobrandPassword': '<something>' }
View face detection system example.md

Before you start

Make sure you have python, OpenFace and dlib installed. You can either install them manually or use a preconfigured docker image that has everying already installed:

docker pull bamos/openface
docker run -p 9000:9000 -p 8000:8000 -t -i bamos/openface /bin/bash
cd /root/openface
@tejastank
tejastank / door-bell-face-recognition.py
Created Apr 5, 2021
Nvidia Jetson Nano face recognition system. snippetbucket.com project 2021 Build ERP with AI
View door-bell-face-recognition.py
#snippetbucket technologies, INDIA.
import face_recognition
import cv2
from datetime import datetime, timedelta
import numpy as np
import platform
import pickle
View Distance.py
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)
View azure_load.py
import os
from os import listdir
from os.path import isfile, join
import asyncio
from azure.storage.blob import BlobServiceClient
from azure.storage.blob.aio import BlobClient
from azure.storage.blob.aio import ContainerClient
from datetime import datetime, timedelta
@tejastank
tejastank / ccn_chop_chop.py
Created Mar 31, 2021 — forked from bigsnarfdude/ccn_chop_chop.py
crop faces from pictures face_recognition lib and PIL
View ccn_chop_chop.py
import os
import numpy as np
import cv2
import mrcnn.config
import mrcnn.utils
from mrcnn.model import MaskRCNN
from pathlib import Path
# Configuration that will be used by the Mask-RCNN library
@tejastank
tejastank / distFace.py
Created Mar 31, 2021 — forked from bbartling/distFace.py
Distance to face calculation Windows10 web cam. OpenCv 3.4 Python 3.6
View distFace.py
import numpy as np
import imutils
import cv2
from imutils.video import VideoStream
from imutils.video import FPS
import time
def distance_to_camera(knownWidth, focalLength, perWidth):
View video_facial_landmarks.py
# USAGE
# wget https://github.com/AKSHAYUBHAT/TensorFace/raw/master/openface/models/dlib/shape_predictor_68_face_landmarks.dat
# python3 video_facial_landmarks.py
# import the necessary packages
from socket import *
from imutils.video import VideoStream
from imutils import face_utils
from scipy import signal
import datetime
@tejastank
tejastank / facerecognition.py
Created Mar 31, 2021 — forked from progerjkd/facerecognition.py
A simple face recognition system using opencv2 and dlib to perform face encodings, and calculate Euclidean distances from a database of previously encoded faces.
View facerecognition.py
import face_recognition
import cv2
import numpy as np
import glob
import os
import logging
import pickle
# adapted from the Deep Learning: Face Recognition course from LinkedIn Learning
@tejastank
tejastank / main-webcam.py
Created Mar 31, 2021 — forked from JvGinkel/main-webcam.py
face recognotion python script
View main-webcam.py
# brew install cmake
# python3 -m venv face-recognition
# source face-recognition/bin/activate
# pip install dlib
# pip install face_recognition
# pip install opencv-python
import face_recognition
import cv2
import numpy as np