photo

Android camera freezes after taking one photo

烂漫一生 提交于 2019-11-30 17:18:27
I'm doing one project with camera and after taking one photo camera freezes and u have to finish the activity and recall it again to take another photo, how can I take photo freeze for just 1-2 sec and then surface view to have the camera again. the same for video I am using media recorder, taking video press stop video saves and screen is still alive but I can not take video again I have to restart the activity? Anybody have a solution? Do any image processing in a background AsyncTask . This will allow your UI Activity to continue on and take another picture. Edit: I cannot delete an

Command line photo printing in Windows 7

我怕爱的太早我们不能终老 提交于 2019-11-30 16:07:07
I need to print a photo (.jpg) from the command line in Windows 7. I have tried using lpr to no success, and found methods for Windows XP like the following: rundll32 shimgvw.dll ImageView_PrintTo /pt myPhoto.jpg "myPrinter" This doesn't work (not surprising), and my hours of Googling has turned up nothing else. I'm trying to find a stock way to do this on any Windows 7 machine without needing to install or set anything up. Does there exist such a command? Maybe reformatting the command and adding some absolute paths would help? The following worked for me: rundll32 C:\WINDOWS\system32\shimgvw

How to know if photo in Landscape or Portrait mode?

泪湿孤枕 提交于 2019-11-30 15:07:28
问题 I load photo from iPhone/iPad library, most of them in Portrait mode, I want to know How can I check the photo in Landscape or Portrait mode? 回答1: Use the imageOrientation property of UIImage instances. It is going to return you one of these constants. Example: UIImage *image = // loaded from library if (image.imageOrientation == UIImageOrientationUp) { NSLog(@"portrait"); } else if (image.imageOrientation == UIImageOrientationLeft || image.imageOrientation == UIImageOrientationRight) { NSLog

swift: How to load photos from photo library without using UIImagePickerController?

大兔子大兔子 提交于 2019-11-30 14:07:33
问题 I am using swift to load images from photo library. I know that I can use UIImagePickerController to let user to choose the images from camera roll but I want to access photos without user actions. For example, I want to read a series of photos which are from camera roll and put them in a photo slide to show them one by one. How can I access these photos without UIImagePickerController? 回答1: You can access photo library using Photos framework(for iOS 8+). Take a look at this example. In

Accessing Videos AND Photos on Android 1.5 +

时光总嘲笑我的痴心妄想 提交于 2019-11-30 12:57:07
问题 So I'm trying to allow the user to pick a particular piece of media with my Android Application using the method described here: Access pictures from Pictures app in my android app It works great, except for the fact that I can seemingly only choose between either Video or Photo to present the user with, not both at the same time. Is there a good way to do this with: startActivityForResult(new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI), SELECT

swift: How to load photos from photo library without using UIImagePickerController?

我的梦境 提交于 2019-11-30 09:47:09
I am using swift to load images from photo library. I know that I can use UIImagePickerController to let user to choose the images from camera roll but I want to access photos without user actions. For example, I want to read a series of photos which are from camera roll and put them in a photo slide to show them one by one. How can I access these photos without UIImagePickerController? You can access photo library using Photos framework(for iOS 8+). Take a look at this example. In AAPLRootListViewController's code if awakeFromNib method you can see how to create PHFetchResult object to

Load image from photo library

核能气质少年 提交于 2019-11-30 08:54:38
问题 How can I load an image from photo library and show it in imageView ? How can I change image to black and white ? 回答1: To convert image form UIImagePickerController to black and white you can use this code: UIImage *originalImage = [info objectForKey:UIImagePickerControllerOriginalImage]; // this image we get from UIImagePickerController CGColorSpaceRef colorSapce = CGColorSpaceCreateDeviceGray(); CGContextRef context = CGBitmapContextCreate(nil, originalImage.size.width, originalImage.size

How to detect Hotspots in an image

只谈情不闲聊 提交于 2019-11-30 07:08:28
How to detect a hotspot in an image using opencv? I have tried googling but couldnt get a clue of it. Description: I need to filter good images from a live video stream. In this case I need to just detect the Hotspot in a frame. I need to do this in opencv. What is HotSpot? Hot spots are shiny areas on a subject’s face which are caused by a flash reflecting off a shiny surface or by uneven lighting. It tends to make the subject look as if they are sweating, which is not a good look. Update : http://answers.opencv.org/question/7223/hotspots-in-an-image/ http://en.wikipedia.org/wiki/Specular

How to embed image in html in MFMailComposeViewController for iPhone

泄露秘密 提交于 2019-11-30 05:04:44
I am trying to embed a bunch of small images in an html table which I want to send using MFMailComposeViewController. After doing some search I figured out almost everyone is suggesting "NSData+Base64 by Matt Gallagher" class to encode the photo in Base64encoding and embedding it into html. While it looks to work on iPhone and with some email servers but Gmail and Yahoo do not show the images embedded this way. This problem is mentioned here as well. I was wondering if anyone has a better solution for this. I don't want to upload photos on the web and put the link in the html code. I would

Phonegap - Retrieve photo from Camera Roll via path

半城伤御伤魂 提交于 2019-11-30 04:46:07
In my PhoneGap/jQuery Mobile app, I'm currently using PhoneGaps' Camera API to allow the user to take a photo, which is also stored in the Camera Roll. I'm setting DestinationType to FILE_URI and saving this path in a local db. However, FILE_URI is a path to a temporary location that is destroyed when the app is closed. I was thinking of saving the name of the image and then retrieving the image from the Camera Roll. Is there a path I can use to later retrieve the images in the Camera Roll? I was saving the images as Base64 in the db, but I'm a little weary of this method because of this note