Varvrar / ios_logger

Application for camera and sensor data logging (iOS)
153 stars 28 forks source link
accelerometer arkit camera compass devicemotion frames gps gyroscope imu ios logger magnetometer

ios_logger

Application for logging camera images, accelerometer and gyroscope data, gps and heading data, motion data and magnet data.

This application was made for logging camera images and sensor data on Apple devices (iPad/iPhone).

Build and run:

  1. Open ios_logger.xcodeproj in XCode
  2. In project properties -> General set your team signing and make sure that signing certificate was successfully created
  3. Connect your device (you may have to wait for the debugger to be set up), select it (Product -> Destination) and run application (Product -> Run)

Collect datasets:

To start collecting dataset:

Each dataset will be saved in separate folder on the device .

Get saved datasets:

After you have collected datasets connect your device to PC and run iTunes. In iTunes go to device-> File Sharing -> ios-logger, in right table check folders with datasets you needed and save it on your PC. In last versions of MacOS you should use finder to acess the device and get File Sharing.

Dataset format:

Other:

To syncronize accelerometer and gyroscope data you can use python script sync-data.py:

python path_to_folder_with_sync-data/sync-data.py path_to_datasets_folder/dataset_folder

To get frames from video you can use ffmpeg or some video editor. For example:

ffmpeg -i Frames.m4v Frames/Frame%05d.png -hide_banner

or you can try to use VideoToPictures.cpp:

compile VideoToPictures.cpp and
VideoToPictures path_to_datasets_folder/dataset_folder/Frames.m4v