Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Ear recognition
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Boston University
Ear recognition
Commits
f4823f59
Commit
f4823f59
authored
Oct 07, 2015
by
Josejulio Martínez Magaña
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds common clases.
parent
ce5b0810
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
124 additions
and
0 deletions
+124
-0
EarDatabase.java
...src/main/java/com/aluxoft/earrecognition/EarDatabase.java
+18
-0
EarFeature.java
app/src/main/java/com/aluxoft/earrecognition/EarFeature.java
+9
-0
EarIdentifier.java
...c/main/java/com/aluxoft/earrecognition/EarIdentifier.java
+32
-0
EarIdentifierResult.java
.../java/com/aluxoft/earrecognition/EarIdentifierResult.java
+11
-0
Person.java
app/src/main/java/com/aluxoft/earrecognition/Person.java
+33
-0
EarDatabaseLoader.java
.../com/aluxoft/earrecognition/loader/EarDatabaseLoader.java
+21
-0
No files found.
app/src/main/java/com/aluxoft/earrecognition/EarDatabase.java
0 → 100644
View file @
f4823f59
package
com
.
aluxoft
.
earrecognition
;
import
java.util.HashMap
;
/**
* Created by josejuliomartinez on 06/10/15.
* The database of all the ears.
*/
public
class
EarDatabase
{
private
HashMap
<
String
,
Person
>
persons
=
new
HashMap
<
String
,
Person
>();
public
void
addPerson
(
Person
person
)
{
this
.
persons
.
put
(
person
.
getIdentifier
(),
person
);
}
}
app/src/main/java/com/aluxoft/earrecognition/EarFeature.java
0 → 100644
View file @
f4823f59
package
com
.
aluxoft
.
earrecognition
;
/**
* Created by josejuliomartinez on 06/10/15.
* Store the features of the ear.
*/
abstract
public
class
EarFeature
implements
Comparable
{
}
app/src/main/java/com/aluxoft/earrecognition/EarIdentifier.java
0 → 100644
View file @
f4823f59
package
com
.
aluxoft
.
earrecognition
;
/**
* Created by josejuliomartinez on 06/10/15.
*/
public
class
EarIdentifier
{
private
EarDatabase
database
;
public
EarIdentifier
(
EarDatabase
_database
)
{
this
.
database
=
_database
;
}
public
void
setDatabase
(
EarDatabase
_database
)
{
this
.
database
=
_database
;
}
/**
* Do the ear identification process.
* @param feature The result of the identification.
* @return
*/
public
EarIdentifierResult
identify
(
EarFeature
feature
)
{
return
null
;
}
static
{
System
.
loadLibrary
(
"opencv_java"
);
System
.
loadLibrary
(
"nonfree"
);
}
}
app/src/main/java/com/aluxoft/earrecognition/EarIdentifierResult.java
0 → 100644
View file @
f4823f59
package
com
.
aluxoft
.
earrecognition
;
/**
* Created by josejuliomartinez on 06/10/15.
* Stores the result of an identification (top10)
*/
public
class
EarIdentifierResult
{
}
app/src/main/java/com/aluxoft/earrecognition/Person.java
0 → 100644
View file @
f4823f59
package
com
.
aluxoft
.
earrecognition
;
import
java.util.ArrayList
;
/**
* Created by josejuliomartinez on 07/10/15.
*/
public
class
Person
{
private
String
identifier
;
private
String
name
;
private
ArrayList
<
EarFeature
>
features
=
new
ArrayList
<
EarFeature
>();
public
String
getIdentifier
()
{
return
identifier
;
}
public
void
setIdentifier
(
String
identifier
)
{
this
.
identifier
=
identifier
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
void
addFeature
(
EarFeature
feature
)
{
this
.
features
.
add
(
feature
);
}
}
app/src/main/java/com/aluxoft/earrecognition/loader/EarDatabaseLoader.java
0 → 100644
View file @
f4823f59
package
com
.
aluxoft
.
earrecognition
.
loader
;
import
com.aluxoft.earrecognition.EarDatabase
;
/**
* Created by josejuliomartinez on 07/10/15.
* Loads the database.
*/
abstract
public
class
EarDatabaseLoader
{
public
abstract
EarDatabase
load
();
/**
* Updates the database (only implemented if we can update the database)
* @param database
*/
public
void
update
(
EarDatabase
database
)
{
}
}
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