Improved number plate character segmentation algorithm and its efficient FPGA implementation