2019-03-10 22:29:29 +02:00
|
|
|
import tornado.ioloop
|
|
|
|
|
|
|
|
|
|
from app.ChameleonVisionApp import ChameleonApplication
|
2019-04-13 11:57:43 -07:00
|
|
|
from app.classes.SettingsManager import SettingsManager
|
2019-03-10 22:29:29 +02:00
|
|
|
from tornado.options import options
|
2019-04-26 21:35:35 +03:00
|
|
|
from app.handlers.VisionHandler import VisionHandler
|
2019-03-10 22:29:29 +02:00
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2019-05-02 12:42:44 -07:00
|
|
|
SettingsManager()
|
2019-05-05 01:07:38 +03:00
|
|
|
|
2019-05-01 10:16:40 -07:00
|
|
|
#VisionHandler().run()
|
2019-05-02 12:42:44 -07:00
|
|
|
# SettingsManager().save_settings()
|
2019-04-14 11:55:07 -07:00
|
|
|
|
2019-03-10 22:29:29 +02:00
|
|
|
tornado.options.parse_command_line()
|
|
|
|
|
app = ChameleonApplication()
|
|
|
|
|
print(f"Serving on port {options.port}")
|
|
|
|
|
app.listen(options.port)
|
|
|
|
|
tornado.ioloop.IOLoop.current().start()
|
2019-04-14 11:55:07 -07:00
|
|
|
|
|
|
|
|
#TODO: create process for each camera
|
|
|
|
|
# create proccess loop and camera publisher
|
|
|
|
|
# bridge network tables for each camera
|