OpenCV

'pkg-config' is not recognized as an internal or external command when installing opencv

房东的猫 提交于 2021-02-08 10:12:33
问题 So I'm getting this error when attempting to install OpenCV on my computer. 'pkg-config' is not recognized as an internal or external command I've been searching around for this pkg-config package and I can't seem to find a proper download source anywhere. The only one I did find was pkg-config-lite. I tired to see if that one would work but no luck. 回答1: The original pkg-config release is available here: http://www.freedesktop.org/wiki/Software/pkg-config 来源: https://stackoverflow.com

'pkg-config' is not recognized as an internal or external command when installing opencv

限于喜欢 提交于 2021-02-08 10:12:11
问题 So I'm getting this error when attempting to install OpenCV on my computer. 'pkg-config' is not recognized as an internal or external command I've been searching around for this pkg-config package and I can't seem to find a proper download source anywhere. The only one I did find was pkg-config-lite. I tired to see if that one would work but no luck. 回答1: The original pkg-config release is available here: http://www.freedesktop.org/wiki/Software/pkg-config 来源: https://stackoverflow.com

OpenCV>> Structure from motion, triangulation

纵饮孤独 提交于 2021-02-08 09:18:16
问题 Use-case Generate a synthetic 3D scene using random points Generate two synthetic cameras Get the 2 camera 2D projections Derive the Fundamental & Essential matrices Derive rotation & translation using the Essential matrix Triangulate the 2 2D projections to result the initial 3D scene Implementation Random 3D points ( x, y, z ) are generated Camera intrinsic matrix is statically defined Rotation matrix is statically defined ( 25 deg rotation on the Z-axis ) Identity Translation Matrix ( no

opencv.js issue with findTransformECC criteria

纵然是瞬间 提交于 2021-02-08 09:16:56
问题 I'm attempting to use opencv.js to align images to a baseline image. I'm following some basic python guidance that i've seen work (example: https://alexanderpacha.com/2018/01/29/aligning-images-an-engineers-solution/) but i'm getting tripped up with an error that I don't quite understand. The error is "opencv.js:30 Uncaught TypeError: Cannot use 'in' operator to search for 'type' in 1e-10" and it seems to be caused by the "criteria" variable passed to "cv.findTransformECC();" see here. any

opencv.js issue with findTransformECC criteria

穿精又带淫゛_ 提交于 2021-02-08 09:15:48
问题 I'm attempting to use opencv.js to align images to a baseline image. I'm following some basic python guidance that i've seen work (example: https://alexanderpacha.com/2018/01/29/aligning-images-an-engineers-solution/) but i'm getting tripped up with an error that I don't quite understand. The error is "opencv.js:30 Uncaught TypeError: Cannot use 'in' operator to search for 'type' in 1e-10" and it seems to be caused by the "criteria" variable passed to "cv.findTransformECC();" see here. any

How can i remove noise in this image -openCV

好久不见. 提交于 2021-02-08 08:52:07
问题 I'm trying to remove the noise in this image: aiming to isolate the triangle . Actually i have a lot of picture like that (triangle with some noise) and i don't know how can i remove noise. I want to have a great triangle without noise in order to process it (detect interest points). I have tried erode and all theses stuff but without success. Do you have an idea about how i can improve this result? 回答1: Eroding with subsequent dilation will distort the shape of your triangles. You can use

Detect a frame with squares in corners with OpenCV.js

自古美人都是妖i 提交于 2021-02-08 08:52:06
问题 I have been playing with creating a filled form scanner with Javascript and OpenCV.js. What I basically want to do is to take a photo of a piece of paper with a filled form on it and be able to scan the photo and analyze the answers in the form. The first step is to actually find the form in the picture and apply perspective transform to get the "top-down view" of the paper. What I have done is I managed to get the script to detect the piece of paper and apply the transform to get it nicely

OpenCV - Getting picture from default webcam in C/C++ - GTK Issues

﹥>﹥吖頭↗ 提交于 2021-02-08 08:51:13
问题 I have a simple GTK+ v3 GUI application, and I am making use of the OpenCV library so that I have a simple function for taking pictures from the one webcam connected to my computer. The code is included at the bottom of this post. I'm able to successfully acquire image data and render it on screen, but when I include this code in my GTK+ v3 project, I get a startup error like so: (result:2944): Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+3 in the same process is not

Select a static ROI on webcam video on python openCV

让人想犯罪 __ 提交于 2021-02-08 08:21:27
问题 I need to selec a ROI (region of interest), or work area, on a live video from my webcam and take a snapshot of ONLY this work area or ROI, but I can't found how to do this. In this page https://www.learnopencv.com/how-to-select-a-bounding-box-roi-in-opencv-cpp-python/ have a code for draw a ROI but only with images, not a live video. import cv2 cam = cv2.VideoCapture(0) cam.set(cv2.CAP_PROP_FRAME_WIDTH, 1280) cam.set(cv2.CAP_PROP_FRAME_HEIGHT, 720) cv2.namedWindow("test") img_counter = 0

Select a static ROI on webcam video on python openCV

萝らか妹 提交于 2021-02-08 08:21:21
问题 I need to selec a ROI (region of interest), or work area, on a live video from my webcam and take a snapshot of ONLY this work area or ROI, but I can't found how to do this. In this page https://www.learnopencv.com/how-to-select-a-bounding-box-roi-in-opencv-cpp-python/ have a code for draw a ROI but only with images, not a live video. import cv2 cam = cv2.VideoCapture(0) cam.set(cv2.CAP_PROP_FRAME_WIDTH, 1280) cam.set(cv2.CAP_PROP_FRAME_HEIGHT, 720) cv2.namedWindow("test") img_counter = 0