Texture-adaptive skin detection for TV and its real-time implementation on DSP and FPGA