First time here? Check out the FAQ!
answered 2019-05-17 11:18:19 -0600
you can use imdecode , like:
vector<uchar> tcp_data = ...; Mat img = imdecode(tcp_data, IMREAD_UNCHANGED);