image-capture

Enable Safety assistance emergency mode

孤街醉人 提交于 2020-01-31 04:36:29
问题 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

Capture a div as an image [duplicate]

烈酒焚心 提交于 2020-01-20 08:27:38
问题 This question already has answers here : user capture div as image and save to computer (4 answers) Closed 2 years ago . I have some div tags containing charts rendered by javascript. I want to export them in an image format by the press of a button. I don't know if it's possible to capture a div tag as an image using javascript ! so there i'm asking for tips and hints. Thanks in advance. 回答1: You can create an image using the canvas element. If your charts are rendered using HTML elements

Capture a div as an image [duplicate]

淺唱寂寞╮ 提交于 2020-01-20 08:27:18
问题 This question already has answers here : user capture div as image and save to computer (4 answers) Closed 2 years ago . I have some div tags containing charts rendered by javascript. I want to export them in an image format by the press of a button. I don't know if it's possible to capture a div tag as an image using javascript ! so there i'm asking for tips and hints. Thanks in advance. 回答1: You can create an image using the canvas element. If your charts are rendered using HTML elements

Capturing an image from a minimized window

青春壹個敷衍的年華 提交于 2020-01-13 06:57:06
问题 As the title says, I'd like to capture an image from a minimized window... is that even possible? I use the CaptureAnImage from msdn and it works, unless the window is minimized. One solution I tried was maximizing it, capturing the image, then returning it to it's original state. Only problem is the animation looks ugly and I'd like to find an alternative... Here is how I tried it: WINDOWPLACEMENT wInfo; UINT originalPlacement; GetWindowPlacement(hWnd, &wInfo); originalPlacement = wInfo

Can I set the color depth while capturing the webcam image using OpenCV?

安稳与你 提交于 2020-01-11 11:44:46
问题 I am capturing the image using OpenCV in C++ firstFrame = cvQueryFrame(capture); it is easy to set the width and height properties by cvSetCaptureProperty( capture, CV_CAP_PROP_FRAME_WIDTH, WIDTH ); cvSetCaptureProperty( capture, CV_CAP_PROP_FRAME_HEIGHT, HEIGHT ); I wonder if there is a way to specify the color depth as well without further processing the frame? 回答1: According to the documentation, you should be able to do it using CV_CAP_PROP_FORMAT if you use the function retrive() to get

Getting IllegalArgumentException while capturing photo from Camera

让人想犯罪 __ 提交于 2020-01-06 06:56:34
问题 In my project I am using FileProvider.getUriForFile with given provider_paths.xml file: <?xml version="1.0" encoding="utf-8"?> <paths> <external-files-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:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android

I cannot return the previous activity with using ActivityForResult

独自空忆成欢 提交于 2020-01-03 04:32:26
问题 I have these codes. Camera opened, the picture is taken, but when I click on "ok" button, nothing happened. The only way to get back to previous activity is clicking the "x" button which is not useful for me :). What is the problem? (onActivityResult method is not finished yet.) (I used to use this algorithm with Android.provider.MediaStore.ACTION_IMAGE_CAPTURE intent. there was everything OK. I have no idea why I have problem now.) public void onClick(View v) { Intent getCameraImage = new

Video capture on Linux? [closed]

时光毁灭记忆、已成空白 提交于 2020-01-01 09:54:06
问题 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 8 years ago . 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? 回答1: 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) 回答2: If

upload captured image to Cloudinary directly in Android

强颜欢笑 提交于 2019-12-30 02:27:11
问题 I want to capture a picture and upload it to Cloudinary directly. How can I know the name of the pic to set it at the upload statement cloudinary.uploader().upload("nameofthepic", Cloudinary.emptyMap()); . Here is my code: public class Camera extends ActionBarActivity implements View.OnClickListener { Button b; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.camera); b= (Button) findViewById(R.id.button); b