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
6
votes
2 answers

Access IP Camera using imutils VideoStream

I'm using the line below to fetch video stream from my laptop camera and it works great. vs = VideoStream(src=0).start() But now, I want the source to be an IP Camera and not my laptop camera. Is there a way like just changing the src to the IP of…
Elmo F.
  • 71
  • 1
  • 3
5
votes
4 answers

Contours tuple must have length 2 or 3, otherwise opencv changed their cv.findcontours signature yet again

After running my code I get the error message contours tuple must have length 2 or 3, otherwise opencv changed their return signature yet again. I am currently running ver 3.4.3.18 of opencv. The issue occurs when I grab the contours running imutils…
James Phelps
  • 45
  • 1
  • 2
3
votes
0 answers

Pi camera works, no feed

This friday my camera worked, when I turned it on today it wasn't receiving any feed. My camera does work (the robot I am creating shows response based on camera feedback) and the light turns on. I have stripped the code to bare-bone and even then…
2
votes
1 answer

Multi process Video Processing

I would like to do video processing on neighboring frames. More specific, I would like to compute the mean square error between neighboring frames: mean_squared_error(prev_frame,frame) I know how to compute this in a linear straightforward way: I…
henry
  • 875
  • 1
  • 18
  • 48
2
votes
1 answer

Why am I getting this error: imutils VideoStream(src=0) return VIDIOC_QBUF: Invalid argument in raspberry pi

I am only running this simple code in my Raspberry Pi 4: from imutils.video import VideoStream # initialize the video streams and allow them to warmup print("[INFO] starting cameras...") webcam = VideoStream(src=0).start() I can run this code…
2
votes
0 answers

How to update imutils in anaconda?

I tired with a command prompt but I'm getting this error: Cannot uninstall 'imutils'. It is a distutils installed project and thus we cannot accurately determine which files belong to it. Any idea how to do it?
Ravi Teja
  • 21
  • 2
2
votes
1 answer

Python imutils: Illegal instruction

I have a python3 script on my computer that I can run with python3 motion_detection.py and that works, I tried to use it on my Raspberry and something fails with message Illegal instruction. The line that throws this error is: frame =…
2
votes
1 answer

Python OpenCV--MAC WebCam doesn't close

I am running a face recognition code and my issue is that after running the code, my webcam doesn't close. The green light is still activated and in order to close it, i have to close my computer in order to have the cam ok. What do you suggest, why…
Cohen
  • 944
  • 3
  • 13
  • 40
1
vote
1 answer

cannot install required dependencies into my Conda environment

the command I typed is "python3 -m pip install -r requirements.txt". I think the first error is that the library mkl_rt is missing but I'm not sure how to add. Complete log: Defaulting to user installation because normal site-packages is not…
1
vote
1 answer

Error when loading imutils: libgtk-3.so.0: cannot open shared object file: No such file or directory

I was trying to code a motion detection mechanism on my raspberry pi with Python when I ran into this problem. When I installed both imutils and opencv-python and attempted to run my program, this error message shows up. Traceback (most recent call…
Richard Su
  • 343
  • 1
  • 2
  • 10
1
vote
1 answer

7 Segment Detection using OpenCV with Webcam

I want to read some digital displays using a camera. I found a tutorial to detect and read the display here: https://www.pyimagesearch.com/2017/02/13/recognizing-digits-with-opencv-and-python/ Because I need the reading real time, I set the video…
1
vote
1 answer

How to read video image from mkv file in python?

I want to read each frame from a mkv file to loop over and apply my object detection algorithm. However i cant find any way to read the video from the mkv file. I want a similar function to the imutils.video.FileVideoStream, but for mkv file. vs =…
Masilila
  • 504
  • 4
  • 9
1
vote
1 answer

Imutils installed but python gives error "No module named imutils"

I installed imutils on python 3.7 but every time I use import imutils it gives me an error "no module names imutils". This is what I've done so far: I am using MacBook and have tried using pycharm and Python IDE interface both but both give the…
aps_s
  • 113
  • 4
  • 12
1
vote
1 answer

python - make a service continuosly return a status code without breaking a while loop

EDIT: I couldn't find a solution as I wanted below, so I did it as a simple write and read into a .txt file since both apps are in the same physical server. I'm not closing this because I believe it's still something people might need a real…
mrbTT
  • 1,399
  • 1
  • 18
  • 31
1
vote
0 answers

Getting "undefined symbol" on Imutils import on Python WEB Page

Im running Python Web pages with Apache/Lampp in Ubuntu 18.04, and I have a code that's already running ok in terminal, but when I run on browser with Apache I get this error: /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0: undefined symbol…
1
2 3 4 5