Giter Club home page Giter Club logo

dahua-sdk's People

Contributors

452 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dahua-sdk's Issues

Please me help

Please me help
I'am try a build sdk in linux , I can't build the project

How to get face byte[] from userId?

I have tried to use modify, delete and add face info methods to get face info. I have just changed parameter types and enum value.

public static NET_OUT_GET_FACE_INFO getFaceInfo(String userId) {
        NET_IN_GET_FACE_INFO stIn = new NET_IN_GET_FACE_INFO();
        System.arraycopy(userId.getBytes(), 0, stIn.szUserID, 0, userId.getBytes().length);
        NET_OUT_GET_FACE_INFO stOut = new NET_OUT_GET_FACE_INFO();

        stIn.write();
        stOut.write();

        boolean bRet = LoginModule.netsdk.CLIENT_FaceInfoOpreate(LoginModule.m_hLoginHandle, EM_FACEINFO_OPREATE_TYPE.EM_FACEINFO_OPREATE_GET, stIn.getPointer(), stOut.getPointer(), 5000);
        if (bRet) {
            System.out.println("find face info!");
        } else {
            System.err.println("error in reading face!" + ToolKits.getErrorCodePrint());
            return null;
        }

        stIn.read();
        stOut.read();

        return stOut;
    }

But, it says:

{error code: (0x80000000|21).参考  NetSDKLib.java } - {error info:Error occurs when verify returned data}

Please, help to find what is wrong

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.