Prevent fatal exit cuased by missing imports #8
5
main.py
5
main.py
@ -1,9 +1,7 @@
|
|||||||
|
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from PIL import Image
|
|
||||||
import os
|
|
||||||
import serial
|
|
||||||
import sys
|
import sys
|
||||||
|
import os
|
||||||
import json
|
import json
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
@ -11,6 +9,7 @@ try:
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
from picamera import PiCamera
|
from picamera import PiCamera
|
||||||
from picamera.array import PiRGBArray
|
from picamera.array import PiRGBArray
|
||||||
|
import serial
|
||||||
import cv2
|
import cv2
|
||||||
|
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
|
Loading…
Reference in New Issue
Block a user