from UAV.imports import*# TODO why is this relative import on from fastcore.utils import*import cv2import giimport numpy as npfrom imutils import resize# from ping_ip import ping_ipimport threadingfrom multiprocessing import Processfrom gi.repository import Gstimport subprocessimport platformimport paho.mqtt.client as mqtt_clientimport time# from dataloader import LoadImages, resizefrom pathlib import Pathimport loggingimport UAV.params as params# gi.require_version('Gst', '1.0')
/tmp/ipykernel_28589/164734448.py:11: PyGIWarning: Gst was imported without specifying a version first. Use gi.require_version('Gst', '1.0') before import to ensure that the right version gets loaded.
from gi.repository import Gst
logging.basicConfig(format='%(asctime)-8s,%(msecs)-3d%(levelname)5s [%(filename)10s:%(lineno)3d] %(message)s', datefmt='%H:%M:%S', level=params.LOGGING_LEVEL) # Todo add this to paramslogger = logging.getLogger(params.LOGGING_NAME)
All of nbdev’s configuration is done through a file called settings.ini which lives in the root of your repo. It’s in ConfigParser format. For example, here’s the first few lines of nbdev’s settings.ini file