Commit
·
ac598ad
1
Parent(s):
753dc7e
build structure
Browse files- HDML-FaceDetection.log +1 -0
- README.MD +5 -0
- data/teamData.py +289 -0
- face_api.py +88 -0
- face_main.py +70 -0
- model/faceModel.pt +3 -0
- model/model.py +6 -0
- test.ipynb +476 -0
HDML-FaceDetection.log
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Time:05:29:53 PM, Execution Done and Total Successfull Execution : 1, Payload:url='https://bl-bucket.sgp1.digitaloceanspaces.com/pulse/faceDetection/lvglbz46yd9et1qknf/faceDetection-original', Result:{}
|
README.MD
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### Himel_Face_Detection
|
| 2 |
+
|
| 3 |
+
# Himel app
|
| 4 |
+
------------
|
| 5 |
+
ngrok config add-authtoken 2Qm8hS1zPhVXiLjEdlI4738tLzF_2QJwGJMK5oTbQD33QSVXS && sudo apt update && sudo apt upgrade && ngrok http --domain=hawkeyes.ngrok.app 8000
|
data/teamData.py
ADDED
|
@@ -0,0 +1,289 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
member_details = {
|
| 3 |
+
"munna": {
|
| 4 |
+
"Name": "Arifur Rahman Munna",
|
| 5 |
+
"Designation": "Technology Manager",
|
| 6 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 7 |
+
"E-mail": "arif@hedigital.tech",
|
| 8 |
+
"Concact Number": "+8801571322757",
|
| 9 |
+
"Joining Date": "Aug-21",
|
| 10 |
+
"Date of Birth": "25-Dec",
|
| 11 |
+
"Blood Group": "O+",
|
| 12 |
+
"Linkedin": "https://www.linkedin.com/in/munnasorder/"
|
| 13 |
+
},
|
| 14 |
+
"rakib": {
|
| 15 |
+
"Name": "Md.Rakibul Hasan Naym",
|
| 16 |
+
"Designation": "Junior AI Engineer",
|
| 17 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 18 |
+
"E-mail": "naym.mj@gmail.com",
|
| 19 |
+
"Concact Number": "+8801638830165",
|
| 20 |
+
"Joining Date": "Mar-23",
|
| 21 |
+
"Date of Birth": "5-Jun",
|
| 22 |
+
"Blood Group": "A+",
|
| 23 |
+
"Linkedin": "https://www.linkedin.com/in/md-rakibul-hasan-naym-625263229/"
|
| 24 |
+
},
|
| 25 |
+
"sakib": {
|
| 26 |
+
"Name": "Mahbubul Hasan Sakib",
|
| 27 |
+
"Designation": "Jr. Software Engineer(Node js)",
|
| 28 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 29 |
+
"E-mail": "mahbubulhasan179@gmail.com",
|
| 30 |
+
"Concact Number": "+8801812346095",
|
| 31 |
+
"Joining Date": "May-23",
|
| 32 |
+
"Date of Birth": "4-Aug",
|
| 33 |
+
"Blood Group": "O+",
|
| 34 |
+
"Linkedin": "https://www.linkedin.com/in/mhsakib29/"
|
| 35 |
+
},
|
| 36 |
+
"shahadat": {
|
| 37 |
+
"Name": "Md. Shahadot Hossain",
|
| 38 |
+
"Designation": "Jr. React Native Developer",
|
| 39 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 40 |
+
"E-mail": "shahadotrahat786@gmail.com",
|
| 41 |
+
"Concact Number": "+8801775020582",
|
| 42 |
+
"Joining Date": "Jun-23",
|
| 43 |
+
"Date of Birth": "6-Feb",
|
| 44 |
+
"Blood Group": "B+",
|
| 45 |
+
"Linkedin": "https://www.linkedin.com/in/shahadot786/"
|
| 46 |
+
},
|
| 47 |
+
"minhaz": {
|
| 48 |
+
"Name": "S.M. Minhazul Abedin Shouhug",
|
| 49 |
+
"Designation": "Jr. React Native Developer",
|
| 50 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 51 |
+
"E-mail": "minhazulabedin44@gmail.com",
|
| 52 |
+
"Concact Number": "+880182411744",
|
| 53 |
+
"Joining Date": "Jun-23",
|
| 54 |
+
"Date of Birth": "1-Jan",
|
| 55 |
+
"Blood Group": "B+",
|
| 56 |
+
"Linkedin": "https://www.linkedin.com/in/minhaz19/"
|
| 57 |
+
},
|
| 58 |
+
"himel": {
|
| 59 |
+
"Name": "Mehedi Mohammad Himel",
|
| 60 |
+
"Designation": "Junior AI Engineer",
|
| 61 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 62 |
+
"E-mail": "himel@hedigital.tech",
|
| 63 |
+
"Concact Number": "+8801841021211",
|
| 64 |
+
"Joining Date": "Jun-23",
|
| 65 |
+
"Date of Birth": "20-Mar",
|
| 66 |
+
"Blood Group": "B+",
|
| 67 |
+
"Linkedin": "https://www.linkedin.com/in/mm-himel/"
|
| 68 |
+
},
|
| 69 |
+
"ferdous": {
|
| 70 |
+
"Name": "Mirza Ferdous Ohid",
|
| 71 |
+
"Designation": "Managing Director & CEO",
|
| 72 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 73 |
+
"E-mail": "ferdous@hedigital.tech",
|
| 74 |
+
"Concact Number": "+8801711081888",
|
| 75 |
+
"Joining Date": "****",
|
| 76 |
+
"Date of Birth": "21-July",
|
| 77 |
+
"Blood Group": "O+",
|
| 78 |
+
"Linkedin": "https://www.linkedin.com/in/mirza-ferdous-ohid-70b16236/"
|
| 79 |
+
},
|
| 80 |
+
"aiyub": {
|
| 81 |
+
"Name": "Md. Aiyubali",
|
| 82 |
+
"Designation": "Jr. AI Engineer",
|
| 83 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 84 |
+
"E-mail": "aiyub@hedigital.tech",
|
| 85 |
+
"Concact Number": "01650027810",
|
| 86 |
+
"Joining Date": "2-Dec-23",
|
| 87 |
+
"Date of Birth": "4-Jan-1999",
|
| 88 |
+
"Blood Group": "O+",
|
| 89 |
+
"Linkedin": ""
|
| 90 |
+
},
|
| 91 |
+
"shanin": {
|
| 92 |
+
"Name": "Md Shakhawat Hossain",
|
| 93 |
+
"Designation": "Jr. AI Engineer",
|
| 94 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 95 |
+
"E-mail": "shanin@hedigital.tech",
|
| 96 |
+
"Concact Number": "01778198423",
|
| 97 |
+
"Joining Date": "15-Jan-2023",
|
| 98 |
+
"Date of Birth": "15-Jun-2001",
|
| 99 |
+
"Blood Group": "AB+",
|
| 100 |
+
"Linkedin": ""
|
| 101 |
+
},
|
| 102 |
+
"walid": {
|
| 103 |
+
"Name": "Walid Al Hasan",
|
| 104 |
+
"Designation": "Intern",
|
| 105 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 106 |
+
"E-mail": "walid@hedigital.tech",
|
| 107 |
+
"Concact Number": "01792103884",
|
| 108 |
+
"Joining Date": "3-Feb-2024",
|
| 109 |
+
"Date of Birth": "25-May-2000",
|
| 110 |
+
"Blood Group": "A+",
|
| 111 |
+
"Linkedin": ""
|
| 112 |
+
},
|
| 113 |
+
"jony": {
|
| 114 |
+
"Name": "Md Razikul Islam Jony",
|
| 115 |
+
"Designation": "Jr. Frontend Developer",
|
| 116 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 117 |
+
"E-mail": "razikuljoni@gmail.com",
|
| 118 |
+
"Concact Number": "01623208660",
|
| 119 |
+
"Joining Date": "11-Feb-2024",
|
| 120 |
+
"Date of Birth": "24-Oct-2001",
|
| 121 |
+
"Blood Group": "B+",
|
| 122 |
+
"Linkedin": ""
|
| 123 |
+
},
|
| 124 |
+
"waliullah": {
|
| 125 |
+
"Name": "Md Ollullah Sardar",
|
| 126 |
+
"Designation": "Jr. Backend Developer",
|
| 127 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 128 |
+
"E-mail": "oliullah@hedigital.tech",
|
| 129 |
+
"Concact Number": "01643616707",
|
| 130 |
+
"Joining Date": "2-Mar-2024",
|
| 131 |
+
"Date of Birth": "20-Jun-1998",
|
| 132 |
+
"Blood Group": "O+",
|
| 133 |
+
"Linkedin": ""
|
| 134 |
+
},
|
| 135 |
+
"sajal": {
|
| 136 |
+
"Name": "Mohammad Assaduzzaman",
|
| 137 |
+
"Designation": "Asst. Manager",
|
| 138 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 139 |
+
"E-mail": "sajal@hedigital.tech",
|
| 140 |
+
"Concact Number": "01321119233",
|
| 141 |
+
"Joining Date": "17-Jan-2020",
|
| 142 |
+
"Date of Birth": "24-Feb-1993",
|
| 143 |
+
"Blood Group": "O+",
|
| 144 |
+
"Linkedin": ""
|
| 145 |
+
},
|
| 146 |
+
"deba": {
|
| 147 |
+
"Name": "Deba Prasad Mistry",
|
| 148 |
+
"Designation": "",
|
| 149 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 150 |
+
"E-mail": "deba.hedigital@gmail.com",
|
| 151 |
+
"Concact Number": "01795807053",
|
| 152 |
+
"Joining Date": "10-Jan-2020",
|
| 153 |
+
"Date of Birth": "29-Dec-1995",
|
| 154 |
+
"Blood Group": "B+",
|
| 155 |
+
"Linkedin": ""
|
| 156 |
+
},
|
| 157 |
+
"nayem": {
|
| 158 |
+
"Name": "Saidul Alam Nayem",
|
| 159 |
+
"Designation": "Asst. Manager",
|
| 160 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 161 |
+
"E-mail": "nayem@hedigital.tech",
|
| 162 |
+
"Concact Number": "01321119224",
|
| 163 |
+
"Joining Date": "8-Jul-2020",
|
| 164 |
+
"Date of Birth": "29-Jan-1995",
|
| 165 |
+
"Blood Group": "AB+",
|
| 166 |
+
"Linkedin": ""
|
| 167 |
+
},
|
| 168 |
+
"rasel": {
|
| 169 |
+
"Name": "Rasedul Islam Rasel",
|
| 170 |
+
"Designation": "Senior Executive",
|
| 171 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 172 |
+
"E-mail": "rasel@hedigital.tech",
|
| 173 |
+
"Concact Number": "rasel@hedigital.tech",
|
| 174 |
+
"Joining Date": "10-Jan-2021",
|
| 175 |
+
"Date of Birth": "9-Jan-1994",
|
| 176 |
+
"Blood Group": "B+",
|
| 177 |
+
"Linkedin": ""
|
| 178 |
+
},
|
| 179 |
+
"sagor": {
|
| 180 |
+
"Name": "Md Mizanur Rahman Sagor",
|
| 181 |
+
"Designation": "Executive",
|
| 182 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 183 |
+
"E-mail": "Sagor@hedigital.tech",
|
| 184 |
+
"Concact Number": "01892479942",
|
| 185 |
+
"Joining Date": "2-Dec-2023",
|
| 186 |
+
"Date of Birth": "24-Apr-1997",
|
| 187 |
+
"Blood Group": "O+",
|
| 188 |
+
"Linkedin": ""
|
| 189 |
+
},
|
| 190 |
+
"tapan": {
|
| 191 |
+
"Name": "Tapan Sutradhar",
|
| 192 |
+
"Designation": "",
|
| 193 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 194 |
+
"E-mail": "tapan@hedigital.tech",
|
| 195 |
+
"Concact Number": "01721 294453",
|
| 196 |
+
"Joining Date": "23-Jul-2020",
|
| 197 |
+
"Date of Birth": "22-Dec-1996",
|
| 198 |
+
"Blood Group": "B+",
|
| 199 |
+
"Linkedin": ""
|
| 200 |
+
},
|
| 201 |
+
"imran": {
|
| 202 |
+
"Name": "Md Imran Hossain",
|
| 203 |
+
"Designation": "Junior Executive",
|
| 204 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 205 |
+
"E-mail": "Imran@hedigital.tech",
|
| 206 |
+
"Concact Number": "01329709023",
|
| 207 |
+
"Joining Date": "2-Mar-2024",
|
| 208 |
+
"Date of Birth": "29-Jul-1997",
|
| 209 |
+
"Blood Group": "B+",
|
| 210 |
+
"Linkedin": ""
|
| 211 |
+
},
|
| 212 |
+
"sabuj": {
|
| 213 |
+
"Name": "Fakir Rabiul Islam",
|
| 214 |
+
"Designation": "Executive ",
|
| 215 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 216 |
+
"E-mail": "rabuil.bght@gmail.com",
|
| 217 |
+
"Concact Number": "01722555199",
|
| 218 |
+
"Joining Date": "16-Nov-2023",
|
| 219 |
+
"Date of Birth": "6-Jun-1989",
|
| 220 |
+
"Blood Group": "A+",
|
| 221 |
+
"Linkedin": ""
|
| 222 |
+
},
|
| 223 |
+
"rahmat": {
|
| 224 |
+
"Name": "Md. Rahmat Ali",
|
| 225 |
+
"Designation": "Executive ",
|
| 226 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 227 |
+
"E-mail": "rahmat@hedigital.tech",
|
| 228 |
+
"Concact Number": "01321119231",
|
| 229 |
+
"Joining Date": "12-Jan-2021",
|
| 230 |
+
"Date of Birth": "12-Oct-1999",
|
| 231 |
+
"Blood Group": "B+",
|
| 232 |
+
"Linkedin": ""
|
| 233 |
+
},
|
| 234 |
+
"aymun": {
|
| 235 |
+
"Name": "Aymun Khan",
|
| 236 |
+
"Designation": "Executive ",
|
| 237 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 238 |
+
"E-mail": "ayman@hedigital.tech",
|
| 239 |
+
"Concact Number": "01329709025",
|
| 240 |
+
"Joining Date": "2-Jul-2023",
|
| 241 |
+
"Date of Birth": "31-May-1997",
|
| 242 |
+
"Blood Group": "O+",
|
| 243 |
+
"Linkedin": ""
|
| 244 |
+
},
|
| 245 |
+
"nadim": {
|
| 246 |
+
"Name": "Nadim Ahmmed",
|
| 247 |
+
"Designation": "Executive ",
|
| 248 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 249 |
+
"E-mail": "nadim@hedigital.tech",
|
| 250 |
+
"Concact Number": "01792303497",
|
| 251 |
+
"Joining Date": "10-Jan-2020",
|
| 252 |
+
"Date of Birth": "20-Sep-1995",
|
| 253 |
+
"Blood Group": "B+",
|
| 254 |
+
"Linkedin": ""
|
| 255 |
+
},
|
| 256 |
+
"tahmid": {
|
| 257 |
+
"Name": "Md Tahmidur Rahman",
|
| 258 |
+
"Designation": "Executive ",
|
| 259 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 260 |
+
"E-mail": "tahmid@hedigital.tech",
|
| 261 |
+
"Concact Number": "01750796337",
|
| 262 |
+
"Joining Date": "12-Jan-2021",
|
| 263 |
+
"Date of Birth": "24-Sep-1997",
|
| 264 |
+
"Blood Group": "B+",
|
| 265 |
+
"Linkedin": ""
|
| 266 |
+
},
|
| 267 |
+
"adnan": {
|
| 268 |
+
"Name": "M. A. Adnan",
|
| 269 |
+
"Designation": "Junior Executive",
|
| 270 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 271 |
+
"E-mail": "adnan@hedigital.tech",
|
| 272 |
+
"Concact Number": "01959225011",
|
| 273 |
+
"Joining Date": "15-Feb-2024",
|
| 274 |
+
"Date of Birth": "01 June 1995",
|
| 275 |
+
"Blood Group": "A+",
|
| 276 |
+
"Linkedin": ""
|
| 277 |
+
},
|
| 278 |
+
"saidul": {
|
| 279 |
+
"Name": "Saidul Alam Sarker",
|
| 280 |
+
"Designation": "",
|
| 281 |
+
"Organization": "HawkEyes Digital Monitoring Limited",
|
| 282 |
+
"E-mail": "",
|
| 283 |
+
"Concact Number": "",
|
| 284 |
+
"Joining Date": "",
|
| 285 |
+
"Date of Birth": "",
|
| 286 |
+
"Blood Group": "",
|
| 287 |
+
"Linkedin": ""
|
| 288 |
+
}
|
| 289 |
+
}
|
face_api.py
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from fastapi import FastAPI
|
| 2 |
+
from pydantic import BaseModel
|
| 3 |
+
import asyncio
|
| 4 |
+
from typing import List, Union
|
| 5 |
+
from face_main import *
|
| 6 |
+
from datetime import datetime
|
| 7 |
+
from face_main import *
|
| 8 |
+
import uvicorn
|
| 9 |
+
import logging
|
| 10 |
+
import pytz
|
| 11 |
+
import torch
|
| 12 |
+
import json
|
| 13 |
+
|
| 14 |
+
logging.basicConfig(filename="HDML-FaceDetection.log",
|
| 15 |
+
filemode='w')
|
| 16 |
+
logger = logging.getLogger("HDML")
|
| 17 |
+
logger.setLevel(logging.DEBUG)
|
| 18 |
+
file_handler = logging.FileHandler("HDML-FaceDetection.log")
|
| 19 |
+
logger.addHandler(file_handler)
|
| 20 |
+
total_done = 0
|
| 21 |
+
total_error = 0
|
| 22 |
+
|
| 23 |
+
app = FastAPI()
|
| 24 |
+
|
| 25 |
+
class Item(BaseModel):
|
| 26 |
+
url: str
|
| 27 |
+
|
| 28 |
+
def get_bd_time():
|
| 29 |
+
bd_timezone = pytz.timezone("Asia/Dhaka")
|
| 30 |
+
time_now = datetime.now(bd_timezone)
|
| 31 |
+
current_time = time_now.strftime("%I:%M:%S %p")
|
| 32 |
+
return current_time
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
async def process_item(item: Item):
|
| 36 |
+
try:
|
| 37 |
+
result = await mainDet(item.url)
|
| 38 |
+
result = json.loads(result)
|
| 39 |
+
return result
|
| 40 |
+
finally:
|
| 41 |
+
torch.cuda.empty_cache()
|
| 42 |
+
pass
|
| 43 |
+
|
| 44 |
+
async def process_items(items: Union[Item, List[Item]]):
|
| 45 |
+
print(type(items))
|
| 46 |
+
if type(items)==list:
|
| 47 |
+
coroutines = [process_item(item) for item in items]
|
| 48 |
+
results = await asyncio.gather(*coroutines)
|
| 49 |
+
print("multi : ",results)
|
| 50 |
+
else:
|
| 51 |
+
results = await process_item(items)
|
| 52 |
+
print("single : ", results)
|
| 53 |
+
return results
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
@app.get("/status")
|
| 58 |
+
async def status():
|
| 59 |
+
return "AI Server in running"
|
| 60 |
+
|
| 61 |
+
@app.post("/tech")
|
| 62 |
+
async def create_items(items: Union[Item, List[Item]]):
|
| 63 |
+
try:
|
| 64 |
+
results = await process_items(items)
|
| 65 |
+
print("Result Sent to User:", results)
|
| 66 |
+
print("###################################################################################################")
|
| 67 |
+
print(items)
|
| 68 |
+
print("Last Execution Time : ", get_bd_time())
|
| 69 |
+
return results
|
| 70 |
+
except Exception as e:
|
| 71 |
+
global total_error
|
| 72 |
+
total_error += 1
|
| 73 |
+
logger.info(f"Time:{get_bd_time()}, Execution Failed and Total Failed Execution : {total_error}, Payload:{items}, Error:{str(e)}")
|
| 74 |
+
logger.error(str(e))
|
| 75 |
+
return {"AI": f"Error: {str(e)}"}
|
| 76 |
+
finally:
|
| 77 |
+
global total_done
|
| 78 |
+
total_done +=1
|
| 79 |
+
logger.info(f"Time:{get_bd_time()}, Execution Done and Total Successfull Execution : {total_done}, Payload:{items}, Result:{results}")
|
| 80 |
+
torch.cuda.empty_cache()
|
| 81 |
+
pass
|
| 82 |
+
|
| 83 |
+
if __name__ == "__main__":
|
| 84 |
+
try:
|
| 85 |
+
del faceModel
|
| 86 |
+
uvicorn.run(app, host="127.0.0.1", port=8585)
|
| 87 |
+
finally:
|
| 88 |
+
torch.cuda.empty_cache()
|
face_main.py
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
import pandas as pd
|
| 3 |
+
import asyncio
|
| 4 |
+
import base64
|
| 5 |
+
from PIL import Image, ImageDraw
|
| 6 |
+
from aiohttp import ClientSession
|
| 7 |
+
from io import BytesIO
|
| 8 |
+
from data.teamData import member_details
|
| 9 |
+
from model.model import faceModel
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
async def getImage(img_url):
|
| 13 |
+
async with ClientSession() as session:
|
| 14 |
+
try:
|
| 15 |
+
async with session.get(img_url) as response:
|
| 16 |
+
img_data = await response.read()
|
| 17 |
+
return BytesIO(img_data)
|
| 18 |
+
except Exception as e:
|
| 19 |
+
print({"Error in getImage":str(e)})
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
async def detection(model,img_content):
|
| 23 |
+
try:
|
| 24 |
+
img = Image.open(img_content)
|
| 25 |
+
# result = model(img)
|
| 26 |
+
result = model(img,device=0,conf=0.6)
|
| 27 |
+
detection = {}
|
| 28 |
+
data = json.loads(result[0].tojson())
|
| 29 |
+
if len(data) == 0:
|
| 30 |
+
res = {"AI": "Not Found"}
|
| 31 |
+
detection.update(res)
|
| 32 |
+
else:
|
| 33 |
+
df = pd.DataFrame(data)
|
| 34 |
+
name_counts = df['name'].value_counts().sort_index()
|
| 35 |
+
|
| 36 |
+
for name, count in name_counts.items():
|
| 37 |
+
res = {name: count}
|
| 38 |
+
detection.update(res)
|
| 39 |
+
return detection
|
| 40 |
+
except Exception as e:
|
| 41 |
+
print({"Error in detection":str(e)})
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
async def format_result(ai_result,convert_data):
|
| 47 |
+
try:
|
| 48 |
+
result = {}
|
| 49 |
+
for i,j in ai_result.items():
|
| 50 |
+
if i in member_details:
|
| 51 |
+
result.update({i:member_details[i]})
|
| 52 |
+
return result
|
| 53 |
+
except Exception as e:
|
| 54 |
+
print({"Error in format_result":str(e)})
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
async def mainDet(url):
|
| 62 |
+
try:
|
| 63 |
+
image = await asyncio.create_task(getImage(url))
|
| 64 |
+
detect_data = await asyncio.create_task(detection(faceModel, image))
|
| 65 |
+
result = await asyncio.create_task(format_result(detect_data,member_details))
|
| 66 |
+
return json.dumps(result)
|
| 67 |
+
|
| 68 |
+
except Exception as e:
|
| 69 |
+
print({"Error in mainDet":str(e)})
|
| 70 |
+
|
model/faceModel.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:26362c28745a6d1b6040f46f56830c40ba159cff779424526d1470142e3b73ce
|
| 3 |
+
size 195280017
|
model/model.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from ultralytics import YOLO
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
faceModel = YOLO("model/faceModel.pt").cuda()
|
| 5 |
+
|
| 6 |
+
faceModel.to(device=0)
|
test.ipynb
ADDED
|
@@ -0,0 +1,476 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "code",
|
| 5 |
+
"execution_count": 1,
|
| 6 |
+
"metadata": {},
|
| 7 |
+
"outputs": [],
|
| 8 |
+
"source": [
|
| 9 |
+
"from data.teamData import member_details\n",
|
| 10 |
+
"d = {}"
|
| 11 |
+
]
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"cell_type": "code",
|
| 15 |
+
"execution_count": 2,
|
| 16 |
+
"metadata": {},
|
| 17 |
+
"outputs": [],
|
| 18 |
+
"source": [
|
| 19 |
+
"for i,j in member_details.items():\n",
|
| 20 |
+
" data = {i.lower():j}\n",
|
| 21 |
+
" d.update(data)"
|
| 22 |
+
]
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"cell_type": "code",
|
| 26 |
+
"execution_count": 3,
|
| 27 |
+
"metadata": {},
|
| 28 |
+
"outputs": [
|
| 29 |
+
{
|
| 30 |
+
"data": {
|
| 31 |
+
"text/plain": [
|
| 32 |
+
"{'munna': {'Name': 'Arifur Rahman Munna',\n",
|
| 33 |
+
" 'Designation': 'Technology Manager',\n",
|
| 34 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 35 |
+
" 'E-mail': 'arif@hedigital.tech',\n",
|
| 36 |
+
" 'Concact Number': '+8801571322757',\n",
|
| 37 |
+
" 'Joining Date': 'Aug-21',\n",
|
| 38 |
+
" 'Date of Birth': '25-Dec',\n",
|
| 39 |
+
" 'Blood Group': 'O+',\n",
|
| 40 |
+
" 'Linkedin': 'https://www.linkedin.com/in/munnasorder/'},\n",
|
| 41 |
+
" 'rakib': {'Name': 'Md.Rakibul Hasan Naym',\n",
|
| 42 |
+
" 'Designation': 'Junior AI Engineer',\n",
|
| 43 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 44 |
+
" 'E-mail': 'naym.mj@gmail.com',\n",
|
| 45 |
+
" 'Concact Number': '+8801638830165',\n",
|
| 46 |
+
" 'Joining Date': 'Mar-23',\n",
|
| 47 |
+
" 'Date of Birth': '5-Jun',\n",
|
| 48 |
+
" 'Blood Group': 'A+',\n",
|
| 49 |
+
" 'Linkedin': 'https://www.linkedin.com/in/md-rakibul-hasan-naym-625263229/'},\n",
|
| 50 |
+
" 'sakib': {'Name': 'Mahbubul Hasan Sakib',\n",
|
| 51 |
+
" 'Designation': 'Jr. Software Engineer(Node js)',\n",
|
| 52 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 53 |
+
" 'E-mail': 'mahbubulhasan179@gmail.com',\n",
|
| 54 |
+
" 'Concact Number': '+8801812346095',\n",
|
| 55 |
+
" 'Joining Date': 'May-23',\n",
|
| 56 |
+
" 'Date of Birth': '4-Aug',\n",
|
| 57 |
+
" 'Blood Group': 'O+',\n",
|
| 58 |
+
" 'Linkedin': 'https://www.linkedin.com/in/mhsakib29/'},\n",
|
| 59 |
+
" 'shahadat': {'Name': 'Md. Shahadot Hossain',\n",
|
| 60 |
+
" 'Designation': 'Jr. React Native Developer',\n",
|
| 61 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 62 |
+
" 'E-mail': 'shahadotrahat786@gmail.com',\n",
|
| 63 |
+
" 'Concact Number': '+8801775020582',\n",
|
| 64 |
+
" 'Joining Date': 'Jun-23',\n",
|
| 65 |
+
" 'Date of Birth': '6-Feb',\n",
|
| 66 |
+
" 'Blood Group': 'B+',\n",
|
| 67 |
+
" 'Linkedin': 'https://www.linkedin.com/in/shahadot786/'},\n",
|
| 68 |
+
" 'minhaz': {'Name': 'S.M. Minhazul Abedin Shouhug',\n",
|
| 69 |
+
" 'Designation': 'Jr. React Native Developer',\n",
|
| 70 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 71 |
+
" 'E-mail': 'minhazulabedin44@gmail.com',\n",
|
| 72 |
+
" 'Concact Number': '+880182411744',\n",
|
| 73 |
+
" 'Joining Date': 'Jun-23',\n",
|
| 74 |
+
" 'Date of Birth': '1-Jan',\n",
|
| 75 |
+
" 'Blood Group': 'B+',\n",
|
| 76 |
+
" 'Linkedin': 'https://www.linkedin.com/in/minhaz19/'},\n",
|
| 77 |
+
" 'himel': {'Name': 'Mehedi Mohammad Himel',\n",
|
| 78 |
+
" 'Designation': 'Junior AI Engineer',\n",
|
| 79 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 80 |
+
" 'E-mail': 'himel@hedigital.tech',\n",
|
| 81 |
+
" 'Concact Number': '+8801841021211',\n",
|
| 82 |
+
" 'Joining Date': 'Jun-23',\n",
|
| 83 |
+
" 'Date of Birth': '20-Mar',\n",
|
| 84 |
+
" 'Blood Group': 'B+',\n",
|
| 85 |
+
" 'Linkedin': 'https://www.linkedin.com/in/mm-himel/'},\n",
|
| 86 |
+
" 'ferdous': {'Name': 'Mirza Ferdous Ohid',\n",
|
| 87 |
+
" 'Designation': 'Managing Director & CEO',\n",
|
| 88 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 89 |
+
" 'E-mail': 'ferdous@hedigital.tech',\n",
|
| 90 |
+
" 'Concact Number': '+8801711081888',\n",
|
| 91 |
+
" 'Joining Date': '****',\n",
|
| 92 |
+
" 'Date of Birth': '21-July',\n",
|
| 93 |
+
" 'Blood Group': 'O+',\n",
|
| 94 |
+
" 'Linkedin': 'https://www.linkedin.com/in/mirza-ferdous-ohid-70b16236/'},\n",
|
| 95 |
+
" 'aiyub': {'Name': 'Md. Aiyubali',\n",
|
| 96 |
+
" 'Designation': 'Jr. AI Engineer',\n",
|
| 97 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 98 |
+
" 'E-mail': 'aiyub@hedigital.tech',\n",
|
| 99 |
+
" 'Concact Number': '01650027810',\n",
|
| 100 |
+
" 'Joining Date': '2-Dec-23',\n",
|
| 101 |
+
" 'Date of Birth': '4-Jan-1999',\n",
|
| 102 |
+
" 'Blood Group': 'O+',\n",
|
| 103 |
+
" 'Linkedin': ''},\n",
|
| 104 |
+
" 'shanin': {'Name': 'Md Shakhawat Hossain',\n",
|
| 105 |
+
" 'Designation': 'Jr. AI Engineer',\n",
|
| 106 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 107 |
+
" 'E-mail': 'shanin@hedigital.tech',\n",
|
| 108 |
+
" 'Concact Number': '01778198423',\n",
|
| 109 |
+
" 'Joining Date': '15-Jan-2023',\n",
|
| 110 |
+
" 'Date of Birth': '15-Jun-2001',\n",
|
| 111 |
+
" 'Blood Group': 'AB+',\n",
|
| 112 |
+
" 'Linkedin': ''},\n",
|
| 113 |
+
" 'walid': {'Name': 'Walid Al Hasan',\n",
|
| 114 |
+
" 'Designation': 'Intern',\n",
|
| 115 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 116 |
+
" 'E-mail': 'walid@hedigital.tech',\n",
|
| 117 |
+
" 'Concact Number': '01792103884',\n",
|
| 118 |
+
" 'Joining Date': '3-Feb-2024',\n",
|
| 119 |
+
" 'Date of Birth': '25-May-2000',\n",
|
| 120 |
+
" 'Blood Group': 'A+',\n",
|
| 121 |
+
" 'Linkedin': ''},\n",
|
| 122 |
+
" 'jony': {'Name': 'Md Razikul Islam Jony',\n",
|
| 123 |
+
" 'Designation': 'Jr. Frontend Developer',\n",
|
| 124 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 125 |
+
" 'E-mail': 'razikuljoni@gmail.com',\n",
|
| 126 |
+
" 'Concact Number': '01623208660',\n",
|
| 127 |
+
" 'Joining Date': '11-Feb-2024',\n",
|
| 128 |
+
" 'Date of Birth': '24-Oct-2001',\n",
|
| 129 |
+
" 'Blood Group': 'B+',\n",
|
| 130 |
+
" 'Linkedin': ''},\n",
|
| 131 |
+
" 'waliullah': {'Name': 'Md Ollullah Sardar',\n",
|
| 132 |
+
" 'Designation': 'Jr. Backend Developer',\n",
|
| 133 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 134 |
+
" 'E-mail': 'oliullah@hedigital.tech',\n",
|
| 135 |
+
" 'Concact Number': '01643616707',\n",
|
| 136 |
+
" 'Joining Date': '2-Mar-2024',\n",
|
| 137 |
+
" 'Date of Birth': '20-Jun-1998',\n",
|
| 138 |
+
" 'Blood Group': 'O+',\n",
|
| 139 |
+
" 'Linkedin': ''},\n",
|
| 140 |
+
" 'sajal': {'Name': 'Mohammad Assaduzzaman',\n",
|
| 141 |
+
" 'Designation': 'Asst. Manager',\n",
|
| 142 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 143 |
+
" 'E-mail': 'sajal@hedigital.tech',\n",
|
| 144 |
+
" 'Concact Number': '01321119233',\n",
|
| 145 |
+
" 'Joining Date': '17-Jan-2020',\n",
|
| 146 |
+
" 'Date of Birth': '24-Feb-1993',\n",
|
| 147 |
+
" 'Blood Group': 'O+',\n",
|
| 148 |
+
" 'Linkedin': ''},\n",
|
| 149 |
+
" 'deba': {'Name': 'Deba Prasad Mistry',\n",
|
| 150 |
+
" 'Designation': '',\n",
|
| 151 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 152 |
+
" 'E-mail': 'deba.hedigital@gmail.com',\n",
|
| 153 |
+
" 'Concact Number': '01795807053',\n",
|
| 154 |
+
" 'Joining Date': '10-Jan-2020',\n",
|
| 155 |
+
" 'Date of Birth': '29-Dec-1995',\n",
|
| 156 |
+
" 'Blood Group': 'B+',\n",
|
| 157 |
+
" 'Linkedin': ''},\n",
|
| 158 |
+
" 'nayem': {'Name': 'Saidul Alam Nayem',\n",
|
| 159 |
+
" 'Designation': 'Asst. Manager',\n",
|
| 160 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 161 |
+
" 'E-mail': 'nayem@hedigital.tech',\n",
|
| 162 |
+
" 'Concact Number': '01321119224',\n",
|
| 163 |
+
" 'Joining Date': '8-Jul-2020',\n",
|
| 164 |
+
" 'Date of Birth': '29-Jan-1995',\n",
|
| 165 |
+
" 'Blood Group': 'AB+',\n",
|
| 166 |
+
" 'Linkedin': ''},\n",
|
| 167 |
+
" 'rasel': {'Name': 'Rasedul Islam Rasel',\n",
|
| 168 |
+
" 'Designation': 'Senior Executive',\n",
|
| 169 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 170 |
+
" 'E-mail': 'rasel@hedigital.tech',\n",
|
| 171 |
+
" 'Concact Number': 'rasel@hedigital.tech',\n",
|
| 172 |
+
" 'Joining Date': '10-Jan-2021',\n",
|
| 173 |
+
" 'Date of Birth': '9-Jan-1994',\n",
|
| 174 |
+
" 'Blood Group': 'B+',\n",
|
| 175 |
+
" 'Linkedin': ''},\n",
|
| 176 |
+
" 'sagor': {'Name': 'Md Mizanur Rahman Sagor',\n",
|
| 177 |
+
" 'Designation': 'Executive',\n",
|
| 178 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 179 |
+
" 'E-mail': 'Sagor@hedigital.tech',\n",
|
| 180 |
+
" 'Concact Number': '01892479942',\n",
|
| 181 |
+
" 'Joining Date': '2-Dec-2023',\n",
|
| 182 |
+
" 'Date of Birth': '24-Apr-1997',\n",
|
| 183 |
+
" 'Blood Group': 'O+',\n",
|
| 184 |
+
" 'Linkedin': ''},\n",
|
| 185 |
+
" 'tapan': {'Name': 'Tapan Sutradhar',\n",
|
| 186 |
+
" 'Designation': '',\n",
|
| 187 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 188 |
+
" 'E-mail': 'tapan@hedigital.tech',\n",
|
| 189 |
+
" 'Concact Number': '01721 294453',\n",
|
| 190 |
+
" 'Joining Date': '23-Jul-2020',\n",
|
| 191 |
+
" 'Date of Birth': '22-Dec-1996',\n",
|
| 192 |
+
" 'Blood Group': 'B+',\n",
|
| 193 |
+
" 'Linkedin': ''},\n",
|
| 194 |
+
" 'imran': {'Name': 'Md Imran Hossain',\n",
|
| 195 |
+
" 'Designation': 'Junior Executive',\n",
|
| 196 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 197 |
+
" 'E-mail': 'Imran@hedigital.tech',\n",
|
| 198 |
+
" 'Concact Number': '01329709023',\n",
|
| 199 |
+
" 'Joining Date': '2-Mar-2024',\n",
|
| 200 |
+
" 'Date of Birth': '29-Jul-1997',\n",
|
| 201 |
+
" 'Blood Group': 'B+',\n",
|
| 202 |
+
" 'Linkedin': ''},\n",
|
| 203 |
+
" 'sabuj': {'Name': 'Fakir Rabiul Islam',\n",
|
| 204 |
+
" 'Designation': 'Executive ',\n",
|
| 205 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 206 |
+
" 'E-mail': 'rabuil.bght@gmail.com',\n",
|
| 207 |
+
" 'Concact Number': '01722555199',\n",
|
| 208 |
+
" 'Joining Date': '16-Nov-2023',\n",
|
| 209 |
+
" 'Date of Birth': '6-Jun-1989',\n",
|
| 210 |
+
" 'Blood Group': 'A+',\n",
|
| 211 |
+
" 'Linkedin': ''},\n",
|
| 212 |
+
" 'rahmat': {'Name': 'Md. Rahmat Ali',\n",
|
| 213 |
+
" 'Designation': 'Executive ',\n",
|
| 214 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 215 |
+
" 'E-mail': 'rahmat@hedigital.tech',\n",
|
| 216 |
+
" 'Concact Number': '01321119231',\n",
|
| 217 |
+
" 'Joining Date': '12-Jan-2021',\n",
|
| 218 |
+
" 'Date of Birth': '12-Oct-1999',\n",
|
| 219 |
+
" 'Blood Group': 'B+',\n",
|
| 220 |
+
" 'Linkedin': ''},\n",
|
| 221 |
+
" 'aymun': {'Name': 'Aymun Khan',\n",
|
| 222 |
+
" 'Designation': 'Executive ',\n",
|
| 223 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 224 |
+
" 'E-mail': 'ayman@hedigital.tech',\n",
|
| 225 |
+
" 'Concact Number': '01329709025',\n",
|
| 226 |
+
" 'Joining Date': '2-Jul-2023',\n",
|
| 227 |
+
" 'Date of Birth': '31-May-1997',\n",
|
| 228 |
+
" 'Blood Group': 'O+',\n",
|
| 229 |
+
" 'Linkedin': ''},\n",
|
| 230 |
+
" 'nadim': {'Name': 'Nadim Ahmmed',\n",
|
| 231 |
+
" 'Designation': 'Executive ',\n",
|
| 232 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 233 |
+
" 'E-mail': 'nadim@hedigital.tech',\n",
|
| 234 |
+
" 'Concact Number': '01792303497',\n",
|
| 235 |
+
" 'Joining Date': '10-Jan-2020',\n",
|
| 236 |
+
" 'Date of Birth': '20-Sep-1995',\n",
|
| 237 |
+
" 'Blood Group': 'B+',\n",
|
| 238 |
+
" 'Linkedin': ''},\n",
|
| 239 |
+
" 'tahmid': {'Name': 'Md Tahmidur Rahman',\n",
|
| 240 |
+
" 'Designation': 'Executive ',\n",
|
| 241 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 242 |
+
" 'E-mail': 'tahmid@hedigital.tech',\n",
|
| 243 |
+
" 'Concact Number': '01750796337',\n",
|
| 244 |
+
" 'Joining Date': '12-Jan-2021',\n",
|
| 245 |
+
" 'Date of Birth': '24-Sep-1997',\n",
|
| 246 |
+
" 'Blood Group': 'B+',\n",
|
| 247 |
+
" 'Linkedin': ''},\n",
|
| 248 |
+
" 'adnan': {'Name': 'M. A. Adnan',\n",
|
| 249 |
+
" 'Designation': 'Junior Executive',\n",
|
| 250 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 251 |
+
" 'E-mail': 'adnan@hedigital.tech',\n",
|
| 252 |
+
" 'Concact Number': '01959225011',\n",
|
| 253 |
+
" 'Joining Date': '15-Feb-2024',\n",
|
| 254 |
+
" 'Date of Birth': '01 June 1995',\n",
|
| 255 |
+
" 'Blood Group': 'A+',\n",
|
| 256 |
+
" 'Linkedin': ''},\n",
|
| 257 |
+
" 'saidul': {'Name': 'Saidul Alam Sarker',\n",
|
| 258 |
+
" 'Designation': '',\n",
|
| 259 |
+
" 'Organization': 'HawkEyes Digital Monitoring Limited',\n",
|
| 260 |
+
" 'E-mail': '',\n",
|
| 261 |
+
" 'Concact Number': '',\n",
|
| 262 |
+
" 'Joining Date': '',\n",
|
| 263 |
+
" 'Date of Birth': '',\n",
|
| 264 |
+
" 'Blood Group': '',\n",
|
| 265 |
+
" 'Linkedin': ''}}"
|
| 266 |
+
]
|
| 267 |
+
},
|
| 268 |
+
"execution_count": 3,
|
| 269 |
+
"metadata": {},
|
| 270 |
+
"output_type": "execute_result"
|
| 271 |
+
}
|
| 272 |
+
],
|
| 273 |
+
"source": [
|
| 274 |
+
"d"
|
| 275 |
+
]
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"cell_type": "code",
|
| 279 |
+
"execution_count": 4,
|
| 280 |
+
"metadata": {},
|
| 281 |
+
"outputs": [],
|
| 282 |
+
"source": [
|
| 283 |
+
"from ultralytics import YOLO\n",
|
| 284 |
+
"model = YOLO(\"model/newFaceModel.pt\")"
|
| 285 |
+
]
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"cell_type": "code",
|
| 289 |
+
"execution_count": 5,
|
| 290 |
+
"metadata": {},
|
| 291 |
+
"outputs": [
|
| 292 |
+
{
|
| 293 |
+
"data": {
|
| 294 |
+
"text/plain": [
|
| 295 |
+
"{0: 'adnan',\n",
|
| 296 |
+
" 1: 'aiyub',\n",
|
| 297 |
+
" 2: 'aymun',\n",
|
| 298 |
+
" 3: 'deba',\n",
|
| 299 |
+
" 4: 'ferdous',\n",
|
| 300 |
+
" 5: 'himel',\n",
|
| 301 |
+
" 6: 'imran',\n",
|
| 302 |
+
" 7: 'jony',\n",
|
| 303 |
+
" 8: 'minhaz',\n",
|
| 304 |
+
" 9: 'munna',\n",
|
| 305 |
+
" 10: 'nadim',\n",
|
| 306 |
+
" 11: 'nayem',\n",
|
| 307 |
+
" 12: 'rahmat',\n",
|
| 308 |
+
" 13: 'rakib',\n",
|
| 309 |
+
" 14: 'rasel',\n",
|
| 310 |
+
" 15: 'sabuj',\n",
|
| 311 |
+
" 16: 'sagor',\n",
|
| 312 |
+
" 17: 'saidul',\n",
|
| 313 |
+
" 18: 'sajal',\n",
|
| 314 |
+
" 19: 'sakib',\n",
|
| 315 |
+
" 20: 'shahadat',\n",
|
| 316 |
+
" 21: 'shanin',\n",
|
| 317 |
+
" 22: 'tahmid',\n",
|
| 318 |
+
" 23: 'tapan',\n",
|
| 319 |
+
" 24: 'walid',\n",
|
| 320 |
+
" 25: 'waliullah'}"
|
| 321 |
+
]
|
| 322 |
+
},
|
| 323 |
+
"execution_count": 5,
|
| 324 |
+
"metadata": {},
|
| 325 |
+
"output_type": "execute_result"
|
| 326 |
+
}
|
| 327 |
+
],
|
| 328 |
+
"source": [
|
| 329 |
+
"model.names"
|
| 330 |
+
]
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"cell_type": "code",
|
| 334 |
+
"execution_count": 6,
|
| 335 |
+
"metadata": {},
|
| 336 |
+
"outputs": [],
|
| 337 |
+
"source": [
|
| 338 |
+
"nam = {0: 'adnan',\n",
|
| 339 |
+
" 1: 'aiyub',\n",
|
| 340 |
+
" 2: 'aymun',\n",
|
| 341 |
+
" 3: 'deba',\n",
|
| 342 |
+
" 4: 'ferdous',\n",
|
| 343 |
+
" 5: 'himel',\n",
|
| 344 |
+
" 6: 'imran',\n",
|
| 345 |
+
" 7: 'jony',\n",
|
| 346 |
+
" 8: 'minhaz',\n",
|
| 347 |
+
" 9: 'munna',\n",
|
| 348 |
+
" 10: 'nadim',\n",
|
| 349 |
+
" 11: 'nayem',\n",
|
| 350 |
+
" 12: 'rahmat',\n",
|
| 351 |
+
" 13: 'rakib',\n",
|
| 352 |
+
" 14: 'rasel',\n",
|
| 353 |
+
" 15: 'sabuj',\n",
|
| 354 |
+
" 16: 'sagor',\n",
|
| 355 |
+
" 17: 'saidul',\n",
|
| 356 |
+
" 18: 'sajal',\n",
|
| 357 |
+
" 19: 'sakib',\n",
|
| 358 |
+
" 20: 'shahadat',\n",
|
| 359 |
+
" 21: 'shanin',\n",
|
| 360 |
+
" 22: 'tahmid',\n",
|
| 361 |
+
" 23: 'tapan',\n",
|
| 362 |
+
" 24: 'walid',\n",
|
| 363 |
+
" 25: 'waliullah'}\n",
|
| 364 |
+
"persons = []"
|
| 365 |
+
]
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"cell_type": "code",
|
| 369 |
+
"execution_count": 7,
|
| 370 |
+
"metadata": {},
|
| 371 |
+
"outputs": [
|
| 372 |
+
{
|
| 373 |
+
"data": {
|
| 374 |
+
"text/plain": [
|
| 375 |
+
"['adnan',\n",
|
| 376 |
+
" 'aiyub',\n",
|
| 377 |
+
" 'aymun',\n",
|
| 378 |
+
" 'deba',\n",
|
| 379 |
+
" 'ferdous',\n",
|
| 380 |
+
" 'himel',\n",
|
| 381 |
+
" 'imran',\n",
|
| 382 |
+
" 'jony',\n",
|
| 383 |
+
" 'minhaz',\n",
|
| 384 |
+
" 'munna',\n",
|
| 385 |
+
" 'nadim',\n",
|
| 386 |
+
" 'nayem',\n",
|
| 387 |
+
" 'rahmat',\n",
|
| 388 |
+
" 'rakib',\n",
|
| 389 |
+
" 'rasel',\n",
|
| 390 |
+
" 'sabuj',\n",
|
| 391 |
+
" 'sagor',\n",
|
| 392 |
+
" 'saidul',\n",
|
| 393 |
+
" 'sajal',\n",
|
| 394 |
+
" 'sakib',\n",
|
| 395 |
+
" 'shahadat',\n",
|
| 396 |
+
" 'shanin',\n",
|
| 397 |
+
" 'tahmid',\n",
|
| 398 |
+
" 'tapan',\n",
|
| 399 |
+
" 'walid',\n",
|
| 400 |
+
" 'waliullah']"
|
| 401 |
+
]
|
| 402 |
+
},
|
| 403 |
+
"execution_count": 7,
|
| 404 |
+
"metadata": {},
|
| 405 |
+
"output_type": "execute_result"
|
| 406 |
+
}
|
| 407 |
+
],
|
| 408 |
+
"source": [
|
| 409 |
+
"for id,person in nam.items():\n",
|
| 410 |
+
" persons.append(person)\n",
|
| 411 |
+
"\n",
|
| 412 |
+
"persons\n"
|
| 413 |
+
]
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"cell_type": "code",
|
| 417 |
+
"execution_count": 8,
|
| 418 |
+
"metadata": {},
|
| 419 |
+
"outputs": [],
|
| 420 |
+
"source": [
|
| 421 |
+
"for person in persons:\n",
|
| 422 |
+
" if person not in member_details:\n",
|
| 423 |
+
" print(person)"
|
| 424 |
+
]
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"cell_type": "code",
|
| 428 |
+
"execution_count": null,
|
| 429 |
+
"metadata": {},
|
| 430 |
+
"outputs": [],
|
| 431 |
+
"source": []
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"cell_type": "code",
|
| 435 |
+
"execution_count": null,
|
| 436 |
+
"metadata": {},
|
| 437 |
+
"outputs": [],
|
| 438 |
+
"source": []
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"cell_type": "code",
|
| 442 |
+
"execution_count": null,
|
| 443 |
+
"metadata": {},
|
| 444 |
+
"outputs": [],
|
| 445 |
+
"source": []
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"cell_type": "code",
|
| 449 |
+
"execution_count": null,
|
| 450 |
+
"metadata": {},
|
| 451 |
+
"outputs": [],
|
| 452 |
+
"source": []
|
| 453 |
+
}
|
| 454 |
+
],
|
| 455 |
+
"metadata": {
|
| 456 |
+
"kernelspec": {
|
| 457 |
+
"display_name": "v8",
|
| 458 |
+
"language": "python",
|
| 459 |
+
"name": "python3"
|
| 460 |
+
},
|
| 461 |
+
"language_info": {
|
| 462 |
+
"codemirror_mode": {
|
| 463 |
+
"name": "ipython",
|
| 464 |
+
"version": 3
|
| 465 |
+
},
|
| 466 |
+
"file_extension": ".py",
|
| 467 |
+
"mimetype": "text/x-python",
|
| 468 |
+
"name": "python",
|
| 469 |
+
"nbconvert_exporter": "python",
|
| 470 |
+
"pygments_lexer": "ipython3",
|
| 471 |
+
"version": "3.12.3"
|
| 472 |
+
}
|
| 473 |
+
},
|
| 474 |
+
"nbformat": 4,
|
| 475 |
+
"nbformat_minor": 2
|
| 476 |
+
}
|