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
package com.polysfactory.DrmFrameworkTest; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import android.app.Activity; | |
import android.drm.DrmManagerClient; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.widget.TextView; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<style name="MyDark" parent="android:Theme.Black"> | |
<item name="android:textColorPrimary">#FFFFFF</item> | |
<item name="android:textColorSecondary">#FFFFFF</item> | |
<item name="android:textColorTertiary">#FFFFFF</item> | |
<item name="android:textColorPrimaryInverse">#000000</item> | |
<item name="android:textColorSecondaryInverse">#000000</item> | |
<item name="android:textColorTertiaryInverse">#000000</item> | |
<item name="android:textColorPrimaryDisableOnly">#FFFFFF</item> |
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
#include <opencv2/opencv.hpp> | |
#include <iostream> | |
#include <vector> | |
#include <cmath> | |
#include <assert.h> | |
using namespace std; | |
using namespace cv; |
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
#include <opencv2/opencv.hpp> | |
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <cmath> | |
#include <assert.h> | |
#define mp make_pair | |
#define pb push_back |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="android_rules" default="debug"> | |
<!-- | |
This build file is imported by the project build file. It contains | |
all the targets and tasks necessary to build Android projects, be they | |
regular projects, library projects, or test projects. | |
At the beginning of the file is a list of properties that can be overridden | |
by adding them to your ant.properties (properties are immutable, so their |
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
#include <opencv2/opencv.hpp> | |
int main () { | |
cvNamedWindow( "My Window", 1 ); | |
IplImage *img = cvCreateImage( cvSize( 640, 480 ), IPL_DEPTH_8U, 1 ); | |
CvFont font; | |
double hScale = 2.0; | |
double vScale = 2.0; | |
int lineWidth = 5; | |
cvInitFont(&font, CV_FONT_HERSHEY_SIMPLEX | CV_FONT_ITALIC, hScale, vScale, 0, lineWidth); |
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
#include <opencv2/opencv.hpp> | |
#include <opencv2/nonfree/nonfree.hpp> | |
#include <iostream> | |
#include <vector> | |
#include <cmath> | |
using namespace std; | |
using namespace cv; | |
const double THRESHOLD = 400; |
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
#include <opencv2/opencv.hpp> | |
#include <opencv2/nonfree/nonfree.hpp> | |
#include <iostream> | |
#include <vector> | |
#include <cmath> | |
using namespace std; | |
using namespace cv; | |
const double THRESHOLD = 400; |
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
#include <opencv2/opencv.hpp> | |
#include <vector> | |
using namespace cv; | |
using namespace std; | |
int main () { | |
Mat img = imread("lena.jpg"); | |
CascadeClassifier cascade; | |
if (cascade.load("haarcascade_frontalface_alt.xml")) { |
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
#include <string> | |
#include <iostream> | |
#include <sstream> | |
#include <vector> | |
#include <cmath> | |
#include <queue> | |
using namespace std; | |
#define REP(i,n) for((i)=0;(i)<(int)(n);(i)++) |
OlderNewer