-
Notifications
You must be signed in to change notification settings - Fork 37
Added logs to detect target #217
Conversation
maxlou05
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, please update the common submodule (easiest way is to just run setup_project.ps1 or source setup_project.sh)
|
|
||
| end_time = time.time() | ||
| self.__logger.info( | ||
| f"{time.localtime()}: Target detection took {round(end_time - start_time, 3)} seconds" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For time, it's fine to just use time.time() (logger automatically puts a timestamp with a proper format like hh:mm:ss), and there's no need to round it since we would rather have more precision. (these tasks usually take much less than 1 second, so more precision is required)
…ter-vision-python into detect-target-worker
…into detect-target-worker
…dy in local_logger argument
maxlou05
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved!
The logs describe time it took to process images and when images were processed.