fix: 修复720p视频识别错误

This commit is contained in:
MistEO
2023-04-28 01:13:51 +08:00
parent 0f46eb0af0
commit b476972067

View File

@@ -341,7 +341,10 @@ bool asst::CombatRecordRecognitionTask::slice_video()
in_segment = false;
};
for (; i < ends; i += skip_frames(skip_count) + 1, pre_frame = frame) {
*m_video_ptr >> frame;
cv::Mat temp;
// 这里如果不用tempframe的所有权会出错
*m_video_ptr >> temp;
frame = temp;
if (frame.empty()) {
Log.warn(i, "frame is empty");
battle_over();