All Projects → IlijaMihajlovic → CoreML-and-Vision-with-a-pre-trained-deep-learning-SSD-model

IlijaMihajlovic / CoreML-and-Vision-with-a-pre-trained-deep-learning-SSD-model

Licence: MIT license
This project shows how to use CoreML and Vision with a pre-trained deep learning SSD (Single Shot MultiBox Detector) model. There are many variations of SSD. The one we’re going to use is MobileNetV2 as the backbone this model also has separable convolutions for the SSD layers, also known as SSDLite. This app can find the locations of several di…

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to CoreML-and-Vision-with-a-pre-trained-deep-learning-SSD-model

Awesome Coreml Models
Largest list of models for Core ML (for iOS 11+)
Stars: ✭ 5,192 (+32350%)
Mutual labels:  coreml, coreml-framework, coreml-models, coreml-model
CustomVisionMicrosoftToCoreMLDemoApp
This app recognises 3 hand signs - fist, high five and victory hand [ rock, paper, scissors basically :) ] with live feed camera. It uses a HandSigns.mlmodel which has been trained using Custom Vision from Microsoft.
Stars: ✭ 25 (+56.25%)
Mutual labels:  coreml, coreml-model, coreml-vision
MNIST-CoreML
Predict handwritten digits with CoreML
Stars: ✭ 63 (+293.75%)
Mutual labels:  coreml, coreml-framework, coreml-models
pytorch-vit
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
Stars: ✭ 250 (+1462.5%)
Mutual labels:  image-classification, image-recognition
Image-Classification
Pre-trained VGG-Net Model for image classification using tensorflow
Stars: ✭ 29 (+81.25%)
Mutual labels:  image-classification, image-recognition
TensorFlow-Multiclass-Image-Classification-using-CNN-s
Balanced Multiclass Image Classification with TensorFlow on Python.
Stars: ✭ 57 (+256.25%)
Mutual labels:  image-classification, image-recognition
List-CoreML-Models
A Big Awesome List CoreML Models.
Stars: ✭ 120 (+650%)
Mutual labels:  coreml, coreml-models
Paper-Notes
Paper notes in deep learning/machine learning and computer vision
Stars: ✭ 37 (+131.25%)
Mutual labels:  image-classification, image-recognition
jpetstore-kubernetes
Modernize and Extend: JPetStore on IBM Cloud Kubernetes Service
Stars: ✭ 21 (+31.25%)
Mutual labels:  image-classification, image-recognition
UnityProminentColor
Tool to gather main colors of an image using Unity.
Stars: ✭ 40 (+150%)
Mutual labels:  image-classification, image-recognition
SentimentVisionDemo
🌅 iOS11 demo application for visual sentiment prediction.
Stars: ✭ 34 (+112.5%)
Mutual labels:  coreml, coreml-models
tensorflow-image-recognition-chrome-extension
Chrome browser extension for using TensorFlow image recognition on web pages
Stars: ✭ 88 (+450%)
Mutual labels:  image-classification, image-recognition
TensorFlow-Binary-Image-Classification-using-CNN-s
Binary Image Classification in TensorFlow
Stars: ✭ 26 (+62.5%)
Mutual labels:  image-classification, image-recognition
ICCV2021-Paper-Code-Interpretation
ICCV2021/2019/2017 论文/代码/解读/直播合集,极市团队整理
Stars: ✭ 2,022 (+12537.5%)
Mutual labels:  image-classification, image-recognition
mlmodelzoo
Build your iOS 11+ apps with the ready-to-use Core ML models below
Stars: ✭ 17 (+6.25%)
Mutual labels:  coreml, coreml-models
CarLens-iOS
CarLens - Recognize and Collect Cars
Stars: ✭ 124 (+675%)
Mutual labels:  image-recognition, coreml
BottleneckTransformers
Bottleneck Transformers for Visual Recognition
Stars: ✭ 231 (+1343.75%)
Mutual labels:  image-classification, image-recognition
Transfer Learning Suite
Transfer Learning Suite in Keras. Perform transfer learning using any built-in Keras image classification model easily!
Stars: ✭ 212 (+1225%)
Mutual labels:  image-classification, image-recognition
MNIST
Handwritten digit recognizer using a feed-forward neural network and the MNIST dataset of 70,000 human-labeled handwritten digits.
Stars: ✭ 28 (+75%)
Mutual labels:  image-classification, image-recognition
rps-cv
A Rock-Paper-Scissors game using computer vision and machine learning on Raspberry Pi
Stars: ✭ 102 (+537.5%)
Mutual labels:  image-classification, image-recognition

CoreML and Vision object detection with a pre-trained deep learning SSD model

platform-ios swift-version lisence

This project shows how to use CoreML and Vision with a pre-trained deep learning SSD (Single Shot MultiBox Detector) model. There are many variations of SSD. The one we’re going to use is MobileNetV2 as the backbone this model also has separable convolutions for the SSD layers, also known as SSDLite. This app can find the locations of several different types of objects in the image. The detections are described by bounding boxes, and for each bounding box, the model also predicts a class.


Side Note

  • Currently, I do not have an iPhone, so I'm unable to test the app on a physical device. I apologize in advance for maybe possible bugs.

    Kind regards,

    Ilija 🖖 😄


Requirements

  • Physical device! Because the simulator does not have a camera
  • Swift 4.2+
  • Xcode 9.2+
  • iOS 11.0+

Getting the files

  • Use GitHub to clone the repository locally, or download the .zip file of the repository and extract the files.

Auto genereted model helper class

  • Once the model is imported the compiler generates a model helper class on build path automatically. Then we can access the model through model helper class by creating an instance.

alt text


Model Metadata

  • Here we can see the inputs the model aspects and the outputs it generates, as well as auto genereted model helper class.

alt text


Camera Usage Description

  • Add permission in info.plist for device's camera access.

alt text

  • Or you can open the info.plist file as raw XML and add the following code:
<key>NSCameraUsageDescription</key>
      <string>Camera Needed For Object Detection And Classification</string>

Import COCO Dataset Labels

alt text


License

MIT License

Copyright (c) 2019 Ilija Mihajlovic

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].