Skip to content

Commit 1a95195

Browse files
committed
Revert mediastore updates
1 parent eb80d5b commit 1a95195

File tree

17 files changed

+222
-485
lines changed

17 files changed

+222
-485
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ script:
6060
--app $TRAVIS_BUILD_DIR/app/build/outputs/apk/debug/app-debug.apk
6161
--test $TRAVIS_BUILD_DIR/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
6262
--device model=blueline,version=28,locale=en,orientation=portrait
63-
--device model=flame,version=30,locale=en,orientation=portrait
63+
--device model=x1q,version=29,locale=en,orientation=portrait
6464
--test-targets "class net.sourceforge.opencamera.test.SubsetTests";
6565
fi
6666

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ OpenCamera Sensors is an Android application for synchronized recording of video
77

88
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.
99

10+
1011
## Usage
1112

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

2829
- **Connect** smartphone to the same network as PC
29-
- Use scripts provided in ```./api_client/``` directory to **send requests** for the application:
30-
31-
32-
![remote control methods](https://www.websequencediagrams.com/files/render?link=6txhpHrdgaebT4DYz2C3SaEQjHM1esYDkJZJvPZcgCJHbRAg3c8hqcJYgOmGirze)
30+
- Use scripts provided in ```./api_client/``` directory to **send requests** for the application
3331

3432
## Good practices for data recording
3533

api_client/basic_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def main():
1111
remote = RemoteControl(HOST)
1212
print("Connected")
1313

14-
accel_data, gyro_data = remote.get_imu(10000, True, True)
14+
accel_data, gyro_data = remote.get_imu(10000, True, False)
1515
print("Accelerometer data length: %d" % len(accel_data))
1616
with open("accel.csv", "w+") as accel:
1717
accel.writelines(accel_data)

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 30
4+
compileSdkVersion 29
55
compileOptions {
66
sourceCompatibility JavaVersion.VERSION_1_8
77
targetCompatibility JavaVersion.VERSION_1_8
@@ -11,7 +11,7 @@ android {
1111
defaultConfig {
1212
applicationId "com.opencamera_extended.app"
1313
minSdkVersion 19
14-
targetSdkVersion 30
14+
targetSdkVersion 29
1515

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

0 commit comments

Comments
 (0)