疑難排解#
問題:OpenCV 的 DLL 或相依性問題#
Solution: Add the folder containing the OpenCV DLLs to your PATH environment variable.
See Adding OpenCV to PATH Environment Variable in the C++ Programmer's Guide.
Issue: opencv_core.so: cannot open shared object file.
Solution: Make sure OpenCV is properly installed and the library path is added to LD_LIBRARY_PATH.
Issue: opencv_core.so: cannot open shared object file.
Solution: Make sure OpenCV is properly installed and the library path is added to LD_LIBRARY_PATH.
問題:PCL 的 DLL 或相依性問題#
Issue: The code execution cannot proceed because OpenNI2.dll was not found.
Solution: Download OpenNI2 and add the folder containing the OpenNI2.dll to your PATH environment variable.
Issue: OpenNI2.so: cannot open shared object file.
Solution: Install the required OpenNI2 library package.
Issue: OpenNI2.so: cannot open shared object file.
Solution: Install the required OpenNI2 library package.
問題:PCL 的 CMake 組態錯誤 (RelWithDebInfo)#
Issue: When compiling a program that uses PCL with cmake, an error message similar to Compiler: C++ compiler determination failed occurs.
Solution: When building PCL in the CMake GUI, use the Release configuration instead of RelWithDebInfo.
Issue: PCL compilation problems.
Solution: Use the libpcl-dev package instead of building from source.
Issue: PCL compilation problems.
Solution: Use the distribution's PCL package if available, or build from source with Release configuration.
問題:混合使用 32 位元與 64 位元程式庫#
問題:混合使用 32 位元與 64 位元程式庫時發生連結器錯誤。
解決方案:確保所有程式庫 (pylon、OpenCV、PCL) 皆針對與應用程式相同的架構進行編譯(全部為 32 位元或全部為 64 位元)。
問題:在 Debug 模式下影格率偏低#
問題:在偵錯 (Debug) 模式下執行的幀率顯著低於發布 (Release) 模式。
解決方案:這是正常現象。請在 Release 模式下進行編譯以獲得更好的效能。Debug 模式具有額外的負荷。
問題:裝置已連線錯誤#
問題: 發生當機或程式異常終止後,應用程式無法連線至裝置,因為裝置回報 Device already in use.
解決方案:
- 重新啟動 pylon 執行階段或重新開機。
- 檢查是否有其他處理程序仍佔用與裝置的連線。