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
enable_tvout=1And
dtoverlay=vc4-kms-v3d,compositeAs well as
vc4.tv_norm=PALin cmdline.txt However when booting, the screen on the display shows the rainbow image, then flickers white, a second later the raspberry pi logo splash screen shows up for a split second and the screen goes black with nothing else. I read somewhere that the white flash is the pi deciding not to use that display, but what else do I have to change so it does? I've tried changing the config.txt to read
dtoverlay=vc4-kms-v3d,composite=1And
vc4.tv_norm=PAL video=Composite-1to cmdline.txt Like I saw someone do online but that hasn't worked either.
kameron@pi5:~ $ ping google.com PING google.com (142.250.187.238) 56(84) bytes of data. From 192.168.1.10 (192.168.1.10) icmp_seq=1 Destination Host Unreachable ping: sendmsg: No route to host From 192.168.1.10 (192.168.1.10) icmp_seq=2 Destination Host Unreachable From 192.168.1.10 (192.168.1.10) icmp_seq=3 Destination Host Unreachable From 192.168.1.10 (192.168.1.10) icmp_seq=5 Destination Host Unreachable ping: sendmsg: No route to host From 192.168.1.10 (192.168.1.10) icmp_seq=6 Destination Host Unreachable From 192.168.1.10 (192.168.1.10) icmp_seq=7 Destination Host Unreachable ^C --- google.com ping statistics --- 11 packets transmitted, 0 received, +6 errors, 100% packet loss, time 10168ms pipe 3any clue why? it also can not pip install anything or update because of it.
py import RPi.GPIO as GPIO pins = [18, 23, 24] pin_led_states = [ [1, 0, -1], # A [0, 1, -1], # B [-1, 1, 0], # C [-1, 0, 1], # D [1, -1, 0], # E [0, -1, 1] # F ] GPIO.setmode(GPIO.BCM) def set_pin(pin_index, pin_state): if pin_state == -1: GPIO.setup(pins[pin_index], GPIO.IN) else: GPIO.setup(pins[pin_index], GPIO.OUT) GPIO.output(pins[pin_index], pin_state) def light_led(led_number): for pin_index, pin_state in enumerate(pin_led_states[led_number]): set_pin(pin_index, pin_state) set_pin(0, -1) set_pin(1, -1) set_pin(2, -1) while True: x = int(input("Pin (0 to 5):")) light_led(x)and i would like someone who understands better than me to help convert it to gpiod the gpiod documantation is a mess. Your help will be appreciated!