Skip to content

Commit e55359f

Browse files
committed
[update]
llm-camera add -O2 flage. Output the image background as black.
1 parent 1ef8e46 commit e55359f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

projects/llm_framework/main_camera/SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ LDFLAGS = []
1717
LINK_SEARCH_PATH = []
1818
STATIC_FILES = []
1919

20-
DEFINITIONS += ['-std=c++17']
20+
DEFINITIONS += ['-std=c++17', '-O2']
2121
LDFLAGS+=['-Wl,-rpath=/opt/m5stack/lib', '-Wl,-rpath=/usr/local/m5stack/lib', '-Wl,-rpath=/usr/local/m5stack/lib/gcc-10.3', '-Wl,-rpath=/opt/lib', '-Wl,-rpath=/opt/usr/lib', '-Wl,-rpath=./']
2222
# INCLUDE += [ADir('../include'), ADir('../include/cppzmq'), ADir('../include/libzmq')]
2323
LINK_SEARCH_PATH += [ADir('../static_lib')]

projects/llm_framework/main_camera/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class llm_task {
132132
return true;
133133
}
134134
enstream_ = (response_format_.find("stream") != std::string::npos);
135-
yuv_dist_ = cv::Mat(frame_height_, frame_width_, CV_8UC2);
135+
yuv_dist_ = cv::Mat(frame_height_, frame_width_, CV_8UC2, cv::Scalar(0, 128));
136136
if(devname_.find("/dev/video") != std::string::npos){
137137
hal_camera_open = camera_open;
138138
hal_camera_close = camera_close;

0 commit comments

Comments
 (0)