What is the primary purpose of a convolutional neural network (CNN) in computer vision tasks?
-
A
To translate images into text
-
B
To automatically learn hierarchical spatial features from images for recognition tasks
-
C
To compress images for storage
-
D
To index images in a database