Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data saving structure
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Data structure question standenman 1 638 Jun-04-2023, 11:51 AM
Last Post: jefsummers
  Saving data into xlxs colomwise erdemath 0 1,398 Oct-02-2021, 09:01 AM
Last Post: erdemath
  Is there a better data structure than classes for a set of employes? Schlangenversteher 5 2,616 Feb-26-2020, 11:43 AM
Last Post: buran
  What data structure I need dervast 3 2,555 Apr-07-2019, 11:50 PM
Last Post: scidam
  Problem with saving data and loading data to mysql kirito85 4 3,903 Feb-08-2019, 10:53 AM
Last Post: kirito85
  Saving data into .mat (Matlab Fiile) Tulo_Stone 0 2,382 Feb-28-2018, 12:57 AM
Last Post: Tulo_Stone
  Replacing values for specific columns in Panda data structure Padowan 1 14,661 Nov-27-2017, 08:21 PM
Last Post: Padowan
  Saving data from each row into separate txt kiton 7 11,318 Jul-05-2017, 03:04 AM
Last Post: kiton

Forum Jump:

User Panel Messages

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