Skip to main content

Imvideo

Imvideo helps you create time-lapse videos from camera-generated image folder and your matplotlib loop.

Install Imvideo


To install this package, type pip install imvideo in command prompt.

C:\Users\user>pip install imvideo
Collecting imvideo
  Using cached imvideo-0.0.1-py3-none-any.whl (3.6 kB)
Installing collected packages: imvideo
Successfully installed imvideo-0.0.1

Function Details


Class local: timelapse(title, fps, folder_path, inspect=True):

timelapse(title, fps, folder_path, inspect=True):
Function constructs time-lapse video from images in a folder.
        Inputs:     title   (string)     video title + .avi
                    fps     (double)     time-lapse video frames per second 
                    folder_path    (raw string)    location of the image folder
                    inspect    (boolean)       True (default)/False
        Output:
                    time-lapse video

Class memory: savebuff(frame, container):

savebuff(frame, container):
Function saves image in in-memory location
         Inputs:    frame   (matplotlib image)  
                    container   (list)     empty image container
         Output:    container   (list)      image container with added frame location

construct(container, title, fps, inspect=True):

construct(container, title, fps, inspect=True):
Function constructs video from images in the container.
         Inputs:    container   (list)      image container with frame location
                    title   (string)     video title + .avi
                    fps     (double)     time-lapse video frames per second 
                    inspect    (boolean)       True (default)/False
         Output:
                    video

Use Imvideo


  1. Time-lapse video from a image folder:
import imvideo as imv

imv.local.timelapse(local.timelapse('demo.avi', 5,  r".\tests\test_image"))
  1. Time-lapse video from a matplotlib loop:
import imvideo as imv

def test_matplot_loop(n):
    ''' Input:      n   number of frames'''
    images = []     # empty image container
    plt.figure()    
    for i in range(n):
        plt.plot([np.random.randint(2), np.random.randint(2)])
        plt.title("test" + str(i))
        images = imv.memory.savebuff(plt, images)      # save image in in-memory location
        plt.clf()

    imv.memory.construct(images, 'matplot_demo.avi', 5)        # construct video; 5 fps

    return 

test_matplot_loop(100)      # construct a demo video with 100 frames

Sample output

Solve Laplace

Metadata

Release files for imvideo 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imvideo 0.0.2
File Size Uploaded Provenance
imvideo-0.0.2.tar.gz 3.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for imvideo 0.0.2
File Interpreter ABI Platform
imvideo-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / imvideo-0.0.2.tar.gz

Download URL imvideo-0.0.2.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9734384b373476a9408405cb26756520ad9ddf39fa1c95c5751c18dc00efb58d
BLAKE2b-256 checksum
How to use checksums
e4e456456b9012e6bbd7976f7c8df593b064fe15c8c62887d52b7c5ebd02f379
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

Release files / imvideo-0.0.2-py3-none-any.whl

Download URL imvideo-0.0.2-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33972c1a2656b53d82c5d585b7595869df5bd6ba154dbbbd62023c8fe31c33de
BLAKE2b-256 checksum
How to use checksums
b8125162a26118be894611c8d8095a0a99049ae7682a65312d64afdca1ebac3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

Security for imvideo 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page