Dual-Camera | Taking picture from both front and back cameras | Camera library
kandi X-RAY | Dual-Camera Summary
kandi X-RAY | Dual-Camera Summary
Taking picture from both front and back cameras
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- init the bit rate and frame rate table
- Read variables from the stream .
- Create a Track header box
- Merges two audio sample entries .
- Get the AudioQuality entry for an EC3 track .
- Read a picture parameter set from an input stream .
- Create a list of tracks .
- Writes vUip parameters .
- Get the sample numbers for a track .
- Parses the box .
Dual-Camera Key Features
Dual-Camera Examples and Code Snippets
Community Discussions
Trending Discussions on Dual-Camera
QUESTION
Dual-camera smartphones are relatively new in the market, but I was wondering if a camera app could explicitly choose to use only one lens, or to manually retrieve separate input from each lens.
I couldn't find any Android API documentation that is specifically designed for dual-lens phones, so I guess this is a hardware/OS-level implementation that would be difficult to override or bypass. Android's Camera HAL documentation page doesn't mention dual-lens devices as well, but it does seem to strengthen that assumption. I don't have much experience with iOS, but I guess it wouldn't be easier.
So the question is - how, if at all, would such task be possible on either Android or iOS?
Edit: seems that in iOS it is possible, as explained here (thanks to the4kman for pointing this out in the comments). So I guess the question remains for Android only.
...ANSWER
Answered 2019-Feb-04 at 20:00Different vendors provide dual cameras for their Android devices in hope to improve the photo quality for average user, more often than not, specifically tuned for special conditions like challenging illumination or distortions of selfie mode. Each vendor uses proprietary technologies to handle dual cameras, and they are not interested to disclose the implementation details. The only public interface they support is a virtual single camera which is more or less compliant with Google specs.
This does not mean that you cannot be lucky chance be able to unlock the camera for some specific device. Playing with photo modes, or scenes, or other parameters, may accidentally give you a picture that only passed one lens of the dual setup.
In some rare cases some documentation is actually present. E.g. HTC let you control stereo vs. mono setting for the circa'2011 Evo 3D device.
Another example: this review implies that for Huawei P9 and P10, you will actually get one-camera result if you choose monochrome mode.
A recent article gives some perspective how different are approaches to dual camera among different manufacturers.
QUESTION
I'm trying to capture using both of the rear facing cameras on my xiaomi mi 5s plus. When I'm trying to iterate through the id's of the cameras using camera2 api, I only get 2 id's, one for the front facing camera and one for the rear one. I've looked in the lg development examples (http://mobile.developer.lge.com/develop/sdks/lg-dual-camera/) and they are using 3 ids. When running their example, the app crashes.
The code used for getting the ids is:
...ANSWER
Answered 2018-Jun-13 at 08:29Capturing images from a dual camera is not natively supported before Android P. Android P now supports multi camera capture -> https://developer.android.com/preview/features#camera
Different vendors provide dual cameras for their Android devices in hope to improve the photo quality for average user, more often than not, specifically tuned for special conditions like challenging illumination or distortions of selfie mode. Each vendor uses proprietary technologies to handle dual cameras, and they are not interested to disclose the implementation details. The only public interface they support is a virtual single camera which is more or less compliant with Google specs.
QUESTION
Right now we're facing the problem, that the Huawei P9 with its B/W sensor is able to capture photos, but not videos. I wanted to write a quick and dirty solution to get the second camera working, but found out, that the phone has only "2" cameras (front/rear?!)
Does anybody know how to access the B/W sensor? I know, that the CAM API 2 has no Dual-Camera support (yet). The Huawei-Developer page suggests an API/SDK, but the button is greyed out..
Any help much appreciated!
...ANSWER
Answered 2017-Aug-02 at 09:43I found a work around which is already included in the APP "FreedCam". Huawei has some hidden parameters:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Dual-Camera
You can use Dual-Camera like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the Dual-Camera component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page