简体   繁体   中英

How to send an array from Python (client) to Java (Server)?

I am using OpenCV on my Raspberry Pi to track circular objects. Then, I want to send the coordinate and radius values in an array of floats across the LAN to the Java program

I can send strings all fine with the code I have, but I'm having trouble trying to send numerical datatypes. What is the correct process for this?

元答案将是使用JSON,因为可以为每种主要编程语言找到JSON生成器和解析器。

Have you looked at BSON? It's like JSON, but optimised for a little more speed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM