Compare commits

..

No commits in common. "b0f4fcd6767a8ba7f4eac3282322c6d656fe0c13" and "18354aef6ca64d0727a550f346688ff9faa659f8" have entirely different histories.

3 changed files with 2 additions and 20 deletions

View File

@ -27,7 +27,7 @@ class ReviewMetadata(BaseModel):
) )
title: str = Field( title: str = Field(
max_length=80, max_length=80,
description="Under 10 words. Name the apparent purpose or outcome of the activity together with the location involved. Do not narrate or list the sequence of actions step by step.", description="A short title characterizing what took place and where, under 10 words.",
) )
scene: str = Field( scene: str = Field(
min_length=150, min_length=150,
@ -36,7 +36,7 @@ class ReviewMetadata(BaseModel):
) )
shortSummary: str = Field( shortSummary: str = Field(
min_length=70, min_length=70,
max_length=120, max_length=100,
description="A brief 2-sentence summary of the scene, suitable for notifications.", description="A brief 2-sentence summary of the scene, suitable for notifications.",
) )
confidence: float = Field( confidence: float = Field(

View File

@ -517,16 +517,10 @@ class EmbeddingMaintainer(threading.Thread):
try: try:
event: Event = Event.get(Event.id == event_id) event: Event = Event.get(Event.id == event_id)
except DoesNotExist: except DoesNotExist:
for processor in self.post_processors:
if isinstance(processor, ObjectDescriptionProcessor):
processor.cleanup_event(event_id)
continue continue
# Skip the event if not an object # Skip the event if not an object
if event.data.get("type") != "object": if event.data.get("type") != "object":
for processor in self.post_processors:
if isinstance(processor, ObjectDescriptionProcessor):
processor.cleanup_event(event_id)
continue continue
# Extract valid thumbnail # Extract valid thumbnail

View File

@ -205,7 +205,6 @@ class AudioEventMaintainer(threading.Thread):
self.transcription_thread.start() self.transcription_thread.start()
self.was_enabled = camera.enabled self.was_enabled = camera.enabled
self.was_audio_enabled = camera.audio.enabled
def detect_audio(self, audio: np.ndarray) -> None: def detect_audio(self, audio: np.ndarray) -> None:
if not self.camera_config.audio.enabled or self.stop_event.is_set(): if not self.camera_config.audio.enabled or self.stop_event.is_set():
@ -364,17 +363,6 @@ class AudioEventMaintainer(threading.Thread):
time.sleep(0.1) time.sleep(0.1)
continue continue
audio_enabled = self.camera_config.audio.enabled
if audio_enabled != self.was_audio_enabled:
if not audio_enabled:
self.logger.debug(
f"Disabling audio detections for {self.camera_config.name}, ending events"
)
self.requestor.send_data(
EXPIRE_AUDIO_ACTIVITY, self.camera_config.name
)
self.was_audio_enabled = audio_enabled
self.read_audio() self.read_audio()
if self.audio_listener: if self.audio_listener: