OBJECT DETECTION VIA REGIONS OF INTEREST
A method includes identifying pixels indicative of motion based on a frame of pixels; selecting a region of interest within the frame based on the pixels indicative of motion, the region being a subset of the frame of pixels and including the pixels indicative of the motion; identifying an object based on pixels within the region; and issuing an alarm in response to the region including both the object and the pixels indicative of motion.
1 - 20 (canceled)
21 . A method comprising:
identifying pixels indicative of motion based on a frame of pixels;
selecting a region of interest within the frame of pixels based on the pixels indicative of motion, the region of interest being a subset of the frame of pixels and including the pixels indicative of motion; and
after selecting the region of interest, issuing an alarm.
22 . The method of claim 21 , wherein:
the region of interest is a first region of interest having a first quantity of pixels; and
the method further comprises:
selecting a second region of interest, the second region of interest having a second quantity of pixels that is less than the first quantity;
identifying a first object based on pixels in the first region of interest; and
after identifying the first object, identifying a second object based on pixels in the second region of interest.
23 . The method of claim 21 , wherein:
the frame of pixels is a first frame of pixels;
the subset of the frame of pixels is a first subset of the first frame of pixels;
the region of interest is a first region of interest; and
the method further comprises:
selecting a second region of interest within the first frame of pixels, the second region of interest being a second subset of the first frame of pixels; and
identifying, in the second region of interest, an object that was identified previously within a second frame of pixels.
24 . The method of claim 21 , wherein:
the region of interest is a first region of interest; and
the method further comprises:
selecting a second region of interest within the frame of pixels;
merging the first region of interest and the second region of interest to generate a merged region; and
identifying an object based on the merged region.
25 . The method of claim 21 , wherein:
the region of interest is a first region of interest; and
the method further comprises:
selecting a second region of interest within the frame of pixels;
merging the first region of interest and the second region of interest to generate a merged region;
identifying an object based on the merged region; and
issuing the alarm in response to the merged region including both the object and the pixels indicative of motion.
26 . The method of claim 21 , wherein:
the region of interest is a first region of interest having a first quantity of pixels; and
the method further comprises:
selecting a second region of interest, the second region of interest having a second quantity of pixels;
making a determination that the second quantity is equal to or greater than a threshold percentage of the first quantity; and
after making the determination, merging the first region of interest and the second region of interest.
27 . The method of claim 21 , wherein:
the region of interest is a first region of interest having a first quantity of pixels; and
the method further comprises:
selecting a second region of interest, the second region of interest having a second quantity of pixels;
determining an intersecting quantity of pixels in an intersection between the first region of interest and the second region of interest;
determining a minimum quantity of pixels that is a smaller of the first quantity and the second quantity;
making a determination that the intersecting quantity of pixels is greater than a threshold percentage of the minimum quantity of pixels; and
after making the determination, merging the first region of interest and the second region of interest.
28 . The method of claim 21 , further comprising:
scaling the region of interest to comply with an object detection model; and
after scaling the region of interest, applying the object detection model to identify an object within the region of interest.
29 . A computing device comprising a memory and at least one processor coupled with the memory, the at least one processor configured to:
identify pixels indicative of motion based on a frame of pixels;
select a region of interest within the frame of pixels based on the pixels indicative of motion, the region of interest being a subset of the frame of pixels and including the pixels indicative of motion; and
after selecting the region of interest, issue an alarm.
30 . The computing device of claim 29 , wherein selecting the region of interest comprises setting boundaries of the region of interest that encompass the pixels indicative of motion.
31 . The computing device of claim 29 , wherein the at least one processor is further configured to:
identify a first length of a boundary of the pixels indicative of motion;
calculate a second length that is equal to the first length multiplied by a factor; and
set a boundary of the region of interest to have a length equal to the second length.
32 . The computing device of claim 29 , wherein the at least one processor is further configured to:
identify a first length of a first boundary of the pixels indicative of motion;
make a determination that the first length is greater than a second length of a second boundary of the pixels indicative of motion; and
after making the determination, calculate a dimension that is equal to the first length multiplied by a factor; and
set a boundary of the region of interest to have a length equal to the dimension.
33 . The computing device of claim 29 , wherein the region of interest is a square.
34 . The computing device of claim 29 , wherein selecting the region of interest comprises establishing a size of the region of interest to be equal to or greater than a size of input upon which an object detection model is configured to operate.
35 . The computing device of claim 29 , wherein:
selecting the region of interest comprises establishing a size of the region of interest to be equal to or greater than a size of input upon which an object detection model is configured to operate; and
the at least one processor is further configured to identify an object in the region of interest using the object detection model.
36 . The computing device of claim 29 , wherein selecting the region of interest comprises translating a boundary of the region of interest from a first position in which a portion of the boundary resides outside the frame of pixels to a second position in which the portion of the boundary is inside or upon an edge of the frame of pixels.
37 . A method comprising:
identifying, in a frame of pixels, pixels indicative of motion;
selecting a region of interest that includes the pixels indicative of motion, the region of interest being a subset of the frame of pixels and including the pixels indicative of motion;
modifying the region of interest to include pixels that were not identified as indicative of motion, thereby generating a modified region of interest;
identifying an object based on pixels within the modified region of interest, wherein the modified region of interest includes the object and the pixels indicative of motion; and
after generating the modified region of interest, issuing an alarm.
38 . The method of claim 37 , wherein modifying the region of interest comprises translating a boundary of the region of interest from a first position in which a portion of the boundary resides outside the frame of pixels to a second position in which the portion of the boundary is inside or upon an edge of the frame of pixels.
39 . The method of claim 37 , wherein the modified region of interest has a size that is less than or equal to a size of the frame of pixels.
40 . The method of claim 37 , wherein:
modifying the region of interest comprises scaling the region of interest to comply with a dimension upon which an object detection model is configured to operate; and
identifying the object comprises applying the object detection model to the modified region of interest.