Code Monkey home page Code Monkey logo

opencv-facial-recognition's People

Contributors

isaric avatar

Watchers

 avatar  avatar

opencv-facial-recognition's Issues

Add an sqlite database to record the first face embedding

Instead of saving the face embedding to an in-memory list as we are currently doing (em_list, line 36) ,
save it to an sqlite database.
Create a seperate package (folder) within the project to house the repository functions and table definition.
What kind of table do we need?
The face embedding should be saved as a JSON in the text column.

What other columns do we want?

We want to be able to name the embedding (or the person it represents).
We want an internally generated id.
We want a timestamp.

if len(rectangles) > 0:
boxes = [(y, x + w, y + h, x) for (x, y, w, h) in rectangles]
encodings = face_recognition.face_encodings(frame, boxes)
if len(em_list) == 0:
em_list.append(encodings[0])
if len(em_list) > 0:
match = face_recognition.compare_faces(em_list, encodings[0])
if True in match:
count += 1
for (top, right, bottom, left) in boxes:
cv2.rectangle(frame, (left, top), (right, bottom), (0, 255, 255), 2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.