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