Skip to content

Commit

Permalink
Use JPEG
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-EEE committed Apr 16, 2024
1 parent b6c4a47 commit cf3378e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/admin_panel/src/routes/Home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
let live_feed;
frame_buffer.subscribe((value) => {
if (live_feed) {
const blob = b64toBlob(value, "image/avif");
const blob = b64toBlob(value, "image/jpeg");
const image_url = URL.createObjectURL(blob);
live_feed.src = image_url;
}
Expand Down
2 changes: 1 addition & 1 deletion app/rpi/common/src/car/system/device/CameraDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace car::system::device
return;
}
std::vector<uchar> buf;
cv::imencode(".avif", frame, buf);
cv::imencode(".jpg", frame, buf);
this->frame_buffer_ = std::string(reinterpret_cast<const char*>(buf.data()), buf.size());
}

Expand Down

0 comments on commit cf3378e

Please sign in to comment.