Coder Social home page Coder Social logo

face-recognition's Introduction

face-recognition

Endpoints

Students

  1. GET /students get all students
{
	"students": [
		{
			"contact": "1234567890",
			"course": "B.Tech",
			"date_created": "Sun, 19 Feb 2023 08:40:47 GMT",
			"email": "[email protected]",
			"id": 1,
			"image": null,
			"name": "John Doe",
			"section": "A"
		}
	]
}
  1. POST /students add a new student to the list

input

    {
        "name": "John Doe",
        "email":"[email protected]",
        "contact":"1234567890",
        "course":"B.Tech",
        "section":"A"
    }

result

{
	"success": "Student added successfully!"
}
  1. PUT /students/ Update the student details

input

    {
        "name": "Elon Musk",
        "email":"[email protected]",
        "contact":"1234567890",
        "course":"B.Tech",
        "section":"A"
    }

output

{
    {
	"contact": "1234567890",
	"course": "B.Tech",
	"date_created": "2023-02-19T08:40:47.299280",
	"email": "[email protected]",
	"id": 1,
	"name": "Elon Musk",
	"registry": null,
	"section": "A",
	"to_dict": null
    }
}
  1. DELETE /students/

output

{
	"studentID": 2,
	"success": "Student deleted successfully!"
}

Training Images

  1. GET /training_images Get all the images uploaded output
[
	{
		"date_created": "2023-02-19T08:49:04.461436",
		"filename": "91661elon5.jpg",
		"id": 1,
		"registry": null,
		"studentID": 1
	},
	{
		"date_created": "2023-02-19T08:49:11.037260",
		"filename": "37522elon7.jpg",
		"id": 2,
		"registry": null,
		"studentID": 1
	}
]

  1. GET student/training_images/ Get the image id

output

[
	{
		"id": 1,
		"name": "91661elon5.jpg",
		"filename": "91661elon5.jpg",
		"date_created": "2023-02-19 08:49:04.461436",
		"studentID": 1,
		"url": "http://localhost:5000//static/training_images/1/91661elon5.jpg"
	}
]
  1. GET students//images Get all the images under the student id

output

[
	{
		"filename": "91661elon5.jpg",
		"data": "http://localhost:5000//static/training_images/1/91661elon5.jpg"
	},
	{
		"filename": "37522elon7.jpg",
		"data": "http://localhost:5000//static/training_images/1/37522elon7.jpg"
	}
]

  1. POST /upload/ Send images and upload it under the student ID, use file transfer and name it as images
{
	"studentID": 1,
	"success": "Images uploaded successfully!"
}

Recognize

  1. POST /recognize Send image and apply face recognition, use name image
{
	"output": {
		"label": 1,
		"url": "http://localhost:5000/static/get_output/55880.jpg"
	},
	"student": {
		"contact": "1234567890",
		"course": "B.Tech",
		"date_created": "Sun, 19 Feb 2023 08:40:47 GMT",
		"email": "[email protected]",
		"id": 1,
		"name": "Elon Musk",
		"section": "A"
	},
	"success": "Image recognized successfully!"
}

face-recognition's People

Contributors

paulian829 avatar

Watchers

 avatar

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.