Skip to content

Instantly share code, notes, and snippets.

View vumbumy's full-sized avatar

HanBeom Seo vumbumy

View GitHub Profile
🌞 Morning 37 commits ██▌░░░░░░░░░░░░░░░░░░ 12.1%
🌆 Daytime 62 commits ████▎░░░░░░░░░░░░░░░░ 20.3%
🌃 Evening 129 commits ████████▉░░░░░░░░░░░░ 42.3%
🌙 Night 77 commits █████▎░░░░░░░░░░░░░░░ 25.2%
#include "main.h"
// Initial square position and size
GLfloat x = 0.0f;
GLfloat y = 0.0f;
GLfloat rsize = 25;
// Step size in x and y directions
// (number of pixels to move each time)
GLfloat xstep = 1.0f;
void DoDisplay()
{
float jump = 0.25f;
Vec3f vertex;
vector<GLubyte> indices;
Vec3f texture;
#ifdef AUTO_CALC
for (GLfloat y = size; y >= -size; y -= jump){
#include "main.h"
void DoDisplay();
void DoKeyboard(unsigned char key, int x, int y);
GLfloat xAngle, yAngle, zAngle;
tex_object_2D decal;
int main()
{
#pragma warning(disable:4996)
#include <iostream>
#include <unordered_map>
#include <vector>
#include <algorithm>
#include <stdio.h>
using namespace std;
bool A(const pair<int, pair<int,int> >& l, const pair<int, pair<int, int> >& r) {
private void crtLensDistor(double correctionFactor){
lookUpTable = new ArrayList<>();
double bOptimiz = 0.026731; // most cases only require b optimization
double linearScal = 1.0 - bOptimiz - correctionFactor; // describes the linear scaling of the image
int d = Math.min(width, height) / 2; // radius of the circle
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
package com.example.camshift;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import org.opencv.android.BaseLoaderCallback;
import org.opencv.android.CameraBridgeViewBase;
import org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame;
import org.opencv.android.CameraBridgeViewBase.CvCameraViewListener2;
@Override
public Mat onCameraFrame(CvCameraViewFrame inputFrame) {
image = inputFrame.rgba();
mGray = inputFrame.gray();
Imgproc.pyrDown(mGray, mGray);
Imgproc.pyrDown(image, image);
if (addRemovePt) {
Imgproc.goodFeaturesToTrack(mGray, mp, MAX_COUNT, 0.01, 5);
public class MainActivity extends Activity implements CvCameraViewListener2 {
private CameraBridgeViewBase mOpenCvCameraView;
private static CascadeClassifier face_cascade; //계산을 위한 변수(얼굴용)
private static CascadeClassifier eyes_cascade; //계산을 위한 변수(눈용)
MatOfRect faces;
Mat mRgba; //컬러처리를 위한 화면 기본 변수
private BaseLoaderCallback mLoaderCallback = new BaseLoaderCallback(this) {
@Override
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using OpenCvSharp;