PhotoAssessment 1.1.1

PhotoAssessment 1.1.1

Maintained by Yang Xiaoyu.

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


Support iOSใ€tvOS.


Support macOS.


Convert NIMA model to Core ML format.

๐Ÿ“ฒ Installation


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 ''
platform :ios, '11.0'
target 'MyApp' do
	pod 'PhotoAssessment'

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

Then, run the following command:

$ pod install


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.


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.