Skip to content

Commit

Permalink
fix wrong sensitivity for videoanalysis
Browse files Browse the repository at this point in the history
  • Loading branch information
seydx authored Jan 11, 2022
1 parent 796d568 commit a54c84b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/camera/services/videoanalysis.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class VideoAnalysisService {
}

#createRegions(regions = [], sensitivity) {
sensitivity = sensitivity >= 100 && sensitivity <= 100 ? sensitivity : 50;
sensitivity = sensitivity >= 0 && sensitivity <= 100 ? sensitivity : 50;

const zones = regions
?.map((region, index) => {
Expand Down

0 comments on commit a54c84b

Please sign in to comment.