config.setSendOpticalFlowEvent(false);
config.setOpticalFlowNumFramesToEvent(3);
config.setOpticalFlowNumFramesToReset(3);
config.setOpticalFlowAngleOffset(0);
rois.add(new RegionOfInterest(points, config, "roi0"));
CrowdDetectorFilter crowdDetectorFilter = mp.newCrowdDetectorFilter(
rois).build();
playerEP.connect(crowdDetectorFilter);
crowdDetectorFilter.connect(httpEP);