Soft de Recunoastere Faciala pentru Acasa

Autor: John Cohen

Ati fost vreodata pusi in situatia in care plecati din casa, dar doriti cumva sa aveti un inca un grad de protectie, astfel incat daca intra cineva in locatie sa fiti anuntati? Sa spunem ca nu aveti camere si senzori cumparate de la firme de securitate specializate si licentiate de IGPR, dar aveti in casa un laptop care sa aiba o camera web integrata, sau adaugata la el, pe care sa le folositi pt a va proteja locuinta? Programelul de mai jos, va va ajuta sa aveti in casa inca un mic tool, care va fi acolo pt Dvs. Veti avea nevoie sa urmati/instalati urmatorii pasi: 1. [Python][1] 2. Clonati repository-ul meu de pe [Github][2] 3. Deschideti terminal-ul daca sunteti pe MAC, sau tastati CMD in bara de Windows, mergeti prin el (cd) pana la folderul downloadat si in el acest director tastati comanda `source bin/activate` pt utilizatorii de MAC, iar pt cei de Windows `\path\to\env\Scripts\activate` 4. Instalati dependintele prin comanda `pip install -r requirements.txt` 5. Daca nu aveti nicio eroare de instalare pana la acest pas, acum puteti sa folositi softul. In fisierul trebuie sa editati liniile 41-44 si linia 62 ___ ```javascript fromaddr = "YOUR GOOGLE ACCOUNT EMAIL" toaddr = "YOUR GOOGLE ACCOUNT EMAIL" Cc = "YOUR GOOGLE ACCOUNT EMAIL" Bcc="YOUR GOOGLE ACCOUNT EMAIL" ``` ```javascript server.login(fromaddr, "YOUR PASSWORD TO BE INSERTED HERE") ``` ___ Dupa ce va rula, veti vedea urmatoarele mesaje in terminal. ![terminal][3] Acum sa va spun si cum functioneaza. Avem un clasificator in formatul XML care este specializat in detectarea fetei. Softul prezent aici ruleaza preluand feed-ul video de pe camera, iar in clipa in care clasificatorul decteaza o fata atunci se actioneaza un mecanism care trimite un email la un cont de gmail folosit de catre Dvs. De asemenea softul salveaza si 2 poze ale celui care se afla in locatia pe care le ataseaza email-ului trimis. Pozele pot fi gasite in folderul mail. In acest mod veti fi pregatiti in clipa in care plecati de acasa, sau chiar va lasati putin copilul adormit in casa, ca sa mergeti sa luati ceva de la market. Acest soft e o solutie care va poate ajuta in securitatea Dumneavoastra. Niciodata nu e deajuns cand vine vorba de protectia Dvs si a familiei Dvs. Mai jos gasiti si codul scris in python. ___ ```javascript from import VideoStream import imutils, time, cv2, sys import smtplib, os from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase from email.mime.multipart import MIMEMultipart from email.mime.image import MIMEImage from email.message import Message from import MIMEAudio from email import encoders detector = cv2.CascadeClassifier("haarcascade_frontalface_default.xml") vs = VideoStream(src=0).start() time.sleep(2.0) total = 0 while True: frame = orig = frame.copy() frame = imutils.resize(frame, width=600) rects = detector.detectMultiScale( cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY), scaleFactor=1.1, minNeighbors=5, minSize=(30, 30)) for (x, y, w, h) in rects: cv2.rectangle(frame, (x, y), (x + w, y + h), (0, 255, 0), 2) if rects is not None: for total in range(2): if total<=2: p="./mail/"+str(total)+".png" cv2.imwrite(p, orig) total+=1 else: break print("Initiez procedura de trimitere poze catre root!") time.sleep(2.0) files = "./mail/" filenames = [os.path.join(files, f) for f in os.listdir(files)] fromaddr = "YOUR GOOGLE ACCOUNT EMAIL" toaddr = "YOUR GOOGLE ACCOUNT EMAIL" Cc = "YOUR GOOGLE ACCOUNT EMAIL" Bcc="YOUR GOOGLE ACCOUNT EMAIL" msg = MIMEMultipart() msg['From'] = fromaddr; msg['To'] = toaddr msg['Cc']=Cc msg['Bcc']=Bcc msg['Subject'] = "Atentionare Cineva Va Foloseste Laptopul" body = "Cineva se joaca la laptopul tau" msg.attach(MIMEText(body, 'plain')) for file in filenames: part = MIMEBase('application', 'octet-stream') part.set_payload(open(file, 'rb').read()) encoders.encode_base64(part) part.add_header('Content-Disposition', 'attachment; filename="%s"' % file) msg.attach(part) server = smtplib.SMTP('', 587) server.starttls() server.login(fromaddr, "YOUR PASSWORD TO BE INSERTED HERE") text = msg.as_string() server.sendmail(fromaddr, toaddr, text) server.quit() print("Am trimis pozele catre root!") raise SystemExit ``` ___ Cam asa arata si mail-ul pe care il veti primi de la soft. La voi imaginea nu va fi blurata, ca la mine, din motive evidente! ![mail][4] Weekend placut! [1]: [2]: [3]: [4]:

