main.go 357 B

1234567891011121314151617181920
  1. package main
  2. import (
  3. "github.com/sirupsen/logrus"
  4. "server/edge/camera"
  5. "server/edge/util/logger"
  6. "server/edge/util/task"
  7. )
  8. func main() {
  9. logger.InitLog()
  10. //初始化摄像头
  11. err := camera.GetCameraDeviceMgr().InitAllCameraDevice()
  12. if err != nil {
  13. logrus.Errorf("InitAllCameraDevice:%s", err.Error())
  14. return
  15. }
  16. task.TimeTasks()
  17. select {}
  18. }