detect specific moving object opencv python

Questions: I’m trying to create a trex bot for learning purpose. So far I’m just capturing the scrren and applied canny and absdiff My idea was to detect moving object using absdiff, but as the trex moves too, I can’t do so and it is slower too. My anther idea is to detect those as …

Converting single value colors to LAB using python OpenCV

Questions: I have an numpy array containing a single pixel/color in floating point RGB. I need to convert this value to LAB, for which I am trying the following: color = cv2.cvtColor(color.reshape((1,1,3)), cv2.COLOR_RGB2LAB).reshape((3)) Where color is: array([137.38841, 161.38841, 65.38841], dtype=float32) The resulting LAB is: [100. 0. 0.] Which clearly isn;t correct as it should be …

Sony ptz IP camera video lag python OpenCV

Questions: I am working on a CV project, real time video/frame feed is Mandatory. Since I am using Sony ptz IP camera, while reading the frames using python OpenCV the Fps is >25 but there is 2 seconds lag between the action happened and displayed on the video frame. Can anyone suggest a solution? Thanks. …

Python OpenCV cap.read() unpacks compressed frames?

Questions: Hello Stack community, I’m reading frames from an IP-camera stream and storing them in a list to later on create a video file. I’m using the python OpenCV library and it works well but .. The frames that are sent from the IP camera should have a h264 compression but when i check the …

python – Split objects from image using opencv

Questions: I have a bunch of images like the following: https://resultados2019.registraduria.gov.co/assets/img/logo/1305.png I would like to split the party logos of each image, in this case, two separate images. I tried using the contours but there are many contours within each logo so I donĀ“t know which could be a better alternative to separate the logos …