Hi @adithideborah and thanks for your query. Could you kindly clarify what you mean by “out of focus” … you mean an error when the user is no longer tracked?
That being the case, instead of generating an error on the first loss of tracking, you could keep a counter that will only show the error after a certain threshold amount of time has passed without tracking. Would this serve your needs? In any event, if you could be more explicit with the project description, we will do our best to help you out. Best Wishes.