RockX  1.0.0
object_detection.h
Go to the documentation of this file.
1 /****************************************************************************
2 *
3 * Copyright (c) 2017 - 2019 by Rockchip Corp. All rights reserved.
4 *
5 * The material in this file is confidential and contains trade secrets
6 * of Rockchip Corporation. This is proprietary information owned by
7 * Rockchip Corporation. No part of this work may be disclosed,
8 * reproduced, copied, transmitted, or used in any way for any purpose,
9 * without the express written permission of Rockchip Corporation.
10 *
11 *****************************************************************************/
12 
13 #ifndef _ROCKX_OBJECT_DETECTION_H
14 #define _ROCKX_OBJECT_DETECTION_H
15 
16 #include "rockx_type.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
25 const char* const OBJECT_DETECTION_LABELS_91[91] = {
26  "???", "person", "bicycle", "car", "motorcycle", "airplane", "bus", "train", "truck", "boat", "trafficlight",
27  "firehydrant", "???", "stopsign", "parkingmeter", "bench", "bird", "cat", "dog", "horse", "sheep", "cow", "elephant",
28  "bear", "zebra", "giraffe", "???", "backpack", "umbrella", "???", "???", "handbag", "tie", "suitcase", "frisbee",
29  "skis", "snowboard", "sportsball", "kite", "baseballbat", "baseballglove", "skateboard", "surfboard", "tennisracket",
30  "bottle", "???", "wineglass", "cup", "fork", "knife", "spoon", "bowl", "banana", "apple", "sandwich", "orange",
31  "broccoli", "carrot", "hotdog", "pizza", "donut", "cake", "chair", "couch", "pottedplant", "bed", "???", "diningtable",
32  "???", "???", "toilet", "???", "tv", "laptop", "mouse", "remote", "keyboard", "cellphone", "microwave", "oven",
33  "toaster", "sink", "refrigerator", "???", "book", "clock", "vase", "scissors", "teddybear", "hairdrier", "toothbrush"
34 };
35 
39 typedef struct rockx_object_t {
40  int id;
41  int cls_idx;
43  float score;
45 
49 typedef struct rockx_object_array_t {
50  int count;
51  rockx_object_t object[128];
53 
63  rockx_async_callback callback);
64 
74  rockx_async_callback callback);
75 
76 #ifdef __cplusplus
77 } //extern "C"
78 #endif
79 
80 #endif // _ROCKX_OBJECT_DETECTION_H
rockx_type.h
rockx_head_detect
rockx_ret_t rockx_head_detect(rockx_handle_t handle, rockx_image_t *in_img, rockx_object_array_t *object_array, rockx_async_callback callback)
rockx_object_array_t
struct rockx_object_array_t rockx_object_array_t
Object Array Result.
rockx_object_t
Object Detection Result(include Face, CarPlate, Head, Object, etc...)
Definition: object_detection.h:39
rockx_object_t::cls_idx
int cls_idx
Class index.
Definition: object_detection.h:41
rockx_object_t::score
float score
Object confidence score.
Definition: object_detection.h:43
rockx_ret_t
rockx_ret_t
Return Value of RockX functions.
Definition: rockx_type.h:36
rockx_object_t
struct rockx_object_t rockx_object_t
Object Detection Result(include Face, CarPlate, Head, Object, etc...)
rockx_object_array_t
Object Array Result.
Definition: object_detection.h:49
rockx_object_detect
rockx_ret_t rockx_object_detect(rockx_handle_t handle, rockx_image_t *in_img, rockx_object_array_t *object_array, rockx_async_callback callback)
rockx_rect_t
Rectangle of Object Region.
Definition: rockx_type.h:102
rockx_object_array_t::count
int count
Array Count(0 <= count < 128)
Definition: object_detection.h:50
rockx_async_callback
void(* rockx_async_callback)(void *result, size_t result_size)
Pointer of Async Callback Function.
Definition: rockx_type.h:31
rockx_object_t::id
int id
Track id.
Definition: object_detection.h:40
OBJECT_DETECTION_LABELS_91
const char *const OBJECT_DETECTION_LABELS_91[91]
Definition: object_detection.h:25
rockx_handle_t
void * rockx_handle_t
Handle of a created RockX module.
Definition: rockx_type.h:26
rockx_image_t
Image.
Definition: rockx_type.h:122
rockx_object_t::box
rockx_rect_t box
Object Region.
Definition: object_detection.h:42