move preprocessor to objdetect