gpt4 book ai didi

ios - 在 ResearchKit 中捕捉皮疹图像

转载 作者:行者123 更新时间:2023-11-29 01:29:19 26 4
gpt4 key购买 nike

我正在为狼疮患者开发 Apple ResearchKit 应用程序。我已经进行了一些调查和步行事件的任务。

现在我需要经常拍摄皮疹图像,仅将其保存在应用程序中(而不是照片应用程序中),并将最新图像与上次拍摄的图像进行比较。

我需要知道我是否可以使用 ResearchKit 来完成上述任务。如何打开 iPhone 相机并使用 ResearchKit 拍摄图像?我知道图像比较是 ResearchKit 之外的一项任务。但我的首要任务是在 ResearchKit 中捕获图像。是否可以使用 ResearchKit 或我是否必须在 RK 的范围之外执行此任务。如果可用,请向我提供任何代码或任何链接。

提前致谢

最佳答案

@prateek ResearchKit 有一个图像捕获步骤,可以满足您的要求。您还必须在任务 View Controller 中声明捕获图像的输出目录。下面是示例代码。

ORKImageCaptureStep *imageCaptureStep = [[ORKImageCaptureStep alloc] initWithIdentifier:@"ImageCaptureStep"];
imageCaptureStep.title = /*Title for the step*/;

ORKTaskViewController *taskViewController = [[ORKTaskViewController alloc] initWithTask:imageCaptureStep taskRunUUID:nil];
taskViewController.delegate = self;
taskViewController.outputDirectory = /*where to store your image*/;

并且不要忘记为任务 View Controller 实现“ORKTaskViewControllerDelegate”。

关于ios - 在 ResearchKit 中捕捉皮疹图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33615637/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com