forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
29 lines (19 loc) · 1.06 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from jetson_containers import L4T_VERSION, SYSTEM_ARCH
def install_opencv(version, url, deb, requires=None, default=False):
cv = package.copy()
cv['name'] = f'opencv:{version}'
cv['build_args'] = {
'OPENCV_URL': url,
'OPENCV_DEB': deb,
}
if requires:
cv['requires'] = requires
if default:
cv['alias'] = 'opencv'
return cv
package = [
install_opencv('4.8.1', 'https://nvidia.box.com/shared/static/ngp26xb9hb7dqbu6pbs7cs9flztmqwg0.gz', 'OpenCV-4.8.1-aarch64.tar.gz', '==36.*', default=True),
install_opencv('4.5.0', 'https://nvidia.box.com/shared/static/2hssa5g3v28ozvo3tc3qwxmn78yerca9.gz', 'OpenCV-4.5.0-aarch64.tar.gz', '==35.*', default=True),
install_opencv('4.5.0', 'https://nvidia.box.com/shared/static/5v89u6g5rb62fpz4lh0rz531ajo2t5ef.gz', 'OpenCV-4.5.0-aarch64.tar.gz', '==32.*', default=True),
#install_opencv('4.5.0', 'https://nvidia.box.com/shared/static/vfp7krqf5bws752ts58rckpx3nyopmp1.gz', 'OpenCV-4.5.0-x86_64.tar.gz', 'x86_64', default=True),
]