ナンバープレート識別--OMAP 4430プロセッサでテスト

4662 ワード

OMAP4430(ME865)
arm-linux-gcc 4.5.1(FriendlyARM)
ソフト浮動小数点運転結果:
root@lj:/workspace/carid# arm-linux-gcc car.c -o softcar -lm -static
640 x 480 BMPビットマップは約380 ms必要です
320 x 140 BMPビットマップは約140 ms必要
O 3最適化後の性能向上
root@lj:/workspace/carid# arm-linux-gcc car.c -o softcar -lm -static -O3
640 x 480 BMPビットマップは約175 ms必要
320 x 140 BMPビットマップは約60 ms必要
最適化テストがありません:
root@edison:/data # ./softcar /sdcard/test/1.bmp
./softcar /sdcard/test/1.bmp

BMP Size IS:921654
W:640  H:480


The Car ID IS:
  A F Q 7 8 7


time 375ms
root@edison:/data # ./softcar /sdcard/test/2.bmp
./softcar /sdcard/test/2.bmp

BMP Size IS:921654
W:640  H:480


The Car ID IS:
  A 8 S 3 0 8


time 382ms
root@edison:/data # ./softcar /sdcard/test/3.bmp
./softcar /sdcard/test/3.bmp

BMP Size IS:230454
W:320  H:240


The Car ID IS:
  A G F 7 5 1


time 140ms
root@edison:/data # ./softcar /sdcard/test/4.bmp
./softcar /sdcard/test/4.bmp

BMP Size IS:230454
W:320  H:240


The Car ID IS:
  A 8 S 3 0 8


time 145ms
root@edison:/data # ./softcar /sdcard/test/5.bmp
./softcar /sdcard/test/5.bmp

BMP Size IS:921654
W:640  H:480


The Car ID IS:
  M 0 7 3 6 9


time 342ms
root@edison:/data # ./softcar /sdcard/test/6.bmp
./softcar /sdcard/test/6.bmp

BMP Size IS:921654
W:640  H:480


The Car ID IS:
  A 6 Y 2 6 8


time 372ms
root@edison:/data # ./softcar /sdcard/test/7.bmp
./softcar /sdcard/test/7.bmp

BMP Size IS:230454
W:320  H:240


The Car ID IS:
  A 9 X 6 6 7


time 137ms
root@edison:/data # ./softcar /sdcard/test/8.bmp
./softcar /sdcard/test/8.bmp

BMP Size IS:921654
W:640  H:480


The Car ID IS:
  A P 6 8 3 8


time 422ms
root@edison:/data # ./softcar /sdcard/test/9.bmp
./softcar /sdcard/test/9.bmp

BMP Size IS:879414
W:640  H:458


The Car ID IS:
  A F N 5 5 3


time 378ms
root@edison:/data # ./softcar /sdcard/test/10.bmp
./softcar /sdcard/test/10.bmp

BMP Size IS:1004214
W:640  H:523


The Car ID IS:
  J 0 8 0 3 6


time 397ms
root@edison:/data # ./softcar /sdcard/test/11.bmp
./softcar /sdcard/test/11.bmp

BMP Size IS:1035978
W:665  H:519


The Car ID IS:
  B H 6 0 8 2


time 393ms
root@edison:/data # ./softcar /sdcard/test/12.bmp
./softcar /sdcard/test/12.bmp

BMP Size IS:921654
W:640  H:480


The Car ID IS:
  A F Z 9 0 5


time 380ms
root@edison:/data # ./softcar /sdcard/test/13.bmp
./softcar /sdcard/test/13.bmp

BMP Size IS:921654
W:640  H:480


The Car ID IS:
  A A D 2 6 3


time 391ms
root@edison:/data #

O 3最適化後の試験結果:
root@edison:/data # ./softcar /sdcard/test/1.bmp
./softcar /sdcard/test/1.bmp

BMP Size is:921654
W:640  H:480


The Car ID IS:
  A F Q 7 8 7


time 165ms
root@edison:/data # ./softcar /sdcard/test/2.bmp
./softcar /sdcard/test/2.bmp

BMP Size is:921654
W:640  H:480


The Car ID IS:
  A 8 S 3 0 8


time 173ms
root@edison:/data # ./softcar /sdcard/test/3.bmp
./softcar /sdcard/test/3.bmp

BMP Size is:230454
W:320  H:240


The Car ID IS:
  A G F 7 5 1


time 62ms
root@edison:/data # ./softcar /sdcard/test/4.bmp
./softcar /sdcard/test/4.bmp

BMP Size is:230454
W:320  H:240


The Car ID IS:
  A 8 S 3 0 8


time 61ms
root@edison:/data # ./softcar /sdcard/test/5.bmp
./softcar /sdcard/test/5.bmp

BMP Size is:921654
W:640  H:480


The Car ID IS:
  M 0 7 3 6 9


time 152ms
root@edison:/data # ./softcar /sdcard/test/6.bmp
./softcar /sdcard/test/6.bmp

BMP Size is:921654
W:640  H:480


The Car ID IS:
  A 6 Y 2 6 8


time 169ms
root@edison:/data # ./softcar /sdcard/test/7.bmp
./softcar /sdcard/test/7.bmp

BMP Size is:230454
W:320  H:240


The Car ID IS:
  A 9 X 6 6 7


time 59ms
root@edison:/data # ./softcar /sdcard/test/8.bmp
./softcar /sdcard/test/8.bmp

BMP Size is:921654
W:640  H:480


The Car ID IS:
  A P 6 8 3 8


time 179ms
root@edison:/data # ./softcar /sdcard/test/9.bmp
./softcar /sdcard/test/9.bmp

BMP Size is:879414
W:640  H:458


The Car ID IS:
  A F N 5 5 3


time 179ms
root@edison:/data # ./softcar /sdcard/test/10.bmp
./softcar /sdcard/test/10.bmp

BMP Size is:1004214
W:640  H:523


The Car ID IS:
  J 0 8 0 3 6


time 180ms
root@edison:/data # ./softcar /sdcard/test/11.bmp
./softcar /sdcard/test/11.bmp

BMP Size is:1035978
W:665  H:519


The Car ID IS:
  B H 6 0 8 2


time 172ms
root@edison:/data # ./softcar /sdcard/test/12.bmp
./softcar /sdcard/test/12.bmp

BMP Size is:921654
W:640  H:480


The Car ID IS:
  A F Z 9 0 5


time 175ms
root@edison:/data # ./softcar /sdcard/test/13.bmp
./softcar /sdcard/test/13.bmp

BMP Size is:921654
W:640  H:480


The Car ID IS:
  A A D 2 6 3


time 174ms
コード自体には、特に浮動小数点とforループの最適化点がたくさんあります.
最適化すれば、S 5 PV 210で100 ms以内に1枚のナンバープレートを処理できると推定される.
コードは後で提供します