0% found this document useful (0 votes)
15 views5 pages

Spongecake

Uploaded by

ahmed abdallah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views5 pages

Spongecake

Uploaded by

ahmed abdallah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Package ‘spongecake’

July 15, 2017


Type Package
Title Transform a Movie into a Synthetic Picture
Version 0.1.2
Author Vincent Guyader
Maintainer Vincent Guyader <[email protected]>
Description Transform a Movie into a Synthetic Picture. A frame every 10 seconds is summa-
rized into one colour, then every generated colors are stacked together.
License GPL-3
Depends R (>= 3.0)
Encoding UTF-8
LazyData true
Imports magrittr, ggplot2, jpeg, plyr
RoxygenNote 6.0.1
SystemRequirements FFmpeg (http://ffmpeg.org)

URL https://github.com/ThinkRstat/spongecake
NeedsCompilation no
Repository CRAN
Date/Publication 2017-07-15 06:30:06 UTC

R topics documented:
average_color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
draw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
folder_average_color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
gen_screenshot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
spongecake . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Index 5

1
2 draw

average_color average_color

Description

return the average color from an image

Usage

average_color(img)

Arguments

img the image (a array)

draw draw

Description

transform a folder of scrennshot into a synthetical picture

Usage

draw(folder)

Arguments

folder the path of the folder

Examples
## Not run:
#options(ffmpeg = "C:/ffmpeg-3.1.4-win64-static/bin/ffmpeg.exe") # windows user
library(magrittr)
gen_screenshot(movie = "D:/mymovie.avi") %>%
draw()

## End(Not run)
folder_average_color 3

folder_average_color folder_average_color

Description

return the average color from all folder’s images

Usage
folder_average_color(folder)

Arguments
folder the path of the folder

gen_screenshot gen_screenshot

Description

transform a movie into lot of screenshots

Usage

gen_screenshot(movie, folder = tempfile(), every = 10)

Arguments
movie the path of the movie
folder the path of the folder
every timbe between each screenshot in seconds

Examples
## Not run:
gen_screenshot(movie = "D:/mymovie.avi") %>%
browseURL()

## End(Not run)
4 spongecake

spongecake spongecake

Description
this package transform a movie into a simple image...

Examples
## Not run:
#options(ffmpeg = "C:/ffmpeg-3.1.4-win64-static/bin/ffmpeg.exe") # windows user
library(magrittr)
gen_screenshot(movie = "D:/mymovie.avi") %>%
draw()%>%
print()

## End(Not run)
Index

average_color, 2

draw, 2

folder_average_color, 3

gen_screenshot, 3

spongecake, 4
spongecake-package (spongecake), 4

You might also like