Towards solving recognition and detection problems in real life