image-capture

Convert Color32 array to byte array to send over network

陌路散爱 提交于 2019-12-11 02:29:10
问题 I have been working on webcam streaming for video and photo capture on Android devices within Unity3D. Most of the examples I have found in order to capture webcam feeds use a specific WebCamTexture object in order to get access to the devices camera hardware. I currently am able to capture the camera input but the WebCamTexture stores the data as a Color32[]. I found this solution below for converting a Color32[] to a byte[] but it seems to be swapping the red and blue color channels. https:

Upload Picture Form Fails On Mobile Chrome

拟墨画扇 提交于 2019-12-10 17:16:08
问题 I'm building a mobile webapp, in which pictures from the user's phone play a significant part. I've got this form, in which a user can upload a picture taken from his mobile phone into the app's DB. I'm using CodeIgniter's upload class in order to do the actual uploading. <form enctype="multipart/form-data" action="myapp/do_upload" method="post" accept-charset="utf-8"> <input type="file" accept="image/*" capture="camera" name="userfile"></input> <input type="submit" value="Submit" class="btn

converting webpage into jpeg image using java

◇◆丶佛笑我妖孽 提交于 2019-12-10 14:19:00
问题 I am building a web application, in Java, where i want the whole screenshot of the webpage, if i give the URL of the webpage as input. The basic idea i have is to capture the display buffer of the rendering component..I have no idea of how to do it.. plz help.. 回答1: There's a little trick I used for this app: count down demo app http://img580.imageshack.us/img580/742/capturadepantalla201004wd.png Java application featuring blog.stackoverflow.com page ( click on image to see the demo video )

Saving an Image to Photos Folder In hololens App

大憨熊 提交于 2019-12-09 19:12:39
问题 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

Is there any way other than thumbnail method to take a screenshot of an video in Iphone?

放肆的年华 提交于 2019-12-09 08:50:49
问题 Is there any way other than thumbnail method to take a screenshot of an video? If yes then please tell me if not then please tell me how to resize an thumbnail image with a same resolution? i have getting an issue while taking screenshot of video.i have used this:- How to take a screenshot from an video playing through MPMediaPlayerController in iPhone? After this i ve used merging of an image by which i'm getting this here image quality is my big issue. I want this I want only video and

fastest method to capture game screen shots in c#?(more than20 images per second)

南楼画角 提交于 2019-12-09 00:15:11
问题 How can i make screenshoots to the entire game screen very fast? Somthing like 20-30 per second?(i want to convert them to video) [[1]] I've tried WMEncoder.Results were that WMEncoder can capture the screen and regions of screen only in a video format (wma) using a set of preconfigured codecs. (29 fps best encode result).WMEncoder can not make screenshots. [[2]] I've tried DirectX : Surface s = device.CreateOffscreenPlainSurface( Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds

Get/set video resolution when capturing image

非 Y 不嫁゛ 提交于 2019-12-08 06:08:41
问题 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? 回答1: IAMStreamConfig interface lists capabilities and lets you select resolution of interest. enumerating media

Detect if image was taken with front camera

末鹿安然 提交于 2019-12-07 18:00:32
问题 I have an Android app that allows a user to upload a profile picture using their camera. The problem is, when the user takes a photo with the front facing camera, the image stored on the phone is mirrored. I am able to mirror the image back to it's original state however, I am unable to perform the flip on front facing camera pictures exclusively. Is there a way to figure out if the picture was taken with the front facing camera? Here is some code I use for getting the picture final boolean

python video capture loop

有些话、适合烂在心里 提交于 2019-12-07 16:55:54
问题 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

Changing FocusMode not working using MediaStream API in Google Chrome

落爺英雄遲暮 提交于 2019-12-07 05:23:31
问题 In Google Chrome Browser i was able to get live feed of my connected USB Camera using getUserMedia() API. I have a slider to change the brightness value and this is working fine. I also want focusMode to toggle from continuous to manual (The camera always starts with continuous focusMode). I have the below Javascript code to change FocusMode. const video_constraints ={}; //Create the following keys for Constraint video_constraints.video = {}; video_constraints.video.width = {}; video