Skip to content

Commit

Permalink
auto install
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Jul 15, 2019
1 parent d9e1e6e commit bdfcc26
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
5 changes: 0 additions & 5 deletions docs/guides/hooks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ If automatic install fails for you, or you like to be in control:
git clone https://github.com/pliablepixels/zmeventnotification # if you don't already have it downloaded
cd zmeventnotification/
- Install the object detection dependencies:

.. code:: bash
sudo -H pip3 install -r hook/requirements.txt
- Install object detection files:

Expand Down
2 changes: 1 addition & 1 deletion hook/detect.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3

# Main detection script that loads different detection models
# look at zmes_hook_helpers for different detectors
Expand Down
12 changes: 6 additions & 6 deletions hook/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
numpy>=1.14.5
opencv_python>=3.4.3.18
imutils>=0.4.6
configparser>=3.7.1
opencv_contrib_python>=4.1.0.25
future>=0.15.2
numpy>=1.13.3
requests>=2.18.4
Shapely>=1.6.4.post2
future
requests
face_recognition>=1.2.3
imutils>=0.5.2
12 changes: 10 additions & 2 deletions hook/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3

import io
import os
Expand All @@ -10,13 +10,18 @@
#Package meta-data.
NAME = 'zmes_hooks'
DESCRIPTION = 'ZoneMinder EventServer hooks'
URL = 'https://github.com/pliablepixels/zmeventserver/tree/master/hook'
URL = 'https://github.com/pliablepixels/zmeventserver/'
AUTHOR_EMAIL = 'pliablepixels@gmail.com'
AUTHOR = 'Pliable Pixels'
LICENSE = 'GPL'
INSTALL_REQUIRES=['opencv_contrib_python', 'numpy', 'requests', 'Shapely', 'imutils']


here = os.path.abspath(os.path.dirname(__file__))
# read the contents of your README file
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

def read(*parts):
with codecs.open(os.path.join(here, *parts), 'r') as fp:
return fp.read()
Expand All @@ -33,8 +38,11 @@ def find_version(*file_paths):
description = DESCRIPTION,
author = AUTHOR,
author_email = AUTHOR_EMAIL,
long_description = long_description,
long_description_content_type='text/markdown',
url = URL,
license = LICENSE,
install_requires=INSTALL_REQUIRES,
py_modules = ['zmes_hook_helpers.common_params',
'zmes_hook_helpers.log',
'zmes_hook_helpers.yolo',
Expand Down
2 changes: 1 addition & 1 deletion hook/zmes_hook_helpers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "3.3.5"
__version__ = "3.3.6"
VERSION=__version__

0 comments on commit bdfcc26

Please sign in to comment.