Skip to content

Instantly share code, notes, and snippets.

@as8190255
as8190255 / KinectDepthTouch
Created November 16, 2020 05:55
Kinect深度摄像头Opencv识别触摸点位
//============================================================================
// Name : KinectTouch.cpp
// Author : github.com/robbeofficial
// Version : 0.something
// Description : recognizes touch points on arbitrary surfaces using kinect
// and maps them to TUIO cursors
// (turns any surface into a touchpad)
//============================================================================
/*
@as8190255
as8190255 / Uploader
Created June 12, 2019 01:46
Unity C#文件发送到FTP服务器
using UnityEngine;
using System.Collections;
using System;
using System.Net;
using System.IO;
public class Uploader : MonoBehaviour
{
public string FTPHost = "ftp://byethost7.com";
public string FTPUserName = "b7_18750253";
@as8190255
as8190255 / AppRsaUtil.java
Created May 11, 2019 07:19
android RSA 私钥加密 公钥解密[不支持分段,单次长度约128位]
public class AppRsaUtil {
static String pub = "";
static String pri = "";
//公钥解密
public static String decodePub(String code){
try {
@as8190255
as8190255 / OpencvBackSport.cpp
Created September 18, 2018 08:43
opencv c++ 摄像头移动物体追踪 [待完善, API版本有兼容问题]
#include "stdafx.h"
#include "OpenTest1.h"
#include<iostream>
#include<opencv2/core/core.hpp>
#include<opencv2/imgproc/imgproc.hpp>
#include<opencv2/highgui/highgui.hpp>
#include <opencv2\opencv.hpp>
@as8190255
as8190255 / ColorGradientText.cs
Created September 14, 2018 02:22
unity 渐变 文字
public class ColorGradientText : BaseMeshEffect
{
#region implemented abstract members of BaseMeshEffect
public override void ModifyMesh(VertexHelper vh)
{
if (!IsActive()) { return; }
var count = vh.currentVertCount;
Debug.Log(count);
@as8190255
as8190255 / CircleText.cs
Created September 14, 2018 02:16
unity 环形 环绕文字
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class CircleText : BaseMeshEffect
{
public int radius = 50;
public float spaceCoff = 1f;