We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用 <camera> 元素 使用如下代码拍照
const ctx = wx.createCameraContext(); ctx.takePhoto({ ... })
拍出来的图片是全黑的
The text was updated successfully, but these errors were encountered:
原因是 <camera> 元素还没有初始化完成,也就是系统相机还没有初始化完成,所以这时候拍照返回的就是全黑的图片了。 但是因为小程序不提供任何回调告诉开发者说相机初始化成功了,所以只能适当的 setTimeout 了
setTimeout
Sorry, something went wrong.
No branches or pull requests
使用 <camera> 元素
使用如下代码拍照
拍出来的图片是全黑的
The text was updated successfully, but these errors were encountered: