コード例 #1
0
ファイル: sensor.py プロジェクト: Dreadbot/Dreadbot2018
 def initNetTables(self):
     from nt3656 import Nt3656
     self.nt3656 = Nt3656()
コード例 #2
0
import os.path
import datetime
import json
import numpy

import remi.gui as gui
from remi.gui import *
from remi import start, App

from calibrateutils import CalibrateTool
#from plotlywidget import PlotlyWidget

# Read in config values
from nt3656 import Nt3656

nt3656 = Nt3656()

hsvValuesRead = False

userhome = os.path.expanduser("~")
exec(open(os.path.join(userhome, "dreadbots_config.py")).read())

LABEL_CAPTURED = "Captured (click to toggle)"
LABEL_ANNOTATED = "Live Annotation (click to toggle)"


class MyEncoder(json.JSONEncoder):
    def default(self, obj):
        if isinstance(obj, numpy.integer):
            return int(obj)
        elif isinstance(obj, numpy.floating):