トラブルシューティング#
問題:カメラが検出されない#
Solution:
- Verify the USB Type-C cable is properly connected to the camera.
- Try a different USB port (preferably USB 3.0) and a different USB cable.
- Check Device Manager for the camera device. If there's an unknown device, install the latest pylon SDK drivers.
- Ensure the pylon SDK is properly installed.
- Try unplugging and reconnecting the camera.
Solution:
- Verify the USB Type-C cable is properly connected to the camera.
- Try a different USB port (preferably USB 3.0) and a different USB cable.
- Verify the camera is detected:
lsusb | grep Basler - Ensure the pylon SDK is properly installed. Verify with
which pylon. - Try unplugging and reconnecting the camera.
Solution:
- Verify the USB Type-C cable is properly connected to the camera.
- Try a different USB port (preferably USB 3.0) and a different USB cable.
- Verify the camera is detected:
lsusb | grep Basler - Ensure the pylon SDK is properly installed. Verify with
which pylon. - Try unplugging and reconnecting the camera.
問題:画質が悪い#
問題:画像にノイズが入る、暗い、またはぼやけている。
解決策:
-
露光時間を調整します(例):
-
十分な照明を確保してください。必要に応じて逆光を減らします。アクティブステレオ搭載の Stereo mini カメラでは、環境光が強すぎないようにしてください。
- 用途に最適化された深度プリセットを選択します。
- 柔らかい布でレンズを清掃し、レンズカバーが取り外されていることを確認します。
問題:深度データのトラブル#
問題:深度データが無効、まばら、または不正確である。
解決策:
- シーンに十分なテクスチャがあることを確認します。
- アクティブステレオ(STM-502u、STM-952u)の場合は、必要に応じて環境光を減らします。
- カメラに直接向かい合う反射率の非常に高い表面を避けてください。
- 用途に最適化された深度プリセットを選択します。
問題:パフォーマンスの最適化#
問題:画像の取り込みや処理が遅い、またはリソース負荷が高い。
解決策:
-
次のような適切なgrab strategyを使用します。
-
可能な限りネイティブフォーマットで画像を処理し、アプリケーションに適した効率的なアルゴリズムを使用してください。
- CPU使用率、Memory消費量、およびUSB帯域幅の使用状況を確認します。
問題:OpenCVに関するDLLまたは依存関係の問題#
Issue: The code execution cannot proceed because opencv_core.dll was not found.
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モードでの低いフレームレート#
問題:Releaseモードと比較して、Debugモードで実行時のフレームレートが大幅に低下する。
解決策:これは正常な動作です。パフォーマンスを向上させるには、Releaseモードでコンパイルしてください。Debugモードには追加のオーバーヘッドがあります。
問題:デバイスはすでに接続されていますエラー#
問題:クラッシュまたは異常終了の後、アプリケーションがデバイスに接続できない。報告される内容は次のとおりです: Device already in use.
解決策:
- pylonランタイムを再起動するか、システムを再起動します。
- 別のプロセスがまだデバイスとの接続を保持していないか確認してください。