video-capture

How to detect motion between two PIL images? (wxPython webcam integration example included)

久未见 提交于 2019-12-18 10:29:47
问题 Does anyone have any suggestions as to how I might do image comparison in python to detect changes within an image? I'm currently working on an app that will monitor my area with my webcam, I would like to figure out how to compare the images taken each frame to see if any motion has been detected. In the long run I would like to setup a sensitivity slider so if you are able to guide me in the direction I'm sure I can figure the rest out. As I have seen a few posts on here asking about

How to open cv::VideoWriter in Android

时光怂恿深爱的人放手 提交于 2019-12-18 04:26:08
问题 I'm using OpenCV 2.4.8 in Android using JNI. I opening the camera with VideoCapture and I want to record it. I have the image in a cv::Mat, it appear in the screen correctly. But, when I try to open VideoCapture, it returns false always. // Camera resolution is 640x480 and its fine. _camera_resolution = calc_optimal_camera_resolution(u.name, 640, 480); // Store in sdcard, I have permission in AndroidManifest.xml const char * videoName = "/sdcard/videoTest.avi"; // Segmentation fault 11! this

How can i record the Android device screen? [closed]

走远了吗. 提交于 2019-12-18 03:42:03
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I want to create an application that will enable the users to Capture Screen of their Android device. like any screen recorder software we used in pc please help me out Edit : 1 here Screen capture refers to Screen recording of device screen as video not snapshots of screen. 回答1:

How can i record the Android device screen? [closed]

﹥>﹥吖頭↗ 提交于 2019-12-18 03:41:20
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I want to create an application that will enable the users to Capture Screen of their Android device. like any screen recorder software we used in pc please help me out Edit : 1 here Screen capture refers to Screen recording of device screen as video not snapshots of screen. 回答1:

audio and video recording errors in android

别来无恙 提交于 2019-12-18 03:38:49
问题 I need to record audio and video files to the 3gp/mp4 format in the same file and at the same time. When I run, my application file is created with videofile.3gp but the video does not record to the SD card on the emulator. Does video record on the emulator? If I run this code on an android supported device will I see these errors? Code and errors below: package com.video; /* * * @copy Rights * audio.java * sample code for Eminosoft Developerworks Article * Android developent Team * www

How to create a BitmapImage from a pixel byte array (live video display)

北战南征 提交于 2019-12-17 17:46:26
问题 I need to display live images on a WPF control. I'm looking for the fastest way to do this using WPF. I'm capturing images from a camera using its dll API (AVT). The image is writen by the dll and the camera rises a callback with an IntPtr to a Image struct called tFrame (described below). The pixel data is stored at the ImageBuffer propertie with is an InPtr to a byte array. I know how to create a Bitmap from the pixel byte array, but not a BitmapImage. So it is possible to create a Bitmap

How to capture video in Android?

南楼画角 提交于 2019-12-17 17:33:16
问题 I would like to create a video recorder and so far haven't figured out how to set parameters in order to successfully go through MediaRecorder.prepare() method. Executing the following method public void start() throws IOException{ String state = android.os.Environment.getExternalStorageState(); if(!state.equals(Environment.MEDIA_MOUNTED)) { throw new IOException("SD card is not mounted. It is " + state + "."); } File directory = new File(path).getParentFile(); if(!directory.exists() &&

VerifiyAndSetParameter error when trying to record video

百般思念 提交于 2019-12-17 16:54:29
问题 I've been trying to create an app that records and uploads a video to a S3 bucket. I've been using (with a little altering) the Android capture video intent article. but when the recording is over, I get a list of errors. (I'm using a Galaxy S2 phone so it's supported). Code for CameraActivity: Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); fileUri = SavingMedia .getOutputMediaFileUri(SavingMedia.MEDIA_TYPE_VIDEO); path = fileUri.toString(); intent.putExtra(MediaStore.EXTRA

MediaRecorder.stop() stop failed: -1007

二次信任 提交于 2019-12-17 15:47:32
问题 I am recording video with MediaRecorder. My code works fine on 2.3.3 but fails on 4.0.3. The issue is following: the code mediaRecorder.stop() throws the RuntimeExeption java.lang.RuntimeException: stop failed. at android.media.MediaRecorder.stop(Native Method) with LogCat message 04-05 15:10:51.815: E/MediaRecorder(15709): stop failed: -1007 UPDATE I've found, that MediaPlayer reports an error (via MediaPlayer.OnErrorListener) almost immediately after the start. Error code is 100 (media

grab frame NTSCtoUSB dongle, opencv2, python wrapper

我只是一个虾纸丫 提交于 2019-12-17 09:48:29
问题 Context: I have been playing around with python's wrapper for opencv2. I wanted to play with a few ideas and use a wide angle camera similar to 'rear view' cameras in cars. I got one from a scrapped crash car (its got 4 wires) I took an educated guess from the wires color codding, connect it up so that I power the power and ground line from a usb type A and feed the NTSC composite+ composite- from an RCA connector. I bought a NTSC to usb converter like this one. It came with drivers and some