Ask Your Question

Graf's profile - activity

2018-04-05 13:41:57 -0600 commented question matchTemplate unsatisfying results (OpenCV 3.4.1/C++)

Thank you for your comment. I did look into aruco markers yesterday but they look like overkill for my little project. I

2018-04-05 13:32:14 -0600 edited question matchTemplate unsatisfying results (OpenCV 3.4.1/C++)

matchTemplate unsatisfying results (OpenCV 3.4.1/C++) Hey guys! I try to find two markers (kinda like ) on a white peac

2018-04-05 13:29:02 -0600 asked a question matchTemplate unsatisfying results (OpenCV 3.4.1/C++)

matchTemplate unsatisfying results (OpenCV 3.4.1/C++) Hey guys! I try to find two markers (kinda like https://www.judge

2017-05-12 08:52:06 -0600 received badge  Famous Question (source)
2016-07-13 16:39:22 -0600 received badge  Notable Question (source)
2016-03-07 22:01:16 -0600 received badge  Popular Question (source)
2015-03-11 15:00:23 -0600 answered a question VideoCapture & Python returns False trying to read a video file

Thank you, works perfectly! :)

2015-03-11 15:00:05 -0600 received badge  Scholar (source)
2015-03-11 14:44:25 -0600 asked a question OpenCV + Python webcam cap.set not working

Im using a MS LifeCam HD (1920x1080, 30fps) to capture. But i am unable to set a custom resolution. I did try a Logitech webcam and the internal cam on my laptop, so far without luck. The MS Lifecam is stuck at 640x480.

cap = cv2.VideoCapture(0) cap.set(cv2.cv.CV_CAP_PROP_FRAME_WIDTH, 1920.0) cap.set(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT, 1080.0)

Is not working for me.

print str(cap.get(cv2.cv.CV_CAP_PROP_FRAME_WIDTH)) print str(cap.get(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT))

does show the current (default) resolution (640x480) but cap.set is total ignored.

cap.set(cv2.cv.CV_CAP_PROP_FRAME_WIDTH, 1920) cap.set(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT, 1080)

Also not working, same as:

cap.set(3, 1920.0) cap.set(4, 1080.0)

or

cap.set(3, 1920) cap.set(4, 1080)

So far i'm unable to set any params using cap.set on two computers and 3 cams. But i can print the current settings. Is this a know problem on Windows? Any chance to fix it?

My System: Windows 8.1 (64bit), Python 2.7 (x86), OpenCV 2.4.10

2015-02-26 06:16:14 -0600 received badge  Student (source)
2015-02-04 16:06:35 -0600 commented question Use a camera to detect an object and mark it in the real world with a beamer

I updated my question and added 2 images. First is a raster made with pygame and second is a picture taken by the Raspberry PI NoIR cam.

I was thinking if it may be possible to mask, cut and resize the camera picture and the raster using OpenCV. Since i know the raster is 1280x800, i just have to find a way to match it. Is it possible to tilt and resize it so i can use this way to get what i want? It may even use less cpu resources, maybe...

2015-02-04 16:00:24 -0600 received badge  Editor (source)
2015-02-03 03:46:25 -0600 asked a question VideoCapture & Python returns False trying to read a video file

When i try to read some video files using VideoCapture, i only get False in return. I did try it on my Pi and Windows 8.1, using OpenCV 2.4.10 on both systems. Python 2.7.3 (Raspberry PI) and 2.7.5 on Windows. So far all needed codecs are installed, on the Pi ffmpeg. ffmpeg Works on the Pi. Did also try to read a mpg video using pygame and it works. I can successfully read images or directly from webcams but so far no videos from a file and i did try a lot of codecs so far.

Did try to run Python in verbose and also did try to find some logs who may help me find my mistake. So far without any luck.

2015-01-30 12:30:22 -0600 commented answer Use a camera to detect an object and mark it in the real world with a beamer

There is no way i can align the camera perfect. Even if i could succeed in this impossible task, i will never be able to move the camera or the projector/beamer again, not even for a tiny bit.

2015-01-30 05:52:55 -0600 asked a question Use a camera to detect an object and mark it in the real world with a beamer

Hey guys!

I try my luck to find out if the task in my head is actual (for me) possible to accomplish.

Using my OpenCV + Raspberry Pi + Camera Modul to detect an object. So far so good. Now i want to use my little LED Beamer to display a circle around the object. In the real world i will not be able to place my camera in a perfect position to the "play field".

Is it possible to calculate the difference from the real world to the internal resolution/ picture (1280x800)?

Thanks!

image description image description