提交 2d0bad83 编写于 作者: O Olli-Pekka Heinisuo

add haarcascade xml files to the package

上级 49237b58
......@@ -203,6 +203,7 @@ before_install:
- source multibuild/travis_steps.sh
- python find_version.py
- cp LICENSE*.txt cv2/
- cp opencv/data/haarcascades/*.xml cv2/data/
- before_install
install:
......
......@@ -26,6 +26,7 @@ if %PYTHON_VERSION% LSS 3 xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\%BUILD_DIR%\lib\
xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\%BUILD_DIR%\bin\Release\*.dll" .\cv2 /I
xcopy "%APPVEYOR_BUILD_FOLDER%\LICENSE*.txt" .\cv2 /I
xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\data\haarcascades\*.xml" .\cv2\data /I
dir
......
import importlib
import os
# make IDE's (PyCharm) autocompletion happy
from .cv2 import *
from .data import *
# wildcard import above does not import "private" variables like __version__
# this makes them available
globals().update(importlib.import_module('cv2.cv2').__dict__)
\ No newline at end of file
globals().update(importlib.import_module('cv2.cv2').__dict__)
import os
haarcascades = os.path.join(os.path.dirname(__file__), '')
from setuptools import setup
from setuptools import setup, find_packages
from setuptools.dist import Distribution
import pip
import os
......@@ -49,6 +49,7 @@ else:
package_data['cv2'] = ['*.pyd', '*.dll']
package_data['cv2'] += ["LICENSE.txt", "LICENSE-3RD-PARTY.txt"]
package_data[''] = ['*.xml']
"""
......@@ -80,7 +81,7 @@ setup(name=package_name,
license='MIT',
description='Wrapper package for OpenCV python bindings.',
long_description=long_description,
packages=['cv2'],
packages=find_packages(),
package_data=package_data,
maintainer="Olli-Pekka Heinisuo",
include_package_data=True,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册