mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.3 KiB
27 lines
1.3 KiB
13 years ago
|
#!/usr/bin/python
|
||
|
|
||
|
import os
|
||
12 years ago
|
import sys
|
||
13 years ago
|
|
||
|
TARGET_DEVICE_PATH = "/data/data/EngineTest"
|
||
|
DEVICE_NAME = ""
|
||
|
DEVICE_STR = ""
|
||
|
DEVICE_ARCH = "armeabi"
|
||
|
|
||
|
if (__name__ == "__main__"):
|
||
12 years ago
|
if (len(sys.argv) >= 3):
|
||
12 years ago
|
DEVICE_ARCH = sys.argv[1]
|
||
|
DEVICE_NAME = sys.argv[2]
|
||
12 years ago
|
|
||
12 years ago
|
if (DEVICE_NAME != ""):
|
||
|
DEVICE_STR = "-s \"" + DEVICE_NAME + "\""
|
||
12 years ago
|
|
||
|
print("Waiting for device \"%s\" with arch \"%s\" ..." % (DEVICE_NAME, DEVICE_ARCH))
|
||
13 years ago
|
os.system("adb %s wait-for-device" % DEVICE_STR)
|
||
|
os.system("adb %s shell mkdir -p %s" % (DEVICE_STR, TARGET_DEVICE_PATH))
|
||
|
os.system("adb %s push ./engine/libs/%s/libOpenCVEngine.so %s" % (DEVICE_STR, DEVICE_ARCH, TARGET_DEVICE_PATH))
|
||
|
os.system("adb %s push ./engine/libs/%s/OpenCVEngineNativeClient %s" % (DEVICE_STR, DEVICE_ARCH, TARGET_DEVICE_PATH))
|
||
|
os.system("adb %s push ./engine/libs/%s/OpenCVEngineNativeService %s" % (DEVICE_STR, DEVICE_ARCH, TARGET_DEVICE_PATH))
|
||
|
os.system("adb %s push ./engine/libs/%s/OpenCVEngineTest %s" % (DEVICE_STR, DEVICE_ARCH, TARGET_DEVICE_PATH))
|
||
|
os.system("adb %s push ./engine/libs/%s/OpenCVEngineTestApp %s" % (DEVICE_STR, DEVICE_ARCH, TARGET_DEVICE_PATH))
|
||
|
os.system("adb %s push ./engine/libs/%s/libOpenCVEngine_jni.so %s" % (DEVICE_STR, DEVICE_ARCH, TARGET_DEVICE_PATH))
|