All Questions
Tagged with python-2.7 opencv
1,005 questions
0
votes
1
answer
346
views
Hand Tracking Module
I was trying to make an Hand Tracking Module with python, opencv and mediapipe, that I'll integrate later with another code, the code is:
import cv2
import mediapipe as mp
import time
import math
...
0
votes
0
answers
42
views
(Python) just locate few corners of img (now I could locate all corner) that I want to know the setting the filter the output I want
(Python) just detect few corners instead of all from img, to optimize the speed
My main purpose is to cut the original img in sticker size, and recognize img to text, find if is duplicate or print ...
0
votes
2
answers
411
views
Detection and classification of objects placed in front of a video camera
Through this code, I aim to detect an object in real-time that will be put in front of the video camera and classify it. My reasoning is the following I tried to make two for loops the first one for ...
0
votes
0
answers
712
views
Build openCV with python3 in Jetson Nano
my problem is a bit complicate to explain but I am gonna do my best ( it's gonna be long) . I am trying to develop a python program to count vehicules in a traffic. For that I have a canvas on which I ...
-1
votes
1
answer
1k
views
Error when trying to install opencv-python package 4.3 on python 2.7
When I try to install opencv-python 4.3.0.38 using pip with pip install opencv-python on python 2.7, I'm getting the following error.
Collecting opencv-python
Using cached opencv-python-4.3.0.38.tar....
-1
votes
1
answer
150
views
Problems with Aruco library on Debian 9.5 - OpenCV
I am trying to detect Aruco markers through my camera using OpenCV for Python 2.7 on Debian 9.5, but I can't run my code because of an errore dealing with cv2.aruco.detectMarkers(). Running it on ...
2
votes
1
answer
2k
views
Access Image via OpenCV in python (ROS Kinetic)
I want to access my camera using OpenCV in ros kinetic,
this is my code
#!/usr/bin/env python2.7
import rospy
from sensor_msgs.msg import Image
import cv2
from cv_bridge import CvBridge, CvBridgeError
...
0
votes
1
answer
787
views
Can I balance an extremely bright picture in python? This picture is a result of thousands of pictures stitched together to form a panorama
My aim is to stitch 1-2 thousand images together. I find the key points in all the images, then I find the matches between them. Next, I find the homography between the two images. I also take into ...
0
votes
1
answer
2k
views
OPENCV mean value of image using only values under a threshold
I have the intensity values from a row of a gray scale image (0-255) as in the image. I want to apply pixel centering so I subtract the mean value from all the intensity values. But I don't want to ...
1
vote
0
answers
274
views
Cannot install opencv-python for PyPy2.7
I installed PyPy2.7 in the WSL (Ubuntu 18.04) following the official instructions. I then created a virtualenv and installed Numpy and Scipy with pip install. So far everything works:
$ python
Python ...
0
votes
0
answers
378
views
How can I switch Python Tkinter GUI camera source?
First of all, I wanted to put a camera switch option on a piece of code found here. First, I found the possible camera indexes and tried to change the camera sources with the push of a button. Even ...
0
votes
1
answer
635
views
OpenCV Error: Assertion failed (nimages > 0 && nimages == (int)imagePoints1.tot ........ line3106
OLD: Trying the OpenCV tutorial for camera calibration.
Kindly look for part two right after "EDIT" below the the first python code section
I receive this error:
OpenCV Error: Assertion ...
3
votes
2
answers
5k
views
How to show image in true size in a full screen opencv window?
I am trying to create a fullscreen opencv window (size 1920x1080) which should show an image (620x365) in mid center position of the opencv window. Unfortunately, the image gets expanded to fullscreen ...
-1
votes
1
answer
2k
views
Apply resize on multiple images at one time in openCV python
I have read a folder containing pictures using glob and imread. Now my I want to resize all of those pictures using for loop in cv2.resize.
following is my code but the output is not correct--
import ...
0
votes
0
answers
509
views
Using matplotlib.pyplot.imshow to display images to scale just like cv2.imshow
I am writing a tool to quickly scrub through a stream of images and mark down their timestamps if wanted. So I need to display an image and wait for user input using raw_input to decide whether to ...