42 lines
1.3 KiB
Python
42 lines
1.3 KiB
Python
"""Video Summary Application Package.
|
|
|
|
This package provides tools for video summarization through contour extraction
|
|
and layer-based processing.
|
|
"""
|
|
|
|
__version__ = "0.1.0"
|
|
__author__ = "Askill"
|
|
|
|
# Core imports
|
|
from Application.Config import Config
|
|
from Application.Layer import Layer
|
|
|
|
# Import optional components that may have additional dependencies
|
|
__all__ = ["Config", "Layer"]
|
|
|
|
# Try to import video processing components
|
|
try:
|
|
from Application.ContourExctractor import ContourExtractor
|
|
from Application.Exporter import Exporter
|
|
from Application.HeatMap import HeatMap
|
|
from Application.Importer import Importer
|
|
from Application.LayerFactory import LayerFactory
|
|
from Application.VideoReader import VideoReader
|
|
|
|
__all__.extend(["ContourExtractor", "Exporter", "HeatMap", "Importer", "LayerFactory", "VideoReader"])
|
|
except ImportError as e:
|
|
import warnings
|
|
|
|
warnings.warn(f"Some video processing components could not be imported: {e}")
|
|
|
|
# Try to import LayerManager (may require TensorFlow for classification features)
|
|
try:
|
|
from Application.LayerManager import LayerManager
|
|
|
|
__all__.append("LayerManager")
|
|
except ImportError:
|
|
import warnings
|
|
|
|
warnings.warn("LayerManager could not be imported. TensorFlow may be required for classification features.")
|
|
|