add arm build of detect library
This commit is contained in:
parent
b1f7129b90
commit
32ae8d4559
BIN
__pycache__/detect.cpython-37.pyc
Normal file
BIN
__pycache__/detect.cpython-37.pyc
Normal file
Binary file not shown.
BIN
build/temp.linux-armv7l-3.7/detect.o
Normal file
BIN
build/temp.linux-armv7l-3.7/detect.o
Normal file
Binary file not shown.
BIN
detect.cpython-37m-arm-linux-gnueabihf.so
Executable file
BIN
detect.cpython-37m-arm-linux-gnueabihf.so
Executable file
Binary file not shown.
@ -5,12 +5,15 @@ calibration_width = 0.75
|
|||||||
image = "img7.jpg"
|
image = "img7.jpg"
|
||||||
images = ("img.jpg", "img2.jpg", "img3.jpg", "img4.jpg", "img5.jpg", "img6.jpg", "img7.jpg", "img8.jpg")
|
images = ("img.jpg", "img2.jpg", "img3.jpg", "img4.jpg", "img5.jpg", "img6.jpg", "img7.jpg", "img8.jpg")
|
||||||
show = False
|
show = False
|
||||||
|
video = False
|
||||||
def go():
|
def go():
|
||||||
#for file in images:
|
#for file in images:
|
||||||
detect.detect(calibration_width, "img7.jpg", show)
|
detect.detect(calibration_width, "img7.jpg", show)
|
||||||
|
|
||||||
#elapsed_time = timeit.timeit(go, number=100)/100
|
if not video:
|
||||||
#print(elapsed_time)
|
elapsed_time = timeit.timeit(go, number=3)/3
|
||||||
|
print(elapsed_time)
|
||||||
|
else :
|
||||||
capture = cv2.VideoCapture('tcpclientsrc host=192.168.43.152 port=5000 ! queue ! decodebin ! appsink', cv2.CAP_GSTREAMER)
|
capture = cv2.VideoCapture('tcpclientsrc host=192.168.43.152 port=5000 ! queue ! decodebin ! appsink', cv2.CAP_GSTREAMER)
|
||||||
while True:
|
while True:
|
||||||
ret,frame = capture.read()
|
ret,frame = capture.read()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user