A device and a method are described for the optical selection of components of at least one fraction from a bulk material stream conveyed along a conveyance direction, having a camera unit, whose camera viewing direction is oriented toward the bulk material stream, a background, situated in the camera viewing direction behind the bulk material stream, whose color is adaptable to the color of a selected fraction of components of the bulk material stream, an analysis and control unit, connected to the camera unit, in which control commands for a separation unit, which is capable of separating the components to be selected out of the bulk material stream upon activation, may be generated according to a decision criterion.