Skip to content

Text does not scale with resolution #9

@matiasandina

Description

@matiasandina

Both size and location of the timestamp are not scaling as they should

if self.record_timestamp:
cv2.putText(frame, timestamp.isoformat(timespec='seconds'), (10, 50), cv2.FONT_HERSHEY_SIMPLEX, self.font_size, (255, 255, 255), 1)

This should change to adjust given the resolution.
The size is more problematic than the xy coords.
The font scale parameter is double in PutText so it should be able to scale....maybe we should also scale thickness?

There might be something worth trying in this stackoverflow answer

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions