Update DetectionTask.java

added support for minHeightLimit and maxHeightLimit