def main():
    tornado.options.parse_command_line()
    opencv.Image().delete()
    logging.info("Images deleted")
    opencv.Label().delete()
    logging.info("Labels deleted")
    opencv.load_images_to_db("data/images")
    logging.info("Labels and images loaded")
    opencv.train()
    logging.info("Model trained")
    app = Application()
    app.listen(options.port)
    tornado.ioloop.IOLoop.instance().start()
def main():
    tornado.options.parse_command_line()
    opencv.Image().delete()
    logging.info("Images deleted")
    opencv.Label().delete()
    logging.info("Labels deleted")
    opencv.load_images_to_db("data/images")
    logging.info("Labels and images loaded")
    opencv.train()
    logging.info("Model trained")
    app = Application()
    app.listen(options.port)
    tornado.ioloop.IOLoop.instance().start()