Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 944 Bytes

File metadata and controls

15 lines (10 loc) · 944 Bytes

Fast Video Retargeting Based on Seam Carving with Parental Labeling

Implementation of the fast video retargeting method proposed in this paper. OpenCV 3 and NumPY are required to run these code.

Results

SeamCarverPL.py contains the sinlge-image seam carving function seamCarverVertical(img, nwidth).

  • img is a numpy array encoding the cource image, which can be created via cv2.imread().
  • nwidth is the target width after carving.

VideoRetargetingPL.py contains the video retargeting function videoRetarget(name, outn, a).

  • name is the path of the source video.
  • outn is the path of the retargeted video.
  • a is the compression factor, namely the width of the retargeted video to the width of the source video.