This commit is contained in:
Hamza-Ayed
2024-06-22 13:12:35 +03:00
parent 1cc0156cfd
commit 3c5321f70b
67 changed files with 91 additions and 740 deletions

View File

@@ -85,19 +85,15 @@ class CarRegistrationRecognizerController extends GetxController {
}
String result = lines.map((map) => map.values.first.toString()).join(' ');
// print(result.length);
if (result.length > 2200) {
result = result.substring(0, 2200);
}
// print('jsonOutput------------------------------');
// print(result);
Map result2 = await LlamaAi().getCarRegistrationData(result,
'vin,make,made,year,expiration_date,color,owner,registration_date'); //
// Assign the result to the extracted variable
extracted = result2;
print('extracted is ' + extracted.toString());
update();
}
}