Opencv 2.2.0 VS2010C++ webcam grey image only - visual-studio-2010

I'm trying to do a simple opencv project to track colour and testing out my webcam at home as the school is crowded whenever I have the time to do my project. However opencv is not correctly using my webcam.
This is an image of the codes I used and the result.
I really need any help I can get.. The webcam I have is this: http://www.logitech.com/en-us/product/hd-webcam-c525
Would really appreciate any help :)
Does having a 64 bit computer make any difference? Because opencv is 32bit

Try open other cam, may be you have some virtual web cams installed in system. To do this change argument of cvCaptureFromCam to something different from 0.

Related

How to get image data with DJI OSDK using DJI matrice 600 pro

I'm trying to do some image-processing using matrice 600pro(drone) with a jetson Xavier(mini computer) attached. A camera which has HDMI output function is attached to ronin-MX(gimbal) and data will be transmitted through SRW-60G(wireless video link using hdmi port). I thought using some functions in onboard sdk such like "/dji_sdk/main_camera_images (sensor_msgs/Image)"
(http://wiki.ros.org/dji_sdk)
can get image data easily, but I found that those functions are only available for M210 so I may cannot use these on my matrice 600pro.
Using a HDMI-USB converter may could solve this problem(make the camera-transmitter-receiver as a usb camera) but the converter is quite expensive and I'm not sure if there's better way to do this.
Any clue will be very helpful. Thank you!
as far as i know, osdk does not support video streaming for M600 series. The thing you can do is to use Ronnin gimbal with a 3rd party camera e.g ids/flir/matrixvision camera to direct connect to xavier. then based on this stream, do your processing.
If you need to stream the 3rd party video source down, its easier. Just use opencv imshow in full screen for current frame. This will output to desktop hdmi. Connect HDMI to the m600 video port. it will be stream down to your remote controller. THis is like a cheap version of the PSDK
Hope this will help you with your development work
Regards
Dr Yuan Shenghai

Alternatives to libvlc for receiving HTTP based MJPEG video (from Axis IP Camera)?

I need to display a video stream from AXIS IP camera, which is streaming MJPEG video in HTTP. I have tried working with libvlc, but it has some buffering issues. So please suggest the list of alternatives for the same.
System Config: Ubuntu 11.10 operating system running on ATOM based ATMEL tablet.
Thanks in advance
BK
PS: I read a bit about gstreamer, but not sure if it's an overkill here.
After some research, found the following alternatives (for C++ on Linux platform) to receive/display video from an IP camera:
libvlc - nice framework with good documentation; but has buffering issues
opencv - an overkill for the scenario; but otherwise a very good choice
gstreamer - an excellent framework to work with streams; but poor documentation (but consumes more CPU as compared to libvlc)
As of now, narrowed it to gstreamer and got some code working. Can share it, if someone is interested. Any more suggestions/alternatives are welcome.

System audio in Quartz Composer

I am building a music visualizer in Quartz Composer, and it works just fine. The problem is that the audio input is through a microphone, so any noise that I make while its running displays.
What I want it to do is take only the sound that is running digitally through the system. Not a line input, but whats running through the Mixer AU for output in the system. I haven't found any way to do this except for WireTap, but I don't want a demo and I can't currently afford the full version.
Thanks in advance.
Try Cycling 74's Soundflower to route audio between applications.
You might also want to check out Kineme AudioTools, which provides more analysis capability than QC's built-in Audio Input patch.

openCV mac OSX suggested webcam

Does anyone have a recommendation for a web cam to be used on a mac with opencv?
Thank you!
The internal webcam that comes with their laptop works quite well (rather high quality). You can also get Logitech Orbit (I personally have rather good experience with those).
While OpenCV will work with essentially any USB webcam, there is a great deal of variety in image quality. I have personally had excellent luck with the PS3 Eye Cam in Ubuntu after removing the casing. Even though it is only $25-50, it can run up to 125 Hz and is less susceptible to motion blur. I am not sure how the open source Mac OS X drivers compare to the Linux drivers, but it is worth consideration.

Exposure Lock in iSight

I am creating object-detection program on Mac.
I want to use iSight in manual exposure mode to improve detection quality.
I tried iGlasses & QTKit Capture to do that and it worked but program runs very slowly and unstable.
So I want to try other solution.
In PhotoBooth.app, iSight seemed to be run in fixed exposure mode so there might be a way to do that.
I read QTKit Capture documents and OpenCV documents but I couldn't find the answer.
If you have any ideas, please tell me.
Thank you.
QTKit Capture, as easy as it is to use, lacks the ability to set manual camera parameters like gain, brightness, focus, etc. If you were using a Firewire camera, I'd suggest looking into the libdc1394 library, which gives you control over all these values and more if you're using an IIDC Firewire camera (like the old external iSight). I use this library for video capture from, and control of, CCD cameras on a robotics platform.
However, I'm guessing that you're interested in the internal iSight camera, which is USB. Wil Shipley briefly mentions control of parameters on internal USB iSights in his post "Frozen in Carbonite", but most of the Carbon code he lays out controls those values in IIDC Firewire cameras.
Unfortunately, according to this message in the QuickTime mailing list by Brad Ford, it sounds like you can't programmatically control anything but saturation and sharpness on builtin iSights through the exposed interfaces. He speculates that iGlasses is post-processing the image in software, which is something you could do using Core Image filters.
I finally managed to lock my iSight's autoexposure/autowhitebalance from my Cocoa App.
Check out www.paranoid-media.de/blog for more info.
Hmmm,
I tried & googled a lot these days but I couldn't find a good idea.
I think OpenCV + cocoa + iGlasses is the fastest one but still unstable.
If you have good idea, please reply.
Thank you.
The UVC Camera Control for Mac OSX by phoboslab uses basic USB commands and documented USB interfaces to access the webcam controls. The paranoid-media.de/blog listed above links to PhobosLab and provides a few additional tweaks to that method for the iSight. (Those tweaks can now also be found in the comments at phoboslab.

Resources