Giter Club home page Giter Club logo

tracesilk's Introduction

TraceSilk

ios课程大作业:《TraceSilk:踪丝》

简单的利用PhotosKit和CoreML实现的图片定位软件

1.软件简介

帮助用户轻松获取目标图片的定位信息,像《哈利波特》中的踪丝一样,即使是天涯海角,也无处可藏。

从此再也不用担心不认识朋友圈朋友发的景点照片啦!轻轻一点,不必尴尬私聊也能看见TA们的旅行好去处!

2.软件核心方法

软件采取两种方式获取图片定位。

3.实现功能

  • 使用最新的PhotosKit从相册加载图片
  • 获取图片地址信息或使用模型预测地址信息
  • 调用MapKit实现位置在地图上的标示
  • 按钮调用Safari浏览器进入“关于”页面

4.遇到的问题

  if let asset: PHAsset = info[UIImagePickerController.InfoKey.phAsset] as? PHAsset 

总是返回nil的问题:

​ 可能是由于UIImagePickerController已经可以被PHPickerViewController替代的缘故,更换到PHPicker可以解决参考博文

图片地理位置读取不到的问题:

在info.plist中请求对应权限可解决!

5.预期效果

预期效果图-预测 预期效果图-获取

tracesilk's People

Contributors

rubiscoqaq avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.