Replies: 1 comment
-
Hi @vipinap98 👋🏻 Let me convert this issue into a discussion and place it in the Q&A section. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Search before asking
Question
I'm working on a project where I need to visualize the heat signatures of people's movement in a lobby area using a heatmap. I'm using the HeatMapAnnotator class from the supervision library, but I'm having trouble getting the heatmap colors to change noticeably, especially when the range of heat values is relatively narrow.
I've tried adjusting various parameters, such as the hue range (top_hue and low_hue), opacity, kernel size, and normalization functions, but the color changes are still not as visible as I'd like them to be. I suspect that the narrow range of heat values in my scenario might be the root cause of this issue.
Here's the current implementation of the annotate method in the HeatMapAnnotator class, along with the modifications I've made,
Steps Taken:
I've tried adjusting the top_hue and low_hue values to different ranges, such as top_hue=30 (orange) and low_hue=120 (green-blue), to cover a wider range of colors.
I've increased the opacity value to 0.8 and the kernel_size value to 45 to make the heatmap more visible and the color transition smoother.
I've tried using a logarithmic normalization function (temp = np.log(1 + temp / max_value)) instead of the linear normalization, as suggested.
this is how am using the class
Additional
I'm using the supervision library version 0.9.0.
The input video frames are 1280x720 resolution, and the frame rate is 24 FPS.
The lobby area is relatively small, and the number of people moving around at any given time is typically between 5 and 15.
I would greatly appreciate any suggestions or insights on how to improve the visibility and behavior of the heatmap color changes, especially when dealing with a narrow range of heat values. Any alternative approaches or techniques that could help achieve the desired result would also be very helpful.
Note: for this implementation color is constant (for me it's blue), it doesn't change at all even if the heat signature is high in that area
Beta Was this translation helpful? Give feedback.
All reactions