Line detector based on opencv