Home

Awesome

CI Status Version Carthage compatible License Platform CocoaPods CocoaPods Twitter Follow

PhotoAssessment

Photo Assessment (i.e. quality score) 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

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Author

yulingtianxia, yulingtianxia@gmail.com

๐Ÿ‘ฎ๐Ÿป License

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