facebookresearch / AnimatedDrawings

Code to accompany "A Method for Animating Children's Drawings of the Human Figure"
MIT License
10.5k stars 919 forks source link

Accept 2D motion data from webcam #98

Open mholt opened 1 year ago

mholt commented 1 year ago

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!

justinduynguyen commented 1 year ago

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

Aditya-Naresh commented 1 year ago

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 :)

justinduynguyen commented 1 year ago

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: @.***>

hjessmith commented 1 year ago

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.

yujinqiu commented 1 year ago

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

huangxin168 commented 1 year ago

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

LordMoMA commented 1 year ago

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.

thhung commented 1 year ago

interested on this one as well.

nashuii commented 1 year ago

I'm also looking forward to this feature.

aiXia121 commented 10 months ago

great work,

Brian417-cup commented 5 months ago

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.

mholt commented 5 months ago

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

hjessmith commented 5 months ago

@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.

Brian417-cup commented 5 months ago

@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).

hjessmith commented 5 months ago

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

jumpjack commented 1 month ago

Link to fork:

https://github.com/Brian417-cup/AnimatedDrawings

There is no "issues" or "discussion" section there... Do you think you can add a web version?

Brian417-cup commented 1 month ago

@jumpjack I am afraid that I am very busy at these two month. I think if you have enough time, you can implement this by yourself. I have packed all processes as simple as possible. What you need to do is only check my main function python file with a few of paramemter. And if you have any problem in the operation, please feel free to contact with me directly on this issue.

jumpjack commented 1 month ago

unfortunately I have no idea about how to port a python app to web. :-(

Brian417-cup commented 1 month ago

@jumpjack I think you need to learn about the development knowledge related to front and back separation. In this project, the developer uses Flask as the backend and React framework as the front. You can write new request requests to the Flask framework and receive files from the front. Other operations can be freely arranged according to the author's previous functionality.