A bipolar image detector with smart functions