You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PySceneDetect is available via `pip` as [the `scenedetect` package](https://pypi.org/project/scenedetect/).
19
+
PySceneDetect is available via `pip` as [the `scenedetect` package](https://pypi.org/project/scenedetect/). See below for instructions on installing a non-pip version of OpenCV. To ensure you have all the requirements installed, open a `python` interpreter, and ensure you can run `import cv2` without any errors.
@@ -38,13 +41,16 @@ To get familiar with PySceneDetect, try running `scenedetect help`, or continue
38
41
39
42
## Dependencies
40
43
41
-
PySceneDetect requires [Python 2 or 3](https://www.python.org/) and the following third-party software:
44
+
### Python Packages
45
+
46
+
PySceneDetect requires [Python 2 or 3](https://www.python.org/) and the following packages:
42
47
43
-
-[OpenCV](http://opencv.org/) (compatible with 2/3), can install via `pip install opencv`
44
-
-[Numpy](http://sourceforge.net/projects/numpy/), can install via `pip install numpy`
45
-
-[tqdm](https://github.com/tqdm/tqdm), optional, can install via `pip install tqdm`. Used to show progress bar and estimated time remaining.
48
+
-[OpenCV](http://opencv.org/) (compatible with 2/3), can install via `pip install opencv`. Used for video I/O.
49
+
-[Numpy](https://numpy.org/), can install via `pip install numpy`. Used for frame processing.
50
+
-[Click](https://click.palletsprojects.com), can install via `pip install Click`. Used for command line interface.
51
+
-[tqdm](https://github.com/tqdm/tqdm) (optional), can install via `pip install tqdm`. Used to show progress bar and estimated time remaining.
46
52
47
-
### Video Splitting Support
53
+
### Video Splitting Tools
48
54
49
55
For video splitting support, you need to have the following tools available:
50
56
@@ -59,11 +65,11 @@ The `ffmpeg` and/or `mkvmerge` command must be available system wide (e.g. in a
59
65
60
66
If you have trouble getting PySceneDetect to find `ffmpeg` or `mkvmerge`, see the section on Manually Enabling `split-video` Support on [Getting Started: Video Splitting Support Requirements](examples/video-splitting).
61
67
62
-
### Installing Latest Version of OpenCV (optional)
68
+
### Building OpenCV from Source or Using a Different Version
63
69
64
-
If you have installed OpenCV using `pip`, you will need to uninstall it before continuing on.
70
+
If you have installed OpenCV using `pip`, you will need to uninstall it before installing a different version of OpenCV, or building and installing it from source.
65
71
66
-
You can [click here](http://breakthrough.github.io/Installing-OpenCV/) for a quick guide (OpenCV + Numpy on Windows & Linux) on installing the latest versions of OpenCV/Numpy on [Windows (using pre-built binaries)](http://breakthrough.github.io/Installing-OpenCV/#installing-on-windows-pre-built-binaries) and [Linux (compiling from source)](http://breakthrough.github.io/Installing-OpenCV/#installing-on-linux-compiling-from-source). If the Python module that comes with OpenCV on Windows is incompatible with your system architecture or Python version, [see this page](http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv) to obtain a pre-compiled (unofficial) module.
72
+
You can [click here](http://breakthrough.github.io/Installing-OpenCV/) for a quick guide (OpenCV + Numpy on Windows & Linux) on installing OpenCV/Numpy on [Windows (using pre-built binaries)](http://breakthrough.github.io/Installing-OpenCV/#installing-on-windows-pre-built-binaries) and [Linux (compiling from source)](http://breakthrough.github.io/Installing-OpenCV/#installing-on-linux-compiling-from-source). If the Python module that comes with OpenCV on Windows is incompatible with your system architecture or Python version, [see this page](http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv) to obtain a pre-compiled (unofficial) module.
67
73
68
74
Note that some Linux package managers still provide older, dated builds of OpenCV (pre-3.0). PySceneDetect is compatible with both versions, but if you want to ensure you have the latest version, it's recommended that you [build and install OpenCV from source](http://breakthrough.github.io/Installing-OpenCV/#installing-on-linux-compiling-from-source) on Linux.
0 commit comments