use CRT flag of opencv