简体   繁体   中英

Web front end for Python script

I have a Python script doing the grunt work of my motion tracking program. I have an OpenCV program sending coordinate data (integers) to my Python script.

I would like a very simple web page, one with 4-5 buttons which sends it to the python script for processing.

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. I'm seeing lots of frameworks and the like, it seems a bit overkill to me for something static and simple.

OpenCV -\\
cedar-sentinel.py -> motors
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.

Thanks, Joel

查看Bottle: http//bottlepy.org/docs/stable/

好吧,最简单的可能就是老式CGI。

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