diff --git a/plugins/tensorflow-lite/src/detect/__init__.py b/plugins/tensorflow-lite/src/detect/__init__.py index 719f6c9b7..59214ba0d 100644 --- a/plugins/tensorflow-lite/src/detect/__init__.py +++ b/plugins/tensorflow-lite/src/detect/__init__.py @@ -2,9 +2,9 @@ from __future__ import annotations from asyncio.events import AbstractEventLoop, TimerHandle from asyncio.futures import Future -from typing import Any, Callable, Mapping, List, Tuple, TypedDict +from typing import Any, Mapping, Tuple, TypedDict -from numpy import number, void +from numpy import number from pipeline import GstPipeline, GstPipelineBase, create_pipeline_sink, safe_set_result import scrypted_sdk import json @@ -15,7 +15,6 @@ import binascii from urllib.parse import urlparse import multiprocessing from pipeline import run_pipeline -import threading from gi.repository import Gst diff --git a/plugins/tensorflow-lite/src/tflite/__init__.py b/plugins/tensorflow-lite/src/tflite/__init__.py index 7249f10a8..9ef4dd55e 100644 --- a/plugins/tensorflow-lite/src/tflite/__init__.py +++ b/plugins/tensorflow-lite/src/tflite/__init__.py @@ -17,10 +17,7 @@ import numpy as np import scrypted_sdk from typing import Any, List -import matplotlib - from detect import DetectionSession, DetectPlugin -matplotlib.use('Agg') class TrackerDetectionSession(DetectionSession): diff --git a/server/python/media.py b/server/python/media.py index 164fcfe9f..daeeaf99b 100644 --- a/server/python/media.py +++ b/server/python/media.py @@ -1,18 +1,7 @@ from __future__ import annotations import scrypted_python.scrypted_sdk -from scrypted_python.scrypted_sdk.types import MediaObject, ScryptedInterfaceProperty -from collections.abc import Mapping -from genericpath import exists -import asyncio -import json -import aiofiles +from scrypted_python.scrypted_sdk.types import MediaObject import os -from typing_extensions import TypedDict -import base64 -from os import sys -import time -import zipfile -import subprocess from typing import Any class MediaObjectRemote: diff --git a/server/python/plugin-remote.py b/server/python/plugin-remote.py index 2063e2e21..821ac17f7 100644 --- a/server/python/plugin-remote.py +++ b/server/python/plugin-remote.py @@ -13,9 +13,8 @@ import json from asyncio.events import AbstractEventLoop import asyncio import rpc -from genericpath import exists from collections.abc import Mapping -from scrypted_python.scrypted_sdk.types import DeviceManifest, MediaManager, MediaObject, ScryptedInterfaceProperty +from scrypted_python.scrypted_sdk.types import DeviceManifest, MediaManager, ScryptedInterfaceProperty import scrypted_python.scrypted_sdk from asyncio.futures import Future from asyncio.streams import StreamReader, StreamWriter