Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add Webcam API #1178

Merged
merged 52 commits into from
Feb 11, 2022
Merged

[Feature] Add Webcam API #1178

merged 52 commits into from
Feb 11, 2022

Conversation

ly015
Copy link
Member

@ly015 ly015 commented Feb 11, 2022

Motivation

Modification

BC-breaking (Optional)

Use cases (Optional)

Checklist

Before PR:

  • I have read and followed the workflow indicated in the CONTRIBUTING.md to create this PR.
  • Pre-commit or linting tools indicated in CONTRIBUTING.md are used to fix the potential lint issues.
  • Bug fixes are covered by unit tests, the case that causes the bug should be added in the unit tests.
  • New functionalities are covered by complete unit tests. If not, please add more unit tests to ensure correctness.
  • The documentation has been modified accordingly, including docstring or example tutorials.

After PR:

  • CLA has been signed and all committers have signed the CLA in this PR.

@ly015 ly015 requested review from jin-s13 and removed request for jin-s13 February 11, 2022 03:19
@ly015 ly015 changed the base branch from master to dev-0.23 February 11, 2022 03:20
ly015 and others added 13 commits February 11, 2022 11:28
* modify frame rate calculation
* rename BillboardNode as NoticeBoardNode
* add README.md

* update gif
* add facwswap node

* adapt to webcam_api

* adapt to webcam_api

* move config

* add sync mode in runner

* fix bugs and update nodes
* add supersaiyan effects

* fix init

* apply background

* update config

* apply saiyan effects

* rebase

* rebase and fix

* update doc

* update docs

* add load image from disk or url

* make the resources to url links

* mv load_image_from_disk_or_url to utils/misc

* move effect funcs to webcam_api

* rebase

* fix pytest

* fix docs

* add get_local_path_given_url

* add get_local_path_given_url

* rename to get_cached_file_path

* update readme

* update readme
* Fix missing flag in `load_image_from_disk_or_url`

* Add SpriteNode
* fix mmpose nodes

* add dummy video capture

* add xdwendwen node
* Update XDwenDwen example

* add rigid transform
* update configs and readme files

* extend meow dwen dwen

* update config

* support cfg-options
@codecov
Copy link

codecov bot commented Feb 11, 2022

Codecov Report

❗ No coverage uploaded for pull request base (dev-0.23@585cc48). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             dev-0.23    #1178   +/-   ##
===========================================
  Coverage            ?   82.24%           
===========================================
  Files               ?      204           
  Lines               ?    16185           
  Branches            ?     2885           
===========================================
  Hits                ?    13312           
  Misses              ?     2143           
  Partials            ?      730           
Flag Coverage Δ
unittests 82.18% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 585cc48...6365e1d. Read the comment docs.

@ly015 ly015 merged commit fa07051 into dev-0.23 Feb 11, 2022
ly015 added a commit to ly015/mmpose that referenced this pull request Feb 11, 2022
* add cam runner [wip]

* update webcam runner and node api

* reorganize module structure

* add model node

* add pose model node [wip]

* update message

* add monitor node

* rename config

* refactor webcam util

* add update_route_info

* add input_check_interval

* add fps for one-euro in mmpose node

* refactor visualition nodes

* fix bug

* modify runner argument and fix bug

* add doc

* add doc

* add webcam_runner docstrings

* add docstrings

* update interface and docstring

* add RecorderNode

* * add syncrhonous result binding mode
* refactor node event handler

* fix typing

