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

@@ -91,10 +91,7 @@ class CameraClassController extends GetxController {
http.StreamedResponse response = await request.send();
if (response.statusCode == 200) {
print(await response.stream.bytesToString());
} else {
print(response.reasonPhrase);
}
} else {}
}
Future<String> uploadImage(File imageFile) async {
@@ -164,12 +161,9 @@ class CameraClassController extends GetxController {
update();
// Print the JSON output
print(jsonOutput);
// Get.back();
} catch (e) {
print('Error capturing image: $e');
}
} catch (e) {}
}
String getTextAsJSON(String text) {
@@ -228,11 +222,8 @@ class CameraClassController extends GetxController {
// textBlocks.toString(); // Convert the extracted text to JSON.
// // Print the JSON to the console.
// print(jsonText);
// update();
// // print(text);
// } catch (e) {
// print('Error during text extraction: $e');
// scannedText = '';
// }
// }