コード例 #1
0
        void CreatComponentMarkerLess()
        {
            InformationObjectList informationObjectList = JsonUtility.FromJson <InformationObjectList>(PlayerPrefs.GetString(PropertiesModel.NameBDMarkerLessPlayerPrefab));

            if (informationObjectList == null)
            {
                return;
            }

            foreach (InformationObject informationObject in informationObjectList.ListInformationObject)
            {
                patternMat = Imgcodecs.imread(informationObject.ImagePathMarkerLess);

                if (patternMat.total() > 0)
                {
                    pattern = new Pattern();

                    PatternDetector patternDetector = new PatternDetector(null, null, null, true);
                    patternDetector.buildPatternFromImage(patternMat, pattern);
                    patternDetector.train(pattern);

                    CreateComponent(informationObject, patternDetector);
                }
            }
        }
コード例 #2
0
ファイル: MarkerIdControl.cs プロジェクト: Evertonslv/poc-tcc
    private MarkerIdControl()
    {
        informationObjectList = JsonUtility.FromJson <InformationObjectList>(PlayerPrefs.GetString(PropertiesModel.NameBDMarkerPlayerPrefab));

        if (informationObjectList != null)
        {
            markerId = informationObjectList.ListInformationObject.Count;
        }
    }
コード例 #3
0
        void CreatComponentMarker()
        {
            InformationObjectList informationObjectList = JsonUtility.FromJson <InformationObjectList>(PlayerPrefs.GetString(PropertiesModel.NameBDMarkerPlayerPrefab));

            if (informationObjectList == null)
            {
                return;
            }

            foreach (InformationObject informationObject in informationObjectList.ListInformationObject)
            {
                CreateComponent(informationObject, null);
            }
        }
コード例 #4
0
ファイル: CreateImage.cs プロジェクト: Evertonslv/poc-tcc
    private void Awake()
    {
        //DeletePlayerPrefs();

        nameBDPlayerPrefab       = PropertiesModel.NameBDMarkerLessPlayerPrefab;
        PropertiesModel.isMarker = isMarker;

        if (isMarker)
        {
            nameBDPlayerPrefab = PropertiesModel.NameBDMarkerPlayerPrefab;
        }

        informationObjectList = JsonUtility.FromJson <InformationObjectList>(PlayerPrefs.GetString(nameBDPlayerPrefab));

        if (informationObjectList == null)
        {
            informationObjectList = new InformationObjectList();
        }
    }