image-capture

Getting FileNotFoundException while capturing photo from Camera

谁都会走 提交于 2019-12-25 02:46:09
问题 I am using FileProvider.getUriForFile with given provider_paths.xml file. I am doing something wrong which I am not getting. <?xml version="1.0" encoding="utf-8"?> <paths xmlns:android="http://schemas.android.com/apk/res/android"> <external-path name="StrengGeheim" path="."/> </paths> This I added in my AndroidManifest.xml inside tag: <provider android:name="android.support.v4.content.FileProvider" android:authorities="${applicationId}.provider" android:exported="false" android

iPhone: 5 seconds video capture

我们两清 提交于 2019-12-24 01:44:56
问题 I would like to write code so that when the user presses a button, the camera is launched and records 5 seconds of video. In other words I want to have video capture but with a time limit. Is there something inside the UIImagePickerController or other parts of the framework that would allow doing this? Thank you. 回答1: There is nothing that allows you to directly do this. But you can very easily use UIImagePickerController's startVideoCapture to begin the capture and then call stopVideoCapture

Screen Capture program in VB.NET

前提是你 提交于 2019-12-20 05:14:36
问题 I had created an application that captures the screenshot of desktop screen. It works very well with button I have used in form. But now I want to make that thing works automatically using timers but whenever I try to run program NullReferenceException occur can any one tell me whats going wrong here. TimerCapture interval=5 TimerSave interval=6 Here is the code can tell you the scenario: Public Class Form1 Private Sub timerCapture_Tick(ByVal sender As System.Object, ByVal e As System

Screen Capture program in VB.NET

只愿长相守 提交于 2019-12-20 05:14:07
问题 I had created an application that captures the screenshot of desktop screen. It works very well with button I have used in form. But now I want to make that thing works automatically using timers but whenever I try to run program NullReferenceException occur can any one tell me whats going wrong here. TimerCapture interval=5 TimerSave interval=6 Here is the code can tell you the scenario: Public Class Form1 Private Sub timerCapture_Tick(ByVal sender As System.Object, ByVal e As System

DirectShow USB webcam changing video source

时光总嘲笑我的痴心妄想 提交于 2019-12-20 03:06:26
问题 Hey all i am trying to find the setting to change my video source to "composite" on my webcam. Seems that if i unplug the USB and then plug it back in and fire up the code, its just got a blank screen. But once i change the video source (in another program) and then go back and run my code again, it shows up. So i need something that will allow me to change that in order for that same thing to happen but within my own app without having to start another program that has that feature to set

captureStillImageAsynchronouslyFromConnection without JPG intermediary

我与影子孤独终老i 提交于 2019-12-19 03:07:23
问题 I'm trying to get as good an image as possible from the camera, but can only find examples that captureStillImageAsynchronouslyFromConnection and then go straight to: NSData *imageData = [AVCaptureStillImageOutput jpegStillImageNSDataRepresentation:imageSampleBuffer]; UIImage *image = [[UIImage alloc] initWithData:imageData]; JPEG being lossy and all, is there any way to get the data as PNG, or even just RGBA (BGRA, what-have-you?). AVCaptureStillImageOutput doesn't seem to have any other

How to capture a photo from the camera without intent

China☆狼群 提交于 2019-12-19 02:32:16
问题 I want my app to be able to capture photos without using another application. The code i used : Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); File photo = null; try { photo = this.createTemporaryFile("picture", ".jpg"); photo.delete(); } catch(Exception e) { Toast.makeText(getApplicationContext(),"Error",Toast.LENGTH_LONG).show(); } mImageUri = Uri.fromFile(photo); intent.putExtra(MediaStore.EXTRA_OUTPUT, mImageUri); startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST

How can I programmatically create a screen shot of a given Web site?

a 夏天 提交于 2019-12-18 11:11:37
问题 I want to be able to create a screen shot of a given Web site, but the Web site may be larger than can be viewed on the screen. Is there a way I can do this? Goal is to do this with .NET in C# in a WinForms application. 回答1: There are a few tools. The thing is, you need to render it in some given program, and take a snapshot of it. I don't know about .NET but here are some tools to look at. KHTML2PNG imagegrabwindow() (Windows PHP Only) Create screenshots of a web page using Python and

How can I programmatically create a screen shot of a given Web site?

那年仲夏 提交于 2019-12-18 11:11:03
问题 I want to be able to create a screen shot of a given Web site, but the Web site may be larger than can be viewed on the screen. Is there a way I can do this? Goal is to do this with .NET in C# in a WinForms application. 回答1: There are a few tools. The thing is, you need to render it in some given program, and take a snapshot of it. I don't know about .NET but here are some tools to look at. KHTML2PNG imagegrabwindow() (Windows PHP Only) Create screenshots of a web page using Python and

How to take a screenshot from an video playing through MPMediaPlayerController in iPhone?

非 Y 不嫁゛ 提交于 2019-12-18 03:43:43
问题 Can anybody help me in this? I want to get an screenshot from an video playing through MPMediaPlayerController. What i have tried so far is:- -(void)viewDidLoad { NSURL *tempFilePathURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"LMFao" ofType:@"mp4"]]; player = [[MPMoviePlayerController alloc] initWithContentURL:tempFilePathURL]; [player setControlStyle:MPMovieControlStyleFullscreen]; //Place it in subview, else it won’t work player.view.frame = CGRectMake(0, 0, 320,