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

OpenCV frame in unusable shape

I have a CNN which needs the input images to be in the shape [channels, size, size] but when I get frames using imutils videostream function I get frames in the shape [size, size, channel]. Using numpy reshape to reshape this frame makes my CNN…
0
votes
1 answer

How to remove the black border around rotated & masked image in result? OpenCv Python

I have the task of generating data for deep learning. I take seed images, rotate them and plot them randomly on a background. The issue is the rotation results in a broken line boundary around the image and I can't figure out why it appears or how…
0
votes
1 answer

imutils VideoStream returns NoneType while integrating with flask

So i want to create a video stream using imutils VideoStream and put it on the web. This is the Code: camera_web.py from flask import Flask, render_template, Response from imutils.video import VideoStream from imutils.video import FPS import…
Rheza001
  • 121
  • 4
  • 17
0
votes
1 answer

ModuleNotFound:No module named'imutils'

I have already installed imutils using pip (which is upgraded to the latest version), and it's supposed to be on PyCharm ExternalModules directly after installation , but whenever I try to run my program that uses imutils modules it prints:…
0
votes
0 answers

Spelling error when trying to import imutils

I'm running Python 3.7.1 and have Imutils 0.5.2 installed correctly on Ubuntu 18.04. I'm trying to import imutils as shown below: from imutils.video import VideoStream from imutils.video import FPS import numpy as np import argparse import…
0
votes
2 answers

Cut out a piece from image the piece is not rectangular (eg trapeze), and turn it into a rectangle that fits with the board

I will bring an example I have a picture of a swimming pool with some tracks I want to take only the three middle tracks Now what is the best way to cut the image in a trapeze shape then how to take this trapeze and try to fit it to the size of the…
yoel
  • 1
  • 1
0
votes
1 answer

Installing package imutils in PyCharm

I need the package imutils in my PyCharm project. However, I can't seem to find this package in pycharm available packages. How can I install this? I am using python 3.6 and anaconda as a project interpreter. Thanks for any response!
0
votes
0 answers

Python OpenCV not always recognizing rectangle in captcha

I have these captchas and was wondering what is the best way to get the section inside of the rectangle border. I tried it and my code can only get like probably 1 in every 4 captchas. Please help, I've been stuck on this for a while now. Captcha…
Neura
  • 1
  • 1
0
votes
0 answers

AttributeError: 'PiRGBArray' object has no attribute 'shape'

I'm trying to get the solution Pi-camera with opencv by the problem.Solvers, but get a AttributeError: 'PiRGBArray' object has no attribute 'shape' Thanks for the help. frame = imutils.resize(frame, width=450) File…
0
votes
1 answer

Install imutils within ROS

I have an Ubuntu 16.04 OS with ROS kinetic. When I open a terminal and type python it loads python 2.7, and as I try to import imutils it says it's not there. Then, I tried to install it with pip install imutils, but it says: requirment already…
gkapellmann
  • 313
  • 3
  • 19
0
votes
1 answer

How should I remove multiple python versions due to which pip is pointing to some other version?

How should I remove multiple python versions due to which pip is pointing to some other version ?? due this even after successful installation the module is not getting imported?? Following is the error I was getting when I installed imutils…
Jasch
  • 19
  • 1
  • 6
-1
votes
0 answers

Close live inferencing window using in YOLOV8

I am trying to close popup window when i call model.predict using YOLOv8. I want to close window in code only, not using clt+c or q on popup window. Here is my code import numpy import datetime import imutils model =…
NIrbhay Mathur
  • 153
  • 1
  • 1
  • 10
-1
votes
1 answer

Why is Python giving the error cannot cvtColor missing src

I am creating an alarm system that when you press t it turns on the alarm and if too much movement is detected it will sound an alarm. When I press t to activate the alarm it gives this error: frame_bw = cv2.cvtColor(frame =…
-1
votes
3 answers

NameError: name 'face_frame' is not defined

This code has been taken from github.I have installed all the Dependencies. What could be the possible fix for this issue? If I try to run this project I get these errors Traceback (most recent call last): File…
-1
votes
2 answers

Why I am facing an error in moving object detection using opencv python?

I am using VS code as a IDE for writing my code for Moving object detection using Opencv python but I have error Traceback (most recent call last): File "d:\Programming\Python programming\Moving_Object_detection.py", line 13, in img =…