Skip to content

Instantly share code, notes, and snippets.

View RoshanTanisha's full-sized avatar

Tanisha Bhayani RoshanTanisha

View GitHub Profile
@RoshanTanisha
RoshanTanisha / face_detection_using_opencv.py
Last active October 3, 2020 14:56
Simple script to detect face from camera using OpenCV
import numpy as np
import os, sys, math
import matplotlib.pyplot as plt
import cv2
import copy
def convert_image_to_BW(image):
bw_img = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
return cv2.cvtColor(bw_img, cv2.COLOR_GRAY2BGR)