Share on Facebook Share on Linkedin

Ilfov, Romania
Telefon: 0771.060.860.    
Email: [email protected]

#detectivparticular #pi #romania #bucuresti #investigatii #it #cybersecurity #detectiv #detectivi #politia #police #inselaciuni #verificari #siguranta #incredere #iubit #iubita #iubire #security #homeprotection #protection #tscm #facialrecognition #recunoasterefaciala #soft #phishing #scams #chatboot #pi #robot #malitious #html #car #carrecognition #bucharest #bucuresti #nato #wearenato #heroku #development #nato #security #cybersecurity #wireless #pentestings #penetrationtesting #personrecognition #indivizi #recunoasterepersoane #video #searex #privatesearch #internet

Pictures Copyright Pozele acestui articol au fost luate de pe site-ul, site care ofera gratis spre uz personal si comercial aceste poze. --- [All photos on Pexels can be used for free for commercial and noncommercial use](


Any actions and or activities related to the material contained within this Website is solely your responsibility.The misuse of the information in this website can result in criminal charges brought against the persons in question. The authors and Our Company will not be held responsible in the event any criminal charges be brought against any individuals misusing the information in this website to break the law.

This site contains materials that can be potentially damaging or dangerous. If you do not fully understand something on this site, then GO OUT OF HERE! Refer to the laws in your province/country before accessing, using,or in any other way utilizing these materials.These materials are for educational and research purposes only! Do not attempt to violate the law with anything contained here. If this is your intention, then LEAVE NOW! Neither administration of this server, the authors of this material, or anyone else affiliated in any way, is going to accept responsibility for your actions. Neither the creator nor Our Company is responsible for the comments posted on this website.

Any linked sites are not under the control of author or Our Company and the author or Our Company is not responsible for the contents of any linked site or any link contained in a linked site, or any changes or updates to such sites. We are providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement by us.

In any site as large as ours that deals with so many controversial topics and skills, it has become necessary to address a few incidents and implement a user terms and services agreement. We want to provide a free, safe and legal training environment to the users of this site.

Our Aim

Our Company : This website will help you gain entry into the minds of seasoned computer criminals, so that you can forestall their attempts and you will be hence well equipped to detect the ways in which hackers can infiltrate your system.

Your usage of this website constitutes your agreement to the following terms.

  1. All the information provided on this site are for educational purposes only. The site is no way responsible for any misuse of the information.
  2. Our Company is a site related to Private Investigation and not a site that promotes hacking /cracking / software piracy.
  3. This site is totally meant for providing information on "Private Investigation", “Computer Security”, “Computer Programming” and other related topics and is no way related towards the terms “CRACKING” or“HACKING” (Unethical).
  4. Few articles (posts) on this site may contain the information related to “Hacking Passwords” or“Hacking Email Accounts” (Or Similar terms). These are not the GUIDES of Hacking. They only provide information about the legal ways of retrieving the passwords. You shall not misuse the information to gain unauthorised access. However you may try out these hacks on your own computer at your own risk. Performing these attempts (without permission) on computers that you do not own is illegal.
  5. The virus creation section on this site provides demonstration on coding simple viruses using high level programming languages. These viruses are simple ones and cause no serious damage to the computer. However we strongly insist that these information shall only be used to expand programming knowledge and not for causing malicious attacks.
  6. All the information on this site are meant for developing Defense attitude among the users and help preventing the hack attacks. Our Company insists that these information shall not be used for causing any kind of damage directly or indirectly. However you may try these codes on your own computer at your own risk.
  7. The word “Hack” or “Hacking” that is used on this site shall be regarded as “Ethical Hack” or “Ethical Hacking” respectively.
  8. We believe only in White Hat Hacking. On the other hand we condemn Black Hat Hacking.
  9. Some of the tricks provided by us may no longer work due to fixture in the bugs that enabled the exploits. We are not responsible for any direct or indirect damage caused due to the usage of the hacks provided on this site.
  10. We reserve the right to modify the Disclaimer at any time without notice.
  11. We are not the vendors of any products (software, books etc.) that we recommend on our website in the PRODUCTS section and other selected posts/articles. Hence we do not have any liability related to the products recommend by us. It is the responsibility of the buyers to contact the respective vendors for any queries related to the products.