segment-anything icon indicating copy to clipboard operation
segment-anything copied to clipboard

Add video segmentation feature

Open HendricksJudy opened this issue 1 year ago • 0 comments

Add video segmentation functionality to the project.

  • segment_anything/predictor.py

    • Add segment_video function to read video frames and segment objects using SamPredictor.
    • Import cv2 for video processing.
  • demo/src/App.tsx

    • Add state variable isVideo to handle video input.
    • Add handleVideoUpload function to process video files and call segment_video.
    • Update runONNX function to handle video frames if isVideo is true.
  • demo/src/components/Tool.tsx

    • Add isVideo prop to handle video input.
    • Update render method to display video frames if isVideo is true.
  • README.md

    • Add instructions for using the new video segmentation feature.

HendricksJudy avatar Oct 21 '24 17:10 HendricksJudy