Skip to content

Commit

Permalink
pmsis_tools_frame_streamer.cpp: Use cv::IMREAD_GRAYSCALE
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasdn committed Sep 20, 2021
1 parent 1cb0d06 commit 1694016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/gap_tools/python/pmsis_tools_frame_streamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ void Frame_stream::handle_req(Transport_req_t *req)

std::vector<uint8_t> jpeg_image(&jpeg_buffer[0], &jpeg_buffer[jpeg_buffer_size]);
InputArray input_array(jpeg_image);
Mat image = imdecode(input_array, CV_LOAD_IMAGE_GRAYSCALE);
Mat image = imdecode(input_array, cv::IMREAD_GRAYSCALE);

memcpy(buffer, image.data, this->width*this->height);
delete jpeg_buffer;
Expand Down

0 comments on commit 1694016

Please sign in to comment.