Skip to content

visualcamp/eyedid-cpp-sample

Repository files navigation

Eyedid SDK Cpp Sample(C++)

Releases

See Release

Sample Demo Requirements

Notes

  • Visual Studio 2015 or below is not tested.

Build

Windows

  1. Sign in to manage.eyedid.ai and download Eyedid Cpp SDK from Eyedid console page
  2. Copy the eyedid folder to this project.
  3. Get a license key from Eyedid console page and copy your key to main.cpp
    // authenticate
    const char* license_key = "PUT YOUR LICENSE KEY HERE"; // paste your key here
    
  4. Download OpenCV Windows library from https://opencv.org/releases/
  5. (Only Windows) Copy the extracted opencv into this project's opencv directory
    By now, the project structure should be like below
  6. Build the project with CMake
    • You can load a CMake project with IDEs, such as CLion or Visual Studio
    • Or you can build with command line
    cmake -B build -DCMAKE_BUILD_TYPE=Release
    cmake --build build --config Release
    • vcpkg is not supported yet. If you want to build with Visual Studio project instead of CMake, you have to manually implement the source codes and third party libraries.

MacOs

  1. Sign in to manage.eyedid.ai and download Eyedid Cpp SDK from Eyedid console page.

  2. Copy the eyedid folder to this project.

  3. Get a license key from Eyedid console page and copy your key to main.cpp:

    // authenticate
    const char* license_key = "PUT YOUR LICENSE KEY HERE"; // paste your key here
  4. Install OpenCV using Homebrew:

    brew install opencv

    This command will install the latest version of OpenCV along with its dependencies.

  5. Set environment variables to ensure your project can find the OpenCV headers and libraries. Depending on the shell you are using (bash or zsh), update your shell profile (~/.bash_profile for bash or ~/.zshrc for zsh):

    # Add the following lines to your shell profile
    echo 'export PATH="/usr/local/opt/opencv/bin:$PATH"' >> ~/.bash_profile
    echo 'export PKG_CONFIG_PATH="/usr/local/opt/opencv/lib/pkgconfig:$PKG_CONFIG_PATH"' >> ~/.bash_profile
    echo 'export LDFLAGS="-L/usr/local/opt/opencv/lib"' >> ~/.bash_profile
    echo 'export CPPFLAGS="-I/usr/local/opt/opencv/include"' >> ~/.bash_profile
    
    # Load the updated environment variables
    source ~/.bash_profile

    If you are using zsh (which is the default shell on newer macOS versions):

    echo 'export PATH="/usr/local/opt/opencv/bin:$PATH"' >> ~/.zshrc
    echo 'export PKG_CONFIG_PATH="/usr/local/opt/opencv/lib/pkgconfig:$PKG_CONFIG_PATH"' >> ~/.zshrc
    echo 'export LDFLAGS="-L/usr/local/opt/opencv/lib"' >> ~/.zshrc
    echo 'export CPPFLAGS="-I/usr/local/opt/opencv/include"' >> ~/.zshrc
    
    # Load the updated environment variables
    source ~/.zshrc

    These commands ensure that the compiler and linker can find OpenCV when building your C++ project.

  6. Build the project with CMake:

    • You can load a CMake project with IDEs, such as CLion or Visual Studio.
    • Or you can build with command line:
      cmake -B build -DCMAKE_BUILD_TYPE=Release
      cmake --build build --config Release
    • Note: vcpkg is not supported yet. If you want to build with a Visual Studio project instead of CMake, you have to manually configure the source codes and third-party libraries.

If you have any problems, feel free to contact us

License Information

SDK License

All rights to the Eyedid Cpp SDK are owned by VisualCamp. Unauthorized copying, modification, distribution, or any other form of use is strictly prohibited unless explicitly authorized by VisualCamp. Please refer to the license agreement provided with the SDK for more details.

Sample Project License

The sample project provided with the Eyedid Cpp SDK is licensed under the MIT License. You are free to use, modify, and distribute this sample project, provided that the original copyright and permission notice are included in all copies or substantial portions of the software.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published