creek
The AI Image Editor of 2030git clone https://github.com/maydayv7/creek
lib/services/analyze/color.dart (492B)
1import 'package:flutter/foundation.dart';
2import '../python_service.dart';
3
4class ColorAnalyzerService {
5 final PythonService _pythonService = PythonService();
6
7 Future<Map<String, dynamic>?> analyze(String imagePath) async {
8 try {
9 debugPrint("Starting Color Style Analysis...");
10 return await _pythonService.analyzeColorStyle(imagePath);
11 } catch (e) {
12 debugPrint("Color Analysis Exception: $e");
13 return {'success': false, 'error': e.toString()};
14 }
15 }
16}