Skip to content

Stitch together mobile screenshots or turn a screen recording video into one long screenshot

Notifications You must be signed in to change notification settings

edend10/stitch-it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stitch It

Simple utility to create one large screenshot image for pages longer than can fit in the screen.

Dependencies:

  • python3
  • opencv3

Scripts

  • vid_ocr.py: takes as input a mobile screen recording video of scrolling down a long page. Outputs a text file with recognized text in video
  • vid_stitch.py: takes as input a mobile screen recording video of scrolling down a long page. Outputs one long screenshot
  • pic_stitch.py: takes as input multiple consecutive screenshots (top to bottom) of a long page. Outputs one long screenshot

Usage:

  • python vid_ocr.py -v my_screen_recording.mp4 -t step -p 50
  • python vid_stitch.py -v my_screen_recording.mp4 -t target -p 8
  • python pic_stitch.py -i my_screenshot1.png,my_screenshot2.png,my_screenshot3.png -o output.png

Options:

  • --output/-o: output filename (optional). Default: output.png for vid_stitch.py only:
  • --video/-v: input video file with screen recording of scrolling down
  • --frame_param_type/-t: which type is the frame_param option. Either target or step. step: size of step in video frames between each sample considered for stitching (optional). target: number of sample frames to target (approximate).

for pic_stitch.py only:

  • --input/-i: comma delimited (no spaces) input image files. Should be ordered top to bottom

Example:

Script Input Output
vid_ocr.py input screen recording video (actual output is a raw text file and not an image)
output generated screenshot image
vid_stitch.py input screen recording video output generated screenshot image

About

Stitch together mobile screenshots or turn a screen recording video into one long screenshot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages