Python Forum

Full Version: Data saving structure
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Dear forum users,

For a project I want to save data to a file. There will be certain parts of the screen. When the system detects something in that part of the screen it should record its time and amount

I create an object with multiple parameters:
ID:1, Location: (xmin,ymin,xmax,ymax), N
Time: 12:23 - 0.9
Time: 23:21 -0.3
Time: 11:22 -2.3

ID:2, Location: (xmin,ymin,xmax,ymax), N
Time: 13:23 - 0.9
Time: 93:21 -6.3
Time: 11:32 -2.4

Later I want to check if the a new location is already in the database, if not create a new id. If it is, just add the timestamp to the already existing ID. I just do not know how to save and create this data. Can someone help me out?

P.S. I am not sure if I post this is in the right category , if not excuse me.

Josef