takuya-takeuchi / OpenPoseDotNet

OpenPose wrapper written in C++ and C# for Windows
MIT License
66 stars 25 forks source link

Hi How to use the Nuget? #3

Open 599177227 opened 5 years ago

599177227 commented 5 years ago

Hello,I want to ask for instructions for how to use the openpose API,are there some suggestions or instrutions?

YuBin8 commented 1 year ago

@takuya-takeuchi so sorry to bothering you , but i still can't get it build now it say

Checking Build System Building Custom Rule D:/OpenPoseDotNet-master/src/OpenPoseDotNet.Native/CMakeLists.txt CameraParameterReader.cpp D:\OpenPoseDotNet-master\src\OpenPoseDotNet.Native\openpose\3d../shared.h(4,10): fatal error C1083: Cannot open include file: “opencv2/opencv.hpp”: No such fi le or directory [D:\OpenPoseDotNet-master\src\OpenPoseDotNet.Native\build_win_desktop_cpu_x64_d\OpenPoseDotNetNative.vcxproj] MatExpr.cpp D:\OpenPoseDotNet-master\src\OpenPoseDotNet.Native\openpose\3rdparty\opencv../../shared.h(4,10): fatal error C1083: Cannot open include file: “opencv2/opencv. hpp”: No such file or directory [D:\OpenPoseDotNet-master\src\OpenPoseDotNet.Native\build_win_desktop_cpu_x64_d\OpenPoseDotNetNative.vcxproj] cv.cpp

i added system environment variables path for opencv2 still don't work

takuya-takeuchi commented 1 year ago

@YuBin8 I tried to build from first step on my dev machine.

$ git clone https://github.com/takuya-takeuchi/OpenPoseDotNet
$ cd OpenPoseDotNet
$ git checkout develop
$ git submodule update --init --recursive
$ cd src\OpenPoseDotNet.Native
# you need not to add last argment 101 if you does not use cuda
# And Debug build requires huge memory for compile so you could be better to use Release
$ pwsh Build.ps1 Debug cpu 64 desktop 2019
Build OpenPoseDotNet.Native

    Directory: E:\OpenPoseDotNet\src\OpenPoseDotNet.Native

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          2022/11/30    20:29                build_win_desktop_cpu_x64_d
Start Build openpose
   cmake -G Visual Studio 16 2019 -A x64 -D CMAKE_BUILD_TYPE=Debug
         -D USE_CUDA:BOOL=OFF
         -D GPU_MODE=CPU_ONLY
         E:\OpenPoseDotNet\src\openpose
   cmake --build . --config Debug
End Build openpose
Start Build OpenPoseDotNet.Native
   cmake -G  Visual Studio 16 2019 -A x64 -T host=x64
         -D BUILD_SHARED_LIBS=ON
         ..
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19044.
-- The C compiler identification is MSVC 19.29.30147.0
-- The CXX compiler identification is MSVC 19.29.30147.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-------------------------------------------------------
-- CMAKE_SYSTEM_INFO_FILE: Platform/Windows
-- CMAKE_SYSTEM_NAME:      Windows
-- CMAKE_SYSTEM_PROCESSOR: AMD64
-- CMAKE_SYSTEM:           Windows-10.0.19044
-- CMAKE_C_COMPILER:       C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
-- CMAKE_CXX_COMPILER:     C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
-- os_version_suffix:
-- Project: E:/OpenPoseDotNet/src/OpenPoseDotNet.Native
-- Binaries: E:/OpenPoseDotNet/src/OpenPoseDotNet.Native/build_win_desktop_cpu_x64_d
-------------------------------------------------------
CMake Warning (dev) at CMakeLists.txt:30 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "MSVC" will no longer be dereferenced when the policy
  is set to NEW.  Since the policy is not set the OLD behavior will be used.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: E:/OpenPoseDotNet/src/OpenPoseDotNet.Native/build_win_desktop_cpu_x64_d
.NET Framework 向け Microsoft (R) Build Engine バージョン 16.11.2+f32259642
Copyright (C) Microsoft Corporation.All rights reserved.

  Checking Build System
  Building Custom Rule E:/OpenPoseDotNet/src/OpenPoseDotNet.Native/CMakeLists.txt
  CameraParameterReader.cpp
  MatExpr.cpp
  VideCapture.cpp
  cv.cpp
  mat.cpp
  Matrix.cpp
  cvMatToOpInput.cpp
  cvMatToOpOutput.cpp
  datum.cpp
  macros.cpp
  opOutputToCvMat.cpp
  point.cpp
  rectangle.cpp
  scaleAndSizeExtractor.cpp
  custom.cpp
  customDatum.cpp
  fileStream.cpp
  flags.cpp
  gpu.cpp
  frameDisplayer.cpp
  コードを生成中...
  コンパイル中...
  gui.cpp
  wGui.cpp
  poseCpuRenderer.cpp
  poseExtractorCaffe.cpp
  poseExtractorNet.cpp
  poseGpuRenderer.cpp
  poseParameters.cpp
  poseRenderer.cpp
  datumProducer.cpp
  producer.cpp
  videoCaptureReader.cpp
  wDatumProducer.cpp
  webcamReader.cpp
  time_point.cpp
  shared_ptr.cpp
  vector.cpp
  threadManager.cpp
  user.cpp
  userWorker.cpp
  userWorkerConsumer.cpp
  コードを生成中...
  コンパイル中...
  userWorkerProducer.cpp
  check.cpp
  errorAndLog.cpp
  flagsToOpenPose.cpp
  profiler.cpp
  wrapper.cpp
  wrapperAuxiliary.cpp
  wrapperStructExtra.cpp
  wrapperStructFace.cpp
  wrapperStructGui.cpp
  wrapperStructHand.cpp
  wrapperStructInput.cpp
  wrapperStructOutput.cpp
  wrapperStructPose.cpp
  コードを生成中...
  array.cpp
  string.cpp
  array.cpp
  string.cpp
     ライブラリ E:/OpenPoseDotNet/src/OpenPoseDotNet.Native/build_win_desktop_cpu_x64_d/Debug/OpenPoseDotNetNative.lib とオブジェクト E:/OpenPoseDotNet/src/OpenPoseDotNet.Native/build_win_desktop_cpu_x64_d/Debug/OpenP
  oseDotNetNative.exp を作成中
  OpenPoseDotNetNative.vcxproj -> E:\OpenPoseDotNet\src\OpenPoseDotNet.Native\build_win_desktop_cpu_x64_d\Debug\OpenPoseDotNetNative.dll
  Building Custom Rule E:/OpenPoseDotNet/src/OpenPoseDotNet.Native/CMakeLists.txt
Copy PreBuild openpose binaries
Copy openpose binary

There is no issue.