User blog comment:LemonMouthTheCat/How does Just Dance work, anyway?/@comment-24264457-20180126012456

They probably use the Wii/PSMove remote's gyroscope to score. They have a set pattern of movements programmed in and if you mimic the motions closely enough you get a higher score. For camera consoles they probably have a silhouette or something that you have to follow closely.