MLImageDetect is an iOS app built using Swift and CoreML, powered by the ResNet50FP16.mlmodel. This machine learning model performs object detection on selected images and provides an accuracy confidence score.
Learn more about the ResNet50 model in the official or check out the .
- Select images from your phone’s gallery.
- Detect objects in the selected image.
- Receive accuracy confidence for the detected object.
- Share detection results (image + result) with others.
- Future update: Ability to switch between different ML models.
- Image Selection: The user taps the "Select Image" button to choose a photo from their device.
- Object Detection: The app uses the ResNet50FP16 CoreML model to detect objects in the image.
- Accuracy Confidence: Once detection is complete, the app displays the detected object and a confidence score (e.g., 96.79%).
The ResNet50FP16.mlmodel is a pre-trained convolutional neural network (CNN) model that is widely used for image classification tasks. It is based on the ResNet (Residual Network) architecture, which has shown remarkable performance in visual recognition tasks.
- Purpose: ResNet models are designed to perform image recognition tasks by analyzing the features of images and classifying objects.
- Who Created It: The ResNet architecture was developed by researchers from Microsoft Research, and it is a go-to model for various image classification tasks.
- Why It's Used: The model offers high accuracy and is particularly efficient in identifying objects in images. The FP16 (16-bit floating point) version of the model optimizes performance for iOS devices, allowing faster and more memory-efficient detection.
- Xcode 15 or later
- iOS 17 or later (for iPhone deployment)
- Basic understanding of Swift and CoreML.
- Clone the repository:
git clone https://github.com/RanaAk/MLImageDetect.git cd MLImageDetect
- Open the project in Xcode.
- Run the app on a device or simulator.
- Allow users to switch between different machine learning models to detect objects.
- Support for additional image formats.
- Improve UI and provide more customization options.
This project is licensed under the MIT License. Feel free to use, modify, and share.
- ResNet50 was developed by Microsoft Research. Learn more about it here.
This app is ideal for developers who are just starting out with CoreML on iOS and macOS. Stay tuned for more updates!