python 操作vizrt

超链接:深度学习工作常用方法汇总,矩阵维度变化、图片、视频等操作,包含(torch、numpy、opencv等)


示例代码:

import socket

skt = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
skt.settimeout(2.0)

skt.connect(('127.0.0.1', 6100))

# msg = b'send MAIN VERSION \0'
msg = b'send RENDERER*TREE GET \0'
# msg = b"send RENDERER*TREE*3/3/1*GEOM*TEXT SET \u6d4b\u8bd5"


str = 'send RENDERER*TREE*3/3/1*GEOM*TEXT SET 新春快乐! \0'
skt.send(str.encode('utf-8'))

res = skt.recv(512)
print(res.decode('utf-8'))

skt.close()

你可能感兴趣的:(Python,python,vizrt)