vision

How to triangulate a point in 3D space, given coordinate points in 2 image and extrinsic values of the camera

旧巷老猫 提交于 2020-01-24 17:06:06
问题 I'm trying to write a function that when given two cameras, their rotation, translation matrices, focal point, and the coordinates of a point for each camera, will be able to triangulate the point into 3D space. Basically, given all the extrinsic/intrinsic values needed I'm familiar with the general idea: to somehow create two rays and find the closest point that satisfies the least squares problem, however, I don't know exactly how to translate the given information to a series of equations

OpenCV with stereo 3D reconstruction

丶灬走出姿态 提交于 2020-01-01 04:52:08
问题 Say I plan to use OpenCV for 3D reconstruction using a stereo approach...and I do not have any special stereo camera but only webcams. 1.)How do I build a cheap stereo setup using a set of web cams? 2.)Is it possible to snap two images using web cams and convert them to stereo using openCV API? I will use the stereo algorithm from the link below Stereo vision with OpenCV Using this approach I want to create a detailed mapping of an indoor environment. (I would not like to use any projects

OpenCV 2.3 camera calibration

回眸只為那壹抹淺笑 提交于 2019-12-30 03:27:29
问题 I'm trying to use OpenCV 2.3 python bindings to calibrate a camera. I've used the data below in matlab and the calibration worked, but I can't seem to get it to work in OpenCV. The camera matrix I setup as an initial guess is very close to the answer calculated from the matlab toolbox. import cv2 import numpy as np obj_points = [[-9.7,3.0,4.5],[-11.1,0.5,3.1],[-8.5,0.9,2.4],[-5.8,4.4,2.7],[-4.8,1.5,0.2],[-6.7,-1.6,-0.4],[-8.7,-3.3,-0.6],[-4.3,-1.2,-2.4],[-12.4,-2.3,0.9], [-14.1,-3.8,-0.6],[

linking issue with opencv and ros indigo while trying to install vision_opencv

不想你离开。 提交于 2019-12-25 12:45:36
问题 Hi my question is of two folds. First, I am confused as why there are opencv3 and OpenCV-3.1.0-dev packages is in /opt/ros/indigo/share as i have read that opencv 2.4.8 is the default version of ROS indigo. Also, I have opencv 2.4.13 version installed on ubuntu 14.04 with ROS Indigo, I want to use opencv for vision part for my project and for that i tried to install vision_opencv package from source. However when I try to build the package using catkin_make following error occurs similar

OpenCV calculate distance (stereo vision)

只谈情不闲聊 提交于 2019-12-25 07:14:35
问题 For my project I am using parts of the next code: link. To track objects of a specific color I implemented this method: My question is: How can I calculate the distance to the tracked colored objects? Thank you in advance! *The application calls the method for the left and right frame. This is not efficient... **I need to calculate detectedObject.Zcor DetectedObject Detect(IplImage *frame) { //Track object (left frame and right frame) //Calculate average position //Show X,Y,Z coordinate and

Marking an interest point in an image using c++

跟風遠走 提交于 2019-12-24 02:15:10
问题 I have a bitmap image like this My requirement is to create a GUI to load the image and for changing the contrast and other things on the image and algorithm to mark the particular area in silver colour as shown in the fig using C++ or C#.I am new to image processing and through my search I have found out that I can use the Histogram of the image for finding the required area.These are the steps. Get the histogram Search for intensity difference Search for break in the line Can someone

Microsoft Cognitive Service Vision API ClientException Error

爷,独闯天下 提交于 2019-12-22 09:25:17
问题 I'm trying to use Vision Cognitive Services to receive the description of an image but my code always throws this exception: Exception Microsoft.ProjectOxford.Vision.ClientException HResult=0x80131500 Origine=<Non è possibile valutare l'origine dell'eccezione> Stack: in Microsoft.ProjectOxford.Vision.VisionServiceClient.HandleException (Exception exception) in Microsoft.ProjectOxford.Vision.VisionServiceClient.<SendAsync>b__42_1[TRequest,TResponse](Exception e) in System.AggregateException

OpenCV: Using cvGoodFeaturesToTrack with C++ mat variable

谁说我不能喝 提交于 2019-12-20 07:36:06
问题 I am trying to use the cvGoodFeatureToTrack function in Visual Studio 2010 with the image type as Mat . Most of the examples I have seen use the IplImage pointer. Right now I have this: int w, h; // video frame size Mat grayFrame; Mat eigImage; Mat tempImage; const int MAX_CORNERS = 10; CvPoint2D32f corners[MAX_CORNERS] = {0}; int corner_count = MAX_CORNERS; double quality_level = 0.1; double min_distance = 10; int eig_block_size = 3; int use_harris = false; w = CurrFrame.size().width; h =

Night Vision Mode on WPF Windows

偶尔善良 提交于 2019-12-18 13:36:43
问题 We've made a WPF application with a traditional UI (common controls like tabs, buttons, labels, textboxes, and so on). We need to add a "night vision" mode, which would make it look like Stellarium's night vision mode, so that it can be comfortably used in places with few or just no light at all. As far as I've seen, we only have two options: A technique called "shading" (I don't know how this could be implemented in WPF). The brute-force way: defining control's style templates. As you know,

Scan QRcode with inverted colors using Vision API

最后都变了- 提交于 2019-12-14 03:55:30
问题 After struggling a few hours on making my app detect this QRCode: I realized that the problem was the in the QRCode appearance. After inverting the colors, the detection was working perfectly.. Is there a way to make Vision API detect the first QRCode? I tried to enable all symbologies but it did not work. I guess it is possible because the app QR Code Reader detects it. 回答1: I think this is still an open issue, please see link for details. One workaround for this as stated by a developer: