Skip to content

Commit

Permalink
refactor to package format
Browse files Browse the repository at this point in the history
  • Loading branch information
joelibaceta committed Apr 1, 2019
1 parent 4c1abc6 commit 47300d6
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion cli.py → KeyFrameDetector/cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import argparse

from keyframeDetector import keyframeDetection
from KeyFrameDetector.key_frame_detector import keyframeDetection

parser = argparse.ArgumentParser()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import numpy as np
import time
import peakutils
from utils import convert_frame_to_grayscale, prepare_dirs, plot_metrics
from KeyFrameDetector.utils import convert_frame_to_grayscale, prepare_dirs, plot_metrics

def keyframeDetection(source, dest, Thres, plotMetrics=False, verbose=False):

Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
numpy
opencv-python
peakutils
35 changes: 35 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import sys
from setuptools import setup, find_packages
from setuptools.command.install import install
from setuptools.command.develop import develop
from setuptools.command.egg_info import egg_info

setup(
name="key-frame-detector",
version="1.0.0",
author="Joel Ibaceta",
author_email="[email protected]",
license='MIT',
description="It is a simple python tool to extract key frame images from video",
long_description="A simple tool to detect and extract key frame images from a video file",
url="https://github.com/joelibaceta/video-keyframe-extractor",
project_urls={
'Source': 'https://github.com/joelibaceta/video-keyframe-extractor',
'Tracker': 'https://github.com/joelibaceta/video-keyframe-extractor/issues'
},
packages=find_packages(),
include_package_data=True,
install_requires=['opencv-python', 'numpy', 'peakutils'],
classifiers=[
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
keywords='video key-frame terminal opencv extractor',
entry_points={
"console_scripts": [
'key-frames-detector=KeyFrameDetector.cli:main'
]
}
)

0 comments on commit 47300d6

Please sign in to comment.