Increase the count number using yolo11

Hi!
so I’m having a problem
here at this part

                        if self.heatmap_objs[i].in_count > 0 or self.heatmap_objs[i].out_count > 0:
                            #print(f"in_count: {self.heatmap_objs[i].in_count}, out_count: {self.heatmap_objs[i].out_count}")
                            key = tuple(self.heatmap_objs[i].counted_ids)
                            new_count = self.heatmap_objs[i].in_count + self.heatmap_objs[i].out_count
                            if key not in self.current_counts or self.current_counts[key] != new_count:
                                self.current_counts[key] = new_count
                                cls = self.heatmap_objs[i].classwise_counts
                                #print(f"Appending to counter_data: {cls}")
                                self.counter_data["COUNTER"].append({
                                    "camera_id": self.camera_id[i],
                                    "cls": copy.deepcopy(cls),
                                    "in_count": self.heatmap_objs[i].in_count,
                                    "out_count": self.heatmap_objs[i].out_count,
                                    "timestamp": timestamp
                                })

when the data stored in COUNTER dictionary the classwise_count part
IN,OUT is less than the real data what should i do???

What do you mean by “real data”? Do you mean the count is less than the objects in the video?