capture

Opencv Error on Ubuntu Webcam (Logitech C270) Capture -> HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP

谁都会走 提交于 2020-01-12 04:58:05
问题 this erorr message appears on running simple camera capture on Ubuntu with logitech C270 (OpenCV 2.4.2/C++): HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP and further: Corrupt JPEG data: 2 extraneous bytes before marker 0xd1 Corrupt JPEG data: 1 extraneous bytes before marker 0xd6 Corrupt JPEG data: 1 extraneous bytes before marker 0xd0 Corrupt JPEG data: 1 extraneous bytes before marker 0xd0 I get frames but the values of frame width and height swapped when writing to a Mat object see below: Mat

using GetFrontBufferData(), & place screenshot in separate device backbuffer

懵懂的女人 提交于 2020-01-06 09:02:53
问题 Ok, so for anyone who's used it much - this should be a SUPER easy question. I was just searching online for a way to use DirectX/Direct3D to take faster screenshots, and everyone was talking about GetFrontBufferData() and how wonderful it was. I've pounded at it for a while but am starting to think they're using the term "screenshot" incorrectly... My call succeeds, but I never get a "screenshot". So the question is , can you actually use GetFrontBufferData() to make a REAL screenshot of the

Capturing Specific Areas of GLSurfaceView

一笑奈何 提交于 2020-01-06 08:14:36
问题 I want to take a screenshot of the area 50 to 50 miles away from the touch on the GLSurfaceView drawn in real time. To be precise, If the coordinates of the touched area are X = 50, Y = 50, I want to capture the area inside the rectangle whose size is (X-50, Y-50), (X + 50, Y + 50). @Override public void onDrawFrame(GL10 unused) { render(); if (!mInitialized) { // Only need to do this once mEffectContext = EffectContext.createWithCurrentGlContext(); mInitialized = true; } if (saveFrame) {

Screenshot while using the camera (Android)

做~自己de王妃 提交于 2020-01-06 05:53:25
问题 I'm trying to make a snapshot of my app. The problem I have is that this app is intented to be a augmented reality app and I have a view with some layers and the background layer is the camera view. I tried it by enabling and getting root view drawing cache but the result was a bitmap with a black background and the rest of the layers on it. Also, to get the camera os a background again I had to disable the cache and restart the camera. (i.e. How to programmatically take a screenshot in

Screenshot while using the camera (Android)

房东的猫 提交于 2020-01-06 05:53:08
问题 I'm trying to make a snapshot of my app. The problem I have is that this app is intented to be a augmented reality app and I have a view with some layers and the background layer is the camera view. I tried it by enabling and getting root view drawing cache but the result was a bitmap with a black background and the rest of the layers on it. Also, to get the camera os a background again I had to disable the cache and restart the camera. (i.e. How to programmatically take a screenshot in

Capturing speaker output in Java

断了今生、忘了曾经 提交于 2020-01-06 01:54:32
问题 Using Java is it possible to capture the speaker output? This output is not being generated by my program but rather by other running applications. Can this be done with Java or will I need to resort to C/C++? 回答1: I had a Java based app. that used Java Sound to tap into the sound flowing through the system to make a trace of it. It worked well on my own (Windows based) machine, but failed completely on some others. It was determined that in order to get it working on those machines, would

How save photo capture windows 8 c# metro app?

时间秒杀一切 提交于 2020-01-05 07:49:46
问题 I looked everywhere but can't find how save my photo after I captured it. I use windows 8 media capture, and after I capture it, I show it on my page. But don't know how to save it to a particular place. This is how I take the photo, pretty classic: private async void Camera_Clicked(object sender, TappedRoutedEventArgs e) { TurnOffPanels(); CameraCaptureUI camera = new CameraCaptureUI(); camera.PhotoSettings.CroppedAspectRatio = new Size(16, 9); StorageFile photo = await camera

How save photo capture windows 8 c# metro app?

自古美人都是妖i 提交于 2020-01-05 07:49:13
问题 I looked everywhere but can't find how save my photo after I captured it. I use windows 8 media capture, and after I capture it, I show it on my page. But don't know how to save it to a particular place. This is how I take the photo, pretty classic: private async void Camera_Clicked(object sender, TappedRoutedEventArgs e) { TurnOffPanels(); CameraCaptureUI camera = new CameraCaptureUI(); camera.PhotoSettings.CroppedAspectRatio = new Size(16, 9); StorageFile photo = await camera

How to capture and display output from a task via Windows CMD

安稳与你 提交于 2020-01-05 05:44:05
问题 I've got a PHP script which I'm running from a command line (windows) that performs a variety of tasks, and the only output it gives is via 'print' statements which output direct to screen. What I want to do is capture this to a log file as well. I know I can do: php-cli script.php > log.txt But the problem with this approach is that all the output is written to the log file, but I can't see how things are running in the mean time (so I can stop the process if anything dodgy is happening).

Intent Image Capture data==null

99封情书 提交于 2020-01-04 11:03:23
问题 I have this code, and it works perfectly in an Ericsson XPERIA, but when I test the app in a SAMSUNG ACE, appears the error : data=null String file=Environment.getExternalStorageDirectory().getAbsolutePath()+ "/picture.jpg"; Intent i=new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); Uri output = Uri.fromFile(new File(archivo)); i.putExtra(MediaStore.EXTRA_OUTPUT, output); startActivityForResult(i,CAMERA_REQUEST); OnActivity Result if (requestCode==CAMERA_REQUEST && resultCode=