Add image extraction functionality with background removal

- Implemented ExtractImageRegion operator for extracting image regions using box or lasso selection.
- Added RemoveImageRegionBackground job for background removal from selected image regions.
- Created utility functions for polygon bounds, selection canvas creation, and applying selection masks.
- Integrated image processing using PIL and numpy for efficient pixel manipulation.
- Enhanced user experience with modal drawing and status updates during extraction.
This commit is contained in:
2026-08-22 15:47:34 +08:00
parent 988332548e
commit f42cba1932
27 changed files with 2513 additions and 761 deletions

View File

@@ -5,11 +5,7 @@ from .balloon import (
AnalyzeBalloon,
)
from .debug import DebugBen2, DebugDa3, DebugMoge2
from .image_lasso import (
ActivateImageLassoTool,
AnalyzeImageLasso,
ExtractImageLasso,
)
from .image_extract import CLASSES as IMAGE_EXTRACT_CLASSES
from .depth_plane import (
ConvertToDepthPlane,
ExtractOriginalFrames,
@@ -44,9 +40,7 @@ CLASSES = (
GenerateOriginalBackground,
ExtractOriginalFrames,
ClearModels,
ExtractImageLasso,
AnalyzeImageLasso,
ActivateImageLassoTool,
*IMAGE_EXTRACT_CLASSES,
ExtractBalloon,
AnalyzeBalloon,
ActivateBalloonTool,