photo

increase quality/clarity/brightness of the photos taken with android camera

ぃ、小莉子 提交于 2019-12-05 04:16:26
I have an android app where I'm using the android camera in order to take photos.And after struglling a little bit I managed to have my picture where I want and how I want.The final problem is the quality of the image. When my preview starts everything looks very clear and great but after taking the photo and showing the final result the image is not looking good at all. Here is how my surfaceChanged() method looks like-where I'm setting some parameters: public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { Log.e(TAG, "surfaceChanged"); if (mPreviewRunning) { mCamera

ANDROID: Saving PreviewCallback image as a .jpg from a byte array results in a corrupt file

早过忘川 提交于 2019-12-05 03:43:07
问题 I have been augmenting the QR scanning library Zxing to save a photo instantly upon scan. I was advised to do so within the onPreviewFrame method within PreviewCallback.java as thus: public void onPreviewFrame(byte[] data, Camera camera) { Point cameraResolution = configManager.getCameraResolution(); Handler thePreviewHandler = previewHandler; YuvImage im = new YuvImage(data, ImageFormat.NV21, 1200, 800, null); Rect r = new Rect(0, 0, 1200, 800); ByteArrayOutputStream baos = new

How does the default Camera iPhone app manages to save a photo so fast?

会有一股神秘感。 提交于 2019-12-05 03:13:58
问题 So far I've managed to create an app for iPhone that takes multiple images with about a 3 second interval between each. I`m processing each image in a separate thread asynchronously and everything is great till it gets to the moment for saving the image on the iPhone disk. Then it takes about 12 seconds to save the image to the disk using JPEG representation. How does Apple do it, how do they manage to save a single image so fast to the disk is there a trick they are using? I saw that the

UIImageWriteToSavedPhotosAlbum does not work in iOS 6 iPad 3

 ̄綄美尐妖づ 提交于 2019-12-05 01:36:32
I'm using the next function to save photos in my app: UIImageWriteToSavedPhotosAlbum(pngImage, self, @selector(image:didFinishSavingWithError:contextInfo:), NULL); It works well on iOS 5.1.1 devices, and iPod/iPhone iOS 6.0 devices. But strangely photo saving doesn't work on iPad 3 with iOS 6.0 and returns the following error: Error Domain=ALAssetsLibraryErrorDomain Code=-3310 "Data unavailable" UserInfo=0x1cd6afc0 {NSLocalizedRecoverySuggestion=Launch the Photos application, NSUnderlyingError=0x1cdaa140 "Data unavailable", NSLocalizedDescription=Data unavailable} Did anybody encounter this

How fast can iPhone to be programmed take 2 pictures at one time? [closed]

只愿长相守 提交于 2019-12-04 20:47:52
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center . Closed 7 years ago . I wish to write an iphone app that allows your to take 2 consecutive pictures in a very short time, and I wonder if it is achievable. May apps in the market seems to only take low resolution still frames out of video stream, so I wonder if fast capturing full resolution photo is feasible. Felix It depends on what

How do I obtain a hash of the payload of a digital photo container, ideally in Java?

谁说胖子不能爱 提交于 2019-12-04 19:40:13
I have edited EXIF properties on digital pictures, and would like to be able to identify them as identical. I believe this implies extracting the payload stream and computing a hash. What is the best way to do this, ideally in the Java language, most ideally in Java using a native implementation for performance. JPEG files are a series of 'segments'. Some contain image data, others don't. Exif data is stored in the APP1 segment. You could write some code to compare the other segments, and see if they match. A hash seems like a reasonable approach here. For example, you might compare a hash of

iOS take photo from camera without modalViewController

一曲冷凌霜 提交于 2019-12-04 16:01:19
问题 I need get photo from camera, but I need use it in my UIViewController. I have custom button for take photo. I don't want use like this -(void) takePicture:(id) sender { UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { [imagePicker setSourceType:UIImagePickerControllerSourceTypeCamera]; } else { [imagePicker setSourceType:UIImagePickerControllerSourceTypePhotoLibrary]; }

Android: post image and text to Instagram

这一生的挚爱 提交于 2019-12-04 13:27:58
How can i post an image and a text to instagram? no problem if i must open the instagram app, or if i do via api or other. the problem is that i can't find how to: they have the iphone hook only, and the api is incomprensible. someone have did that, or have the know? thanks. Try this it is worked for me. I will use it for share my product details. i will get details of product like name,image,description from the server and display in app and then share it to instagram. Get image url from server. URL url = ConvertToUrl(imgURL); Bitmap imagebitmap = null; try { imagebitmap = BitmapFactory

Generate tiles from large photos (iOs PhotoScroller)

大兔子大兔子 提交于 2019-12-04 10:01:45
问题 I'm studdying the WWDC session #104 for mastering UIScrollViews . I need to create a script or find a tool or write a script to generate the tiles needed for the CATiledLayer from some large jpg photo. 1000 500 and 250 scale factors are needed and the generated tiles need to respect a naming pattern like this: name_scale_col_row.jpg Any suggestion for a tool or script that I could use for this or do I need to write one? EDIT : I'm working on my own little bash script. This is what I did until

R/ImageJ: Measuring shortest distance between points and curves

一笑奈何 提交于 2019-12-04 09:40:34
I have some experience with R as a statistics platform, but am inexperienced in image based maths. I have a series of photographs (tiff format, px/µm is known) with holes and irregular curves. I'd like to measure the shortest distance between a hole and the closest curve for that particular hole. I'd like to do this for each hole in a photograph. The holes are not regular either, so maybe I'd need to tell the program what are holes and what are curves (ImageJ has a point and segmented line functions). Any ideas how to do this? Which package should I use in R? Would you recommend another