Skip to content

Commit

Permalink
Recog face
Browse files Browse the repository at this point in the history
  • Loading branch information
janm committed Apr 22, 2013
1 parent 57c2b44 commit 302c5d0
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,13 @@ class RecogSessionActor(connectionActor: ActorRef) extends Actor
case Event(SenderResult(sender, r@RecogResult(true)), session: ActiveSession) =>
val newSession = session.withResult(r)
if (newSession.completed) {
println("**completed")
sender ! RecogSessionCompleted(UUID.randomUUID().toString)
goto(Completed) using newSession
} else {
println("**accepted")
sender ! RecogSessionAccepted(r)
goto(WaitingForMoreImages) using newSession
}
case Event(SenderResult(sender, r@RecogResult(false)), session: ActiveSession) =>
println("**rejected")
sender ! RecogSessionRejected(r)
goto(WaitingForMoreImages) using session
}
Expand Down

0 comments on commit 302c5d0

Please sign in to comment.