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

C++ Demo - Human Segmentation #243

Merged
merged 4 commits into from
Mar 12, 2024
Merged

C++ Demo - Human Segmentation #243

merged 4 commits into from
Mar 12, 2024

Conversation

DaniAffCH
Copy link
Contributor

This Pull Request introduces a C++ demo for utilizing and visualizing the PP-HumanSeg model requested in issue #135. The changes include:

  • demo.cpp: This file contains the demo implementation, featuring a class PPHS for preprocessing and inference with the PP-HumanSeg model.
  • CMakeLists.txt: The related CMakeLists file necessary for building the program.
  • demo.py: minor adjustment for efficiency
  • README.md: The README file has been updated to include information about this new demo.

Testing

The program has been tested both with a single person and with multiple people at the same time.
Here are some screenshots:

Multi-person from static image

Screenshot from 2024-03-10 10-25-03

SIngle-person from the cam

out

Copy link
Member

@fengyuentau fengyuentau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you exchange the colors of background and person in you c++ demo? Just to keep align with python demo.

@fengyuentau fengyuentau self-assigned this Mar 11, 2024
@fengyuentau fengyuentau added the demo anything related to demo in Python / C++ label Mar 11, 2024
@fengyuentau fengyuentau added this to the 4.10.0 milestone Mar 11, 2024
@DaniAffCH
Copy link
Contributor Author

Inverted 👍🏻

Screenshot from 2024-03-11 12-30-31

Copy link
Member

@fengyuentau fengyuentau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@fengyuentau fengyuentau merged commit ab9f965 into opencv:main Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
demo anything related to demo in Python / C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants