Tracking Camera Api Documentation - person-in-hangang/HanRiver GitHub Wiki

Detection

public void onImageAvailable(ImageReader reader)

Real-time Detection & Initiates tracking when detected.

  • Parameter : ImageReader
  • Return : None
  • call processing()

private List readLabels(String file, Context context)

Import classification name from label s.txt file

  • Parameter : labels.txt file
  • Return : labels (array)

Tracking

private void processing()

Track the person & keep drawing the bounding box while tracking it.

  • Key Variables :
    • mTargetLocked (boolean) : A variable that tell you whether a target is caught
    • first (boolean) : A variable that tells you if you're the first person to catch it, if you're the first to draw a new box
    • mProcessing (boolean) : A variable that tells if tracking is in progress, false, does not detect anyone else
  • Parameter : None
  • Return : None

Draw Trajectory

public void drawCallback(Canvas canvas)

Continue to draw paths while tracking.

  • Parameter : canvas
  • Return : None

Networking

public void send_server(Bitmap bm)

send trajectory

  • Parameter : bitmap
  • Return : None

public void send_server2(double x, double y)

send coordinate

  • Parameter : double x, double y
  • Return : None
⚠️ **GitHub.com Fallback** ⚠️