Web Analytics

Model Inference - Inference on Cropped Regions

This tutorial shows how to infer the model with Generic Inference with cropped regions. The crop configuration will crop the image on the device, execute inference only on the cropped areas of the image, get the raw output from the device, and do post-processing in the software.

The flow in concept:

  1. Setting crop information in kp.GenericImageInferenceDescriptor
  2. Send an image to inference
  3. Receive result N times (N specify for number of crop bounding boxes)

Note: Please upload NEF model on Kneron device before the following tutorial. See the Load NEF Model for details.

Reference Examples:


Inference on Cropped Regions

Recommend use cv2 to read the image or capture camera frame.