Files
blackbird/lci/src/mainCamera.cpp
T
2026-08-02 20:15:07 +08:00

16 lines
330 B
C++

#include <iostream>
#include "hd/Camera.h"
int main() {
Camera_init(640, 480);
std::string imgpath = std::to_string(time(NULL)) + ".jpeg";
std::string txtpath =std::to_string(time(NULL)) + ".txt";
bool flag;
auto img = get_frame_from_camera(flag);
img.save(imgpath.c_str());
Camera_close();
}