Disclaimer: This project is for educational and research purposes only. It must not be used for real medical diagnosis.
A simple macOS demo app built with SwiftUI using a Core ML image classification model to detect bone fractures from X‑ray images.
I used a publicly available dataset from Kaggle, formatted it for Core ML training, then converted it into .mlmodel format.
Dataset format used for Create ML / Core ML training:
train/
├─ shoulderfracture/
│ └─ images...
└─ forearmfracture/
└─ images...
You can train your own model using this same structure. I have also attached the formatted dataset to make training easier.
- Download or clone this repository.
- Open the
.xcodeprojfile in Xcode. - Press Run to launch the macOS app.
The .mlmodel file is already included, so the app will work immediately.
- Dataset taken from Kaggle.
- Converted into Core ML format.
- Trained using Create ML with the folder structure shown above.
You may replace the model with your own by training in Create ML and dropping the new .mlmodel file into the Xcode project.
MIT License
Muhammad Haroon Email: mianmharoon72@gmail.com LinkedIn: https://www.linkedin.com/in/mian-haroon
