I want to access my iPhone 11 camera and take picture/video from my laptop (Windows 10) using python. I found the IP address of the camera using "IP Webcam" app. My phone and my laptop use the same WiFi network. When I run the python code below:
import requests
import numpy as np
import cv2
# phone ip address:xx.xx.xx.xx
while True:
images=requests.get("xx.xx.xx.xx:8888/shot.jpg")
video=np.array(bytearray(images.content),dtype=np.uint8)
render=cv2.imdecode(video,-1)
cv2.imshow('frame',render)
if (cv2.waitkey(1) and 0xFF==ord('q')):
break
I get this error:
No connection adapters were found for 'xx.xx.xx.xx:8888/shot.jpg'
How can I solve this issue?
Thank you for your help in advance.
Abbas