【问题标题】:Crash on QCAR::CameraDevice::getInstance().init(camera)QCAR::CameraDevice::getInstance().init(camera) 上的崩溃
【发布时间】:2015-07-23 07:59:25
【问题描述】:

我有Xcode 6.3.2,我已经下载了最新版本的iOS SDK 4.2.3

我已将 SDK 和示例集成到当前项目中,以便为我的项目添加新功能。

当我启动应用程序并启动UserDefinedTargetsViewController 时,我在这一行出现了崩溃:

if (! QCAR::CameraDevice::getInstance().init(camera)) {

关于功能:

// Start QCAR camera with the specified view size
- (bool)startCamera:(QCAR::CameraDevice::CAMERA)camera viewWidth:(float)viewWidth andHeight:(float)viewHeight error:(NSError **)error
{

SampleApplicationSession

文件附件中的屏幕截图

有人可以帮助我吗?

谢谢你:)

这是屏幕截图:

【问题讨论】:

  • 请贴出整个类和错误,并去掉Android标签,谢谢!

标签: ios objective-c camera


【解决方案1】:

遇到了同样的问题并设法解决了。

Vuforia 尝试设置无效的像素格式类型。 (1647522401)

所以我不得不使用 Aspects 调整调用 [AVCaptureVideoDataOutput setVideoSettings:]

https://github.com/steipete/Aspects

然后我基本上检查格式是否有效,如果是我让它调用,否则我什么都不做。

我在代码中包含了一个要点。

https://gist.github.com/vibrazy/008903e5c493637edb84

希望有帮助

【讨论】:

    猜你喜欢
    • 2023-03-18
    • 2017-03-26
    • 2023-02-04
    • 1970-01-01
    • 1970-01-01
    • 2018-09-18
    • 2012-11-29
    • 2018-12-16
    • 1970-01-01
    相关资源
    最近更新 更多