Automatic equipment for checking the quality of drugs in pharmaceutical production