新建分支developmen

This commit is contained in:
FEIJINTI 2022-09-15 17:20:09 +08:00
parent 34583f738e
commit e53268ec72
10 changed files with 32 additions and 29 deletions

0
.gitignore vendored Executable file → Normal file
View File

0
README.md Executable file → Normal file
View File

0
classifer.py Executable file → Normal file
View File

0
pics/TODO.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

0
pics/result.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

0
pics/从木板中提取色彩.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

0
pics/色彩分类.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

0
root_dir.py Executable file → Normal file
View File

View File

@ -17,7 +17,9 @@ def main():
while True: while True:
# receive data # receive data
t1 = time.time() t1 = time.time()
size_buff = socket_receive.recv(4) size_buff = socket_receive.recv(5)
if size_buff[4] == 0:
n_rows, n_cols = size_buff[0] << 8 | size_buff[1], size_buff[2] << 8 | size_buff[3] n_rows, n_cols = size_buff[0] << 8 | size_buff[1], size_buff[2] << 8 | size_buff[3]
data_size = n_rows * n_cols * 3 data_size = n_rows * n_cols * 3
print(data_size) print(data_size)
@ -48,6 +50,7 @@ def main():
print((time.time()-t1)) print((time.time()-t1))
if __name__ == '__main__': if __name__ == '__main__':
# 2个端口 # 2个端口
# 接受端口21122 # 接受端口21122

0
utils.py Executable file → Normal file
View File