Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Saving detections to a file
#1
Hello!

For a project I am in need of a specific data structure. I am not sure how to call this or where to find this so I hope someone can help me. In the project I detecting objects from a live stream. These detections have a id, location and a timestamp.

When the system detects an object in a new location it must create a new case with an ID. When it detects an object in a location it have seen before, it should just add a timestamp to this location. Example:

ID: 1 loc:xyxy 12:32
13:30
15:22

ID: 2 loc:xyxy 12:22
19:00

When a new detections comes in, its location is not in database, it should create a new ID and add the time stamp. When it sees that there is already a detection with that location, it should just add the time stamp.

I think it would be useful to store this in csv files but I do not know what the best way is to do this. Can someone help me out or help me to think in the right direction?

Thanks in advance!
Josef
Reply


Messages In This Thread
Saving detections to a file - by JosefFilosopio - May-14-2019, 02:04 PM
RE: Saving detections to a file - by buran - May-14-2019, 02:21 PM
RE: Saving detections to a file - by JosefFilosopio - May-16-2019, 07:46 AM
RE: Saving detections to a file - by buran - May-16-2019, 08:28 AM
RE: Saving detections to a file - by JosefFilosopio - May-16-2019, 08:55 AM
RE: Saving detections to a file - by buran - May-16-2019, 11:34 AM
RE: Saving detections to a file - by JosefFilosopio - May-20-2019, 01:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Saving the times a script is run to a file or ... 3Pinter 7 1,435 Oct-19-2022, 05:38 PM
Last Post: 3Pinter
  Code Assistance needed in saving the file MithunT 0 831 Oct-09-2022, 03:50 PM
Last Post: MithunT
  Saving the print result in a text file Calli 8 1,882 Sep-25-2022, 06:38 PM
Last Post: snippsat
  Trying to determine attachment file type before saving off.. cubangt 1 2,185 Feb-23-2022, 07:45 PM
Last Post: cubangt
  Showing and saving the output of a python file run through bash Rim 3 2,508 Oct-06-2021, 10:48 AM
Last Post: gerpark
  Problem in saving .xlsm (excel) file using pandas dataframe in python shantanu97 2 4,353 Aug-29-2021, 12:39 PM
Last Post: snippsat
  Need help with saving output into an excel file Beyondfacts 4 2,987 Mar-22-2021, 11:51 AM
Last Post: jefsummers
  Saving text file with a click: valueerror i/o operation on closed file vizier87 5 4,456 Nov-16-2020, 07:56 AM
Last Post: Gribouillis
  saving data from text file to CSV file in python having delimiter as space K11 1 2,425 Sep-11-2020, 06:28 AM
Last Post: bowlofred
  Saving Excel workbook file with dataframe names Biplab1985 0 2,049 Jun-07-2020, 12:25 PM
Last Post: Biplab1985

Forum Jump:

User Panel Messages

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