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

How to determine simply whether an occlusion exists or not? #31

Open
aesanchezgh opened this issue Feb 1, 2023 · 4 comments
Open

How to determine simply whether an occlusion exists or not? #31

aesanchezgh opened this issue Feb 1, 2023 · 4 comments

Comments

@aesanchezgh
Copy link

Hello,

What is the same code to do the following:

bool test = occulsion_exists_in_face(img)

I simply want to pass an image of a face and determine whether there exists an occlusion or not.

Thanks!

@Krasjet-Yu
Copy link
Owner

You can follow the pseudo-code:
def occulsion_exists_in_face(bboxes):
# a and b in bboxes, interArea is intersection
return interArea(a, b) > thres
bboxes = yolofacev2.detect(img)
test = occulsion_exists_in_face(bboxes)

@aesanchezgh
Copy link
Author

aesanchezgh commented Feb 6, 2023

I am looking to see if the face is occluded anywhere. What are a & b? I only have one bbox, which is the face.

Thanks!

@Krasjet-Yu
Copy link
Owner

This can only happen through visualization.

@aesanchezgh
Copy link
Author

You face detector is not "occlusion aware" then ;)

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

No branches or pull requests

2 participants