Latest 1.1.1
Homepage https://github.com/yulingtianxia/PhotoAssessment
License MIT
Platforms ios 11.0, osx 10.13
Authors

CI Status
Version
Carthage compatible
License
Platform
CocoaPods
CocoaPods
Twitter Follow

Photo Assessment using Core ML and Metal.

📚 Article

🔮 Example

To run the example project, clone the repo and run PhotoAssessment target.

🐒 How to use

PhotoAssessmentHelper generates assessment result quicker and easier, using far less code.

self.helper.requestMLAssessmentScore(for: downsampleImage, completionHandler: { (score) in
    DispatchQueue.main.async {
        self.assessmentLabel.text = String(format: "Assessment Score:%0.5f", score)
    }
})
self.helper.requestMPSAssessmentScore(for: downsampleImage, completionHandler: { (result) in
    DispatchQueue.main.async {
        self.detailLabel.text = result.description
    }
})

PhotoAssessmentKit

Support iOS、tvOS.

PhotoAssessmentMacKit

Support macOS.

ConvertMLModel

Convert NIMA model to Core ML format.

📲 Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate PhotoAssessment into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.0'
use_frameworks!
target 'MyApp' do
    pod 'PhotoAssessment'
end

You need replace "MyApp" with your project’s name.

Then, run the following command:

$ pod install

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate PhotoAssessment into your Xcode project using Carthage, specify it in your Cartfile:

github "yulingtianxia/PhotoAssessment"

Run carthage update to build the framework and drag the built PhotoAssessmentKit.framework into your Xcode project.

Manual

Just drag the "Sources" document folder into your project.

❤️ Contributed

  • If you need help or you’d like to ask a general question, open an issue.
  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

👨🏻‍💻 Author

yulingtianxia, [email protected]

👮🏻 License

PhotoAssessment is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "PhotoAssessment",
    "version": "1.1.1",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "Swift framework for Photo Assessment using Core ML and Metal.",
    "homepage": "https://github.com/yulingtianxia/PhotoAssessment",
    "social_media_url": "http://twitter.com/yulingtianxia",
    "authors": {
        "YangXiaoyu": "[email protected]"
    },
    "source": {
        "git": "https://github.com/yulingtianxia/PhotoAssessment.git",
        "tag": "1.1.1"
    },
    "swift_versions": "5.0",
    "module_name": "PhotoAssessment",
    "platforms": {
        "ios": "11.0",
        "osx": "10.13"
    },
    "source_files": "PhotoAssessment-Sample/Sources/*.{swift,mlmodel}"
}

Pin It on Pinterest

Share This