13.07.2015 Views

real-time image capturing system for car plate recognition

real-time image capturing system for car plate recognition

real-time image capturing system for car plate recognition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

273.2.2 Live Streaming Video ModeBe<strong>for</strong>e the program starts, the internal setting of Basler IP camera is adjustedby initializing the frame rate as 30 fps. When user inserts ‘1’ in the selection mode,case 1 will be selected. Under this case, window will enter live streaming videomode.After the instruction is displayed, availability of IP address of Basler IPcamera will be checked. Program will be exit if the IP camera is not available. If theIP address of the camera exists, the user is allowed to insert the capture rate inprecision of milliseconds. Once the input is not a valid character or not a validnumber, the user can key in the capture rate again. The program treat the input valueas string in number checking process, hence the string will be converted into numbermode and then stored into capture rate variable.After the capture rate is inserted by user, ‘cvGetTickCount ( )’ and‘cvGetTickFrequency ( )’ will obtain the number of tick and frequency from the CPUwith the aid of OpenCV library. The frame of the live video seen by IP camera willbe grabbed and stored into memory using <strong>image</strong> processing library function which is‘IplImage’ <strong>for</strong> live video display purpose. Timer and frame rate will be shown in thewindow console <strong>for</strong> data references. Real-<strong>time</strong> MPEG-4 <strong>for</strong>mat video will bestreamed through the IP address and displayed in new windows. After the frame iscaptured from live video, it will be shown in another window and then saved as .JPGpicture <strong>for</strong>mat. The process will keep repeating in the ‘while’ loop and delay <strong>for</strong>10ms in order to display video frame correctly. The outline of <strong>real</strong>-<strong>time</strong> videostreaming flow is shown in Figure 3.8.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!