Skip to content
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

Merged
merged 43 commits into from
Nov 15, 2024
Merged

Added logs to detect target #217

merged 43 commits into from
Nov 15, 2024

Conversation

wdan31
Copy link
Contributor

@wdan31 wdan31 commented Nov 3, 2024

The logs describe time it took to process images and when images were processed.

Copy link
Member

@maxlou05 maxlou05 left a 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"
Copy link
Member

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)

@wdan31 wdan31 closed this Nov 3, 2024
@wdan31 wdan31 deleted the detect-target-worker branch November 3, 2024 18:14
@wdan31 wdan31 restored the detect-target-worker branch November 7, 2024 22:17
@wdan31 wdan31 reopened this Nov 7, 2024
Copy link
Member

@maxlou05 maxlou05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved!

@wdan31 wdan31 merged commit cd9e7cc into main Nov 15, 2024
1 check passed
@wdan31 wdan31 deleted the detect-target-worker branch November 15, 2024 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants