# FaceDatabse-Identifier
A simple python package to identify the user on bases of there face and store there features in database
## Prerequisite :
* Must have GCC for dlib to work
## Sample Code :
```py
from facetranscript import CaptureFaceInDataBase
if __name__=="__main__":
face = CaptureFaceInDataBase()
# Capture photo from front camera for user -> 'TestUser'
face.take_photo(username="TestUser")
# Fetch all stored users and there images in database
face_list = face.get_all_users()
# face_list is list [a,b,c...] where a,b,c.. are list of users with there images(Bytes)
print(face_list)
# To terminate all connections (camera/database)
face.close_all_connections()
```
### Delete user from database :
- To delete a single user
```py
from facetranscript import CaptureFaceInDataBase
face = CaptureFaceInDataBase()
# delete_user_data returns bool value if it is True user is deleted
is_user_deleted = face.delete_user_data("TestUser")
```
- To drop the complete table
```py
from facetranscript import CaptureFaceInDataBase
face = CaptureFaceInDataBase()
# is_table_dropped returns bool value if it is True table is deleted
is_table_dropped = face.drop_table()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/CrimsonDevil333333/FaceTranscript",
"name": "facetranscript",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "facetranscript",
"author": "Satyaa Goyal",
"author_email": "satya.goyal333333@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ee/e8/50725a41ecb21f5bc6ecfeb6bb6655654195049b63ef5a0336f0685ea80a/facetranscript-0.0.3.1.tar.gz",
"platform": null,
"description": "# FaceDatabse-Identifier\r\nA simple python package to identify the user on bases of there face and store there features in database\r\n\r\n## Prerequisite :\r\n* Must have GCC for dlib to work\r\n## Sample Code : \r\n```py\r\nfrom facetranscript import CaptureFaceInDataBase\r\n\r\nif __name__==\"__main__\":\r\n face = CaptureFaceInDataBase()\r\n # Capture photo from front camera for user -> 'TestUser'\r\n face.take_photo(username=\"TestUser\")\r\n # Fetch all stored users and there images in database \r\n face_list = face.get_all_users()\r\n # face_list is list [a,b,c...] where a,b,c.. are list of users with there images(Bytes)\r\n print(face_list)\r\n # To terminate all connections (camera/database)\r\n face.close_all_connections()\r\n```\r\n\r\n### Delete user from database :\r\n- To delete a single user\r\n```py\r\nfrom facetranscript import CaptureFaceInDataBase\r\nface = CaptureFaceInDataBase()\r\n# delete_user_data returns bool value if it is True user is deleted\r\nis_user_deleted = face.delete_user_data(\"TestUser\")\r\n```\r\n- To drop the complete table\r\n```py\r\nfrom facetranscript import CaptureFaceInDataBase\r\nface = CaptureFaceInDataBase()\r\n# is_table_dropped returns bool value if it is True table is deleted\r\nis_table_dropped = face.drop_table()\r\n```\r\n",
"bugtrack_url": null,
"license": "",
"summary": "To Capture user face and store it in database",
"version": "0.0.3.1",
"split_keywords": [
"facetranscript"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "eee850725a41ecb21f5bc6ecfeb6bb6655654195049b63ef5a0336f0685ea80a",
"md5": "c744288b42ba8f20a1a37269bcf3432a",
"sha256": "c13cf5c9fb8568b824cafe7917d7890fc6f0b770a0ded9c33c6eb94b8a2d04d4"
},
"downloads": -1,
"filename": "facetranscript-0.0.3.1.tar.gz",
"has_sig": false,
"md5_digest": "c744288b42ba8f20a1a37269bcf3432a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5538,
"upload_time": "2023-03-26T13:56:08",
"upload_time_iso_8601": "2023-03-26T13:56:08.327539Z",
"url": "https://files.pythonhosted.org/packages/ee/e8/50725a41ecb21f5bc6ecfeb6bb6655654195049b63ef5a0336f0685ea80a/facetranscript-0.0.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-26 13:56:08",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "CrimsonDevil333333",
"github_project": "FaceTranscript",
"lcname": "facetranscript"
}