Skip to content

Instantly share code, notes, and snippets.

View punsisi2018861's full-sized avatar

Punsisi Kaludewa punsisi2018861

  • @lolctechnologies
View GitHub Profile
from flask import Flask, request, jsonify
import os
import cv2
import numpy as np
import pytesseract
import csv
import re
import io
import os
import cv2
import numpy as np
import pytesseract
import os
import csv
import re
per = 25
pixelThreshold = 500
######### Region Selector ###############################
"""
This script allows to collect raw points from an image.
The inputs are two mouse clicks one in the x,y position and
the second in w,h of a rectangle.
Once a rectangle is selected the user is asked to enter the type
and the Name:
Type can be 'Text' or 'CheckBox'
Name can be anything
"""
@punsisi2018861
punsisi2018861 / deepfaceExample.py
Last active June 7, 2021 06:14
Deepface Example
from flask import Flask, request, jsonify
from deepface import DeepFace
import matplotlib.pyplot as plt
import os
from minio import Minio
app = Flask(__name__)
# allow POST requests
!git clone https://github.com/tensorflow/models.git
%cd /content/models/research/
!protoc object_detection/protos/*.proto --python_out=.
# Install TensorFlow Object Detection API for TF1.
!cp object_detection/packages/tf1/setup.py .
!python -m pip install .
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.