6/22/1
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user