开发者

Camera freezing when using FlareNFT with FLARManager

开发者 https://www.devze.com 2023-02-06 22:34 出处:网络
I\'m trying to run the example application from the FlarManager download. It worked first time using the FlarToolkit engine, but the webcam freezes if I change to the FlareNFT t开发者_Go百科racker. Th

I'm trying to run the example application from the FlarManager download. It worked first time using the FlarToolkit engine, but the webcam freezes if I change to the FlareNFT t开发者_Go百科racker. The only change I've made is to the onAdded function:

From this:

this.flarManager = new FLARManager("../resources/flar/flarConfig.xml", new FlarToolkitManager(), this.stage);

To this:

this.flarManager = new FLARManager("../resources/flar/flarConfig.xml", new FlareNFTManager(), this.stage);

When using the FlareNFTManager it compiles but freezes the camera feed. No errors are thrown, but the FlarManager event handlers are not triggered (e.g. onFlarManagerInited, onMarkerAdded, etc.).


you have to make sure that the flare settings in the flarConfig.xml file are correct (i.e. check that all listed file are in place):

<trackerSettings>
        <flareSettings
            resourcesPath="../resources/flare/"
            cameraParamsFile="cam.ini">
            <nftSettings
                featureSetFile="featureSet.ini"
                framerate="30"
                multiTargets="false" />
        </flareSettings>

...


I had this problem too, and resolved it by putting the .lic file in placein the bin-debug folder when compiling the app. On a side note though - do you know how to create markers that flarNFT will recognize?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号