The invention relates to a selective-sorting berry-harvesting machine consisting of: a supply system (3, 4, 5) which supplies a computer vision system; a computer vision system (6, 7, 8, 9) including an artificial vision device (6) for acquiring images of the harvest components originating from the supply system (3, 4, 5) and a processing device (8) for analysing said images so that the harvest components can be recognised and differentiated according to pre-established criteria; and a system (10) for selectively separating the whole, ripe and healthy berries from the other components of the harvest, controlled by the processing device (8). The invention is characterised in that the supply system (3, 4, 5) is designed such that the harvest can be spread out to form a single layer, the harvest components can be isolated individually and the harvest components, particularly the whole, ripe and healthy berries, can be moved rectilinearly at a controlled speed so that the said components are conveyed individually through the computer vision system (6, 7, 8, 9). The invention is also characterised in that the computer vision system (6, 7, 8, 9) is configured to individualise and locate each element in order to control the selective separation system (10).