April 4, 2024, 17:31
py #If someone in your dataset is identified, print their name on the screen if currentname != name: currentname = name print(currentname) #Take a picture to send in the email img_name = "image.jpg" cv2.imwrite(img_name, frame) print('Taking a picture.') #Now send me an email to let me know who is at the door request = send_message(name) print ('Status Code: '+format(request.status_code)) #200 status code means email sent successfully
py while True: try: [Put code here] except: print("code raised an error. Most likely timed out for whatever reason.") pass
while true:do?
taking a picture status code: 200
py #If someone in your dataset is identified, print their name on the screen if currentname != name: currentname = name print(currentname) #Take a picture to send in the email img_name = "image.jpg" cv2.imwrite(img_name, frame) print('Taking a picture.') #Now send me an email to let me know who is at the door request = send_message(name) print ('Status Code: '+format(request.status_code)) #200 status code means email sent successfully
py while True: try: #If someone in your dataset is identified, print their name on the screen if currentname != name: currentname = name print(currentname) #Take a picture to send in the email img_name = "image.jpg" cv2.imwrite(img_name, frame) print('Taking a picture.') #Now send me an email to let me know who is at the door request = send_message(name) print ('Status Code: '+format(request.status_code)) #200 status code means email sent successfully
while trueto the entire code, will it also do the same thing?