Skip to content

Instantly share code, notes, and snippets.

View mzielu's full-sized avatar

Marcin Zieliński mzielu

  • Kraków, Poland
View GitHub Profile
@mzielu
mzielu / avatar
Last active January 7, 2021 23:11
@mzielu
mzielu / profile
Last active January 8, 2021 00:09
{
"name":"Marcin Zielinski",
"position":"Senior Android Developer",
"address":"Krakow, Poland",
"email":"kmarcinzielinski@gmail.com",
"phone":"(+48) 600 624 175",
"avatar":"https://gist.githubusercontent.com/mzielu/f07f822f14158479bf63c438a5115808/raw/199a9d11f83df5924349dd396a8486a9551a4148/profilowe.png"
}
public class MainTestActivity extends Activity implements CameraBridgeViewBase.CvCameraViewListener2 {
FaceDet mFaceDet;
boolean isWOrking = false;
private static final String TAG = "OCVSample::Activity";
private static final Scalar FACE_RECT_COLOR = new Scalar(0, 255, 0, 255);
public static final int JAVA_DETECTOR = 0;
private int learn_frames = 0;
using System;
using UnityEngine;
public class LookingAround : MonoBehaviour
{
public HeadLookController headLook;
//private float offset = 1.5f;
void Update(){}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.tzutalin.dlibtest"
>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<!-- CAMERA -->
<uses-permission android:name="android.permission.CAMERA"/>
public class EyePoints {
public double left;
public double right;
public double top;
public double bottom;
public EyePoints(double left, double right, double top, double bottom) {
this.left = left;
this.right = right;
this.top = top;
public class DirectionResultEvent {
double verticalAngle;
double horizontalAngle;
public DirectionResultEvent(double verticalAngle, double horizontalAngle) {
this.verticalAngle = verticalAngle;
this.horizontalAngle = horizontalAngle;
}
}
public class CameraFrameEvent {
CameraBridgeViewBase.CvCameraViewFrame inputFrame;
public CameraFrameEvent(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {
this.inputFrame = inputFrame;
}
}
public class HeadPoseServiceEvent {
EyePoints rightEye;
EyePoints leftEye;
public HeadPoseServiceEvent(EyePoints rightEye, EyePoints leftEye) {
this.rightEye = rightEye;
this.leftEye = leftEye;
}
}
public class GazeServiceEvent {
Point leftIris;
Point rightIris;
public GazeServiceEvent(Point leftIris, Point rightIris) {
this.leftIris = leftIris;
this.rightIris = rightIris;
}
}