This is a collection of independant scripts to show how to communicate with the QooCam EGO remotely.
They were tested with firmware 2.1.29 in the camera.
They are quite minimal so that you can inpire yourself to create your own awesome utility.
You can also use them directly as is.
# QooCam EGO # LivePreview # FW Version v.3.0.5 # Windows 11 import urllib.request import json import sys import cv2 ip = "192.168.1.x" urllib.request.urlopen(f'http://{ip}/osc/info') with urllib.request.urlopen(f'http://{ip}/osc/commands/execute', data=b'{"name":"camera._startRtspLivePreview"}') as f: jresponse = json.loads(f.read().decode()) # {'name': 'camera._startRtspLivePreview', 'results': {}, 'state': 'done'} print(jresponse) cap = cv2.VideoCapture(f'rtsp://{ip}/liveRTSP/av0') while cap.isOpened(): ret, frame = cap.read() if not ret: break cv2.imshow("QooCam RTSP", frame)