Giter VIP home page Giter VIP logo

introlab / openimu Goto Github PK

View Code? Open in Web Editor NEW
254.0 34.0 65.0 61.91 MB

Open Source Analytics & Visualisation Software for Inertial Measurement Units

License: GNU General Public License v3.0

CMake 1.70% Python 92.01% Jupyter Notebook 0.88% HTML 0.37% Inno Setup 0.78% MATLAB 4.04% Mako 0.07% Shell 0.16%
inertial measurement units scripting analysis energy expenditure accelerometers imu imu-data

openimu's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openimu's Issues

Display beacon data

As of now, beacon data isn't plotted. A suggestion to plot beacon data would be the following:

  • Plot absence / presence of beacon, separated by channels (beacons)
  • Ability to filter only specific beacons on graph.

MacOS WebEngine not working in deployed package

Code signing of the webengine (used to display GPS data on a map) doesn't seem to be properly working for now on Mac OS.
Feature has been disabled on Mac OS.

Investigate and fix the issue - maybe related to wrong entitlement or missing signing on some dependencies?

Batch import with special meta-importation file

Add support for batching an import with minimal user interaction, either from a predefined meta-session batcher, or by intelligent directory crawling, or a combination of both (directory crawling to find batchers).

Draft for formatting of an OpenIMU Meta-Import (.oimi ๐Ÿ˜ƒ) with JSON formatting:

{
  "version" : "1"
  "logger_type" : "AppleWatch",
  "deviceID" : "W01P1",
  "appVersion" : "0.11.2",
  "participant" : "abcd1234",
  "description" : "any additional info on session? optional",
  "files" : [
    "watch_Battery.data",
    "watch_Coordinates.data",
    ...
  ]
}

File format backward compatibility / upgrade

Currently, using only SQLAlchemy to access and manage the file structure (database), when the file format changes, there is no backward compatibility provided, since SQLAlchemy doesn't create by itself the missing fields / tables.

Usual solution is to use an external migration tool running when the software is installed, but that works only in a scenario with only one database, which is not the case here since each file is its own database.

The solution would be to integrate checking the file version before opening it in OpenIMU and upgrade its structure, if required, using direct database access (not SQLAlchemy).

Incorrect timestamps for Apple watch processed motion

There is an exactly one minute gap every hour in the timeline of imported 'ProcessedMotion' data. I've checked in the log files for error, but these gaps are not present in the data.

image

I highly suspect that there is a problem with the code at 'AppleWatchImporter.py:738', namely the comparison timestamp_sec > last_timestamp + 3600 is for an hour, however I don't quite understand the import process to make a fix.

I can send you sample data if you wish, but any watch_ProcessedMotion.data file greater than 20Mb will show this behavior.

no error with build, but have fail to run

Got the following error when run from pyCharm. Any pointer?

Traceback (most recent call last):
  File "/home/tan/proj/imu/OpenIMU/python/OpenIMUApp.py", line 409, in <module>
    from libopenimu.qt.MainWindow import MainWindow
  File "/home/tan/proj/imu/OpenIMU/python/libopenimu/qt/MainWindow.py", line 12, in <module>
    from resources.ui.python.MainWindow_ui import Ui_MainWindow
ModuleNotFoundError: No module named 'resources.ui.python.MainWindow_ui'Traceback (most recent call last):
  File "/home/tan/proj/imu/OpenIMU/python/OpenIMUApp.py", line 409, in <module>
    from libopenimu.qt.MainWindow import MainWindow
  File "/home/tan/proj/imu/OpenIMU/python/libopenimu/qt/MainWindow.py", line 12, in <module>
    from resources.ui.python.MainWindow_ui import Ui_MainWindow
ModuleNotFoundError: No module named 'resources.ui.python.MainWindow_ui'

Add precise timestamp data of every sample to database

The import process currently strips all sample from its temporal data, assuming that it will be able to reconstruct it later. This proves to not be exact in the cases where the sampling rate is missing or imprecise, or when samples are missing.

The solution discussed involves creating a specialized table for timestamps as so:

tabTimestamps
=============
[PK] id_timestamps : Integer [Not Null]
first_timestamp_us : UInt64 // unix timestamp with microsecond precision
nb_samples : Int32 // Number of samples in blob
data : blob  // Compact list of UInt32, offseted from first_timestamp_us, with microsecond precision

Adding a foreign-key to this table into tabSensorData, to be potentially shared by many.

