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
cd37681a
Commit
cd37681a
authored
Nov 19, 2021
by
samesh97
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
fb0d9938
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
19 deletions
+17
-19
.idea/compiler.xml
.idea/compiler.xml
+1
-1
.idea/gradle.xml
.idea/gradle.xml
+0
-1
.idea/misc.xml
.idea/misc.xml
+1
-1
.idea/runConfigurations.xml
.idea/runConfigurations.xml
+10
-0
app/src/main/java/com/app/smartphotoeditor/activities/CustomGallery.java
...va/com/app/smartphotoeditor/activities/CustomGallery.java
+3
-3
app/src/main/java/com/app/smartphotoeditor/vision/FacialLandmarkDetection.java
.../app/smartphotoeditor/vision/FacialLandmarkDetection.java
+2
-13
No files found.
.idea/compiler.xml
View file @
cd37681a
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"CompilerConfiguration"
>
<bytecodeTargetLevel
target=
"1
.8
"
/>
<bytecodeTargetLevel
target=
"1
1
"
/>
</component>
</project>
\ No newline at end of file
.idea/gradle.xml
View file @
cd37681a
...
...
@@ -16,7 +16,6 @@
</set>
</option>
<option
name=
"resolveModulePerSourceSet"
value=
"false"
/>
<option
name=
"useQualifiedModuleNames"
value=
"true"
/>
</GradleProjectSettings>
</option>
</component>
...
...
.idea/misc.xml
View file @
cd37681a
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1
_8
"
default=
"true"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1
1
"
default=
"true"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
</component>
<component
name=
"ProjectType"
>
...
...
.idea/runConfigurations.xml
0 → 100644
View file @
cd37681a
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"RunConfigurationProducerService"
>
<option
name=
"ignoredProducers"
>
<set>
<option
value=
"com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer"
/>
</set>
</option>
</component>
</project>
\ No newline at end of file
app/src/main/java/com/app/smartphotoeditor/activities/CustomGallery.java
View file @
cd37681a
...
...
@@ -100,7 +100,7 @@ public class CustomGallery extends AppCompatActivity implements
public
void
updated
(
Mat
rgba
,
Mat
previewMat
)
{
computerVision
.
setMat
(
rgba
);
setPreviewFrame
(
previewMat
);
//
setPreviewFrame(previewMat);
}
}).
initialize
();
...
...
@@ -359,13 +359,13 @@ public class CustomGallery extends AppCompatActivity implements
@Override
public
void
eyeLeft
(
Mat
mat
)
{
//
setPreviewFrame(mat);
setPreviewFrame
(
mat
);
}
@Override
public
void
eyeRight
(
Mat
mat
)
{
//
setPreviewFrame(mat);
setPreviewFrame
(
mat
);
}
@Override
...
...
app/src/main/java/com/app/smartphotoeditor/vision/FacialLandmarkDetection.java
View file @
cd37681a
...
...
@@ -416,24 +416,15 @@ public class FacialLandmarkDetection
}
catch
(
Exception
e
)
{
}
}
public
Mat
setDefaultValues
(
Mat
srcMat
)
{
// final Bitmap bitmap = Bitmap.createBitmap(srcMat.clone().width(), srcMat.clone().height(), Bitmap.Config.ARGB_8888);
public
Mat
setDefaultValues
(
Mat
srcMat
)
{
Imgproc
.
cvtColor
(
srcMat
,
srcMat
,
Imgproc
.
COLOR_BGR2GRAY
,
0
);
Mat
srcMat1
=
srcMat
;
Imgproc
.
GaussianBlur
(
srcMat1
,
srcMat1
,
new
Size
(
1
,
1
),
0
);
//Mat srcMat1 = new Mat(srcMat.rows(), srcMat.cols(), CV_8UC1);
//int kernalsize = 3;
//Imgproc.bilateralFilter(srcMat, srcMat1, kernalsize, kernalsize * 2, kernalsize / 2);
srcMat1
.
convertTo
(
srcMat1
,
0
,
1.9
,
1
);
srcMat1
.
convertTo
(
srcMat1
,
CvType
.
CV_8U
,
1.9
,
-
255
);
//Imgproc.cvtColor(srcMat1, srcMat1, Imgproc.COLOR_GRAY2RGBA, 4);
int
whiteCount
=
0
;
int
leftWhiteCount
=
0
;
...
...
@@ -484,10 +475,8 @@ public class FacialLandmarkDetection
Log
.
d
(
"cccccccccccccccc"
,
"left looked"
);
listener
.
onPupilChanged
(
srcMat1
,
true
,
false
);
}
// Log.d("cccccccccccccccc","" + leftWhiteCount + "-" + rightWhiteCount);
}
return
srcMat
;
}
...
...
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