Skip to content
New issue

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

[BUG]如何获取拍照的截图呢 #34

Open
scp-238 opened this issue Mar 6, 2024 · 4 comments
Open

[BUG]如何获取拍照的截图呢 #34

scp-238 opened this issue Mar 6, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@scp-238
Copy link

scp-238 commented Mar 6, 2024

iOS 使用 captureAProcessedFrameData这个函数返回的是个什么结果呢?如何转换成图片
安卓调用这个api,目前会发生崩溃

@scp-238 scp-238 added the bug Something isn't working label Mar 6, 2024
@LiamKeh
Copy link
Contributor

LiamKeh commented Mar 12, 2024

最近会复现修复一下,如果已解决欢迎PR

@scp-238
Copy link
Author

scp-238 commented Mar 12, 2024

背景:相机数据给 sdk 传参是使用的这个方法
gpuPixelRawInput->uploadBytes(pixels, width, height, stride);

问题:使用过程中发现,相机的sessionPreset只能传AVCaptureSessionPreset1280x720,传AVCaptureSessionPresetPhoto会导致瘦脸和大眼失去效果,是否是因为代码内部做了处理,导致其他的清晰度不生效?

不知道问题是否出在这个判断?
if (!_framebuffer || (_framebuffer->getWidth() != stride ||
_framebuffer->getHeight() != height)) {
_framebuffer =
GPUPixelContext::getInstance()->getFramebufferCache()->fetchFramebuffer(
stride, height);
}

目前我是通过 view 截图的方式实现的拍照效果,感觉sdk 如果能抛出图像信息会更好一点。

@18818474455
Copy link

有开发想找你合作,微信多少呢?

@xiaoshanlin000
Copy link
Contributor

Google 一下 GLSurfaceView 截图, 就能 做到了.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants