[英]Web front end for Python script
I have a Python script doing the grunt work of my motion tracking program. 我有一个Python脚本来完成我的运动跟踪程序的艰苦工作。 I have an OpenCV program sending coordinate data (integers) to my Python script.
我有一个OpenCV程序,将坐标数据(整数)发送到我的Python脚本。
I would like a very simple web page, one with 4-5 buttons which sends it to the python script for processing. 我想要一个非常简单的网页,该网页带有4-5个按钮,可将其发送到python脚本进行处理。
I'd prefer the web page be lightweight and compatible with mobile devices. 我希望网页轻巧并与移动设备兼容。 I just need something very simple to send commands via tcp, rpc, or whatever means.
我只需要一些非常简单的东西,即可通过tcp,rpc或其他方式发送命令。 I'm seeing lots of frameworks and the like, it seems a bit overkill to me for something static and simple.
我看到了很多框架之类的东西,对于静态和简单的东西来说,对我来说似乎有点过大了。
OpenCV -\\ OpenCV-\\
cedar-sentinel.py -> motors cedar-sentinel.py->电动机
Web page -/ 网页 -/
Web page ideals has Left, Right, Fast, Slow, Toggle Tracking State as buttons that send information (commands, IDs, something identifying of button pressed) to cedar-sentinel.py. 理想情况下,网页具有将“左”,“右”,“快”,“慢”,“切换跟踪状态”作为将信息(命令,ID,所按下按钮的标识)发送到cedar-sentinel.py的按钮。
Thanks, Joel 谢谢,乔尔
查看Bottle: http : //bottlepy.org/docs/stable/
好吧,最简单的可能就是老式CGI。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.