public override void OnARMainInited() { // 出力画面 初期化 outputScreenQuad = outputCamera1.GetComponent <OutputCamQuad>(); // 飲料領域の初期化 foodRegion = new Region(0, 0, rgbMat.cols(), rgbMat.rows()); // テクスチャCreator初期化 _textureCreator = new ColorTextureCreator(30, 100, 100, 1.0); }
public override void OnARMainInited() { // 出力画面 初期化 outputScreenQuad = outputCamera1.GetComponent <OutputCamQuad>(); // 出力先の設定するならココ. 参照: OpenCVForUnityExample. outputScreenQuad.setupScreenQuadAndCamera(Screen.height, Screen.width, CvType.CV_8UC3); // 飲料領域の初期化 foodRegion = new Region(0, 0, rgbaMat.cols(), rgbaMat.rows()); OnARMainProcessInited(); // テクスチャCreator初期化 _textureCreator = new ColorTextureCreator(30, 100, 100, 1.0); }
public void SetTargetColor(ColorTextureCreator creator) { _textureCreator = creator; }