AnimatedDrawings icon indicating copy to clipboard operation
AnimatedDrawings copied to clipboard

Accept 2D motion data from webcam

Open mholt opened this issue 2 years ago • 24 comments

Thanks for replying on HN. I think it'd be super fun to do this with the family: scan in the kids' drawings, turn on our webcam, and start moving around so that the drawn characters mimic our motions. Then all we have to do is record that, overlay some audio / voice, and we have ourselves a little makeshift family-friendly movie studio :)

Understandably this would be a ton of work but I just wanted to put it out there if there's interest!

mholt avatar Apr 14 '23 22:04 mholt

i'm interested into this too, hope it will be implemented soon :D

justinduynguyen avatar Apr 16 '23 05:04 justinduynguyen

Sounds like a nice feature to work on. I think it's possible to reuse some of the existing feature designs from other meta projects and slightly tweak it to fit it here for the above purpose. Easier said than done :)

Aditya-Naresh avatar Apr 17 '23 07:04 Aditya-Naresh

it sounds like realtime motion capture from video webcam

Vào Th 2, 17 thg 4, 2023 vào lúc 14:19 Aditya Naresh < @.***> đã viết:

Sounds like a nice feature to work on. I think it's possible to reuse some of the existing feature designs from other meta projects and slightly tweak it to fit it here for the above purpose. Easier said than done :)

— Reply to this email directly, view it on GitHub https://github.com/facebookresearch/AnimatedDrawings/issues/98#issuecomment-1510831915, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEKC2O2ZZOKZ2R6QRGDVHPTXBTVIDANCNFSM6AAAAAAW66JYWQ . You are receiving this because you commented.Message ID: @.***>

justinduynguyen avatar Apr 17 '23 07:04 justinduynguyen

This seems like a good extension, but it'll be a bit of work and require some refactoring. In essence, the BVH class needs to be refactored into a 'Motion Source' class, which can be subclassed to support both 2D and 3D data. In addition, 'Motion Source' class can be subclassed to serve both full motion clips (as the BVH class current does) as well as streaming sources of motion data.

hjessmith avatar Apr 18 '23 20:04 hjessmith

@hjessmith this feature will make AnimatedDrawings much more fun and solve the most difficult part of motion data capture, plz consider support it.

yujinqiu avatar Apr 20 '23 08:04 yujinqiu

The job is amazing! but the rokoko hardware/software seams to be the bigest barrier. looking forward to a raw wabcam capture support...

huangxin168 avatar Apr 23 '23 09:04 huangxin168

I like this idea, but the webcam should be positioned well to achieve this. A rectangular shape can be placed in the center, indicating people should move within the rectangle in order to generate good quality animations.

This limit might reduce some development difficulties.

LordMoMA avatar Apr 24 '23 02:04 LordMoMA

interested on this one as well.

thhung avatar Apr 27 '23 19:04 thhung

I'm also looking forward to this feature.

nashuii avatar Aug 19 '23 03:08 nashuii

great work,

aiXia121 avatar Nov 08 '23 02:11 aiXia121

Hello everyone, I have successfully exported a great demo that you can only provide drawings and video as input. The code can automatically generate 3D pose and corresponding BVH file from 2D data. All processes are offline and end-to-end in a virtual conda environment. The result is like this: demo

I have also successfully removed redundant OpenMMLab dependencies that may cause some problems in docker. That means you don't generate intermediate results from torchserver.

Brian417-cup avatar Apr 01 '24 05:04 Brian417-cup

That's amazing! Looking forward to trying it :)

mholt avatar Apr 01 '24 16:04 mholt

@Brian417-cup that's exciting to hear! I'll be on the lookout for a PR from you. I'm sure folks will really enjoy it.

hjessmith avatar Apr 01 '24 18:04 hjessmith

@hjessmith . Sure, I'm very glad to share the complete scripts. I also believe it will inspire others to find better solutions, especially for the projection method proposed in the thesis (Currently, it's static and pre-defined in the config file).

Brian417-cup avatar Apr 02 '24 07:04 Brian417-cup

Thanks for submitting the PR. This is a big one- it's going to take me a while to sort though, and I foresee some potential licensing issues with Animated Drawings' MIT licensing if I merge the PR as is. I'll have to investigate the proper path forward here.

In the meantime, I'll drop a link to the PR here in case anyone wants to download it directly and give it a try: https://github.com/facebookresearch/AnimatedDrawings/pull/277

hjessmith avatar Apr 02 '24 18:04 hjessmith