Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-129
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-129
2021-129
Commits
bb605480
Commit
bb605480
authored
Nov 22, 2021
by
samesh97
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
75d0f21f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
16 deletions
+22
-16
app/src/main/assets/model_eye_blink.tflite
app/src/main/assets/model_eye_blink.tflite
+0
-0
app/src/main/assets/model_gesture_detection.tflite
app/src/main/assets/model_gesture_detection.tflite
+0
-0
app/src/main/java/com/app/smartphotoeditor/activities/LowLightEnhanceActivity.java
.../smartphotoeditor/activities/LowLightEnhanceActivity.java
+6
-0
app/src/main/java/com/app/smartphotoeditor/services/ComputerVision.java
...ava/com/app/smartphotoeditor/services/ComputerVision.java
+16
-16
No files found.
app/src/main/assets/model_eye_blink.tflite
View file @
bb605480
No preview for this file type
app/src/main/assets/model_gesture_detection.tflite
View file @
bb605480
No preview for this file type
app/src/main/java/com/app/smartphotoeditor/activities/LowLightEnhanceActivity.java
View file @
bb605480
...
...
@@ -111,6 +111,12 @@ public class LowLightEnhanceActivity extends AppCompatActivity
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_low_light_enhance
);
inputImage
=
ImageList
.
getInstance
().
getCurrentBitmap
();
//Views
...
...
app/src/main/java/com/app/smartphotoeditor/services/ComputerVision.java
View file @
bb605480
...
...
@@ -95,14 +95,14 @@ public class ComputerVision
Bitmap
bitmap
=
Methods
.
matToBit
(
mat
);
try
{
Methods
.
saveImage
(
activity
.
getApplicationContext
(),
bitmap
,
"Idle"
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
//
try
//
{
//
Methods.saveImage(activity.getApplicationContext(),bitmap,"Idle");
//
}
//
catch (IOException e)
//
{
//
e.printStackTrace();
//
}
gestureDetection
.
detectGestures
(
bitmap
);
}
...
...
@@ -111,14 +111,14 @@ public class ComputerVision
{
Bitmap
bitmap
=
Methods
.
matToBit
(
mat
);
try
{
Methods
.
saveImage
(
activity
.
getApplicationContext
(),
bitmap
,
"EyeOpen"
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
//
try
//
{
//
Methods.saveImage(activity.getApplicationContext(),bitmap,"EyeOpen");
//
}
//
catch (IOException e)
//
{
//
e.printStackTrace();
//
}
if
(
eyeBlinkDetection
!=
null
)
eyeBlinkDetection
.
detectEyeBlinkState
(
bitmap
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment