Esempio n. 1
0
    public void GetCodeString()
    {
        //print("Start");
        for (int i = 0; i < qrCodes.Count; i++)
        {
            //批量扫描二维码
            string resultStr = QRCodeDecodeController.DecodeByStaticPic(qrCodes[i]);
            result.Add(resultStr);
            if (i >= qrCodes.Count - 1)
            {
                // print("OK!");

                WirteExcel(Application.dataPath + "/Codes.xlsx");
            }
        }
    }
    public void Decode()
    {
        string resultStr = QRCodeDecodeController.DecodeByStaticPic(targetTex);

        resultText.text = resultStr;
    }