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
1
vote
1 answer

opencv imutils resize videostream

I have a code that will resize the videostream using imutils vStream = VideoStream(src=args["webcam"]).start() frme = vStream.read() frme = imutils.resize(frme, width=280) gray = cv2.cvtColor(frme, cv2.COLOR_BGR2GRAY) However it is maintaining the…
Beginner
  • 1,700
  • 4
  • 22
  • 42
0
votes
0 answers

TypeError: function takes at most 13 arguments (14 given)

I've been successfully using skimage's io.imsave to save images. However, after installing the `imutils` package through Anaconda (conda install -c conda-forge imutils), which also updated some packages, I've started encountering the following error…
lou_a
  • 1
  • 2
0
votes
0 answers

Opencv save frames much more quickly then 25 fps on video file

I'm trying to make a video based on an RTSP stream, opencv creates the file correctly, but when opencv saves frames in this file, the video file quickly shows frames in a short time. In my test, I record frames for 10 seconds, after that I stop…
0
votes
0 answers

non_max_suppression overlapping boxes

I am using a tesseract for text detection. The algorithm gives as output many boxes, and often overlapping. I am using the non_max_suppression from the imutils library.The problem that I have is that the function compares the surrounding boxes, and…
cobdmg
  • 49
  • 6
0
votes
0 answers

How to fix 'ImportError: cannot import name 'deque' from 'imutils.video' error while importing module imutils?

I am unable to run this program it shows the following error : ImportError: cannot import name 'deque' from 'imutils.video I tried the solutions online but they are for a different module I first downloaded the imutils module but it's showing an…
0
votes
0 answers

opencv2 stitching images together failed

I want to stitch together a bunch of images with OpenCV2 with python. Since it is very time consuming to stitch together 30+ images I modified my code to just stitch together 2 images and after that stitch together the next image with the previous…
sirzento
  • 537
  • 1
  • 5
  • 23
0
votes
1 answer

cv2.warpPerspective does not work correctly. | opencv-python

I put the dots: Top left, Bottom left, Bottom right, Top right. The "Warped" window just shows a white screen. I wanted the Warped window to display a distorted image. In the "four_point_transform" function, the "maxWidth" variable almost always…
Kucer0043
  • 27
  • 7
0
votes
1 answer

cannot import name 'imutils' from 'python_imagesearch'

I wrtie the code as below, but run into a issue about imutils. Traceback (most recent call last): File "C:\Users\cmaster\Desktop\skin_detect\skin.py", line 1, in from python_imagesearch import imutils ImportError: cannot import name…
0
votes
0 answers

How to merge nearby bounding boxes OpenCV from Top To Bottom

I want to detect text lines in a document image which contains some mathematical equation. The problem is that mathematical equations are large in height compare to normal alphabets. I've successfully detected them also without any DL or ML model.…
0
votes
0 answers

imutils FaceAligner.align throws error: Can't parse 'center'. Sequence item with index 0 has a wrong type

This tries to do face-normalisation This makes this error Can't parse 'Center' import cv2 import dlib from imutils.face_utils import FaceAligner import matplotlib.pyplot as plt det = dlib.get_frontal_face_detector() pred =…
0
votes
2 answers

Masking problems in 6 digit recognition using OpenCV with lighted meter

I am trying to recognize six digits from a meter using python-OpenCV. It's surprising how incredibly hard it is to set morphological operations working in the right way, given the time I have spent adjusting the focus/distance of my raspberry pi…
Ajned
  • 523
  • 5
  • 21
0
votes
0 answers

AttributeError: 'NoneType' object has no attribute 'shape' using OpenCV on Raspberry Pi 4

I'm using Raspberry Pi 4B and running OpenCV on it. I have attached webcam for video steam to detect objects using OpenCV, also, a mouse and keyboard. I'm facing a very unique problem here, when I run the python script containing the OpenCV program,…
0
votes
1 answer

How can i save a frame in a live video using opencv in python?

How to grab a fram from a live video using opencv? I created a face recognition program using opencv and i want to capture an image when the confidence > 0.8 this is the code for initializing the liveVideo LiveVideo = VideoStream(src=0).start() …
0
votes
1 answer

How to use the contours related functions in the imutils library

Regarding the imutils library related to OpenCV, I have the following questions: What is the function of contours.sort_contours()? (cnts, _) = contours.sort_contours(cnts) In the above statement, what is the meaning of (cnts, _), especially…
mtttr
  • 3
  • 2
0
votes
0 answers

error : OpenCV(4.1.2) /io/opencv/modules/imgproc/src/resize.cpp:3720: error: (-215:Assertion failed) !ssize.empty() in function 'resize'

(im new to both machine learning and python so i wanted to see if i can do a project from github to learn while doing it) there were a lot of errors i got that i was able to fix by myself with the help of stackoverflow but im unable to fix this one…
anan
  • 1
  • 1