{"id":18460647,"url":"https://github.com/bourdakos1/visual-recognition-with-coreml","last_synced_at":"2025-04-08T06:31:59.624Z","repository":{"id":86343971,"uuid":"132913802","full_name":"bourdakos1/visual-recognition-with-coreml","owner":"bourdakos1","description":"🕶 Classify images offline using Watson Visual Recognition and Core ML.","archived":false,"fork":false,"pushed_at":"2018-10-05T18:51:37.000Z","size":17330,"stargazers_count":41,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-23T07:25:59.542Z","etag":null,"topics":["computer-vision","coreml","ios","visual-recognition","watson"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bourdakos1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-10T14:43:02.000Z","updated_at":"2024-11-28T13:21:33.000Z","dependencies_parsed_at":"2023-03-05T23:15:33.733Z","dependency_job_id":null,"html_url":"https://github.com/bourdakos1/visual-recognition-with-coreml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bourdakos1%2Fvisual-recognition-with-coreml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bourdakos1%2Fvisual-recognition-with-coreml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bourdakos1%2Fvisual-recognition-with-coreml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bourdakos1%2Fvisual-recognition-with-coreml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bourdakos1","download_url":"https://codeload.github.com/bourdakos1/visual-recognition-with-coreml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247792058,"owners_count":20996876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["computer-vision","coreml","ios","visual-recognition","watson"],"created_at":"2024-11-06T08:27:34.255Z","updated_at":"2025-04-08T06:31:59.616Z","avatar_url":"https://github.com/bourdakos1.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Watson Visual Recognition and Core ML\n\n\u003e **Note:** This repo is now being dedicated to my own fun experiments. For a more vanilla version, use the [official repo](https://github.com/watson-developer-cloud/visual-recognition-coreml).\n\n\nClassify images offline with [Watson Visual Recognition][vizreq] and [Core ML][core_ml].\n\nA deep neural network model is trained on the cloud by Watson Visual Recognition. The app then downloads the model which can be used offline by Core ML to classify images. Everytime the app is opened it checks if there are any updates to the model and downloads them if it can.\n\n![App Screenshot][screenshot_iphone]\n\n## Before you begin\nMake sure you have these software versions installed on your machine. **These versions are required to support Core ML**:\n\n- **MacOS 10.11 El Capitan** or later\n- **iOS 11** or later (on your iPhone or iPad if you want the application to be on your device)\n- **[Xcode 9][xcode_download]** or later\n- **[Carthage 0.29][carthage_instructions]** or later\n\n\u003e **Carthage installation**\n\u003e\n\u003e If you don’t have Homebrew on your computer, it’s easier to setup Carthage with the `.pkg` installer. You can download it [here][carthage_download].\n\n## Getting the files\nUse GitHub to clone the repository locally, or download the .zip file of the repository and extract the files.\n\n## Setting up Visual Recognition in Watson Studio\n1. Log in to Watson Studio ([dataplatform.ibm.com][watson_studio_url]). From this link you can create an IBM Cloud account, sign up for Watson Studio, or log in.\n\n## Training a custom model\nFor an in depth walkthrough of creating a custom model, check out the [Core ML \u0026 Watson Visual Recognition Code Pattern][code_pattern].\n\n## Installing the Watson Swift SDK\nThe Watson Swift SDK makes it easy to keep track of your custom Core ML models and to download your custom classifiers from IBM Cloud to your device.\n\nUse the Carthage dependency manager to download and build the Watson Swift SDK.\n\n1. Open a terminal window and navigate to this project's directory.\n1. Run the following command to download and build the Watson Swift SDK:\n\n    ```bash\n    carthage update --platform iOS\n    ```\n\n## Configure your app\n1. Open the project in XCode.\n1. Copy the **Model ID** of the model you trained and paste it into the `modelId` property in the [`CameraViewController.swift`][camera_view_controller] file.\n1. Copy your **\"apikey\"** from your Visual Recognition service credentials and paste it into the `apiKey` property in the [`Credentials.plist`][credentials_plist] file.\n\n## Running the app\n1. In Xcode, select the `Core ML Vision` scheme.\n1. You can run the app in the simulator or on your device.\n\u003e **Note:** The visual recognition classifier status must be **Ready** to use it. Check the classifier status in Watson Studio on the Visual Recognition instance overview page.\n\n## What to do next\n\nTry using your own data: Train a Visual Recognition classifier with your own images. For details on the Visual Recognition service, see the links in the Resources section.\n\n## Resources\n\n- [Visual Recognition docs](https://console.bluemix.net/docs/services/visual-recognition/getting-started.html)\n- [Watson Swift SDK](https://github.com/watson-developer-cloud/swift-sdk)\n- [Apple machine learning][core_ml] and [Core ML documentation](https://developer.apple.com/documentation/coreml)\n- [Watson console](https://bluemix.net/developer/watson) on IBM Cloud\n\n[code_pattern]: https://watson-developer-cloud.github.io/watson-vision-coreml-code-pattern/\n[watson_studio_url]: https://dataplatform.ibm.com\n[carthage_download]: https://github.com/Carthage/Carthage/releases\n[carthage_instructions]: https://github.com/Carthage/Carthage#installing-carthage\n[vizreq]: https://www.ibm.com/watson/services/visual-recognition/\n[core_ml]: https://developer.apple.com/machine-learning/\n[vizreq_with_coreml]: https://github.com/watson-developer-cloud/visual-recognition-coreml/\n[vizreq_tooling]: https://watson-visual-recognition.ng.bluemix.net/\n[xcode_download]: https://developer.apple.com/xcode/downloads/\n\n[camera_view_controller]: /Core%20ML%20Vision/CameraViewController.swift\n[credentials_plist]: /Core%20ML%20Vision/Credentials.plist\n\n[screenshot_iphone]: /Screenshots/iPhone.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbourdakos1%2Fvisual-recognition-with-coreml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbourdakos1%2Fvisual-recognition-with-coreml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbourdakos1%2Fvisual-recognition-with-coreml/lists"}