Git Product home page Git Product logo

android-wear-stitch-script's Introduction

This is not an official Google product.

This script generates stitched-together screenshots of Android Wear UIs that
are too tall to fit on the screen all at once. It does by taking a screenshot,
scrolling a bit, taking another screenshot etc. until it reaches the bottom
of the screen. It then does some image processing to merge the screenshots
that were taken.

This works with real devices and with emulated watches.

Usage: wear_screenshot_stitch.py [-h] [--out-dir OUT_DIR]
                                 [--file-prefix FILE_PREFIX | --file-name FILE_NAME]
                                 [--adb-args ADB_ARGS]
                                 [--capture] | [--no-capture]
                                 [--round] | [--square]
                                 [--transparency] | [--no-transparency]
                                 [--inter-capture-delay INTER_CAPTURE_DELAY]
                                 [--keep-captures] | [--no-keep-captures]
                                 [--max-captures MAX_CAPTURES]

Take Wear screenshots using adb and stitch them together

optional arguments:
  -h, --help            show this help message and exit
  --out-dir OUT_DIR     The dirctory to output to. (default: the current
                        directory)
  --file-prefix FILE_PREFIX
                        The file prefix to use. An auto-incrementing index is
                        added to generate the full filename so the previous
                        captures are not overwritten. Mutually exclusive with
                        --file-name. (default: stitch)
  --file-name FILE_NAME
                        The name of the output file. This file will be
                        overwritten. Mutually exclusive with --file-prefix.
  --adb-args ADB_ARGS   Arguments for adb. Use quotes to keep arguments
                        together. Bare flags should have a space. E.g.
                        wear_screenshot_stitch.py --round --adb-args " -e"

Capture options:
  --capture             Capture new images to stitch. Contrast with --no-
                        capture. (default)
  --no-capture          Do not capture new images, just try to stitch existing
                        images. Contrast with --capture.
  --round               Set capture type for round displays, framing the
                        stitched image with round borders. Contrast with
                        --square. (default)
  --square              Set capture type for square displays, framing the
                        stitched image with square borders. Contrast with
                        --round
  --transparency        Use alpha transparency for pixels around the corners
                        of the output that the round screen chops off
  --no-transparency     Disable transparency
  --inter-capture-delay INTER_CAPTURE_DELAY
                        How long to wait between captures, in ms, i.e. to give
                        enought time for the scrollbar to disappear. (default:
                        1000)
  --keep-captures       Keep the intermediary captured screens. Contrast with
                        --no-keep-captures.
  --no-keep-captures    Discard the intermediary captured screens. Contrast
                        with --keep-captures. (default)
  --max-captures MAX_CAPTURES
                        The maximum number of screens to capture. (default:
                        50)

android-wear-stitch-script's People

Contributors

codingjeremy avatar icymidnight avatar ryanl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.