I need to build an app that required a circular camera.
I know there's a way to do that by setting the backgroung rounded but i want to make the camera itself round.
Any ideas?
Related
What I want to do is "simply" get the camera preview (which is already working) and then put it inside a roundish shape for example, so that instead of appearing on a rectangle shape it would appear, on a round one, for example in the top corner.This camera preview is inside a custom view. Also, there is another custom view that runs behind the camera preview, which is a video, as the image: (black -> camera preview, green -> video)
What I want is something like this:
Is this possible?
After searching a while for solutions to this problem I did not come to any conclusion that works.
Thanks in advance
try using corner radius of the shape. it can be useful
Is it possible to set camera view as VRPanoramaView background (I use a transparent 360 degrees image) to use as simple augmented reality?
I achieved to set the VrPanoramaView background transparent and placed it in front of the camera preview. That worked. The problem is, that in a transparent panorama picture transparency is always shown black instead of transparent. A GVR collaborator told me today, that transparency is beyond the design of the widgets. So it seems there is no solution to your idea.
i'm newbie. Im creating a simple android launcher. i have a problem with blur for wallpaper. Wallpaper larger than phone screen. i want to blur a path of this wallpaper which is as large as screen. however, each time when I scroll my screen, the part of wallpaper appearing on the screen will blur. thank you so much.
Illustration:
Look at this repo:
https://github.com/romannurik/muzei
It is wallpaper app and it has blur.
I'm developing an Android app that uses ZBar as a QR code library, and things are going sweet. Now, however, I'm building the interface for the app, and it requires that I show only a certain portion of the camera's feed at the bottom of the screen, something like this:
The camera view below should be full-sized, i.e. a cropped view and not a resized one. However setting the width and height of the FrameLayout has caused it to resize and squash the entire image into the tiny frame.
Is there a way to crop it? I know I could probably place an overlay over the original image, but how does one create a transparent square in the middle to display what I need?Besides, the QR reader would catch anything the camera captures, so if the user brought the QR code in front of the camera and it captured it "off screen" (by the part that's actually covered by the overlay), it would be extremely confusing.
So I guess what I'm saying is, I can't use an overlay to "crop" the picture. Is there any other way to do it?
As far my knowledge one cannot crop camera view but what you can do is re-size the frame and then capture the image.
Still i would suggest to refer this post
The first thought that comes to mind is to put your CameraPreview in a view inside a FrameLayout. Then add more views on top of the CameraPreview view to hide the parts that you do not want to be visible.
Or Perhaps just one view super-imposing the camera preview view with a PNG which covers everything with "cropped" area set as transparent.
So, I have an application that uses a canvas and animated a moving block. What I would ultimately like to do is have the camera running capturing the user's face without showing the camera screen on the app or have a box at the bottom right of my screen that showing what the camera sees.
Is it possible to have a mini screen at the bottom right of my app that is displaying the camera or does the camera have to take the full screen?
Or if it is possible just to quickly snap a picture and display a bitmap without losing my application, that would be fine also.
Any help would be great!
Thanks.
Is it possible to have a mini screen at the bottom right of my app that is displaying the camera or does the camera have to take the full screen?
It is possible, See the 1st Screenshot here. Theirs is in top left instead of bottom right, but it should work just the same. In this Qik application the full screen shows the other person you are talking with, and the small box shows the live view from your camera.
I wouldn't know how they did that, but I imagine if you follow along with Building a Camera App in the docs it would get you most the way there. You just need to adjust the size of the preview canvas, and figure out how to use the front camera instead of back.