Fix indentation, compile
This commit is contained in:
parent
68c1f4dc1a
commit
fa15964b98
BIN
__pycache__/compile.cpython-36.pyc
Normal file
BIN
__pycache__/compile.cpython-36.pyc
Normal file
Binary file not shown.
BIN
__pycache__/control_motor.cpython-36.pyc
Normal file
BIN
__pycache__/control_motor.cpython-36.pyc
Normal file
Binary file not shown.
BIN
__pycache__/control_pixel.cpython-36.pyc
Normal file
BIN
__pycache__/control_pixel.cpython-36.pyc
Normal file
Binary file not shown.
BIN
__pycache__/detect.cpython-36.pyc
Normal file
BIN
__pycache__/detect.cpython-36.pyc
Normal file
Binary file not shown.
BIN
__pycache__/main.cpython-36.pyc
Normal file
BIN
__pycache__/main.cpython-36.pyc
Normal file
Binary file not shown.
BIN
__pycache__/pi_client.cpython-36.pyc
Normal file
BIN
__pycache__/pi_client.cpython-36.pyc
Normal file
Binary file not shown.
BIN
__pycache__/pixel.cpython-36.pyc
Normal file
BIN
__pycache__/pixel.cpython-36.pyc
Normal file
Binary file not shown.
BIN
__pycache__/run_detect.cpython-36.pyc
Normal file
BIN
__pycache__/run_detect.cpython-36.pyc
Normal file
Binary file not shown.
BIN
__pycache__/sort.cpython-36.pyc
Normal file
BIN
__pycache__/sort.cpython-36.pyc
Normal file
Binary file not shown.
BIN
build/lib.linux-x86_64-3.8/detect.cpython-38-x86_64-linux-gnu.so
Executable file
BIN
build/lib.linux-x86_64-3.8/detect.cpython-38-x86_64-linux-gnu.so
Executable file
Binary file not shown.
Binary file not shown.
BIN
detect.cpython-38-x86_64-linux-gnu.so
Executable file
BIN
detect.cpython-38-x86_64-linux-gnu.so
Executable file
Binary file not shown.
@ -370,8 +370,7 @@ def magicSort(contour):
|
||||
#magicNumber2 = 0
|
||||
name = "Unknown"
|
||||
for i in range(0,7):
|
||||
humoments[i] = -1 * math.copysign(1.0, humoments[i]) * math.log10(abs(humoments[i]))
|
||||
for i in range(0,7):
|
||||
humoments[i] = -1 * math.copysign(1.0, humoments[i]) * math.log10(abs(humoments[i]))
|
||||
if i > 1:
|
||||
humoments[i] = int(round(humoments[i][0] / 8) * 8)
|
||||
if i != 4 and i != 6:
|
||||
|
@ -10,7 +10,7 @@ calibration_width = 0.75
|
||||
image = "img7.jpg"
|
||||
images = ("img2.jpg", "img3.jpg", "img4.jpg", "img5.jpg", "img6.jpg", "img7.jpg", "img8.jpg")
|
||||
#images = ("img.jpg", "img2.jpg")
|
||||
video = True
|
||||
video = False
|
||||
def go():
|
||||
for file in images:
|
||||
items,output = detect.detect(calibration_width, file, True, False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user