Merge pull request #674 from OpenShot/fix-saving

Changed JSON communication for detected objects
This commit is contained in:
Brenno A. C. Caldato
2021-05-19 11:56:20 -03:00
committed by GitHub
4 changed files with 59 additions and 53 deletions

View File

@@ -85,8 +85,8 @@ void CVObjectDetection::detectObjectsClip(openshot::Clip &video, size_t _start,
size_t frame_number;
if(!process_interval || end <= 1 || end-start == 0){
// Get total number of frames in video
start = (int)(video.Start() * video.Reader()->info.fps.ToFloat()) + 1;
end = (int)(video.End() * video.Reader()->info.fps.ToFloat()) + 1;
start = (int)(video.Start() * video.Reader()->info.fps.ToFloat());
end = (int)(video.End() * video.Reader()->info.fps.ToFloat());
}
for (frame_number = start; frame_number <= end; frame_number++)