Python Forum
Converting handwriting into code that can be recreated
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Converting handwriting into code that can be recreated
#1
Basically I am fairly new to python, but I want to make a program where I write (either with a touchscreen or a mouse) a message and then it appears on the other device, but the twist is it will look like I'm just writing it. My problem is that I don't really know where to start, so how could I go about this using python, any other necessary language, and a raspberry pi?
Reply
#2
You can separate your problem in two parts: the GUI and the transmission between the two devices.

I cannot help you much for the first one, and for the second part, can you detail a little bit the setup you are planning? You can use sockets for the communication, but that yields some requirements on the networks they are connected to.

But basically, you can have in your code with 3 threads: the GUI, a listener and sender. When you write something, whatever is recorded by the GUI is pushed to the sender thread which sends that information over the network. On the other side, the listener gets the information, and pass that to the GUI to display it.
Reply
#3
As I said I don't really know what I'm doing, but my idea was that I could draw something on my computer then a raspberry pi hooked up to a small screen would display it at a different house (not on the same network) I was thinking I could upload my file to my own personal server I could set up, then the raspberry pi would automatically retrieve it and display it. I was wondering if there was a way for a program to retrace my strokes while I was writing and recreate them on the other screen.

Also let me know if there are any other flaws in my idea! Thanks!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem Converting Tradingview Indicator to Python code kralxs 0 139 Apr-25-2024, 07:40 PM
Last Post: kralxs
  Converting SQL Code To Python Code Query eddywinch82 13 30,297 Feb-15-2020, 06:42 PM
Last Post: buran
  Converting R code to python mcva 2 12,541 Mar-09-2019, 04:01 PM
Last Post: mcva
  Resources for converting Python 2.x code to 3.x Luke_Drillbrain 4 5,034 May-03-2017, 06:34 PM
Last Post: snippsat
  Need help converting some code from python 2.7 to 3.5 Blue Dog 3 4,905 Oct-18-2016, 12:30 AM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020