0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

3Dカメラを使うプロジェクトで、並行処理には何のライブラリ使ってますか?

Last updated at Posted at 2024-11-21

主旨

3Dカメラ・画像認識処理を使うと、遅い処理がボトルネックになって応答性が低下する。
シングルスレッドじゃいけないこともわかっているけど実装が追いついていない。
この記事は、皆さんからのアドバイスを求めるための記事です。

シングルスレッドだと何がいけないのか

  • 画像データの取得の処理の際に、IO待ちの時間にCPUが何もしていないという無駄を生じる。
  • 推論処理も同様に処理の時間が大きい。
  • 処理結果を画像として表示する際にも描画時間がかかる。
  • 描画が処理のルーチンと同じになっている分だけ、処理だけの部分が遅くなる。

ライブラリの例

trio
trioによる並行処理 もくじ
trio-util
https://github.com/groove-x/trio-util

少なくとも1万台以上のロボットで動作している。

参考情報

Pythonの並列処理・並行処理をしっかり調べてみた

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?