コード例 #1
0
        public Mat Frame()
        {
            if (!Connected)
            {
                throw new ArgumentException("Trying to read frame from invalid camera " + Path);
            }

            var res = new Mat();

            try
            {
                TheCamera.Read(res);
            }
            catch
            {
                Error("An error occured while reading the frame");
                throw;
            }

            return(res);
        }