rmondjone / androidcamera Goto Github PK
View Code? Open in Web Editor NEWAndroid自定义相机
Android自定义相机
在Android 8.0以上 我的是OPPO8.1的系统预览白屏
你好,请问是在哪里设置了输出图片的尺寸?我用的是小米8 分辩率是1080x2248,直接运行代码后(全屏拍摄),图片输出尺寸却为3024x4032。请问需要修改哪里 谢谢。
CameraPreview.java中
surfaceCreated方法里的设置设备高宽比getDeviceAspectRatio在小米8中的返回值是281:135
导致预览创建失败,手动设置成18:9能正常调用
在老机型上拍照多次后内存溢出闪崩,
修改CameraActivity中(图片流暂存)imageData,在执行onDestroy()方法时重新赋值为null后解决了问题
华为权限崩溃;解决之后;无法预览。拍照后找不到;等适配问题
没有使用Camera2
请问如何改变拍出照片的分辨率,目前都是1920*1080的
在老机型上拍照多次后内存溢出闪崩,
修改CameraActivity中(图片流暂存)imageData,在执行onDestroy()方法时重新赋值为null后解决了问题
我测试只有在android版本>=8才能顺利预览
其他人有同样问题吗?
如何解决?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.