How can I add Portrait mode feature while capture an image using custom camera.
Anyone please help me ..
I am using AVPhotoCapture were I had enable image depth property to true but there no portrait effect while capturing.
Try installing google camera if your device has dual camera ,you can find the apk in apk mirror website. The Google camera has hdr mode and other focus modes,i hope it helps
Related
I have a big problem! I need to capture 360 panoramic image in my iOS app.But apple's iPhone built-in camera lets to capture panoramic image, which can have maximum 270 degrees....
I do many resarches, but can't understand how I can continue.....
Can anyone help me? What can I do for capturing 360 pano image in iOS app.
im using OpenCV 4.3 with c++ and the VideoCapture to get the videostream from a Logitech C922 Pro Webcam.
Im changing the resolution with
cap.set(CAP_PROP_FRAME_HEIGHT,height)
cap.set(CAP_PROP_FRAME_WIDTH,width)
This works fine until im using either the resolution of 640x480 or 640x360. In this cases OpenCV stays in the aspect ratio it was before (640x480 on startup).
Is there an efficitent way to change the resolution to the right one instead of changing it to another one before?
CAP_PROP_FRAME_HEIGHT or CAP_PROP_FRAME_WIDTH are used to switch the resolution of your camera. If your camera doesn't support that resolution you set, the code will not work. If you check the specs of Logitech C922, you will see that it doesn't include the resolutions you desired.
There are other options you can apply:
1- You can crop the desired sizes(ex. 640,360) from the main frame.
2- You can resize the frame but this will crash the aspect ratio.
In my app I'm using iPhone's camera video mode to do some scanning. I implemented the scanner, but I noticed that in my app the video image is kind of fuzzy comparing to the video image of other apps when I use the same phone. Below are the image samples.
Any ideas how to fix it?
Any kind of help is highly appreciated.
My app:
iPhone camera app:
barcode scanner app:
I am developing a custom camera in which the camera is set to the Image Capture mode. I need to increase the zoom level of camera preview according to the app requirements. The preview currently being displayed is perfect I just need to increase the zoom-out in current preview. I searched over internet but didn't find any solution. Please tell me how can I do this. I am attaching the example image for better understanding. first image is of my camera app and second image is of Scanner Pro app which shows view with more covered area while I focus both the apps for the same object on the same distance. My camera don't have any space but the Scanner camera has spacing all over the image. Both the camera are on the same distance from the paper.
i don't know whether you still need this answer. Probably not, but still for you and everyone else looking out:
When you set the Session Preset, try using SessionPresetPhotofor the device object. This should resolve the weird zoom issue.
Your preview view is probably spilling over the edge of the screen. Make sure it is a 4:3 aspect ratio and that it doesn’t overflow your screen edges. With that you should see more of your image.
I am developing a Phonegap application for IOS and I want to use Capture plugin for it. I have installed the plugin using CLI and added permissions in the config.xml file but the plugin os not working it do not show any output or error.
Basically the problem I have is with the image orientation when image captured from the camera. The image rotates in landscape direction.
I have tried to read the exif data in PHP but IOS trims the exif data from image before sending it to the server
I have installed the capture plugin but it is not working on IOS 7.1
I just need to make the orientation of the image right when taken from the camera.
Within the .getPicture() call you can set the option
correctOrientation: true
This solved my problem of portrait images turning horizontal however on my LG G2 significant lag was added during the capture process when this flag was set. I'm still trying to figure out a server-side fix but with some EXIF data being stripped it's a bit challenging.
Docs explain a little more:
http://plugins.cordova.io/#/package/org.apache.cordova.camera
correctOrientation: Rotate the image to correct for the orientation of the device during capture. (Boolean)