This is a device limitation - Open Camera supports all camera made available to third party camera applications (via the switch camera icon), but some devices only allow the stock camera to use multiple cameras.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2019-07-10
Mark, but there is the "trick": on some devices additional sensors can be accessed with a bit of force ;) That being discovered by me initially on Zenfone 4, but lately several users gave a feedback, that a some other devices are affected by the same trick. Here is the tested code below that build available camera list in no time. But you can limit 50 id tries to something more real like 15 or what is the limit nowadays ;D Code was being tested on a bunch of devices and didn't cause any problem so far.
int sensorCount = 0;
while (true) {
CameraCharacteristics cameraCharacteristics = null;
try {
String nextId = (sensorCount < systemCameraIdList.length ? systemCameraIdList[sensorCount] : String.valueOf(sensorCount));
cameraCharacteristics = this.mCameraManager.getCameraCharacteristics(nextId);
if (cameraCharacteristics != null)
cameraIdList.add(nextId);
} catch (IllegalArgumentException e) {
//cameraCharacteristics = null;
}
//if (cameraCharacteristics == null) break;
sensorCount++;
if (sensorCount >= 50) break;
}
P.S. I believe it would be better to make another one way to switch between sensors. They should be groupped by facing and user should be able to switch between the groups and between the sensord inside the group separately. Cheers. Thanks for all your efforts, you definitely make this world better ;)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
this feature would be appreciated, my phone has 4 (yes 4) cameras on the rear (Huawei P30 pro) and it would be good to see which is in use.
The main one is to tell when the optical zoom is being used.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
See my comment above, I will try to improve this. At the least, I'll start with display some info even if it's just an ID to start with, I agree it can be confusing which camera is currently open.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2020-02-13
camerax is sucks, it would override AE/AWB/AF, we can no longer access those manual exposure thing
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
same question
This is a device limitation - Open Camera supports all camera made available to third party camera applications (via the switch camera icon), but some devices only allow the stock camera to use multiple cameras.
Mark, but there is the "trick": on some devices additional sensors can be accessed with a bit of force ;) That being discovered by me initially on Zenfone 4, but lately several users gave a feedback, that a some other devices are affected by the same trick. Here is the tested code below that build available camera list in no time. But you can limit 50 id tries to something more real like 15 or what is the limit nowadays ;D Code was being tested on a bunch of devices and didn't cause any problem so far.
int sensorCount = 0;
while (true) {
CameraCharacteristics cameraCharacteristics = null;
try {
String nextId = (sensorCount < systemCameraIdList.length ? systemCameraIdList[sensorCount] : String.valueOf(sensorCount));
cameraCharacteristics = this.mCameraManager.getCameraCharacteristics(nextId);
if (cameraCharacteristics != null)
cameraIdList.add(nextId);
} catch (IllegalArgumentException e) {
//cameraCharacteristics = null;
}
//if (cameraCharacteristics == null) break;
sensorCount++;
if (sensorCount >= 50) break;
}
P.S. I believe it would be better to make another one way to switch between sensors. They should be groupped by facing and user should be able to switch between the groups and between the sensord inside the group separately. Cheers. Thanks for all your efforts, you definitely make this world better ;)
Thanks for the info although I'm wary to resort to device specific hacks. Plus with CameraX on the way, that might not work with that.
It's on my todo to improve how multi front or rear cameras are managed.
Hi Mark
Thanks for considering the request - of cause it would be nice if the manufacturer told you too.
Looking forward to CameraX ....
HI Mark
this feature would be appreciated, my phone has 4 (yes 4) cameras on the rear (Huawei P30 pro) and it would be good to see which is in use.
The main one is to tell when the optical zoom is being used.
See my comment above, I will try to improve this. At the least, I'll start with display some info even if it's just an ID to start with, I agree it can be confusing which camera is currently open.
camerax is sucks, it would override AE/AWB/AF, we can no longer access those manual exposure thing