CRNN-Keras icon indicating copy to clipboard operation
CRNN-Keras copied to clipboard

decode_label() function

Open soldierofhell opened this issue 6 years ago • 2 comments

Is there any special purpose to implement custom decode function instead of using (more general) keras.backend.ctc_decode()?

soldierofhell avatar Dec 03 '18 11:12 soldierofhell

Hi @qjadud1994 I'm trying to customize your code for my own data, where I have plates with 8 numbers (with different characters in the middle). However, I don't understand your decode function. More specifically, I don't understand why your output's shape is (1,32,42). I know that you have 41 letters, but shouldn't the model predict 9 set of 42 scores (instead of 32)? So that getting the maximum index out of each would lead to a 9 character license plate, as in your example images?

szm-R avatar Dec 08 '18 15:12 szm-R

Hi @szm2015 , the 32 is for segmentation of feature map that generated by CNN, in dead this is similar to segmentation the input image to 32 segmentation, and we select 8 unique character from 32 label character for each segment in the decode section.

ghost avatar Feb 16 '19 13:02 ghost