Recording video with ASUS Xtion using python - python

I have an ASUS Xtion 3D Sensor Camera. I want to record video with this camera by using python.
I have tried opencv using this tutorial; http://docs.opencv.org/2.4/doc/user_guide/ug_kinect.html, but it seems that there is no video recording by using OpenNI API through OpenCV. It only shows that how to grab frames, but that is not video recording.
How can I manage to make a video recording with this camera in python?
Thanks,

You can use Recorder class to capture data into ONI file.
http://www.openni.ru/wp-content/doxygen/html/classopenni_1_1_recorder.html
Then you can convert ONI into avi format https://github.com/KirillLykov/oni2avi

Related

How to select a different webcam using cv2 in python

I am trying to stream live video from an external camera using cv2. I was able to write the simple code to stitch the frames and stream it. But am struggling to find how to change the camera.
I tried to run it after disabling the main webcam from the task manager, but it still did not work.
So, if anyone can help me with some clue regarding the same, that would be a great help.
Cameras are numbered for Windows. You can try a few indeces and check which camera index belongs to the camera you want.
capture = cv2.VideoCapture(index)

Set Frame for the Explorer Preview in Windows for a self written Video

I am writing a Webcam Videostream to a *.mp4 File(cv2.videowriter). In the first Frames it shows some Informations with cv2.putText on a black Recktangle .
I would like to see these Frames as the Thumbnail in the Windows Explorer.
At the Moment the Thumbnail/Preview Image is somehow set after that Information Frames.
How can I set this Thumbnail/Preview Image to the first Frame while writing?
It would be nice, if it could work without ffmpeg.
Greetings
Chorum

Python webcam live edit on MS Teams

Say if I am in a meeting on Microsoft Teams with my web camera ON, is it possible to live edit the webcam input in Python and then show it as an output to the other meeting members as my webcam video? Is it possible to do this in OpenCV?
I know that the webcam video can be edited with OpenCV, but how do I show the edit as my webcam output live on the MS Teams meeting?
Thank you.

opencv video output to videoconferencing tools (zoom etc)

Been using opencv (mostly with python) for video capture/processing (Win10/Linux). Is there a way to create an output video stream that would appear as a valid source (like another camera) in videoconferencing software like zoom, skype, etc ? For now I just share the imshow() window, but it is slow/ineffective.

OpenCV+Python: Firewire Cams not supported on Windows XP?

I'm trying to capture frames from a Firewire Cam (Firefyl MV) using OpenCV 2.3.1 and Python 2.7 on Windows XP.
My example finds the Camera when i use
capture = cv.CaptureFromCAM(-1)
but i cant capture the frames with
frame = cv.QueryFrame(capture)
Here http://opencv.willowgarage.com/documentation/python/highgui_reading_and_writing_images_and_video.html#capturefromcam they write:
Currently two camera interfaces can be used on Windows: Video for Windows (VFW) and Matrox Imaging Library (MIL); and two on Linux: V4L and FireWire (IEEE1394).
So is it not possible to use a Firewire Cam with OpenCV+Python on WinXP? Is there any simple workaround?
Only if the firewire camera maker included a VFW driver.
It's also possible to grab data from a DirectShow filter which the camera maker might provide instead

Categories

Resources