Questions tagged [capture]

capture is the process of converting a set of pixels on a screen into a bitmap image stored in memory

1457 questions
12
votes
3 answers

Capturing speaker output in Java

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++?
dbotha
  • 1,501
  • 4
  • 20
  • 38
12
votes
2 answers

Capture any kind of keystrokes (aka keylogger), preferably c# .net but any kind will do

I need to capture everything that I type on my keyboard and then store it in numerous ways. I'd prefer it to be written in C# for .Net, but anything will do really. My reasons to write this "keylogger" are simple: Recently I became an owner of a…
Istrebitel
  • 533
  • 3
  • 6
  • 8
12
votes
4 answers

android camera2 handle zoom

I'm new in Android Camera2 API. I just move my all project to the new Camera2 API. I have used the Camera2Basic example as a starting point. I'm now trying handle zoom by adding this: public boolean onTouchEvent(MotionEvent event) { try { …
Eli Elezra
  • 525
  • 2
  • 4
  • 18
12
votes
2 answers

capturing images with MediaStore.ACTION_IMAGE_CAPTURE intent in android

I am capturing images using MediaStore.ACTION_IMAGE_CAPTURE intent. it is working fine in most of the devices. but it is not working correctly in some latest android device as expected. my intention is capture image using camera and send it to the…
sathish
  • 1,375
  • 6
  • 17
  • 31
11
votes
3 answers

How to capture HTTP(S) traffic from and to a Java web application with Fiddler2 or similar tool?

I want to capture data that my web application sends and receives from a CAS server via HTTPS. I tried using Fiddler2, but couldn't make it capture traffic from Java web application. It seems I need to configure it to use Fiddler2 as a proxy. How do…
Infeligo
  • 11,715
  • 8
  • 38
  • 50
11
votes
1 answer

Windows Phone 8.1 Media Capture Orientation C#

I'm converting an app to use the new Media Capture api in Windows Phone 8.1. When I capture a photo using mediaCaptureManager.CapturePhotoToStorageFileAsync the file is saved and the photo orientation is landscape left as expected. Now, when I…
user3734728
  • 131
  • 5
11
votes
5 answers

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

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…
user2192424
  • 113
  • 1
  • 1
  • 4
11
votes
2 answers

Which /dev/... (devices) are the microphone and speaker in Mac OS X?

I have a MacBook Alluminium and I want to capture the microphone in a RAW format and output a RAW audio through the speakers, in a standard way, i.e., using the terminal with standard Unix commands and using the standard /dev/??? devices. So, the…
axelbrz
  • 783
  • 1
  • 7
  • 16
11
votes
1 answer

Python regular expression question mark operator not working?

import re str='abc defg' m1 = re.match(".*(def)?",str) m2 = re.match(".*(def)",str) print (m1.group(1),m2.group(1)) The output of the above is: (None, 'def') What is going on? Even with a non-greedy repetition operator, the optional capture group…
ealfonso
  • 6,622
  • 5
  • 39
  • 67
11
votes
3 answers

How can I capture mouse events that occur outside of a (WPF) window?

I have a Window element that has WindowStyle="None" and AllowsTransparency="True", therefore it has no title bar and supports transparency. I want the user to be able to move the Window to any position on the screen by left-clicking anywhere within…
Jackson Dean Goodwin
  • 617
  • 3
  • 11
  • 20
11
votes
2 answers

Capture output from git command?

I am writing a script to automate setting up new projects for me. this includes pulling down a github repository. What I want to do is have some output from my script, then call git clone $repo I want to show the output from that command while it is…
Hailwood
  • 89,623
  • 107
  • 270
  • 423
11
votes
2 answers

Detect HTML5 Media Capture API Support

Is there a way to detect whether a browser supports the HTML5 Media Capture API for a mobile website I'm building? I can only seem to find solutions for detecting getUserMedia() support. I would like to be able to present mobile users one of two…
edcs
  • 3,847
  • 2
  • 33
  • 56
11
votes
2 answers

Mouse Move not trigger outside WPF Main Window

I want to get mouse position relative to screen coordinates. I am using the following code to do that. window.PointToScreen(Mouse.GetPosition(window)); It is working as expected. But my MouseMove event not firing outside the MainWindow. That is if…
WPF Lover
  • 299
  • 6
  • 16
11
votes
1 answer

Invoking Func passed as a parameter to a mock using Moq and C#

I have a mocked method that looks like this: class NotMineClass { T Execute(Func operation) { // do something return operation(); } } In my code, I do such as: public MyType MyMethod() { MyType object = new MyType(); bool…
Luís Guilherme
  • 2,620
  • 6
  • 26
  • 41
10
votes
3 answers

Count the capture groups in a qr regex?

I am working on a project which at one point gets a list of files from an ftp server. At that point it either returns an arrayref of files OR if an optional regex reference (i.e. qr), is passed it filters the list down using grep. Further if that qr…
Joel Berger
  • 20,180
  • 5
  • 49
  • 104