It's my first post here so I'm sorry if this is in the wrong place. I've had a look around these forums for any answer or clues but I couldn't find any so I'm making this thread.
Basically, is there a way/app to replace the video feed that the cameras sees, with a static image. So for example, if I were to us my nexus 7 camera now, rather than see what the camera should see (my ugly mug), its sees an image that I have preselected.
I'm using an app which requires me to hold the camera up to an object. The app then scans the image it's seeing to recognise if it's this particular object it's looking for.
You guessed it, I want to take a picture of this object and save it to my nexus. Then use this saved image to spoof onto the camera. So when the app accesses the camera feed, it see's the image. I guess you could liken it to ManyCam. This obviously would mean I don't have to keep holding my nexus 7 up to the object.
Sorry if that's a bad explanation!
By the way, I'm using a nexus 7 with 4.1.2. It's unlocked and rooted using the stock ROM.
If you are doing app development, why not use the emulator, as I seem to recall it allows you to set the image that the camera API uses (as obviously there is no camera hardware in the emulator.
Related
Hey,
I'm new to android dev (extremely) but I'm not new to software dev, but I'm very confused.
So here's my end objective: To capture a photo and be able to edit it at the pixel level.
I'm completely lost in how to do that. Okay, let me rephrase, not completely lost. PLEASE don't link me to a bunch of tutorials, I've read them all.
I'm lost on a few apparently key concepts:
- SurfaceView - What exactly IS a surface? I read the doc from android dev for it, but I'm not quite grasping it. Is it just used to display or subclass it for OpenGL, or picture viewports? Or is there more to it?
- Every camera tutorial mentions subclassing surface.holder, implementing canvas methods methods (changed, create, destroyed), and that's that - which is fine, if you're going to preview an image there, which I want...but what about taking the actual picture, that leads me to..
- StartPreview function, what the hell does this thing do, all it does is crash my phone, I don't want to "preview" anything, I want to take a picture using the built in camera activity, and store in a surface, do whatever pixel manipulations I need, and possibly write it back out to the SDCard
What does the preview have to do with anything? Every tutorial (including android's includes it), but I can't figure out for the life of me what the thing does...I could see if you wanted a camera viewport in your app, but I don't.
Now what I DID do was start the camera activity using the intent, then store the callback "data" into the surface, the problem with this, though, is it's EXTREMELY pixelated, the image previewed in the surface is of horrible quality, like it's a thumbnail. What gives? I used this code:
Code:
Bitmap thumbNail = (Bitmap)data.getExtras().get("data");
mImageViewer.setImageBitmap(thumbNail);
So yeah, sorry the questions are so sparsed out, just been confused as hell and am unfortunately on a truncated time table - nobody's been able to explain anything so far, just have what I have from playing with it..
TIA, sorry for the long post
Bump*
Anybody? Somebody's had to use the camera before in an app..
I have a Nexus S 4G (Sprint), and I'm running CM7. Whenever I take a photo in portrait mode, it appears correctly in the gallery, but ends up sideways whenever I e-mail it out. But, if I take a photo in landscape and send it, it looks fine.
I have heard solutions of cropping the photo in order to get it to "stick" to portrait, but I'm wondering if anybody is aware of any other solution for this... short of either cropping or only shooting in landscape.
Thanks!
That happened to me yesterday.
I would be interested in knowing a solution as well...cropping my photos becomes a pain when I'm trying to send out several of them so my parents can see their grandkids..
I have the same issue. Its a pita. It happens on stock rom also.
Sent from my Nexus S 4G using XDA App
The Nexus S uses the Orientation field in the photo's EXIF information to determine whether it's portrait or landscape. The gallery app recognizes this information and displays it appropriately, but a lot of third-party applications and services do not. This wasn't an issue in the past because the camera give the photo portrait dimensions immediately upon saving.
So, depending on where you send your portrait photos to, your mileage may vary. This method is trending upward among OS and manufacturers, so it's up to software developers to look for this data when parsing images.
peterochford said:
The Nexus S uses the Orientation field in the photo's EXIF information to determine whether it's portrait or landscape. The gallery app recognizes this information and displays it appropriately, but a lot of third-party applications and services do not. This wasn't an issue in the past because the camera give the photo portrait dimensions immediately upon saving.
So, depending on where you send your portrait photos to, your mileage may vary. This method is trending upward among OS and manufacturers, so it's up to software developers to look for this data when parsing images.
Click to expand...
Click to collapse
My Evo never had this issue using Handcent or Gmail. Somewhere the software in the NS is dropping the ball./
Yeah...I hear what you're saying about the technical aspects, but even when I send a mms the picture shows fine in the gallery, but comes out upside down in the message (or whatever orientation it was when taken)...I feel that the phone's own app for messaging should be able to read that info right?
I wonder if using a third-party camera app like Vignette would be a workaround.
Maybe I'll give that a shot...
imekul said:
I wonder if using a third-party camera app like Vignette would be a workaround.
Maybe I'll give that a shot...
Click to expand...
Click to collapse
It does seem to work okay in Vignette...
Wish there was an easy solution to this!
I honestly think this is a Samsung issue. I've only seen this issue on their phones... my girlfriend's dumbphone, friend's Focus, and my SNS all do the same thing. It's annoying as hell.
I've had this happen with every phone I have owned...and I've had a bunch! Seems the closer I am to the object it does this.
I am trying to format backgrounds for my Nexus 7 and I have tried
1280H x800W and Vise Versa, However the formatting tool, won't allow me to use the full picture, it crops at awkward proportions, I would like to be able to use the full picture for the clarity and crisp, instead of a bad pixilated, un-visually appealing picture. Is there a way to bypass this, like an app that formats pictures properly?
I would post image examples but I haven't posted enough threads
Quentarus said:
I am trying to format backgrounds for my Nexus 7 and I have tried
1280H x800W and Vise Versa, However the formatting tool, won't allow me to use the full picture, it crops at awkward proportions, I would like to be able to use the full picture for the clarity and crisp, instead of a bad pixilated, un-visually appealing picture. Is there a way to bypass this, like an app that formats pictures properly?
I would post image examples but I haven't posted enough threads
Click to expand...
Click to collapse
I think quick pic lets you use full image
https://play.google.com/store/apps/details?id=com.alensw.PicFolder&hl=en
PicSpeed HD Wallpapers also has an option like that.
https://play.google.com/store/apps/details?id=com.srsdev.wallpapers&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5zcnNkZXYud2FsbHBhcGVycyJd
@Ghost Thats just a different version of Gallery
@Milkk That doesn't support Nexus
For stuff like this, I would just use Paint.net on my laptop and use the resize function. But you are going to experience stretching if the aspect ratio is not the same.
I am trying to format backgrounds for my Nexus 7 and I have tried
1280H x800W and Vise Versa, However the formatting tool, won't allow me to use the full picture, it crops at awkward proportions, I would like to be able to use the full picture for the clarity and crisp, instead of a bad pixilated, un-visually appealing picture. Is there a way to bypass this, like an app that formats pictures properly?
I would post image examples but I haven't posted enough threads
Click to expand...
Click to collapse
Try crop image with dimension 1406x1280
Edit: just found this app and thats good https://play.google.com/store/apps/details?id=com.shirobakama.wallpaper
Sent from my Nexus 7 using xda premium
@korockinout13 I use Photoshop to format
@ucubz At least I can get the pictures full pictures into the screen, However I just have to work around the borders somehow
Just use higher resolution wallpappers and extend the margins to fit the full picture (by dragging the corners when setting wallpapper).
Worked for me! :good:
Hey guys, any way to change default filenames when i take a picture?
i want the pictures i take using my phone and tablet to have the same format.
at the moment nexus 10 uses IMG_xxxxxxxx_xxxxxx.jpg and my htc one s uses IMAGxxxx.jpeg
i want them all to use the same format so in the gallery i can just sort them using filename.
guji-dude said:
Hey guys, any way to change default filenames when i take a picture?
i want the pictures i take using my phone and tablet to have the same format.
at the moment nexus 10 uses IMG_xxxxxxxx_xxxxxx.jpg and my htc one s uses IMAGxxxx.jpeg
i want them all to use the same format so in the gallery i can just sort them using filename.
Click to expand...
Click to collapse
I believe the naming system is unique to each manufacturer. Only way I know of to unify naming scheme would be to use a third party camera app like Zoom FX on both devices. Plus it will take better pictures with all the extra functionality.
So, I have just upgraded myself from G3 to this Beast phone (love it)
Native Galaxy Gallery App there is a Story Mode/ selection that puts together all the pictures you have then in a given day or location and adds background music & some effects but, in doing so it cuts the pictures so you end up with half the face or picture to see.
Are there any settings the I need to change to make the pictures show in full or is there any fix for this.
I tried searching the forums but found nothing. In case I was wrong please direct me to the correct post
I'm finding that I have the same results and can't find any settings to change the way it seems to zoom in on each photo. Really nice idea but poor execution...
Sent from my SM-G955U using Tapatalk
No one else seems to have this issue or care for this feature
or they are too busy rooting/ unlocking the SD version of the phone
Can't say about others, but in my case: 1. easy enough to do it manually just the way I want it 2. it almost never works properly, besides cutting off the frame. Case in point, my phone created album called "at the beach", after we went to the beach. Well, most of the pictures in this album are not from anywhere near the beach and since I have location embedded in every picture and phone already correctly identified I was at the beach including particular field, not sure why it added pictures taken at home and many other locations. Bottom line: useless function personally I don't care about.