using DG.Tweening; using Evereal.VideoCapture; using Newtonsoft.Json; using OpenCVForUnity.CoreModule; using OpenCVForUnity.ImgcodecsModule; using OpenCVForUnity.ImgprocModule; using OpenCVForUnity.ObjdetectModule; using OpenCVForUnity.UnityUtils.Helper; using OpenCVForUnityExample; using System; using System.Collections; using System.Collections.Generic; using uLipSync; using UnityEngine; using UnityEngine.UI; public class RobotUIManager : MonoBehaviour { CascadeClassifier cascade; public WebCamTextureToMatHelper webCamTextureToMatHelper; public RawImage camRawImage; private Texture2D webtexture; public static RobotUIManager instance; public Button photoBtn; public RawImage m_rawImage; Button m_rawImage_button; public GameObject photoPanel; public GameObject textToSpeekPanel; Texture2D tex; private void Awake() { instance = this; } // Start is called before the first frame update void Start() { m_rawImage_button = m_rawImage.GetComponent