Skip to content

Commit

Permalink
Update src/util/mediaPipeUtils.ts
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
kimorkim and github-actions[bot] authored Mar 8, 2024
1 parent be1e745 commit f1c9517
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util/mediaPipeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ class MediaPipeUtils {
private objectDetector: ObjectDetector;

public totalMotions: MotionElement = { total: 0, direction: { x: 0, y: 0 } };
public motions: Pixel[][] = [...Array(Math.ceil(this.STAGE_HEIGHT / this.SAMPLE_SIZE))].map(
(e) => Array(this.STAGE_WIDTH / this.SAMPLE_SIZE)
);
public motions: Pixel[][] = [
...Array(Math.ceil(this.STAGE_HEIGHT / this.SAMPLE_SIZE)),
].map((e) => Array(this.STAGE_WIDTH / this.SAMPLE_SIZE));
public motionWorker: Worker = new VideoMotionWorker();

constructor() {
Expand Down

0 comments on commit f1c9517

Please sign in to comment.