diff --git a/README.md b/README.md index 49fcd96..e843c40 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,13 @@ http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp Result: ``` http://localhost:8000/unsafe/300x0/7x7/filters:label(imagorvideo,-10,-7,20,yellow):fill(yellow)/http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4 + +http://localhost:8000/unsafe/300x0/0x0:0x14/filters:frame(0.2):fill(yellow):label(imagorvideo,-3,bottom,12,black,20)/http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4 + +http://localhost:8000/unsafe/300x0/7x7/filters:frame(0.6):label(imagorvideo,-10,-7,15,yellow):fill(yellow)/http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4 ``` -![imagorvideo](https://raw.githubusercontent.com/cshum/imagorvideo/master/testdata/demo.jpg) + imagorvideo works by streaming out a limited number of frame data, looping through and calculating the histogram of each frame. It then choose the best frame for imaging, based on root-mean-square error (RMSE). This allow skipping the black frames that usually occur at the beginning of videos. diff --git a/testdata/demo.jpg b/testdata/demo.jpg index ce37fea..9340745 100644 Binary files a/testdata/demo.jpg and b/testdata/demo.jpg differ diff --git a/testdata/demo2.jpg b/testdata/demo2.jpg new file mode 100644 index 0000000..10867c7 Binary files /dev/null and b/testdata/demo2.jpg differ diff --git a/testdata/demo3.jpg b/testdata/demo3.jpg new file mode 100644 index 0000000..5b938ab Binary files /dev/null and b/testdata/demo3.jpg differ