First of all thank you for the quick help!
I implemented it on the last couple of weeks and its running fine. 😀
I've been having some troubles regarding real time operation due to the nature of the process I want to monitor. The object is moving quite fast, so on the first trials I haven't been able to capture it well enough (I wonder if it has something to do with the video embedding). I was thinking if it would make sense to capture just a picture for a given moment I know the object(s) is(are) there and then process the image not the video - is it possible? Any other ideas?
About saving and image, I'm simply using cv2.imwrite(str(count)+'.jpg',frame) for the 1080x1080p image, but I think it's still a coarse image (+/- 230kb), how can I save top quality images?