Skip to content

Commit

Permalink
Revert mediastore updates
Browse files Browse the repository at this point in the history
  • Loading branch information
azaat committed Feb 24, 2021
1 parent eb80d5b commit 1a95195
Show file tree
Hide file tree
Showing 17 changed files with 222 additions and 485 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ script:
--app $TRAVIS_BUILD_DIR/app/build/outputs/apk/debug/app-debug.apk
--test $TRAVIS_BUILD_DIR/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
--device model=blueline,version=28,locale=en,orientation=portrait
--device model=flame,version=30,locale=en,orientation=portrait
--device model=x1q,version=29,locale=en,orientation=portrait
--test-targets "class net.sourceforge.opencamera.test.SubsetTests";
fi

Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ OpenCamera Sensors is an Android application for synchronized recording of video

This project is based on [Open Camera](https://opencamera.org.uk/) — a popular open-source camera application with flexibility in camera parameters settings, actively supported by the community. By regular merging of Open Camera updates our app will adapt to new smartphones and APIs — this is an advantage over the other video + IMU recording applications built from scratch for Camera2API.


## Usage

![screenshot settings](https://imgur.com/BytzCvA.png)
Expand All @@ -16,7 +17,7 @@ This project is based on [Open Camera](https://opencamera.org.uk/) — a popul
- (Optional) Enable **save frames** option if you want to verify recorded data correctness
- **Switch to video**, setup ISO and exposure time
- **Record video**
- **Get data** from ```Documents/OpenCamera_Sensors```:
- **Get data** from ```DCIM/OpenCamera```:
- Video file
- IMU data and frame timestamps in the directory ```{VIDEO_DATE}```:
-```{VIDEO_NAME}_gyro.csv```, data format: ```X-data, Y-data, Z-data, timestamp (ns)```
Expand All @@ -26,10 +27,7 @@ This project is based on [Open Camera](https://opencamera.org.uk/) — a popul
### Remote recording

- **Connect** smartphone to the same network as PC
- Use scripts provided in ```./api_client/``` directory to **send requests** for the application:


![remote control methods](https://www.websequencediagrams.com/files/render?link=6txhpHrdgaebT4DYz2C3SaEQjHM1esYDkJZJvPZcgCJHbRAg3c8hqcJYgOmGirze)
- Use scripts provided in ```./api_client/``` directory to **send requests** for the application

## Good practices for data recording

Expand Down
2 changes: 1 addition & 1 deletion api_client/basic_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def main():
remote = RemoteControl(HOST)
print("Connected")

accel_data, gyro_data = remote.get_imu(10000, True, True)
accel_data, gyro_data = remote.get_imu(10000, True, False)
print("Accelerometer data length: %d" % len(accel_data))
with open("accel.csv", "w+") as accel:
accel.writelines(accel_data)
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 30
compileSdkVersion 29
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
Expand All @@ -11,7 +11,7 @@ android {
defaultConfig {
applicationId "com.opencamera_extended.app"
minSdkVersion 19
targetSdkVersion 30
targetSdkVersion 29

renderscriptTargetApi 21
//renderscriptSupportModeEnabled true // don't use support library as it bloats the APK, and we don't need pre-4.4 support
Expand Down
Loading

0 comments on commit 1a95195

Please sign in to comment.