A Swift-based iOS application that allows users to scan food items, barcodes, and food labels using the FatSecret API for nutritional information.
- Food item scanning and recognition
- Barcode scanning with nutritional information lookup
- Food label text recognition
- Photo gallery integration
- Real-time camera preview
- Integration with FatSecret API for comprehensive food data
- iOS 15.0+
- Xcode 13.0+
- Swift 5.0+
- FatSecret API credentials
- Clone the repository
- Open
scanner v3.xcodeprojin Xcode - Configure your FatSecret API credentials:
- Sign up for a FatSecret API account at FatSecret Platform API
- Get your API credentials (Client ID and Client Secret)
- Open
Config.swiftand replace the placeholder values:static let fatSecretClientId = "YOUR_CLIENT_ID_HERE" static let fatSecretClientSecret = "YOUR_CLIENT_SECRET_HERE"
- Build and run the project
- Launch the app
- Choose one of the scanning modes:
- Scan Food: Point the camera at a food item for recognition
- Barcode: Scan product barcodes for nutritional information
- Food Label: Capture and process food label text
- Gallery: Select existing photos from your device
- View the nutritional information and details of the scanned items
The app requires the following permissions:
- Camera access for scanning
- Photo library access for gallery features
Make sure to grant these permissions when prompted.
This project is licensed under the MIT License - see the LICENSE file for details.
- FatSecret API for nutritional data
- Vision framework for image processing
- AVFoundation for camera handling