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 Articlewhere 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 ArticleCoordinate 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 Articledeblur image in java,what is the value of snr?
 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 ArticleHow 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 ArticleRectified 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 ArticleProblem in ORB feature matching
Hi I am not able to do feature matching with the below images. Please help me.   Regards, Prabhakar M
View ArticleSpecify 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 Articlecv2.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 ArticleHow 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 Articlewhite 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 ArticleHow 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 ArticleMemory 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 ArticleTermCriteria 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 ArticleAruCo 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 ArticleDrawing 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 ArticleI’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 ArticleAruco 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 ArticleCan 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 Articlebuild 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