プリンキピア

第14章コンピュータビジョン

14.3. Object Detection and Bounding Boxes14.3 物体検出と境界ボックス

In earlier sections (e.g., Section 8.1–Section 8.4), we introduced various models for image classification. In image classification tasks, we assume that there is only one major object in the image and we only focus on how to recognize its category. However, there are often multiple objects in the image of interest. We not only want to know their categories, but also their specific positions in the image. In computer vision, we refer to such tasks as object detection (or object recognition).
英語のヒント
前の節(たとえば8.1節〜8.4節)では、画像分類のためのさまざまなモデルを紹介した。画像分類の課題では、画像には主な物体が一つだけあると仮定し、そのカテゴリをどう認識するかだけに焦点を当てる。しかし、注目する画像にはしばしば複数の物体がある。それらのカテゴリだけでなく、画像の中での具体的な位置も知りたい。コンピュータビジョンでは、そうした課題を物体検出(あるいは物体認識)と呼ぶ。
Object detection has been widely applied in many fields. For example, self-driving needs to plan traveling routes by detecting the positions of vehicles, pedestrians, roads, and obstacles in the captured video images. Besides, robots may use this technique to detect and localize objects of interest throughout its navigation of an environment. Moreover, security systems may need to detect abnormal objects, such as intruders or bombs.
英語のヒント
物体検出は多くの分野で広く当てはめられてきた。たとえば、自動運転では、撮影した動画の画像の中で車、歩行者、道路、障害物の位置を検出して、走行経路を計画する必要がある。さらに、ロボットは、環境の中を移動するあいだ、この技法を使って注目する物体を検出し位置を特定するかもしれない。さらに、セキュリティのシステムは、侵入者や爆弾のような異常な物体を検出する必要があるかもしれない。
In the next few sections, we will introduce several deep learning methods for object detection. We will begin with an introduction to positions (or locations) of objects.
英語のヒント
次のいくつかの節では、物体検出のためのいくつかの深層学習の手法を紹介する。まず、物体の位置(あるいは場所)の紹介から始める。
%matplotlib inline
import torch
from d2l import torch as d2l
We will load the sample image to be used in this section. We can see that there is a dog on the left side of the image and a cat on the right. They are the two major objects in this image.
英語のヒント
この節で使う例の画像を読み込む。画像の左側には犬が、右側には猫がいることがわかる。それらがこの画像の主な二つの物体である。
d2l.set_figsize()
img = d2l.plt.imread('../img/catdog.jpg')
d2l.plt.imshow(img);