![]() Ocr.Recognize(New Image(Of Bgr, Byte)(photo.ToBitmap)) 'gf.CopyFromScreen(New Point(Me.Location.X = 4, Me.Location.Y = 30), New Point(0, 0), pic.Size) ![]() Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tickĭim photo As Image(Of Bgr, Byte) = webcam.QueryFrame Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load The void setup function only executes one time, when the Arduino uno Or Mega board is powered up.ĭim ocr As Tesseract = New Tesseract("tessdata", "eng", _TESSERACT_ONLY = 500, whiteList:="ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz")ĭim gf As Graphics = Graphics.FromImage(pic) ![]() If you want you can set any other Baud rate. As the Arduino Uno board will be doing serial communication with the computer so for this we will have to define the baud rate. Serail.begin function is also a built in function and it takes only one Argument as the input which is the Baud rate. As the electronic lock is an output device so that’s why we set it to OUTPUT.įor activating the Serial communication we use a function called Serial.begin(). This function takes two arguments as the input, the pin number or pin name which in our case is elock, and the status which can be input or output. To set any pin of the Arduino Uno as input or output for this we use the built in function which is pinMode() function. The variable data will be used to store the character received from the computer application.Īfter defining the Variables and Pins, the next step is to tell the controller which pin is the input or output and which baud rate we are going to use. Then I defined a variable data of the type character. So the electronic lock will be controlled using the Arduino’s Pin number 13. I started by defining a Pin for the Electronic lock. This code is written for the Electronic Lock. you can find the related videos on my channel “Electronic Clinic”. You can watch my previous tutorials on how to use the Servo motor. Make sure to add 470uf capacitors at the input and output sides of the voltage regulator for the best performance. You can make an external power supply based on the famous LM7805 voltage regulator. But if you are using a larger Servo motor then I highly recommend you should power the Servo motor using External power supply. If you are using a small servo motor then you can power the servo motor using the Arduino’s 5 volts. The door lock is already explained in the video, so I decided to share with you the idea of how you can also control a servo motor. In the circuit diagram as you can see, I have used a Servo motor, but in the video, I controlled a door lock. I would appreciate your support in this way! Images which will be used as the number plates: I may make a commission if you buy the components through these links. We will be using a camera to scan the number plate in real-time and then we will compare the scanned number with the predefined numbers stored in the program.ġ2v Electronic Door Lock / Elock / Solenoid Lock: In this tutorial, we will be using the same concept. Optical Character Recognition ( which is also known as the optical character reader, OCR) is the technology used for reading/scanning the text images, or any sheet or paper on which the text is written. The Arduino will do serial communication with the computer/laptop application. On the hardware side, the Arduino Uno will be used for controlling the door lock. The scanned numbers will be then compared with the pre-defined numbers and then display the car owner information and open and close the entrance accordingly using the electronic lock. For the Car number plates reading we will be making our own image processing application in visual basic. In this project, the car number plates will be scanned using the OCR. This tutorial is based on the OCR “Optical character recognition” technology. Images which will be used as the number plates:.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |