Ask Your Question

Revision history [back]

Superresolution: error superRes->set("opticalFlow", of);

we use the opencv sample code : super_resolution.cpp it can run correctly at those codes:

    if (useCuda)
        superRes = createSuperResolution_BTVL1_GPU();
    else
        superRes = createSuperResolution_BTVL1();

    Ptr<DenseOpticalFlowExt> of = createOptFlow(optFlow, useCuda);

    if (of.empty())
        exit(-1);

but, when it run at this line, it got wrong:

  superRes->set("opticalFlow", of);

it refers "error 0xC0000005: access conflict"

how I deal with it? ps: we use CPU mode, thanks