* fix typing (open-mmlab#1082)

* * Add RecorderNode for saving video to files
* Add exiting handler method to nodes
* Add VideoEndingMessage

* rename _on_exit ot on_exit

* fix typing

* Fix a few issues

* register node event handler in __init__
* change default pose model to vipnas_mblv3
* Node._on_exit -> Node.on_exit

* fix typing

* fix typing

* change from thread based to process based

* solve cuda distributed [wip]

* fix process creating method and buffer size

* thread based buffer

* node based on thread

* node set daemon=False as default

* fix logging level and add docstrings

* modify register_event

* * reorganize webcam tool configs
* modify frame rate calculation
* rename BillboardNode as NoticeBoardNode

* [WebcamAPI] Add demo README (open-mmlab#1133)

* add README.md

* update gif

* [WebcamAPI] Add facwswap node and config (open-mmlab#1094)

* add facwswap node

* adapt to webcam_api

* adapt to webcam_api

* move config

* add sync mode in runner

* fix bugs and update nodes

* [WebcamAPI] Supersaiyan (open-mmlab#1098)

* add supersaiyan effects

* fix init

* apply background

* update config

* apply saiyan effects

* rebase

* rebase and fix

* update doc

* update docs

* add load image from disk or url

* make the resources to url links

* mv load_image_from_disk_or_url to utils/misc

* move effect funcs to webcam_api

* rebase

* fix pytest

* fix docs

* add get_local_path_given_url

* add get_local_path_given_url

* rename to get_cached_file_path

* update readme

* update readme

* fix bug that only one bbox is detected for each class

* fix faceswap config

* add newyear demo (open-mmlab#1143)

Co-authored-by: zengwang <[email protected]>

* [Feature] Add a `SpriteNode` for Webcam API (open-mmlab#1160)

* Fix missing flag in `load_image_from_disk_or_url`

* Add SpriteNode

* Meow dwen dwen (open-mmlab#1173)

* fix mmpose nodes

* add dummy video capture

* add xdwendwen node

* fix configs

* Update README.md

* [WebcamAPI] Update XDwenDwen example (open-mmlab#1177)

* Update XDwenDwen example

* add rigid transform
* update configs and readme files

* extend meow dwen dwen

* update config

* support cfg-options

* turn-off default help instruction

* fix typo

Co-authored-by: Jas <[email protected]>
Co-authored-by: Lumin <[email protected]>
Co-authored-by: zengwang <[email protected]>
Co-authored-by: Ma Zerun <[email protected]>
ly015 added a commit to ly015/mmpose that referenced this pull request Feb 11, 2022
* add cam runner [wip]

* update webcam runner and node api

* reorganize module structure

* add model node

* add pose model node [wip]

* update message

* add monitor node

* rename config

* refactor webcam util

* add update_route_info

* add input_check_interval

* add fps for one-euro in mmpose node

* refactor visualition nodes

* fix bug

* modify runner argument and fix bug

* add doc

* add doc

* add webcam_runner docstrings

* add docstrings

* update interface and docstring

* add RecorderNode

* * add syncrhonous result binding mode
* refactor node event handler

* fix typing

* fix typing (open-mmlab#1082)

* * Add RecorderNode for saving video to files
* Add exiting handler method to nodes
* Add VideoEndingMessage

* rename _on_exit ot on_exit

* fix typing

* Fix a few issues

* register node event handler in __init__
* change default pose model to vipnas_mblv3
* Node._on_exit -> Node.on_exit

* fix typing

* fix typing

* change from thread based to process based

* solve cuda distributed [wip]

* fix process creating method and buffer size

* thread based buffer

* node based on thread

* node set daemon=False as default

* fix logging level and add docstrings

* modify register_event

* * reorganize webcam tool configs
* modify frame rate calculation
* rename BillboardNode as NoticeBoardNode

* [WebcamAPI] Add demo README (open-mmlab#1133)

* add README.md

* update gif

* [WebcamAPI] Add facwswap node and config (open-mmlab#1094)

* add facwswap node

* adapt to webcam_api

* adapt to webcam_api

* move config

* add sync mode in runner

* fix bugs and update nodes

* [WebcamAPI] Supersaiyan (open-mmlab#1098)

* add supersaiyan effects

* fix init

* apply background

* update config

* apply saiyan effects

* rebase

* rebase and fix

* update doc

* update docs

* add load image from disk or url

* make the resources to url links

* mv load_image_from_disk_or_url to utils/misc

* move effect funcs to webcam_api

* rebase

* fix pytest

* fix docs

* add get_local_path_given_url

* add get_local_path_given_url

* rename to get_cached_file_path

* update readme

* update readme

* fix bug that only one bbox is detected for each class

* fix faceswap config

* add newyear demo (open-mmlab#1143)

Co-authored-by: zengwang <[email protected]>

* [Feature] Add a `SpriteNode` for Webcam API (open-mmlab#1160)

* Fix missing flag in `load_image_from_disk_or_url`

* Add SpriteNode

* Meow dwen dwen (open-mmlab#1173)

* fix mmpose nodes

* add dummy video capture

* add xdwendwen node

* fix configs

* Update README.md

* [WebcamAPI] Update XDwenDwen example (open-mmlab#1177)

* Update XDwenDwen example

* add rigid transform
* update configs and readme files

* extend meow dwen dwen

* update config

* support cfg-options

* turn-off default help instruction

* fix typo

Co-authored-by: Jas <[email protected]>
Co-authored-by: Lumin <[email protected]>
Co-authored-by: zengwang <[email protected]>
Co-authored-by: Ma Zerun <[email protected]>
@jin-s13 jin-s13 deleted the webcam_api branch April 27, 2022 09:32
shuheilocale pushed a commit to shuheilocale/mmpose that referenced this pull request May 6, 2023
* add cam runner [wip]

* update webcam runner and node api

* reorganize module structure

* add model node

* add pose model node [wip]

* update message

* add monitor node

* rename config

* refactor webcam util

* add update_route_info

* add input_check_interval

* add fps for one-euro in mmpose node

* refactor visualition nodes

* fix bug

* modify runner argument and fix bug

* add doc

* add doc

* add webcam_runner docstrings

* add docstrings

* update interface and docstring

* add RecorderNode

* * add syncrhonous result binding mode
* refactor node event handler

* fix typing

* fix typing (open-mmlab#1082)

* * Add RecorderNode for saving video to files
* Add exiting handler method to nodes
* Add VideoEndingMessage

* rename _on_exit ot on_exit

* fix typing

* Fix a few issues

* register node event handler in __init__
* change default pose model to vipnas_mblv3
* Node._on_exit -> Node.on_exit

* fix typing

* fix typing

* change from thread based to process based

* solve cuda distributed [wip]

* fix process creating method and buffer size

* thread based buffer

* node based on thread

* node set daemon=False as default

* fix logging level and add docstrings

* modify register_event

* * reorganize webcam tool configs
* modify frame rate calculation
* rename BillboardNode as NoticeBoardNode

* [WebcamAPI] Add demo README (open-mmlab#1133)

* add README.md

* update gif

* [WebcamAPI] Add facwswap node and config (open-mmlab#1094)

* add facwswap node

* adapt to webcam_api

* adapt to webcam_api

* move config

* add sync mode in runner

* fix bugs and update nodes

* [WebcamAPI] Supersaiyan (open-mmlab#1098)

* add supersaiyan effects

* fix init

* apply background

* update config

* apply saiyan effects

* rebase

* rebase and fix

* update doc

* update docs

* add load image from disk or url

* make the resources to url links

* mv load_image_from_disk_or_url to utils/misc

* move effect funcs to webcam_api

* rebase

* fix pytest

* fix docs

* add get_local_path_given_url

* add get_local_path_given_url

* rename to get_cached_file_path

* update readme

* update readme

* fix bug that only one bbox is detected for each class

* fix faceswap config

* add newyear demo (open-mmlab#1143)

Co-authored-by: zengwang <[email protected]>

* [Feature] Add a `SpriteNode` for Webcam API (open-mmlab#1160)

* Fix missing flag in `load_image_from_disk_or_url`

* Add SpriteNode

* Meow dwen dwen (open-mmlab#1173)

* fix mmpose nodes

* add dummy video capture

* add xdwendwen node

* fix configs

* Update README.md

* [WebcamAPI] Update XDwenDwen example (open-mmlab#1177)

* Update XDwenDwen example

* add rigid transform
* update configs and readme files

* extend meow dwen dwen

* update config

* support cfg-options

* turn-off default help instruction

* fix typo

Co-authored-by: Jas <[email protected]>
Co-authored-by: Lumin <[email protected]>
Co-authored-by: zengwang <[email protected]>
Co-authored-by: Ma Zerun <[email protected]>
ajgrafton pushed a commit to ajgrafton/mmpose that referenced this pull request Mar 6, 2024
* add cam runner [wip]

* update webcam runner and node api

* reorganize module structure

* add model node

* add pose model node [wip]

* update message

* add monitor node

* rename config

* refactor webcam util

* add update_route_info

* add input_check_interval

* add fps for one-euro in mmpose node

* refactor visualition nodes

* fix bug

* modify runner argument and fix bug

* add doc

* add doc

* add webcam_runner docstrings

* add docstrings

* update interface and docstring

* add RecorderNode

* * add syncrhonous result binding mode
* refactor node event handler

* fix typing

* fix typing (open-mmlab#1082)

* * Add RecorderNode for saving video to files
* Add exiting handler method to nodes
* Add VideoEndingMessage

* rename _on_exit ot on_exit

* fix typing

* Fix a few issues

* register node event handler in __init__
* change default pose model to vipnas_mblv3
* Node._on_exit -> Node.on_exit

* fix typing

* fix typing

* change from thread based to process based

* solve cuda distributed [wip]

* fix process creating method and buffer size

* thread based buffer

* node based on thread

* node set daemon=False as default

* fix logging level and add docstrings

* modify register_event

* * reorganize webcam tool configs
* modify frame rate calculation
* rename BillboardNode as NoticeBoardNode

* [WebcamAPI] Add demo README (open-mmlab#1133)

* add README.md

* update gif

* [WebcamAPI] Add facwswap node and config (open-mmlab#1094)

* add facwswap node

* adapt to webcam_api

* adapt to webcam_api

* move config

* add sync mode in runner

* fix bugs and update nodes

* [WebcamAPI] Supersaiyan (open-mmlab#1098)

* add supersaiyan effects

* fix init

* apply background

* update config

* apply saiyan effects

* rebase

* rebase and fix

* update doc

* update docs

* add load image from disk or url

* make the resources to url links

* mv load_image_from_disk_or_url to utils/misc

* move effect funcs to webcam_api

* rebase

* fix pytest

* fix docs

* add get_local_path_given_url

* add get_local_path_given_url

* rename to get_cached_file_path

* update readme

* update readme

* fix bug that only one bbox is detected for each class

* fix faceswap config

* add newyear demo (open-mmlab#1143)

Co-authored-by: zengwang <[email protected]>

* [Feature] Add a `SpriteNode` for Webcam API (open-mmlab#1160)

* Fix missing flag in `load_image_from_disk_or_url`

* Add SpriteNode

* Meow dwen dwen (open-mmlab#1173)

* fix mmpose nodes

* add dummy video capture

* add xdwendwen node

* fix configs

* Update README.md

* [WebcamAPI] Update XDwenDwen example (open-mmlab#1177)

* Update XDwenDwen example

* add rigid transform
* update configs and readme files

* extend meow dwen dwen

* update config

* support cfg-options

* turn-off default help instruction

* fix typo

Co-authored-by: Jas <[email protected]>
Co-authored-by: Lumin <[email protected]>
Co-authored-by: zengwang <[email protected]>
Co-authored-by: Ma Zerun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants