- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我在 iOS 中使用 DJISDK 从飞机上下载图片。
我正在使用 PlaybackManager
类的 downloadSelectedFiles
方法。
这是我的过程回调:
process: { (data, error) in
if data != nil{
if self.downloadedImageData != nil{
self.downloadedImageData!.append(data!)
}else{
self.downloadedImageData = data!
}
}
}
这是文件完成回调:
fileCompletion: {
self.downloadedFilesCount += 1
let image = UIImage(data: self.downloadedImageData!)
if let img = image {
self.downloadedImagesArray?.append(img)
}
self.downloadedImageData = nil
}
我正在正确检索图像,但没有 EXIF 数据。我如何获取该信息并将其添加到图像中?我已经下载并尝试了 iOS-MediaManagerDemo,它是一回事,下载图像但没有 exif 数据,但官方 DJI Go 应用程序检索所有信息,因此必须有某种方法可以做到这一点。
最佳答案
还有一个 similar issue in their forums关于空元数据和 downloadSelectedFilesWithPreparation
。创建帖子的用户也找到了解决办法:
I solved the problem by not converting the NSData into any format instead saved the NSData directly. Using PHAssets and temporary file to store the NSData as PHAssets only accepts data from URL.
尝试使用 fetchFileDataWithOffset:updateQueue:updateBlock (它将在 Swift 中称为 fetchFileData(with:updateQueue:updateBlock)
)
[...] fetching the media data will return all data for a video or image
示例代码(objc):here
关于ios - 使用 EXIF 数据从 DJI 无人机检索图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45872030/
我在一台机器上运行 docker-compose 以下内容: gitlab 无人机(服务器) 无人机(代理) 当我触发构建(或由 git push 触发)时,无人机在这个问题上不断失败: git in
我的需求是在 Gitea 中创建新标签时运行 drone build。 我可以在 Drone 文档中看到两个选项。请在下面找到: 什么时候 when: event: tag b
我正在尝试将 docker 镜像推送到 Drone 0.8.5 中的私有(private)注册表中,当我将用户名和密码硬编码到管道中时它可以工作,但是我尝试在注册表选项卡中添加注册表详细信息并作为 s
我关注了这个 Digital Ocean 的 Drone Setup Tutorial但未能正确设置 Drone CI。当我尝试访问时,它不会响应任何请求,直到超时。我可以确认我在配置中公开了端口。
当我使用 docker 管道时,它将成功构建。但是当我使用 exec 管道时,它总是停留在挂起状态。我不知道出了什么问题。 kind: pipeline type: exec name: deploy
尝试减少我的 docker-compose.yml 和 .drone.yml 文件之间的服务配置重复。 无人机问题 https://github.com/drone/drone/issues/906讨
我想做 docker-compose up -d 似乎 plugins/docker 能够执行我想要的操作,但如果我不指定与发布相关的内容,它就会失败。我想使用它而不发布。 另一种选择可能是服务,但我
我正在做一个项目,我应该使用 Parrot AR Drone 2.0 的相机实现对象跟踪技术。所以主要的想法是,无人机应该能够识别指定的颜色,然后保持一定距离跟随它。 我正在使用 opencv与无人机
我使用 Drone 作为 CI 工具。我有无人机服务器和无人机代理,它们是码头容器。我将 Drone 连接到我的 GitHub 存储库。它完美地工作,它响应每个拉取和构建 docker 容器。我可以在
我希望能够将 AR Drone 2 的视频源从 Debian 服务器重新流式传输到 Flash。 我知道 AR 无人机使用 p264 编解码器。对于视频编解码器,我完全是新手,所以我不知道什么适合我想
我目前正在用 opencv 的 c++ api 构建一个纹理分类器。我一直在寻找使用它来识别纹理并理想地帮助 parot ar 无人机 2.0 导航到特定纹理。我找到了关于 Node 直升机及其 op
我投资了相当多的时间来完全学习 JBoss Arquillian 并将其用于我所有的集成和功能测试。我 100% 确定我想将它用于我的集成测试框架,但我对将它用于 UI/功能测试有点怀疑,并且希望是否
我是一名优秀的程序员,十分优秀!