-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added logs to detect target #217
Conversation
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
)
@@ -108,4 +113,8 @@ def run( | |||
if self.__show_annotations: | |||
cv2.imshow("Annotated", image_annotated) # type: ignore | |||
|
|||
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
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.