Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Browsing all 41027 articles
Browse latest View live

TypeError: only size -1 arrays can be converted to python scalar

i am facing this error and am new to python. not sure how am not supposed to enter a matrix as the input ( image) this is the code : import cv2 import matplotlib.pyplot as plt image =...

View Article


where is the position in aruco_ros marker detector

Using aruco_ros libray,I can detect and recognize a aruco marker with a specific marker ID. Further more,I can get the pose information including position and orientation. **So,I want to ask where is...

View Article


Coordinate frame transformation from NED to OpenCV convention, and the...

Hello, I'm working on an SFM module where I have camera coordinates wrt a world coordinate system (in NED). I have the calibrated camera intrinsics matrix, and with the R,T of the camera wrt world, I...

View Article

deblur image in java,what is the value of snr?

![image description](/upfiles/15935053292924093.png) According to the out-of-focus deblue filter on your official website that I was written in java. I have tried many times of values for SNR but still...

View Article

How to have the camera 'desynchronized' with Illumination changes?

For my current project, I have to record a video stream from a USB camera connected to Raspberry-Pi. While recording the videos if there are any illumination changes the camera should not synchronize...

View Article


Rectified Images Show unwanted results, OpenCV with Stereo Vision

I am having trouble when trying to create depth map using OpenCV on Python. The problem is that the rectified images appears to be wrapped, or distorted. Here is the code....

View Article

Problem in ORB feature matching

Hi I am not able to do feature matching with the below images. Please help me. ![image description](/upfiles/159646643542791.png) ![image description](/upfiles/15964664532531367.png) Regards, Prabhakar M

View Article

Specify CUDA stream for DNN evaluation

I have a CUDA-accelerated pipeline for processing an image. At the end of the pipeline I have to download the processed image from the GPU, then use the `cv.dnn.blobFromImage` API and send it back to...

View Article


cv2.error: assertion failed imshow

hey all, I've been struggling for weeks on numerous forums trying to understand what I'm still guessing requires only a simple fix. I'm using python in ubuntu through a terminal. I've installed the...

View Article


How to generate libopencv_javaxxx.so files instead of dylibs on a mac?

I am using opencv in my java app. I was able to build opencv native libs using `-DCMAKE_BUILD_TYPE=RELEASE -DBUILD_opencv_java=ON` but it ended up generating .dylibs on my mac. That works great locally...

View Article

white angle and black angle in chessboard

Hi, I am reading the source code about two classes: Chessboard and Chessboard::Board. I am confusing about the white_angle and black_angle in the Board class. I would like to know the details of these...

View Article

How to detect a color and then draw a line on it?

I need to detect pink line on a image and then draw a line on it. Can someone help? (I am using Python 3)

View Article

Memory leak in RGB2Lab

There is a memory leak when using RBG2Lab. Is this an issue with OpenCV? The version is 3.4.11. // lab.cpp #include int main() { cv::Mat in = cv::Mat::zeros(1, 1, CV_8UC3); cv::Mat lab;...

View Article


TermCriteria in LogisticRegression

TermCriteria is not stored in the model file But, when using miniBatch, its member maxCount is used in a loop Mat LogisticRegressionImpl::mini_batch_gradient_descent(const Mat& _data, const...

View Article

AruCo improve tracking a single marker

I am trying to track an object in space. For the same, I have stuck an AruCo marker on the object. Due to the dimensions of the object, the marker is fairly small, with a size of 4.5cm x 4.5 cm. The...

View Article


Drawing borders to any borderless tables using openCV

Hello Detect the space in consequent records in the table and draw the horizontal lines. Thanks, jaiswati

View Article

I’m using raspberry pi with python3. I don’t have the raspo camera. So how...

Raspberry pi 4 Python 3.7 ish Usb camera I’ve seen forums that have server client and very complicated code. I’m trying to teach my kids some robotics and basics and I just can’t find a solution. Thanks

View Article


Aruco markers - how to keep a constant object size

Hello all, I have a problem which I have been struggling on since last week and I would need some idea to solve it. I am currently programming a failure pattern recognition tool for an aerospace...

View Article

Can we use .raw image format directly in CV functions?

Hi, Normally CV functions converts .raw image files to .jpg /.png formats. Is there any way to directly use the .raw file format. Will it give a better result?

View Article

build opencv for ios failed

Hello, I am working on macos, I followed the instructions to build opencv for ios found here https://docs.opencv.org/2.4/doc/tutorials/introduction/ios_install/ios_install.html The build fails with the...

View Article
Browsing all 41027 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>