void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.QRCodeEncoder))
            {
                LogError("owner is not initialized. Add Action \"newQRCodeEncoder\".");
                return;
            }
            OpenCVForUnity.ObjdetectModule.QRCodeEncoder wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.QRCodeEncoder, OpenCVForUnity.ObjdetectModule.QRCodeEncoder>(owner);

            List <OpenCVForUnity.CoreModule.Mat> wrapped_qrcodes = new List <OpenCVForUnity.CoreModule.Mat>();

            OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(qrcodes, wrapped_qrcodes);

            wrapped_owner.encodeStructuredAppend(encoded_info.Value, wrapped_qrcodes);

            OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_qrcodes, qrcodes);
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.QRCodeEncoder))
            {
                LogError("owner is not initialized. Add Action \"newQRCodeEncoder\".");
                return;
            }
            OpenCVForUnity.ObjdetectModule.QRCodeEncoder wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.QRCodeEncoder, OpenCVForUnity.ObjdetectModule.QRCodeEncoder>(owner);

            if (!(qrcode.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("qrcode is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_qrcode = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(qrcode);

            wrapped_owner.encode(encoded_info.Value, wrapped_qrcode);
        }
Exemple #3
0
 public QRCodeEncoder(OpenCVForUnity.ObjdetectModule.QRCodeEncoder nativeObj) : base(nativeObj)
 {
 }