Skip to content

Commit

Permalink
Added confidence logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
honeytung committed Jul 3, 2024
1 parent 5c8c0b6 commit 2b715bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/api/routes/image_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ async def post_image_query(
detector_metadata=get_detector_metadata(detector_id=detector_id, gl=gl),
confidence_threshold=confidence_threshold,
):
logger.debug("Motion detection confidence is high enough to return")
logger.debug(f"Motion detection confidence is high enough to return. Current confidece: "
f"{new_image_query.result.confidence}. Target confidence: {confidence_threshold}.")
app_state.db_manager.create_iqe_record(record=new_image_query)
return new_image_query

Expand Down
1 change: 0 additions & 1 deletion test/api/test_motdet.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ def test_motion_detection_not_sufficient_if_doesnt_meet_conf_threshold(gl: Groun
image=original_image,
wait=wait_time,
confidence_threshold=base_iq_response.result.confidence + 1e-3, # Require a higher confidence than before
human_review="ALWAYS"
)

time_diff = time.time() - current_time
Expand Down

0 comments on commit 2b715bc

Please sign in to comment.