Saber = serial.Serial(sPort,9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS, timeout=1) Here is the code where i am reading/writing to the serial port from a simple form field: # function to read in the video within its own thread Here is the logic that gets executed when that happens: Thread = Thread(target=readVideo, args=()) # Start the thread to read frames from the video stream Here is the code that starts the thread when i press the "start video" button: But once I start the video thread the serial stops working.Īny idea why starting to read from a USB Video port would stop the serial port from working in my code? Serial read/write works fine and the video captures fine too. I'm trying to add a button that spawns a thread to start recording from a video camera. I've got a simple webpage app using flask that reads/writes to a serial port from a webpage.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |