Questions tagged [imutils]

A python library for simple image processing functions like translation, rotation, resizing and skeletonization amongst many others. To be used for any queries with regards to this library

A series of convenience functions to make basic image processing functions such as translation, rotation, resizing, skeletonization, and displaying Matplotlib images easier with OpenCV and both Python 2.7 and Python 3. For more details on its various functionalities check out THIS GITHUB PAGE

67 questions
0
votes
0 answers

Real-time OCR Videstreaming is lagging when running real-time and implementing text recognition

I'm done installing packages and debugging it. This code is from https://github.com/LaggyHammer/real-time-OCR. When I run it, my camera or the video-streaming gets lag or it has delayed from my end. Here's the code of what I executed through CLI. #…
0
votes
1 answer

Zernike moment as Shape descriptor doesn't work

I m working to create a CBIR, I want to use Zernike moment to get shape feature of a query image. I try to implement it by following this tutoriel: https://pyimagesearch.com/2014/05/19/building-pokedex-python-comparing-shape-descriptors-opencv/ But…
0
votes
1 answer

Contours tuple must have length 2 or 3, otherwise OpenCV changed their cv2.findContours return signature yet again- find contour in a specific area

cnts,_ = cv2.findContours(cv.rectangle(img3.copy(), (0,200) , (5000, 1150), (255,0,0), 2) ,cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE) cv2.drawContours(rgb_img, cnts, -1, (0,255,0), 2) conts = imutils.grab_contours(cnts) c = max(conts,…
0
votes
2 answers

Remove the black border and keep the image size same in python

I am rotating an image 45 degree. When I rotate the image it has a black border and the image size changes from 256x256 to 364x364. I want to remove the values of this black border and keep the size 256. In pillow if I put fill color then the black…
user123
  • 415
  • 2
  • 4
  • 17
0
votes
1 answer

Mask Recognition. Error - "ValueError: Layer "model_1" expects 1 input(s), but it received 3 input tensors" as more than one face appears in frame

I am doing a real-time face mask recognition system and after two or more faces (this time 3, because it received 3 inputs) appear in the frame, this error stops the process. Error - Traceback (most recent call last): File…
user15066075
0
votes
1 answer

Is there any possibility to circumvent the size of the packet sent to the datagram? [Errno 10040]

I'm trying to create an app using python, to watch together movies, but I constantly getting errors with : [Errno 10040] A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used…
JUANOOO
  • 11
  • 3
0
votes
0 answers

why am i getting a no moduel named: ___ error when trying to referencing cv2, inutils, etc

I am trying to create a Motion capture program on mac Visual Studio Code and the following code: from imutils.video import VideoStream import cv2 ## also tried from cv2 import cv2 ... gave me the following error: Traceback (most recent call last): …
user14250770
0
votes
1 answer

Record the video, save it automatically, and record it again

I'm looking for ways to save the video every minute and record it again. When I run my code, I capture it until I press 'q'. Is there a way to automatically save it and record it again? I use imutils, cv2 import imutils import cv2 # opencv…
MinJae
  • 31
  • 1
  • 4
0
votes
0 answers

Python: can't enter some variables to a 2d array to crop an image

I'm an absolute beginner in Python and I'm writing a program that uses my laptop's webcam. I want to crop the output according to a crop factor and it seemed as easy as: w = 1280 h = 720 crop_factor = 0.5 x_crop_start =…
Iacopo Boccalari
  • 1,195
  • 2
  • 12
  • 19
0
votes
1 answer

Imutils.video FPS reads just the first frame of the video

I am working on a Yolo based object detector, and i want to deploy it on videos/ipcamera. i used the imutils.video module to loop through all the frames of the video. but the result shows just the detection on the first frame of the video. I want to…
0
votes
1 answer

cv2 capture video with minimized window

I have a small python script using cv2 to capture the first face detected and display that region only in a cv2 window. Everything works great. Currently, the video feed will freeze when minimized. How can I allow my script to keep capturing the…
3V1LXD
  • 55
  • 1
  • 10
0
votes
1 answer

(imutils) PackagesNotFoundError: The following packages are not available from current channels:

I'm using python 3.7 and trying to install imutils package in conda by the following: conda install imutils conda install -c mlgill imutils=0.5.4 conda install -c conda-forge/label/cf202003 imutils=0.5.4 conda install -c conda-forge imutils They…
Rawan
  • 373
  • 1
  • 3
  • 17
0
votes
1 answer

Convert gif image loaded in Pillow to png

I'm scraping a web page that is protected by showing the information as an image so as not to be scraped. when I import an image with the format .gif it sends an error. I have tried to find a way to convert that imported image to another format like…
Dandal
  • 166
  • 1
  • 11
0
votes
2 answers

No module named 'imutils'

No module named 'imutils' even after installing it. I am using macOS and sublime Text Editor. When I tried to build, I receive the error message No module named 'imutils' but when I run pip3 install imutils in terminal I get requirement already…
Godspower
  • 87
  • 2
  • 6
0
votes
0 answers

Open CV, find blurry images

I want a help in python code that should show me if the images in a folder is blurry or not. I find this article useful https://www.pyimagesearch.com/2015/09/07/blur-detection-with-opencv/ but in the output it shows a text on the top of the image…