image-capture

getUserMedia alternative for iOS

假如想象 提交于 2019-12-04 19:07:21
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" route? Well, I'm not sure what you want, but I saw this javascript code that works, I mean it takes the

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

女生的网名这么多〃 提交于 2019-12-04 19:05:22
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 only supports Cordova up to 2.9 and I'm using 3.3: https://github.com/maxbasmanov/PhoneGap_Thumbnailer

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

允我心安 提交于 2019-12-04 12:52:59
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 also tried: values.put(android.provider.MediaStore.Images.Media.IS_PRIVATE, 0); as well as leaving at

Saving an Image to Photos Folder In hololens App

流过昼夜 提交于 2019-12-04 12:01:43
I'm attempting to capture a photo inside my hololens app. It seems to be working but saving the image to an obscure place that I cant access or view. I want to save it to my pictures library Described here I think . Or where should i save the image so I can see it in my photos on the hololens. filePath = C:/Data/Users/JanikJoe/AppData/Local/Packages/HoloToolkit-Unity_pzq3xp76mxafg/LocalState\CapturedImage10.02831_n.jpg filePath2 = C:/Data/Users/DefaultAccount/AppData/Local/DevelopmentFiles/HoloToolkit-UnityVS.Debug_x86.janik/Data\CapturedImage10.02831_n.jpg using UnityEngine; using UnityEngine

What is the state of TWAIN on the Macintosh today?

人走茶凉 提交于 2019-12-04 09:49:32
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 a fair number of scanners from various manufacturers on-hand to test with. The results vary wildly: The

Video capture on Linux? [closed]

此生再无相见时 提交于 2019-12-04 06:29:24
We need to capture live video and display easily on Linux. We need a cheap card or USB device with a simple API. Anyone want to share some experience? Use the video4linux library. I've used it with a c++ program and was able to capture webcam frames within about an hour. (Very easy to use and setup) If you need to program, you're best off using GStreamer , a multimedia framework under Linux. Cheese, mentioned by jackbravo, is based on GStreamer, as is Flumotion , a streaming server I work on. Shannon Nelson As mentioned, Use dvgrab to capture from a Firewire interface from the camera, then use

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

狂风中的少年 提交于 2019-12-03 20:54:41
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 the uri. my app occurs the SecurityException. How can i write capure bitmap to this uri ? The chrome

Enable Safety assistance emergency mode

久未见 提交于 2019-12-03 06:42:33
Its a very interesting and new thing for me to implement and learn. There are some requirement of my application. For that I have searched a lot but couldn't find proper and valuable thing or links. So i am posting my question here. The functionality are : 1) In Samsung device there is Safety Assistance menu in which you can find Emergency Mode option. 2) Now while Emergency mode at that time I want to create a one or more primary contacts to Emergency Mode . So now while holds the home and volume buttons the emergency will be activated and notify by notification. 3) Now while the emergency

cordova: upload image not working after taking picture

前提是你 提交于 2019-12-02 20:17:49
问题 Iam working on a iOS App developed with Apache Cordova aka Phonegap. I'd like to upload photos in two steps: 1. Capture the photo and show the photo in small size 2. Upload the photo I need one button for taking the picture and one button to upload. My script doesn't work. Whats wrong? Here is my JavaScript file: var pictureSource; var destinationType; document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { pictureSource = navigator.camera.PictureSourceType;

cordova: upload image not working after taking picture

余生颓废 提交于 2019-12-02 09:10:10
Iam working on a iOS App developed with Apache Cordova aka Phonegap. I'd like to upload photos in two steps: 1. Capture the photo and show the photo in small size 2. Upload the photo I need one button for taking the picture and one button to upload. My script doesn't work. Whats wrong? Here is my JavaScript file: var pictureSource; var destinationType; document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { pictureSource = navigator.camera.PictureSourceType; destinationType = navigator.camera.DestinationType; } function clearCache() { navigator.camera.cleanup