Spaces:
Sleeping
Sleeping
Testimony Adekoya
commited on
Commit
·
edbbe80
1
Parent(s):
a3c1bbf
Just work werey
Browse files
src/alerting/alert_system.py
CHANGED
@@ -1,9 +1,6 @@
|
|
1 |
# drive_paddy/alerting/alert_system.py
|
2 |
import time, os, io, google.generativeai as genai
|
3 |
from gtts import gTTS
|
4 |
-
from pydub import AudioSegment
|
5 |
-
import simpleaudio as sa # Keep for fallback
|
6 |
-
|
7 |
class BaseAlerter:
|
8 |
def __init__(self, config):
|
9 |
self.config = config['alerting']
|
|
|
1 |
# drive_paddy/alerting/alert_system.py
|
2 |
import time, os, io, google.generativeai as genai
|
3 |
from gtts import gTTS
|
|
|
|
|
|
|
4 |
class BaseAlerter:
|
5 |
def __init__(self, config):
|
6 |
self.config = config['alerting']
|
src/detection/strategies/geometric.py
CHANGED
@@ -3,7 +3,7 @@ import cv2
|
|
3 |
import mediapipe as mp
|
4 |
import numpy as np
|
5 |
import math
|
6 |
-
from
|
7 |
|
8 |
# --- Helper Functions (No changes here) ---
|
9 |
def calculate_ear(eye_landmarks, frame_shape):
|
|
|
3 |
import mediapipe as mp
|
4 |
import numpy as np
|
5 |
import math
|
6 |
+
from src.detection.base_processor import BaseProcessor
|
7 |
|
8 |
# --- Helper Functions (No changes here) ---
|
9 |
def calculate_ear(eye_landmarks, frame_shape):
|