Implementing object and scene detection