Answers.Body: <p>One way to solve the issue may be a tracker (like Kalman). It would be faster and easier approach than neural nets. </p>
  
  <p>If you insist about solving this issue through neural nets, then some magic and creativity is needed. Based on the nature of tracking, you need to feed multiple frames to predict next location of the object and check if there is any object close by. So, you may consider combining RNNs with CNNs to predict next bounding box to track and replace Kalman filter's prediction with RNNs. (<a href="https://www.slideshare.net/BigDataColombia/introduccin-a-deep-learning-aprendizaje-profundo" rel="nofollow noreferrer">check</a>)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-13T07:32:07.673Z
Answers.Text: Thanks for the quick reply. So, is there no real tracking? I believe Kalman filter is using a predictive motion model. So, if I only have 2 frames, I cannot track the object. Also, what if the object is human? I cannot really predict the motion as human may stop and turn around at random time. Any insight to my situations?
Answers.UserDisplayName: WorldWind
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-13T13:04:58.700Z
Answers.Text: It would be better for you to check how tracking algorithms work. Tracking algorithms are designed to solve those kinds of problems.
Answers.UserDisplayName: Deniz Beker
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-13T03:32:27.583Z
Answers.LastActivityDate: 2017-12-13T03:32:27.583Z
Answers.UserDisplayName: Deniz Beker
Body: <p>At this moment, I am able to use NN to identify an object, such as a human, when given a frame from the camera. Once locate the object, then I can feed the human object image to either NN that's designed to classify male or female.</p>
  <p>Let's say I get 1 frame per second from the camera and perform detection, the objective is to track the number of male and female walk pass the camera within the given hours.</p>
  <p>My question is, the same person in multiple frames will be overcounted. I couldn't wrap my head around how can I train a NN to understand that this is the same person without dive into facial recognition? I'm sure there is some tracking technique that I just don't know.</p>
  <p>One little constraint, if the person left the camera frame and come back into it later, it is fine to treat it as two people.</p>
  
Tags: <neural-networks><computer-vision><object-detection><object-recognition>
Title: How to keep track of the same person detected in different frames of a camera?
UserDisplayName: WorldWind
ThreadText: # How to keep track of the same person detected in different frames of a camera?
  
  (Asked by: username_0 on 2017-12-09)
  
  At this moment, I am able to use NN to identify an object, such as a human, when given a frame from the camera. Once locate the object, then I can feed the human object image to either NN that's designed to classify male or female.
  
  Let's say I get 1 frame per second from the camera and perform detection, the objective is to track the number of male and female walk pass the camera within the given hours.
  
  My question is, the same person in multiple frames will be overcounted. I couldn't wrap my head around how can I train a NN to understand that this is the same person without dive into facial recognition? I'm sure there is some tracking technique that I just don't know.
  
  One little constraint, if the person left the camera frame and come back into it later, it is fine to treat it as two people.
  
  **Tags:** neural-networks, computer-vision, object-detection, object-recognition
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-12-13. Score: 1
  
  One way to solve the issue may be a tracker (like Kalman). It would be faster and easier approach than neural nets.
  
  If you insist about solving this issue through neural nets, then some magic and creativity is needed. Based on the nature of tracking, you need to feed multiple frames to predict next location of the object and check if there is any object close by. So, you may consider combining RNNs with CNNs to predict next bounding box to track and replace Kalman filter's prediction with RNNs. ([check](https://www.slideshare.net/BigDataColombia/introduccin-a-deep-learning-aprendizaje-profundo))
  
  > **Comments:**
  > **username_0**: Thanks for the quick reply. So, is there no real tracking? I believe Kalman filter is using a predictive motion model. So, if I only have 2 frames, I cannot track the object. Also, what if the object is human? I cannot really predict the motion as human may stop and turn around at random time. Any insight to my situations?  
  > **username_1**: It would be better for you to check how tracking algorithms work. Tracking algorithms are designed to solve those kinds of problems.  
  
  ---
  
  