Skip to content

Tag: opencv

Error installing opencv-python specific version

Because I had recursion is detected during loading of “cv2” binary extensions issue, I tried pip install opencv-python==4.5.3.56 to be installed. However; I am suffering ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: ‘C:Usersshim.DESKTOP-JDBQQELAppD…

How to merge two images in openCv(python)? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 months ago. Improve this question I extracted Red channel at this image and I created a rectangle for this image I want to bl…

opencv cant write video from camera on python

im trying to save a video i get from a facetime camera on mac, i manage to show the video and flip it, but when i try to save it i get no file at all, and it wont show me any error, it did use to show me an error CAP_IMAGES: can’t find starting number (in the name of

Getting the colour of a particular pixel with opencv

I’m trying to determine the colour of a single pixel in an image using Python and OpenCV. However, when I read the BGR values from that pixel and use those same values to draw a circle back on the image, the colours do not match. Where am I going wrong? Output: Note the cyan circle drawn on the yellow r…

Is there a way to resize a batch of images?

I am trying to make code of object detection efficient. I currently have multiple sources, Below is the pseudo code: Take images via cv2.imread() or cap.read() from all sources one by one. Pre-process them one by one: a. Resize b. Normalise Make batch. Pass to model. Post process one by one. Now, since images…

Returning the count of circles in the document

I have written code defining circles in documents. Can I return to the variable the count of circles found in the document? Thank you. Answer Well, you’re already doing to draw the circles, so circles[0, :] is presumably an iterable of circles. Wouldn’t it then make sense that would give you the n…