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

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

問題:カメラが検出されない#

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ビット)でコンパイルされていることを確認してください。

問題: デバッグモードでの低フレームレート#

問題: デバッグモードで実行している場合、リリースモードに比べてフレームレートが著しく低下します。

解決策: これは正常な動作です。パフォーマンスを向上させるには、リリースモードでコンパイルしてください。デバッグモードには追加のオーバーヘッドがあります。

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

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

対策:

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