Spaces:
Sleeping
Sleeping
File size: 457 Bytes
ee3a6ac |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import os
from lib.ocr import ocr_image
from lib.line_dev import send_image
from lib.gas import save_image_to_drive
def main():
# Load image from AppSheet QA
image_data = load_image_from_appsheet_qa()
# Perform OCR on the image
text = ocr_image(image_data)
# Send the OCR result to Line Dev
send_image(text)
# Save the image to Google Drive using GAS
save_image_to_drive(image_data)
if __name__ == "__main__":
main() |