Questions tagged [opencv3.0]
OpenCV (Open Source Computer Vision) is a library for real time computer vision. (This tag is for questions about OpenCV 3.0. Use [opencv] for general questions.)
2,198
questions
0
votes
2
answers
80
views
Possible solutions to process two images into one [closed]
Hi Im new to computing vision and I am currently stuck at this problem. I have 2shots of component(One is classing RGB and other is IR) and I would like them to overlap with small opacity. Problem is ...
0
votes
0
answers
33
views
Why the video is performing very slow in deep learning opencv
This is HandKeypoint Detection using caffe deep learning on opencv the problem is When i run the code it is performing very slow untill the video is freezing for sometime but when i tried by using a ...
2
votes
1
answer
188
views
Complete missing lines in table opencv
I am trying to detect cells in bill image:
I have this image
Removed the stamp with this code:
import cv2
import numpy as np
# read image
img = cv2.imread('dummy1.PNG')
# threshold on yellow
lower =...
0
votes
2
answers
210
views
How to convert CMSampleBuffer to OpenCV's Mat instance in swift
I am working on an OpenCV project where I am taking input from iPhone native camera as CMSampleBuffer now I wanted to create Mat instance that is required in OpenCV for further process
I have found ...
0
votes
0
answers
54
views
opencv road line detection with HoughLines
Hello I have an image simple street image I want to detect road lines like here
but so far I just can do this I dont understand what I am doing wrong this is my code, I need to this HoughLines
#...
0
votes
0
answers
149
views
How to mask a video with an image on opencv
I want to create a mask over the whole human figure and replace it with an image that is responsive to the moving human figure. The image attached will give you a better idea of what is I mean.
The ...
1
vote
1
answer
322
views
OpenCV Python: LUT for 16bit image?
I have been trying to learn some image processing on OpenCV python. I have a 16-bit image, and I would like to apply a LUT conversion on this 16-bit image without reducing it to 8-bit. From the ...
0
votes
0
answers
60
views
Extract sidewalk from driveway
I've been trying to find a way to determine position relative to an area of a driveway that has belgian blocks using OpenCV. As you can see in the image its basically a grey rectangle that crosses the ...
0
votes
0
answers
65
views
Issue's with running my trainer.py file using opencv
After getting my facial capture component to work (I can gather photos that will be used for the dataset) I am trying to run a trainer.py file that will train the module but I am having some issues ...
-3
votes
2
answers
184
views
contrast normalization of image python
i want to ask how to get the image result (Icon) with python code as indicated in
where ishade is a preprocessed image and std(Ishade) is the standard deviation of this image
result = ndimage....
0
votes
0
answers
43
views
How to get OpenCV RNG value?
In old versions of OpenCV (less then 3.4) I could set and get the RNG via:
cv::theRNG().state
In newer version I should use cvSetRNGSeed(value) for setting, but how can I get the value? I the same way ...
0
votes
0
answers
100
views
why does cv2.ocl.haveOpenCL() return false
enter image description here
My graphics card is NVIDIA GeForce RTX 3060 Ti. It ought to support OpenCL I think
2
votes
0
answers
397
views
How to compare two images without comparing colors in open CV?
I am trying implement a logic using Open CV which finds the difference between two images by ignoring the color differences:
The following two images are of exactly same size.
In the following images ...
0
votes
1
answer
307
views
OpenCvSharp Draw a line in a picturebox
I want to draw a red line in this picture.
But why the line is not red and the background color is still exist?
`
// where I load the image is
pictureBox1.Image = Image.FromFile("C:\\...
1
vote
1
answer
115
views
Python image processing - noise removal
I'm trying to de-noise an image which looks like this:
How can the white noisy pixels be removed? Initially I thought a median filter should suffice, but it doesn't look like it. Moreover, the image ...
-1
votes
1
answer
359
views
How to overlay an image with another that has transparency using Python with OpenCv2
I am trying to use OpenCV to add an image onto another.
I want to be able to combine this:
and this:
(note the circle has a transparent background) to create this:
Unfortunately, all of the ...
4
votes
1
answer
92
views
How to make a single image using several images?
I have these images and there is a shadow in all images. I target is making a single image of a car without shadow by using these three images:
Finally, how can I get this kind of image as shown ...
0
votes
0
answers
81
views
Locally installed OpenCV to virtual env in Raspberry Pi
I spent two whole days to install OpenCV, virtualenv, Tensorflow.
My last goal is to link locally installed OpenCV to my virtualenv.
I reallized that I do not have to install OpenCV to my virtualenv ...
0
votes
1
answer
361
views
How to a draw a specific region in image with mouse and extract that text with Pytesseract or EasyOCR?
For example i've an image like below
I want to draw a box for recognize_text() which is in the first line with mouse and extract that text with the help of Pytesseract or EasyOCR in python. Can anyone ...
0
votes
0
answers
80
views
How to analyze the returned result of cv::calibrateCamera?
According to the sample code given by opencv, the rms returned by calibrateCamera is the reprojection error, and the return of computeReprojectionErrors is also the reprojection error. I did an ...
0
votes
0
answers
196
views
Crop polygon shape from Image using opencv with transparent background
Looking to crop a polygon shape from an image, I managed to get the desired shape but with black surroundings, is there a way to get the cropped image as png without the black part ?
points = [[...
0
votes
0
answers
65
views
opencv_traincascade -numStages 1 How many stages do I need?
I am tracking one particular dog and nothing else. What is the maximum stage, number of positive and negative samples that makes sense?
With: ./opencv_traincascade -data xml -vec pos.vec -bg neg....
0
votes
0
answers
195
views
Calculating average color of a rectangle and comparing it. OpenCV
I have 3 possibilities of text color, green, red, orange.
I know the exact positions where text might appear
An input image is a LiveSplit software that I use for speedrunning.
What I tried (not go ...
0
votes
0
answers
61
views
Access violation writing location opencv_world (HololensforCv, opencv,aruco)
I need your help. I have this issue in my code and i don't understand why ... Do you have any ideas ? I'm beginner on opencv...
I'm trying to detect aruco gridboard to have its rvec and tvec but when ...
0
votes
0
answers
19
views
detecting image color and writing the colors on a list using OpenCV
from pyimagesearch.shapedetector import ShapeDetector
from pyimagesearch.colorlabeler import ColorLabeler
import argparse
import imutils
import cv2
# construct the argument parse and parse the ...
1
vote
0
answers
1k
views
(V4L2: /dev/video0) can't open camera by index
I have an error on my algorithm with Jetson Xavier NX. I try to run code but terminal say that :
[ WARN:0] global /home/arc/opencv_build/opencv/modules/videoio/src/cap_v4l.cpp (890) open VIDEOIO(V4L2:...
1
vote
1
answer
151
views
Enlarge Image in specific pattern using opencv
I'm trying to resize an image in a specific pattern using opencv but facing some issues.
so here's the code I wrote:
x1 = cv2.resize(x, (1500, 1600), interpolation = cv2.INTER_AREA)
Following is my ...
1
vote
0
answers
67
views
Could not find module FindOpenCV.cmake in ROS Build
when i want build my package in ros this error show my:
CMake Error at image_view/CMakeLists.txt:6 (find_package):
Could not find a package configuration file provided by "OpenCV" (...
0
votes
1
answer
833
views
OpenCV video only show a single frame instead of continuous frame
When I try to export the following video, it only shows a single frame for 12 seconds, I want to show the original video but it only shows one single frame
Below are the code attached:
ret, frame = ...
0
votes
0
answers
31
views
Duplicate Order finding in opencart
I want to find the duplicate order. Some one is placing fake order in opencart website. I need to find same machine or same IP placed order details. Any knows idea. Provide some suggestion.
0
votes
1
answer
51
views
for a image hsplit working but vsplit not working in python
Here img is an image of 6x10 size.
def splitBoxes(img):
cols= np.hsplit(img,6)
for c in cols:
rows = np.vsplit(c,10) // Problem in this line. error showing here.
cv2.imshow('COL', c)
...
-4
votes
2
answers
185
views
How to change this C++ (OpenCV) code so it takes an image instead of a video?
I am new to C++ and trying to convert this code so it can take an image instead of a video.
This is for face detection with OpenCV. I can figure out that to Mat, I need to pass an image instead of ...
-2
votes
1
answer
88
views
How can I add "a human face was found" if a face is detected?
this is the code I wrote, I want to be able to show on the terminal how many faces was found, I tried some methods (if face_coordinates: cv2.imshow("a human was found", webcam) and others ...
1
vote
1
answer
179
views
Need Help in Fixing Error in Python: index out of bounds for axis 0
This code was actually posted earlier, when it had even more errors.
Previously, the letters had wrong unicodes and could not be used. moreover, it had some minor errors with numpy.
Now it's fixed, ...
0
votes
1
answer
114
views
Not able to save/write sequence of images into specific folder using OpenCV2
I am trying to save sequence of predicted images into specific folder but its not working. Used below code and its running but not writing/saving the images into "results" folder.
...
1
vote
0
answers
312
views
How to take Screen shot in real-time(like video capture) on mac os?
I use opencv for automating games therefore i need to take screen shots of what is going on screen in real time. I use pywin32 for it while I am on windows.
Is there a way to get similar effect on ...
0
votes
3
answers
111
views
What is | (Pipe) symbol used for in Python Opencv functions ( cv2.threshold)
I know this is Bitwise OR but what I want to know is what itis doing in the given function and how it works for function call
I have seen a couple of codes using | inside the opencv functions such as
...
0
votes
0
answers
76
views
How to get clear Image with autoedge crop image with opencv?
I use opencv library for auto edge detection in android. auto detection work complete in my project but problem is that after auto crop image is too blur I cant read text font from the image. what ...
5
votes
1
answer
430
views
Determine thickness, head and tail of a snake in OpenCV C++
I'm trying to analyze an image of a snake and determine the thickest point and which end is the head and which end is the tail. Here is the original image.
So far I have processed the image through ...
0
votes
1
answer
190
views
How to find the coordinates of a rectangle in an image in Python?
I have a text in an image, and there's a bounding box around it, like so:
What I'm trying to do is to find the top-left & bottom-right coordinates to calculate the diagonal of the rectangle.
I ...
0
votes
0
answers
87
views
Reading frames from video file using opencv in android studio
I'm new to android studio. I want to extract frames from a video file using OpenCV. I installed OpenCV version 3.4.14 and searched a lot on how to extract frames from video, but was not able to find ...
0
votes
0
answers
119
views
OpenCV Rodrigues rotation vector is not right-handed
I am visualizing detected tags using cv.aruco.drawAxis() and I realized that some of the detections were having a left-handed coordinate frame such that x(blue) and y(green) axis directions are ...
1
vote
1
answer
291
views
finding bounding box of centroid with limited information
I have detected blob keypoints in opencv c++. The centroid displays fine. How do I then draw a bounding box around the detected blob if I only have the blob center coordinates? I can't work backwards ...
1
vote
0
answers
333
views
libtorch/Pytorch: Slicing channels from Tensor in C++
I have a neural network for a segmentation task which produces an output tensor ofshape [1, 2, 416, 416]. The first index is the batch size, the second is the output channel. I can get rid of the the ...
1
vote
0
answers
106
views
How to convert Mat object to tensorflow Tensor in RUST Language?
this is my opencv code, how to convert padded_f32 mat object to tensorflow Tensor ?
let image = imgcodecs::imread("image_2021_08_02T09_11_01_447Z.png", imgcodecs::IMREAD_GRAYSCALE).unwrap();
...
0
votes
1
answer
181
views
OpenCV Undistort Cropped Image
I have a 1280px by 960px image with known
Camera Matrix:
[𝑓𝑥 , 0 , 𝑐𝑥 , 0 , 𝑓𝑦 , 𝑐𝑦 , 0 , 0 , 1]
Distortion Matrix:
[𝑘1, 𝑘2, 𝑝1, 𝑝2, 𝑘3]
I'm trying to undistort it by
undistort(...
1
vote
0
answers
32
views
How to mitigate and ignore a constant rotation in computer vision (kalman filter, optical flow)
I have a camera attached to a "blade" that is rotating at a constant RPM in the y axis, the camera is facing out in the x plane looking along the blade. So with this in mind, is there a way ...
0
votes
1
answer
212
views
Get Frame at half of video with opencv
is there a way to get a frame form opencv, but around half of the video (for example if the video is 10 minutes I want to save a frame at 5:00 minutes). I have already seen something on the internet ...
0
votes
0
answers
71
views
Stereo calibration between normal camera and telecentric camera
I have 2 cameras, one follows pin hole model and the other has telecentric lens. I want to determine R,t between these two cameras. Is calibration through OpenCV's stereocalibration still applicable?
1
vote
2
answers
462
views
Python: cv2.imshow without waitKey()
I am trying to find a way to show an image without the dependency of waitKey(). I want the image to be shown and continue on with next operations (like a plot using matplotlib). How can this be ...