blob: 29a1513c84c48e26ea36bd2eb3aede31ad62c5bd [file] [log] [blame]
Brian Silverman58899fd2019-03-24 11:03:11 -07001#include "y2019/jevois/camera/image_stream.h"
2
3#include "aos/logging/logging.h"
4
5namespace y2019 {
6namespace camera {
7
8void ImageStreamEvent::ProcessHelper(
9 aos::vision::DataRef data, aos::monotonic_clock::time_point timestamp) {
10 if (data.size() < 300) {
11 LOG(INFO, "got bad img of size(%d)\n", static_cast<int>(data.size()));
12 return;
13 }
14 ProcessImage(data, timestamp);
15}
16
17} // namespace camera
18} // namespace y2019