RockX  1.0.0
carplate.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_CARPLATE_H
14 #define _ROCKX_CARPLATE_H
15 
16 #include "rockx_type.h"
17 #include "object_detection.h"
18 
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
27 const char* const CARPLATE_RECOG_CODE[83] = {
28  "京", "沪", "津", "渝", "冀", "晋", "蒙", "辽", "吉", "黑", "苏", "浙", "皖", "闽", "赣", "鲁", "豫", "鄂", "湘",
29  "粤", "桂", "琼", "川", "贵", "云", "藏", "陕", "甘", "青", "宁", "新",
30  "0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
31  "A", "B", "C", "D", "E", "F", "G", "H", "J", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "U", "V", "W", "X",
32  "Y", "Z","港","学","使","警","澳","挂","军","北","南","广","沈","兰","成","济","海","民","航","空"
33 };
34 
40  float confidence;
42 
47  int namecode[10];
48  int length;
50 
60  rockx_async_callback callback);
61 
71  rockx_carplate_align_result_t *aligned_result);
72 
81  rockx_carplate_recog_result_t *recog_result);
82 
83 #ifdef __cplusplus
84 } //extern "C"
85 #endif
86 
87 #endif // _ROCKX_CARPLATE_H
rockx_type.h
rockx_object_t
Object Detection Result(include Face, CarPlate, Head, Object, etc...)
Definition: object_detection.h:39
rockx_carplate_recog_result_t
struct rockx_carplate_recog_result_t rockx_carplate_recog_result_t
Car plate recognition Result (rockx_carplate_recognize)
rockx_carplate_recog_result_t
Car plate recognition Result (rockx_carplate_recognize)
Definition: carplate.h:46
rockx_carplate_recog_result_t::namecode
int namecode[10]
Result code array (code table: CARPLATE_RECOG_CODE)
Definition: carplate.h:47
rockx_carplate_recognize
rockx_ret_t rockx_carplate_recognize(rockx_handle_t handle, rockx_image_t *aligned_img, rockx_carplate_recog_result_t *recog_result)
rockx_ret_t
rockx_ret_t
Return Value of RockX functions.
Definition: rockx_type.h:36
rockx_carplate_align
rockx_ret_t rockx_carplate_align(rockx_handle_t handle, rockx_image_t *in_img, rockx_object_t *detect_result, rockx_carplate_align_result_t *aligned_result)
rockx_object_array_t
Object Array Result.
Definition: object_detection.h:49
rockx_carplate_align_result_t
Car plate align Result (rockx_carplate_align)
Definition: carplate.h:38
rockx_carplate_align_result_t::confidence
float confidence
Confidence.
Definition: carplate.h:40
object_detection.h
rockx_async_callback
void(* rockx_async_callback)(void *result, size_t result_size)
Pointer of Async Callback Function.
Definition: rockx_type.h:31
rockx_carplate_detect
rockx_ret_t rockx_carplate_detect(rockx_handle_t handle, rockx_image_t *in_img, rockx_object_array_t *object_array, rockx_async_callback callback)
rockx_carplate_align_result_t::aligned_image
rockx_image_t aligned_image
Aligned car plate image.
Definition: carplate.h:39
rockx_carplate_recog_result_t::length
int length
Result array length.
Definition: carplate.h:48
rockx_handle_t
void * rockx_handle_t
Handle of a created RockX module.
Definition: rockx_type.h:26
rockx_carplate_align_result_t
struct rockx_carplate_align_result_t rockx_carplate_align_result_t
Car plate align Result (rockx_carplate_align)
rockx_image_t
Image.
Definition: rockx_type.h:122
CARPLATE_RECOG_CODE
const char *const CARPLATE_RECOG_CODE[83]
Car Plate Recognition Code Table.
Definition: carplate.h:27