android - 如何为相机添加白平衡
问题描述
我正在 Note 9 上开发我的应用程序。如果我打开普通相机,我可以看到白平衡、对比度、亮度等功能和全景拍摄。
但是如果我打开我开发的应用程序,我看不到这些功能。只有手电筒,相机,视频。
那么,如果用户的手机有,我该如何在我的应用程序中添加这些功能呢?
/**
* Capturing Camera Image will launch camera app requested image capture
*/
private void captureImage() {
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
File file = CameraUtils.getOutputMediaFile(MEDIA_TYPE_IMAGE);
if (file != null) {
imageStoragePath = file.getAbsolutePath();
}
Uri fileUri = CameraUtils.getOutputMediaFileUri(getApplicationContext(), file);
intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);
// start the image capture Intent
startActivityForResult(intent, CAMERA_CAPTURE_IMAGE_REQUEST_CODE);
}
我的manifest
:
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
解决方案
推荐阅读
- r - R Shiny:将用户上传的文件上传到 AWS S3 服务器
- networking - 如何计算编码的 Base64 消息
- firebase - Firebase 分析 cookie 不安全
- javascript - 如何使用 rollup.js 将提取的 css 文件正确注入 html 文件的头部?
- android-studio - 在布局文件中发现意外的文本:“android:background="#AA00FF">”
- c++ - 在 Unix 中从串口读取时输入/输出错误
- python - 如何从列表python中删除唯一元素并保留一个重复?
- google-sheets - 使用过滤器和数组组合多个条件
- python - Pygame 两个对象渲染问题
- php - 拆分线性数据并计算数据php的最大值