Skip to content

Is This Line Incorrect? (MaxDif Not Updating) #22

Open
@cjdduarte

Description

@cjdduarte

I'm reviewing some Python code that detects faces and identifies the active speaker in a video. I noticed this line:

MaxDif == max(lip_distance, MaxDif)

Shouldn't it be:

MaxDif = max(lip_distance, MaxDif)

It looks like == is a comparison operator rather than an assignment. If so, this wouldn't update MaxDif properly. Am I missing something, or is this a mistake?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions