THIS IS AN EXTENSION TO MY PERSONAL PROJECT CALLED Quark
Link: https://bit.ly/ip_webcam_app
Connect both devices on same network, and start the server in the app on android phone.
- Line 8 - 17
from selenium import webdriver
from selenium.webdriver.chrome.options import Options;
driver_path = r"C:\Windows\chromedriver.exe"
options = Options()
options.add_argument('--headless')
options.add_argument('--log-level=3')
driver = webdriver.Chrome(driver_path, chrome_options=options)
ip = netifaces.gateways()['default'][netifaces.AF_INET][0]
driver.get(f"http://{ip}:8080/")
cap = cv2.VideoCapture(f"http://{ip}:8080/video")
- Line 37 -38
driver.find_element_by_id('flashbtn').click()
driver.quit()
- Line 81
driver.find_element_by_id('flashbtn').click()
- Line 4
cap = cv2.VideoCapture(0)
The picture should in .jpg format. Rename it to your name.