Skip to content

Latest commit

 

History

History
89 lines (56 loc) · 2.15 KB

File metadata and controls

89 lines (56 loc) · 2.15 KB

SnakeIdentification

Module Name SnakeIdentification
Category image classification
Network ResNet50_vd_ssld
Dataset Snake Dataset
Fine-tuning supported or not No
Module Size 84MB
Latest update date -
Data indicators -

I.Basic Information

  • Module Introduction

    • This module can be used to identify the kind of snake, and judge the toxicity.

II.Installation

III.Module API Prediction

  • 1、Command line Prediction

    • $ hub run SnakeIdentification --input_path /PATH/TO/IMAGE
    • If you want to call the Hub module through the command line, please refer to: PaddleHub Command Line Instruction
  • 2、Prediction Code Example

    • import paddlehub as hub
      import cv2
      
      classifier = hub.Module(name="SnakeIdentification")
      images = [cv2.imread('/PATH/TO/IMAGE')]
      results = classifier.predict(images=images)
      for result in results:
          print(result)
  • 3、API

    • def predict(images)
      • classification API.

      • Parameters

        • images (list[numpy.ndarray]): image data, ndarray.shape is in the format [H, W, C], BGR;
      • Return

        • result(list[dict]): classication results, each element in the list is dict, key is the label name, and value is the corresponding probability

IV.Release Note

  • 1.0.0

    First release

    • $ hub install SnakeIdentification==1.0.0