Answer the question
In order to leave comments, you need to log in
How to get rid of huge opencv lag on pc without graphics card?
I connect to the ip-camera like this:
url='rtsp://192.168.1.80:8080/h264_ulaw.sdp'
cap = cv2.VideoCapture(url)
ret, frame = cap.read()
crop_frame = frame[5:220, 5:220]
def unique_count_app(a):
colors, count = np.unique(a.reshape(-1,a.shape[-1]), axis=0, return_counts=True)
return colors[count.argmax()]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question