Skip to content

Implementation of a fast video retargeting method in python.

Notifications You must be signed in to change notification settings

zchuning/FastVideoRetargeting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Implementation of a fast video retargeting method in python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages