This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface VoiceManager { | |
void subscribeForQuestions(); | |
void unsubscribe(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface FaceManager { | |
void subscribeForEvents(); | |
void unsubscribe(); | |
double currentHorizontalDirection(); | |
double currentVerticalDirection(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SpeechService extends Service implements RecognitionListener { | |
private SpeechRecognizer speechRecognizer; | |
@Override | |
public IBinder onBind(Intent intent) { | |
throw new UnsupportedOperationException("Not yet implemented"); | |
} | |
@Override | |
public void onDestroy() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HeadPoseService extends Service { | |
private static final int NOT_YET_RESULT = -1000; | |
boolean isWorking = false; | |
FaceDet mFaceDet; | |
double leftEyeTop = NOT_YET_RESULT; | |
double leftEyeBottom = NOT_YET_RESULT; | |
double leftEyeLeft = NOT_YET_RESULT; | |
double leftEyeRight = NOT_YET_RESULT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GazeService extends Service { | |
private static final String TAG = "CommunicationWithAvatar"; | |
public static final int JAVA_DETECTOR = 0; | |
// matrix for zooming | |
private Mat mZoomWindow; | |
private Mat mZoomWindow2; | |
private Mat mRgba; | |
private Mat mGray; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainAndroidController extends Activity implements CameraBridgeViewBase.CvCameraViewListener2 { | |
UnityPlayer m_UnityPlayer; | |
static final double NOT_YET_CALCULATED = 0; | |
static final double EYE_EDGE_FACTOR = 0.77; | |
static final double MAX_SIDES_ANGLE = 90; | |
static final double MAX_VERTICAL_ANGLE = 90; | |
static final double WHOLE_ANGLE = 180; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.library' | |
version = "${rootProject.ext.releaseVersionName}" | |
group = "com.tzutalin.dlib-android-app" | |
android { | |
compileSdkVersion rootProject.ext.androidCompileSdkVersion | |
buildToolsVersion "${rootProject.ext.androidBuildToolsVersion}" | |
defaultConfig { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@relation Basketball-positions | |
@attribute 'points' numeric | |
@attribute 'rebounds' numeric | |
@attribute 'assists' numeric | |
@attribute 'blocks' numeric | |
@attribute 'steals' numeric | |
@attribute 'turnovers' numeric | |
@attribute 'fouls' numeric | |
@attribute '3P%' numeric | |
@attribute 'FG%' numeric |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private ExampleActivityBinding binding; | |
@Override | |
protected void onCreate(@Nullable Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
binding = DataBindingUtil.setContentView(this, R.layout.example_activity, new ExampleDataComponent()); | |
binding.setUser(new User("User Name", "http:/example.com/user/someUserAvatar.png")); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<data> | |
<variable | |
name="user" | |
type="agency.tango.User" /> | |
</data> | |
<agency.tango.android.avatarview.views.AvatarView | |
android:layout_width="100dp" | |
android:layout_height="100dp" | |
bind:av_border_color="@android:color/white" |