Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
arunponnusamy authored Jul 9, 2019
1 parent 4a6d897 commit 93d424f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,18 @@ Check out the [example](examples/object_detection_webcam_yolov3_tiny.py) to lear

![](examples/images/object_detection_output.jpg)

## Utils
### Video to frames
`get_frames( )` method can be helpful when you want to grab all the frames from a video. Just pass the path to the video, it will return all the frames in a list. Each frame in the list is a numpy array.
```
import cvlib as cv
frames = cv.get_frames('~/Downloads/demo.mp4')
```
Optionally you can pass in a directory path to save all the frames to disk.
```
frames = cv.get_frames('~/Downloads/demo.mp4', '~/Downloads/demo_frames/')
```

## License
cvlib is released under MIT license.

Expand Down

0 comments on commit 93d424f

Please sign in to comment.