Log in or register to post comments

DetectorNFT4_DataSet::beginModify(): Dataset is already in modify state

August 24, 2012 - 4:42pm #1

I have uploaded the pictures on myTrackables and changed the two datasets of the ImageTargets sample app, but now I always get these error messages:

08-25 00:56:46.178: E/AR(2820): DetectorAndTracker: failed reading config file 'bakk.xml'

08-25 00:56:46.178: E/AR(2820): DetectorNFT4_DataSet::beginModify(): Dataset is already in modify state

08-25 00:56:46.178: E/AR(2820): Failed to load dataset 'bakk.xml'.

They are called bakk.dat/.xml and secondMarker.dat/.xml.

I have changing the code for loading datasets like that:

   if (!myStones->load("bakk.xml", QCAR::DataSet::STORAGE_APPRESOURCE))
    {
        LOG("Failed to load data set.");
        return 0;
    }

    if (!secondMarker->load("secondMarker.xml", QCAR::DataSet::STORAGE_APPRESOURCE))
    {
        LOG("Failed to load data set.");
        return 0;
    }

and the variables of the two datasets for the hole ImageTargets.cpp file:

QCAR::DataSet* myStones    = 0;
QCAR::DataSet* secondMarker            = 0;

Can anybody help me?

thanks for all

DetectorNFT4_DataSet::beginModify(): Dataset is already in modif

August 28, 2012 - 4:42pm #7

It works perfect.

I have newly imported the ImageTargets sample and with your instructions it works very well.

Thanks for your help.

DetectorNFT4_DataSet::beginModify(): Dataset is already in modif

August 28, 2012 - 2:01pm #6

Hello,

Starting with the ImageTargets sample:

1. Download your dataset.

2. Unzip your .xml and .dat file and place in a folder on your computer

3. Copy your .xml and .dat file to the Assets folder of your project

4. In line 207 of ImageTargets.cpp change "StonesAndChips.xml" to "bakk.xml"

5. In Cygwin cd to ImageTargets sample folder and run "ndk-build"

6. Back in Eclipse clean your project

7. Run on device.

Those steps should work to get your dataset loaded. Let me know if this works.

Thank you,

-Peter

DetectorNFT4_DataSet::beginModify(): Dataset is already in modif

August 28, 2012 - 11:07am #5

Yes, they are in my asset folder.

Yes, first I remove them from the project folder. 

Yes, I was able to run the unmodified sample, but now I have reconfigured it from modified to unmodified and it also didn't work.

Yes, I use the original manifest.

DetectorNFT4_DataSet::beginModify(): Dataset is already in modif

August 28, 2012 - 8:30am #4

To confirm, these dataset resources are in your project's assets folder?

Did you remove StonesAndChips and Tarmac from the assets folder as well? - and you were able to run the samples unmodified?

Are you using the original Android manifest?

DetectorNFT4_DataSet::beginModify(): Dataset is already in modif

August 28, 2012 - 3:32am #3

Yes, I have created the two dataset with the following methods:

   // Create the data sets:

    myStones = imageTracker->createDataSet();

    if (myStones == 0)

    {

        LOG("Failed to create a new tracking data.");

        return 0;

    }

 

    secondMarker = imageTracker->createDataSet();

    if (secondMarker == 0)

    {

        LOG("Failed to create a new tracking data.");

        return 0;

    }

 

The datasets are sucessfully created. After creating I get this error message: failed reading config file "bakk.xml".

I have downloaded the two files for each of my dataset and put it in my project folder. I also changed the xml files for loading the datasets like this:

  // Load the data sets:

    if (!myStones->load("bakk.xml", QCAR::DataSet::STORAGE_APPRESOURCE))

    {

        LOG("Failed to load data set.");

        return 0;

    }

 

    if (!secondMarker->load("secondMarker.xml", QCAR::DataSet::STORAGE_APPRESOURCE))

    {

        LOG("Failed to load data set.");

        return 0;

    }

 

 When I change the xml Definition to Tarmac.xml or StonesAndChips.xml I still get the same error message.

08-28 12:25:48.625: E/AR(26889): DetectorAndTracker: failed reading config file 'StonesAndChips.xml'

08-28 12:25:12.670: E/AR(26798): DetectorNFT4_DataSet::beginModify(): Dataset is already in modify state

 

DataSet::beginModify(): Dataset is already in modify state

August 27, 2012 - 11:35am #2

Hello,

Are you creating your two datasets. An example of the chips and stones data set is below:

    // Create the data sets:

    dataSetStonesAndChips = imageTracker->createDataSet();

    if (dataSetStonesAndChips == 0)

    {

        LOG("Failed to create a new tracking data.");

        return 0;

    }

 

Log in or register to post comments