Photo Assessment using Core ML and Metal.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ConvertMLModel
PhotoAssessment-Sample
.gitignore
.travis.yml
LICENSE
README.md

README.md

CI Status Version Carthage compatible License Platform CocoaPods CocoaPods Twitter Follow

PhotoAssessment

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, yulingtianxia@gmail.com

👮🏻 License

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