image-capture

Get/set video resolution when capturing image

纵然是瞬间 提交于 2019-12-07 02:30:42
I'm capturing images from my webcam with some code that mainly bases on this: Using the Sample Grabber . Here I only get the default resolution of 640x480 while the connected camera is able to show more (other capture applications show a bigger resolution). So, how can I: retrieve the list of available resolutions set one of these resolutions so that the captured image comes with it? Roman R. IAMStreamConfig interface lists capabilities and lets you select resolution of interest. enumerating media types on an unconnected yet pin will list you specific media types (amd resolutions) the camera

getUserMedia alternative for iOS

懵懂的女人 提交于 2019-12-06 14:12:30
问题 Does anyone know if there are any (near) future plans to enable getUserMedia for Safari on iOS? Secondarily, does anyone know of any work-arounds to access the camera from a standard mobile website on an iPhone? I saw a post that referenced: <input type="file" accept="image/*" capture="camera"> Can anyone confirm that this really works, and would I use this in lieu of getUserMedia, or would I do a browser/device detect first to determine if I should go the getUserMedia v. capture="camera"

Reading a file created by the media capture plugin in Cordova - Creating Thumbnails

╄→гoц情女王★ 提交于 2019-12-06 13:16:55
问题 Big picture here is that I'm trying to get a photo gallery working for a large number of photos. Currently I'm using the raw URL of the images as gallery thumbnails, which is incredibly slow and crashes older devices quickly. I'd like to create a thumbnail of each photo that is taken with my app's camera and store these either locally or on a backend database. However, I haven't found a good solution. I tried the thumbnailer plugin here but my build failed after installation. I think this

SDK for writing DVD's [closed]

无人久伴 提交于 2019-12-06 12:48:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I need to add DVD writing functionality to an application I'm working on. However it needs to be able to write out files that are being grabbed "live" from a camera, over a long period of time. I can't wait until all the files are captured before I start writing them to the DVD, I need to write them out in chunks

How can I capture an image in Android and have it show up in the gallery?

萝らか妹 提交于 2019-12-06 08:33:47
问题 I was capturing images before that were showing up in the gallery, but now they are not and I can't figure out why. Here is my code: ContentValues values = new ContentValues(); values.put(android.provider.MediaStore.Images.Media.IS_PRIVATE, false); String name = "ugc_" + String.valueOf(System.currentTimeMillis()); values.put(android.provider.MediaStore.Images.Media.TITLE, name); imageURI = getContentResolver().insert(android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); I've

What is the state of TWAIN on the Macintosh today?

我们两清 提交于 2019-12-06 05:10:55
问题 I'm currently working on a project where we want to interface with TWAIN scanners on both the PC (Windows) and the Macintosh. On Windows, we basically have everything squared away and the code works successfully with the vast majority of scanners. On Mac OS X, we also basically have everything working and with the main scanner we used to develop the application with works perfectly, but we're not having a ton of luck with other scanners. As a byproduct of development on this project, we have

python video capture loop

喜夏-厌秋 提交于 2019-12-06 02:48:49
I've written a simple script to continuously capture snapshots from my webcam. My only issue is the videocapture module doesn't always grab an image which in turn crashes the program. I think I could solve this by using an infinite loop but I'm not real certain how to go about it. Here's the script: from VideoCapture import Device import datetime def capt(): a = datetime.datetime.now().strftime("%Y%m%dT%H%M%S%ms") b = str(a) cam = Device(devnum=0) cam.setResolution(1280, 960) cam.saveSnapshot('%s.png' % (b)) for i in range(1, 100000): capt() Try to use cam.getImage instead of cam.saveSnapshot

Capture screenshot of a webpage and get Image (ASP.NET)

我的梦境 提交于 2019-12-06 02:19:11
问题 I'm doing complex html operations on images (drag & drop) and when I'm done, I need to take the screenshot of the page and get the taken image save it on server (virtual dir). So what I need is Image img = CaptureURL("www.a.com/b.aspx"); Does anyone know of a library that could help me do this? Thank you 回答1: One solution is to use the WebBrowser control and render the result on a bitmap. Here is the full solution, I think is simple and fast. http://pietschsoft.com/post/2008/07/c-generate

I'm received the output path that i can't access because It's custom content provider on android

家住魔仙堡 提交于 2019-12-05 03:43:06
问题 I'm received the output path(EXTRA_OUTPUT) that i can't access because It's custom content provider on android. My app is supporting the IMAGE_CAPTURE for other apps. but my app isn't works when I received the capture intent by the chrome browser. I had debugging and I found the invalid URI from intent by the Chrome browser. It's URI of custom content provider that I don't have access permission. I have to compress my bitmap to output path(EXTRA_OUTPUT) for retrun the result. but If i access

SDK for writing DVD's [closed]

寵の児 提交于 2019-12-04 22:01:48
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I need to add DVD writing functionality to an application I'm working on. However it needs to be able to write out files that are being grabbed "live" from a camera, over a long period of time. I can't wait until all the files are captured before I start writing them to the DVD, I need to write them out in chunks as I go along. I've looked at IMAPI v2 , but the main problems seems to be that you need to point it