コンテンツにスキップ
ステージングサーバー
開発サーバー

トラブルシューティング#

トラブルシューティング:カメラが検出されない#

Issue: The camera doesn't appear in the camera list or can't be opened.

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.

Issue: The camera doesn't appear in the camera list or can't be opened.

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.

Issue: The camera doesn't appear in the camera list or can't be opened.

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.

トラブルシューティング:画質が低い#

問題:画像にノイズが入る、暗い、またはぼやける。

解決策:

  • 露光時間を調整します。例:

    camera.ExposureAuto.SetValue(ExposureAuto_Continuous)
    
  • 十分な照明を確保します。必要に応じて逆光を軽減してください。アクティブステレオ方式を採用した Stereo mini カメラの場合、周囲の光が強すぎないようにしてください。

  • 用途に最適化された深度プリセットを選択します。
  • 柔らかい布でレンズを清掃し、レンズカバーが取り外されていることを確認します。

トラブルシューティング:深度データに関する問題#

問題:深度データが無効、まばら、または不正確である。

解決策:

  • シーン内に十分なテクスチャがあることを確認します。
  • アクティブステレオカメラ(STM-502u、STM-952u)の場合は、必要に応じて周囲の光を軽減してください。
  • カメラに正対する高反射性の表面を避けます。
  • 用途に最適化された深度プリセットを選択します。

トラブルシューティング:パフォーマンスの最適化#

問題:画像の取り込みや処理が遅い、または負荷が高い。

解決策:

  • 適切な取得ストラテジーを使用します。例:

    camera.StartGrabbing(pylon.GrabStrategy_LatestImageOnly)  # For real-time
    
  • 可能な限りネイティブフォーマットで画像を処理し、アプリケーションに適した効率的なアルゴリズムを使用します。

  • 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モードでは追加のオーバーヘッドが発生します。

問題:デバイスはすでに接続されていますエラー#

問題:クラッシュや異常終了の後、アプリケーションがデバイスに接続できなくなるのは、次のようなエラーが報告されるためです。 Device already in use.

解決策:

  • pylonランタイムを再起動するか、システムを再起動してください。
  • 別のプロセスがまだデバイスへの接続を保持していないか確認してください。