Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
0d297744
Commit
0d297744
authored
Nov 22, 2015
by
Maksim Shabunin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5298 from slothspot:master
parents
3ae21095
319b6a44
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
plugins.sbt
samples/java/sbt/project/plugins.sbt
+1
-1
DetectFaceDemo.java
samples/java/sbt/src/main/java/DetectFaceDemo.java
+1
-0
ScalaCorrespondenceMatchingDemo.scala
.../sbt/src/main/scala/ScalaCorrespondenceMatchingDemo.scala
+4
-4
ScalaDetectFaceDemo.scala
samples/java/sbt/src/main/scala/ScalaDetectFaceDemo.scala
+1
-0
No files found.
samples/java/sbt/project/plugins.sbt
View file @
0d297744
addSbtPlugin
(
"com.typesafe.sbteclipse"
%
"sbteclipse-plugin"
%
"
2.1
.0"
)
addSbtPlugin
(
"com.typesafe.sbteclipse"
%
"sbteclipse-plugin"
%
"
4.0
.0"
)
samples/java/sbt/src/main/java/DetectFaceDemo.java
View file @
0d297744
...
...
@@ -5,6 +5,7 @@ import org.opencv.core.Point;
import
org.opencv.core.Rect
;
import
org.opencv.core.Scalar
;
import
org.opencv.imgcodecs.Imgcodecs
;
import
org.opencv.imgproc.Imgproc
;
import
org.opencv.objdetect.CascadeClassifier
;
/*
...
...
samples/java/sbt/src/main/scala/ScalaCorrespondenceMatchingDemo.scala
View file @
0d297744
...
...
@@ -21,8 +21,8 @@ object ScalaCorrespondenceMatchingDemo {
def
detectAndExtract
(
mat
:
Mat
)
=
{
// A special container class for KeyPoint.
val
keyPoints
=
new
MatOfKeyPoint
// We're using the
SURF
detector.
val
detector
=
FeatureDetector
.
create
(
FeatureDetector
.
SURF
)
// We're using the
ORB
detector.
val
detector
=
FeatureDetector
.
create
(
FeatureDetector
.
ORB
)
detector
.
detect
(
mat
,
keyPoints
)
println
(
s
"There were ${keyPoints.toArray.size} KeyPoints detected"
)
...
...
@@ -34,8 +34,8 @@ object ScalaCorrespondenceMatchingDemo {
// arguments.
val
bestKeyPoints
:
MatOfKeyPoint
=
new
MatOfKeyPoint
(
sorted
:
_
*
)
// We're using the
SURF
descriptor.
val
extractor
=
DescriptorExtractor
.
create
(
DescriptorExtractor
.
SURF
)
// We're using the
ORB
descriptor.
val
extractor
=
DescriptorExtractor
.
create
(
DescriptorExtractor
.
ORB
)
val
descriptors
=
new
Mat
extractor
.
compute
(
mat
,
bestKeyPoints
,
descriptors
)
...
...
samples/java/sbt/src/main/scala/ScalaDetectFaceDemo.scala
View file @
0d297744
...
...
@@ -3,6 +3,7 @@ import org.opencv.core.MatOfRect
import
org.opencv.core.Point
import
org.opencv.core.Scalar
import
org.opencv.imgcodecs.Imgcodecs
import
org.opencv.imgproc.Imgproc
import
org.opencv.objdetect.CascadeClassifier
import
reflect._
...
...
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