Exemple #1
0
        /// <summary>
        /// Processes a frame upon arrival.
        /// </summary>
        /// <param name="frameNo">The index of the frame to process.</param>
        /// <param name="boxes">A list of bounding boxes of items in frame.</param>
        /// <param name="mask">A mask detailing the precise layout of items in the frame using black to indicate vacant space, and white to indicate occupied space.</param>
        /// <returns>
        /// Returns a Tuple that contains a boolean indicating whether a crossing was detected, and the bounding box of the crossing item.
        /// </returns>
        public (bool crossingResult, Box b) notifyFrameArrival(int frameNo, List <Box> boxes, Bitmap mask)
        {
            (occupancy, bbox) = line.isOccupied(boxes, mask);
            bool crossingResult = lineCrossingDetector.notifyOccupancy(frameNo, occupancy);

            return(crossingResult, bbox);
        }
Exemple #2
0
 public void notifyFrameArrival(int frameNo, List <Box> boxes, Bitmap mask)
 {
     (occupancy, bbox) = line.isOccupied(boxes, mask);
 }