One big trade-off from this method is that we will be maximizing performance at the cost of granularity, hence a SELECT on the database might be more complicated and take up more memory than needed. Also, potential UPDATE on the data would be very inefficient. However, it is my understanding that those should not be needed pretty much ever, so it might be negligible.

For future proofing and without a bigger space cost, timestamps can have microsecond precision with a max offset of 2^32 microseconds = 4294 seconds = 1:12:35. I also suggests that this be the size of all windows instead of an arbitrary one hour, for maximal packing.

It is my opinion that all sensors, not only high frequency data, should also abide by this format, for coherence's sake. Low frequency would mean a low amount of data, mitigating the bigger memory consumption on single sample SELECT.

Data grouping by recordsets (sessions)

Importing into the database doesn't keep the data into sessions, instead it agglomerates it into day long recordSet.

A recordSet should be analogous to a single logging session. Many sessions in a single day could then be discernible in the UI, and erroneous sessions easily removable.

Agglomeration into other groups should instead be done at the demand of the user and not affect the DB, maybe with a drop menu of choices for different options for visualizations (session, hour, day, week, ...)

Data visualization QoL modifications

Here are the feature requests for improving the data visualization UI

  • Don't freeze UI on sensor selection
    • As of now, the UI freezes for a good 5 seconds before showing a graph with a lot of points
    • Should directly show the panel with a 'loading' icon, and do fetch in the background
  • Zoom and move on the main timeline
  • Access value(s) of sensor(s) for a precise timestamp
    • Upon selecting a precise timestamp on timeline and/or graph
    • Maybe even simply a label on mouse location (showing sensor name and data at point)
  • Easier correlation between timeline and sensor
    • Current color scheme is very hard to differentiate with 5+ sensor
    • A simple label when the mouse is over a precise timeline would help a lot
  • Add option to pop (and re-embed) data graphs into a new window to permit a full screen visualization.
    • The current bottom right panel uses maximum 50% of the screen real estate
    • Normally easy to implement, as the user is tasked with window management
  • Give possibility to overlap 2+ sensors on the same graph

Recent dataset history

When loading a new dataset, remember the last 5 used datasets (recent) and allow the user to quickly select and load those recently used files.

Review User Interface

Build new logo and icon for the app.
Revise user interactions and paths and fix usability issues.

HR not visible

Rare case of HR not appearing in OpenImu.
The watch was not worn but data are present (HR is activated in the options).
HR data is still exportable via OpenImu.
Faulty dataset attached.
2023-02-23_11-55-29-0.zip

ModuleNotFoundError: No module named 'resources.ui.python

Hello,

My name is Filipe Salles and I'm working at Porto University, Portugal (indeed everyone is working at home during these quarantine times). I'm trying to install it, but I had a problem. When PyCharm is running, it shows up the following:

/usr/bin/python3.6 /home/salles/Documentos/OpenIMU-master/python/OpenIMUApp.py
Traceback (most recent call last):
File "/home/salles/Documentos/OpenIMU-master/python/OpenIMUApp.py", line 409, in
from libopenimu.qt.MainWindow import MainWindow
File "/home/salles/Documentos/OpenIMU-master/python/libopenimu/qt/MainWindow.py", line 12, in
from resources.ui.python.MainWindow_ui import Ui_MainWindow
ModuleNotFoundError: No module named 'resources.ui.python'
Process finished with exit code 1.

Anyone can help me with this? Thanks.

PS - It's my first time using Qt Creator and PyCharm (in ubuntu), so I think that maybe I did simething wrong in these parts.

Groups / Participants sorting and searching

Currently, participants and groups are listed in the order they were created in the file.

However, it would be useful to display them by alphabetical order and to allow text search to quickly find a specific participant in a larger dataset.

Specifically:

  • Add buttons to sort data
  • Add a search button or area to filter items from the list

Adaptative zoom data loading

Improve zoom feature on graph to load further data when the zoom level change, in order to gain a better prevision when zooming in.

Cleanup main UI thread

Currently, any long running operation freezes up the UI. Moving all of those (DB operation, data graphing, data imports) on a background thread would relieve the main thread and make the application snappier. One other benefit is that if a background thread crashes, it doesn't crash the whole application with it.

This will require a refactoring of the data and operation flow in the application, but will ultimately make it more modular and maintainable.

Migrate to PySide6

Since PySide is officially supported by Qt, should migrate the project to PySide and update everything.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.