Closed lxz1104 closed 5 years ago
The center of mass (com) is first initialized on the full image (cx,cy), and then refined on a crop around this location. This only takes a small patch around the initial (cx, cy), thus the offset (xstart, xend) is added afterwards. Optionally, a CNN is used to predict this offset (xstart, ystart).
Thanks!
file: src/util/handdetector.py function: def detect(self, size=(250, 250, 250), doHandSize=True) -> com, size line: 606 The main code snippet is as follows:
I donn't know why
com[0] += xstart
andcom[1] += ystart