DSLR Canon Videocapture in OpenCV - opencv

I need to capture frame from a DSLR camera. I know that i can use
Videocapture cap(0);
for capture from default webcam. If i connect with usb the camera and run the code, It seems like he cant find the camera.
What should i do for capture from the DSLR?

In general, I have found getting OpenCV to work with anything besides a basic webcam almost impossible. In theory, I think it uses the UVC driver, but I have had almost 0 luck getting it to read. One thing you can try is using VLC and see if you can capture a video stream from your camera with it. If you can you might get lucky and figure which camera or video device the DSLR actually is.
If your DSLR has a development SDK maybe you can capture frame using their interface and then use OpenCV for processing. I do this for a project. I have a 3rd party SDK that I use to find and control the camera and them I move the video data into OpenCV (EmguCV) for processing.
Doug

Related

How to convert ARCore frames to WebRTC frames

I'm making a video call android app with augmented face effects using ARCore and WebRTC.
However, the frame structure of WebRTC and ARCore is different.
So I use PixcelCopy to convert ARCore frames to Bitmap and then convert them to WebRTC frames.
However, the audio and video are out of sync with this method.
Is there any other way?
Any advice would be of great help to me
thanks

How to change vuforia video source with a custom camera

I would like change source camera video by custom camera stream using Vuforia and Unity:
Take the video stream from the camera (Android cam or Webcam)
Improve contrast, brightness or other manually (for example through openCV) and add elements or another pattern that could be optimally recognized by Vuforia.
Resend the modified video stream in Unity 3D and have it detected by Vuforia
It is possible ?
Is there another mode ?
As far as I know, this is not possible. Vuforia takes its input directly from the camera and processes it - the maximum you can do is alter some of the camera settings (if you want to explore that, read about the Vuforia advanced camera API), but this is not enough for you according to your requirements.
Your only option if you must do processing on the input video is to handle the detection and tracking yourself without Vuforia (for example, using OpenCV), which is obviously not so easy...
You can use any software for faking the camera like http://perfectfakewebcam.com/.
just prepare your video and feed it to the fake webcam software and then from unity change vuforia camera device to the fake webcam

Can i use Xtion Pro Live outdoors

I am working with Xtion Pro Live on Ubuntu 12.04 with Opencv 2.4.10. I want to do object recognition on daylight.
So far i have achieved object recognition indoors by producing a depth and a disparity map. When i go outdoors the maps that i mentioned above are black and i cannot perform object recognition.
I would like to ask you if Asus Xtion Pro Live can work outdoors.
If it cannot, is there a way to fix it (through code) in order to do object detection outdoors?
I have searched around and i found out that i should take another stereoscopic camera. Could anyone help?
After some research I discovered that the Xtion Pro Live stereoscopic camera, can not be used outdoors because of the IR sensor. This sensor is responsible for the production of depth map and is affected by sunlight. Because of this, there are no clear results. Without clear results the creation of depth and disparity map (with the proper values) is impossible.

hand detection in c using opencv capturing video from kinect device

I am working on a project in which I have to detect the hand in a video. Kinect is being used to capture the video. I have already tried skin segmentation using hsv colour scheme. It works well when I get the video from cam of my laptop but does not work with Kinect. I have also tried colour segmentation and thresholding but it is also not working well. I am using opencv in c. I will be grateful if someone can give any type of suggestions or steps to detect the hand.
You can use OpenNI to obtain a skeleton of the person which robustly tracks the hand in your video. E.g. http://www.youtube.com/watch?v=pZfJn-h5h2k

Feed from Analog Camera

Can I take the image feed from Analog Camera using OpenCV, in a similar manner as it is done using the Digital Camera?
As-In the concept of FPS, does that work similarly with the Analog Camera's?
Thank You.
You would typically connect a CCTV camera to a capture board and then process as normal. Example cards can be found on the ZoneMinder site, software for video surveillance.
http://www.zoneminder.com/shop.html
One option I used in the past is a Video to USB Converter. I used this one. I used it on Windows, but it might support also other platforms.
I didn't try it, but the camera interface should work directly with the OpenCV capture functionality.
Analog cameras have a fixed FPS. If I am not mistaken it is different for PAL and NTSC, try searching for it.

Resources