Disclosure of Invention
The intelligent barrier gate camera shooting adjusting system and the control method provided by the invention have the advantages that the structure is simple, the design is reasonable, the use is convenient, the camera can move up and down and rotate on the horizontal plane, the unidentifiable vehicles can be automatically adjusted at all angles for identification, the operation that the vehicles retreat and advance and the like cannot be identified and the waiting time of subsequent vehicles are avoided, and the management efficiency of the barrier gate system of the parking lot is improved.
According to one aspect of the invention, the intelligent barrier gate camera device comprises a case, a telescopic mechanism, a support and a camera, wherein the telescopic mechanism is arranged in the case, the support is arranged on the telescopic mechanism and can move up and down, and the camera is arranged on the support through a rotary driving body.
Preferably on the basis of the scheme, the telescopic mechanism comprises a driving motor and a lead screw, a slide seat is arranged on the lead screw in an assembling mode, the output end of the driving motor is connected with the lead screw, the slide seat is matched with the lead screw, and the support is arranged on the slide seat.
Preferably on the basis of the scheme, the driving motor is connected with the screw rod through a coupler, and the top of the screw rod is arranged in the case through a bearing.
Preferably on the basis of the scheme, the telescopic mechanism comprises a driving cylinder, a sliding rail and a sliding block, the sliding block is arranged on the sliding rail in a sliding manner, and the output end of the driving cylinder is connected with the sliding block.
On the basis of the above scheme, preferably, the rotary driving body is a rotary motor, and a protective cover is fixedly installed on the outer side of the camera.
On the basis of the scheme, preferably, one side of the case is provided with a strip-shaped opening, a multi-stage expansion plate is arranged in the opening, and one end of the support penetrates through the opening and extends outwards.
Preferably, the intelligent traffic control system further comprises a central controller, an angle sensor is installed on the camera, a displacement sensor is installed on the sliding block, a geomagnetic induction coil is arranged at the barrier gate, the camera, the angle sensor, the displacement sensor and the geomagnetic induction coil are respectively connected with the central processor through a control unit, and the rotary driving body and the telescopic mechanism are respectively electrically connected with the output end of the control unit.
On the basis of the scheme, preferably, a display is arranged on the case and is connected with the output end of the central controller.
The invention also provides a control method of the intelligent barrier gate camera device, which comprises the following steps:
step 1, establishing a coordinate system by taking the middle part of a telescopic mechanism as a datum point, and acquiring whether a camera is positioned at the datum point;
step 2, acquiring vehicle entering information through a geomagnetic induction coil, and controlling a camera to acquire image information by a central controller;
step 3, judging whether the current information of the vehicle head is complete according to the image information, if the information of the vehicle head is incomplete, controlling the rotary driving body and the telescopic mechanism to act by the central controller, and executing the step 2 until all complete information of the vehicle head is obtained;
step 4, identifying the vehicle information based on all the information of the vehicle head, and coding and storing the vehicle information;
and 5, the central controller sends the content information to be displayed to the display screen.
Preferably, based on the above scheme, the step 3 specifically includes:
step 31, judging the integrity of all the information of the current locomotive according to the image information, confirming the incompleteness, and judging whether the left image is missing or the right image is missing in the image according to the image information;
step 32, driving the rotating motor to rotate to the left side or the right side by a rated angle until complete vehicle head information can be identified, terminating the step, and entering step 4; if not, then the mobile terminal can be switched to the normal mode,
and step 33, if the complete vehicle head information cannot be identified, entering a driving telescopic mechanism to drive the camera to move up and down, and executing step 31 again.
According to the intelligent barrier gate camera device, the support is driven to move up and down through the movement of the telescopic mechanism, so that the camera can move up and down; the rotary driving body provides power for rotation on the horizontal plane of the camera, and adjustment of the horizontal angle is achieved. The control method of the intelligent barrier gate camera device is provided, the appearance characteristics with high vehicle identification degree are subjected to information identification, and the license plates are identified step by step according to needs, so that the calculation procedures and algorithms for license plate identification are reduced, the identification efficiency and accuracy are improved, and meanwhile, the management efficiency of the barrier gate system of the parking lot is improved by numbering vehicles in parking lots of districts, office places and the like.
Detailed Description
The following detailed description of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Referring to fig. 1, the intelligent barrier camera of the present invention includes a case 1, a telescopic mechanism, a support 13 and a camera 8, wherein the telescopic mechanism is installed in the case 1, the support 13 is installed on the telescopic mechanism and can move up and down, and the camera 8 is installed on the support 13 through a rotary driving body 12.
During the use, utilize telescopic machanism's up-and-down motion, can drive support 13 and reciprocate for install camera 8 up-and-down motion on support 13, realize its collection to the not high image of equidimension, and support 13 is connected through rotary driving body 12 with camera 8 support 13, therefore, rotary driving body 12's rotation can drive camera 8 at the rotary motion of coplanar, in order to obtain bigger visual angle.
According to the invention, by utilizing the telescopic mechanism, and the movement of the bracket 13 and the rotary driving body 12 which are arranged on the telescopic mechanism, the image acquisition of planes with different heights and different angles can be realized, so that the image acquisition of the visual angle acquired by the camera 8 is enlarged, and the camera 8 can be ensured to rapidly and accurately identify the license number.
Referring to fig. 1, the retractable mechanism of the present invention includes a driving motor 2 and a lead screw 4, a sliding base 5 is installed on the lead screw 4, an output end of the driving motor 2 is connected to the lead screw 4, the sliding base 5 is adapted to the lead screw 4, and a support 13 is installed on the sliding base 5. That is, the driving motor 2 drives the screw rod 4 to rotate, and the sliding seat 5 moves up and down on the screw rod 4 to drive the camera 8 to move up and down in the vertical direction.
As another preferred embodiment of the invention, the driving motor 2 of the invention is connected with the screw rod 4 through the coupling 3, and the top of the screw rod 4 is installed in the case 1 through the bearing 6, so as to provide a rotating space for the screw rod 4 and limit the sliding seat 5.
As another preferred embodiment of the present invention, the telescopic mechanism of the present invention comprises a driving cylinder, a sliding rail and a sliding block, wherein the sliding block is slidably mounted on the sliding rail, and the output end of the driving cylinder is connected with the sliding block.
To further explain the technical solution of the present invention in detail, please refer to fig. 1, wherein the rotary driving body 12 of the present invention is a rotary motor, and a protective cover 9 is fixedly installed outside the camera 8, so as to protect the camera from external environments such as sun, rain, wind, frost, and dust, and prolong the service life.
The bracket 13 of the invention is hollow, and the electric wire enters the case 1 through the bracket 13 and is finally connected with the controller of the parking lot management system.
One side of the case 1 is provided with a strip-shaped opening, a multi-stage expansion plate 15 is arranged in the opening, one end of a support 13 penetrates through the opening to extend outwards, and when the support 13 moves up and down, the multi-stage expansion plate 15 can be expanded or stretched to keep the whole outer surface in a covering and sealing state, so that the internal live-wire equipment such as a screw rod 4 and a motor is well protected.
Referring to fig. 2, the present invention further includes a central processing unit 20, an angle sensor 233 is installed on the camera 8, a displacement sensor 231 is installed on the slider, a geomagnetic induction coil is installed at the barrier, the camera 8, the angle sensor 233, the displacement sensor 231 and the geomagnetic induction coil are respectively connected to the central processing unit 20 through a control unit, the rotary driving body 12 and the telescopic mechanism are respectively electrically connected to an output end of the control unit, a display is installed on the case 1, and the display is connected to an output end of the central processing unit 20.
The cpu 20 of the present invention further includes a power module 201, an image unit 202, a data unit 204, a communication unit and an arithmetic unit 205, wherein the image unit 202 is divided into image acquisition and image cache, acquires and stores the acquired image captured by the camera 8, and further extracts the required image and converts the image into characters. The data unit 204 functions as data reception, data buffering, data processing, and data output. Specifically, the vertical position and rotation angle data of the sensor unit 23 are received and stored, and the result is output to the central processor 20 through a certain processing, i.e., a calculation formula.
The arithmetic unit 205 performs character recognition and character segmentation on the license plate number after image processing, and compares a single character obtained by segmenting the character with the license plate number in the standard library for judgment.
The displacement sensor 231 of the present invention is mounted on the slider and records and stores a displacement value in the vertical direction. The angle sensor 233 is installed in the rotary table, and records and stores an angle value of the rotation of the rotary motor in the horizontal direction. When the ground induction coil 232 is used for vehicle entering, the ground induction coil 232 transmits a signal to the controller unit 24 after sensing the signal.
The controller unit 24 includes an input/output unit 241, a communication module 242, a PLC controller 243, and a power module 244. A power module 244 supplies power to these components, a communication module 242 enables communication between the inside and peripheral devices, and the controller unit 24 may be installed in the case 1 nearby, in a room such as a duty room or a kiosk.
The controller unit 24 in the invention adopts Siemens S7/300, the communication module adopts Siemens PROFI BUS-DP, the power module adopts ET200M, IM153-1, and the input module adopts Siemens SM321-32 input; the output module adopts SM322, 32-way output.
Referring to fig. 3, the present invention further provides a control method of an intelligent barrier gate camera device, including the following steps:
step 1, establishing a coordinate system by taking the middle part of the telescopic mechanism as a reference point, and acquiring whether the camera 8 is positioned at the reference point;
step 2, acquiring vehicle entering information through a geomagnetic induction coil, and controlling a camera 8 to acquire image information by a central processing unit 20;
step 3, extracting all information of the current vehicle head according to the image information, and judging whether the information of the current vehicle head is complete; if the locomotive information is incomplete, the current vehicle cannot be identified, the central processing unit 20 controls the rotary driving body 12 and the telescopic mechanism to execute the step 2 so as to acquire all the current locomotive information under the complete image, wherein all the locomotive information specifically comprises: car logo, model number, color, license plate.
It is worth to explain that, the invention adopts the algorithm to discern and obtain car logo, model, color, license plate information based on convolution neural network according to the peculiar appearance and outline of locomotive;
step 4, identifying the vehicle information based on all the information of the vehicle head, and coding and storing the vehicle information;
and step 5, the central processing unit 20 sends the content information to be displayed to the display screen 7.
Wherein, it is worth to be noted that step 3 specifically includes:
step 31, judging the integrity of all the information of the current locomotive according to the image information, confirming the incompleteness, and judging whether the left image is missing or the right image is missing in the image according to the image information;
step 32, driving the rotating motor to rotate to the left side or the right side by a rated angle until complete vehicle head information can be identified, terminating the step, and entering step 4; if not, then,
and step 33, if the complete vehicle head information cannot be identified, driving a telescopic mechanism to drive the camera to move up and down, and executing step 31 again.
As shown in fig. 5, in step 4, if the vehicle information is initially determined to be complete, the following steps are performed:
a1, numbering vehicles entering a region, and taking the vehicles as identification of the vehicles in the region, particularly for vehicles without license plates, wherein the number use time period is from 0 o ' clock to 23 o ' clock and 59 o ' clock of the day;
step A2, identifying information of the vehicle head, namely identifying the vehicle logo firstly, then identifying the vehicle model, and then identifying the color of the vehicle; if the identified vehicle head information: audi, Q5, black.
Step A3, judging whether the vehicle head has a license plate or not, if not, entering step A8, and if so, entering step A4;
step A4, preprocessing a license plate, and dividing license plate characters into two parts, namely front 2-bit characters and rear 5-bit characters;
step A5, identifying the rear 5 bits of the license plate characters; in a fixed area, the first 2-bit characters of the license plate are approximately the same, and the identification of the rear 5-bit characters and the identification of the front vehicle head information are basically finished on the identification of the vehicle information;
step A6, judging whether the vehicle information is the same as the vehicles with other numbers, if not, entering step A8, and if so, entering step A7; in a few cases, vehicles with the same information appear and need further confirmation;
according to statistical probability, in relatively stable areas such as residential districts and office building parking lots in a city, vehicle head information with high identification degree and 5-bit characters behind license plates can basically determine and distinguish vehicles in the areas. 2 characters in front of the license plate, wherein the first character is short for 31 provinces, autonomous regions and direct prefectures, such as 'Ebei' and 'Jing', and also characters used in special occasions, such as 'learning' on a coach car; the 2 nd character is 24 capital letters A-Z (the letter I is not used, and the letter O is rarely used), aiming at a specific city, such as Wuhan, the first character is 'Huo', the second character has a high probability of 'A', when the license plate character is recognized, the two characters are firstly used as a first standard comparison template, and the comparison sequence of the standard template is carried out according to the probability sequence of high probability events, so that the calculation process of the license plate character recognition algorithm can be greatly reduced.
A7, identifying the front 2-bit character of the license plate; when part of the license plate numbers are suspected in the area or a security problem occurs and the complete license plate number needs to be determined, adding a calling program in a software programming function of a central processing unit;
step A8, marking the vehicle to be finished; the technology for identifying the car logo, the car type, the color and the license plate in the step A8 is mature, and is not described herein again.
In order to explain the control method of the present invention in detail, the following description will be given in detail with reference to specific examples.
The invention discloses a control method of an intelligent barrier gate camera device, which comprises the following steps:
step 1: establishing a coordinate system by using a stroke midpoint O of the sliding block on the screw rod 4, wherein the screw rod 4 is used as a longitudinal coordinate, and the horizontal direction is used as a horizontal coordinate; the vertex is A, the bottom is B, the distances between OA and OB are both h/2, and the data unit 204 stores and processes the position coordinates at the moment; judging whether the slide block is at the zero point of the coordinate, if not, controlling the motion of the linear motor through a driving unit 22 below a controller unit 24 to move the linear motor to the zero point of the coordinate, and recording the linear coordinate by a displacement sensor 231 on the slide block; if yes, entering step 2;
step 2: after sensing that a vehicle enters the detection range, the ground sensing coil 232 transmits a signal to the controller unit 24, and then transmits the signal to the central processing unit 20 through the communication module 242, and the central processing unit 20 sends an instruction to the camera to take a picture, and the step 3 is performed;
and step 3: storing the images shot by the camera in an image unit 202, acquiring all information of the current locomotive according to the images shot by the camera, and if the information is confirmed to be complete, entering step 8, and if all the information of the current locomotive cannot be acquired, defining the left missing of the locomotive image as S1 and the right missing of the locomotive image as S2 according to the images shot by the camera; the shot image is preliminarily identified in the image unit 202, whether the information of the vehicle head is complete or not is judged, if not, the driving unit 22 controls the rotating motor to drive the camera to rotate, and the step 3 is repeated to judge; if yes, entering step 4;
and 4, step 4: judging the integrity of the current locomotive information, if so, entering step 9, and if not, entering step 5;
and 5: judging whether the left side of the image is missing, namely whether S1 is within the range of the irradiation angle of the camera 8, wherein the angle is alpha =15 degrees, if yes, the step 6 is carried out, and if not, the step 7 is carried out;
the optimum imaging range of the camera 8 is α =15 °, and the vertical distance from the vehicle head to the camera 8 is 4 to 5 meters, with reference to the model diagram 4.
Step 6: after the left side of the image is found to be missing, the rotating motor is driven to rotate a certain angle to the left side, at this time, the angle sensor 233 on the rotating motor records the rotating angle, the rotating angle is stored in the data unit 204, and the step 3 is entered;
and 7: judging whether the right side of the vehicle head information in the image is missing, namely whether S2 is within the range of the irradiation angle of the camera 8, wherein the angle is alpha =15 degrees, if yes, entering the step 8, and if not, entering the step 3;
and 8: after the image on the right side is found to be missing, the rotating motor is driven to rotate towards the right side, at the moment, the angle sensor 233 on the rotating motor records the rotating angle, the rotating angle is stored in the data unit 204, and the step 3 is carried out;
the rotation angle in the steps 6 and 8 is preferably 15 degrees, and the rotation angle is increased by 15 degrees on the basis of the previous rotation in the next rotation until complete vehicle head information can be identified;
step 9, identifying the vehicle information based on all the information of the vehicle head, and coding and storing the vehicle information;
step 10: the central processing sends an instruction to the controller unit 24 that the identification of the vehicle information has been completed, and the process goes to step 11;
step 11: the central processor 20 sends the content information to be displayed to the display 7.
It should be noted that if the complete vehicle head cannot be found by the rotating motor, it indicates that the position of the camera in the vertical direction is not appropriate. The driving unit 22 controls the linear motor to move up and down, and the specific method of the movement is as follows: starting from a zero point, moving to a midpoint h/4 of an OA distance h/2, searching for a locomotive, if the locomotive is not found, moving to a position h/8, and if the absolute value obtained by subtracting displacement values of the two displacement sensors 231 is k, namely k = | h/n-h/(n-1) |, and stopping searching until k is less than 30cm or part of the locomotive can be shot; similarly, the OB range can be inquired, the OB range is firstly moved to the middle point h/4 of the OB distance h/2, the locomotive is searched, if the OB range is not found, the locomotive is moved to the position h/8, and the like, and the search can be stopped until k is less than 30cm or part of the locomotive can be shot. The operation unit 205 searches for the car head by using a query method, and theoretical analysis and practice show that the query time and the control command can be reduced by half by using the intermediate query method.
The embodiment is suitable for the entrance and exit of a single lane, and the camera device is arranged on the right side of the driving direction of a left-turning lane; for a right-turn lane, the camera is mounted on the left side of the direction of travel.
On the basis of the first embodiment, a set of device in fig. 1 is added, and the device is suitable for left and right lanes, and is respectively installed on the left side and the right side. The specific added units and devices are as follows: the system comprises a camera, a display unit 21, a sensor unit 23, a controller unit 24 and a driving unit 22, wherein the two sets of devices realize communication with the central processing unit 20 through a communication module 242, when the ground induction coil 232 of the left lane detects a vehicle, the right set of device and the central processing unit 20 are operated, and when the ground induction coil 232 of the right lane detects the vehicle, the left set of device and the central processing unit 20 are operated.
The working principle of the specific embodiment is as follows: and starting the camera shooting function of the camera according to a signal detected by the vehicle, extracting the information of the vehicle head in the image according to the shot picture, and analyzing various conditions. When the information of the vehicle head is incomplete, the complete vehicle head can be quickly found through the linear motor and the rotating motor of the driving unit 22 and the sensor unit 23, and only partial display is needed. By judging the left and right missing condition of the vehicle head information, the rotating motor is controlled to drive the camera to rotate until the complete vehicle head information is found, and the query efficiency is doubled by adopting a query method as an operation mode of the finding process.
According to the intelligent barrier gate camera device, the support 13 is driven to move up and down through the movement of the telescopic mechanism, so that the camera can move up and down; the rotary driving body 12 provides power for the rotation on the horizontal plane of the camera, and the adjustment of the horizontal angle is realized; by adopting an efficient query method, the camera can move up and down and rotate on the horizontal plane quickly, the operation and response time of the whole system is greatly improved, most vehicles can be identified within 1-2S, and the operations of backing and advancing of vehicles which cannot identify license plates and the waiting time of subsequent vehicles are avoided.
The intelligent barrier gate camera device provided by the invention adopts a recognition mode with high vehicle information recognition degree aiming at a stable occasion area of a specific city, and particularly when a specific vehicle is inquired, the license plate number is influenced by light and distance, whether the vehicle is a target vehicle can be preliminarily judged from the appearance of the vehicle, the target locking is carried out, and then the vehicle is further confirmed from the license plate. The vehicle information identification method adopted simultaneously comprises the following steps: the method comprises the steps of vehicle number, vehicle head information identification (vehicle logo, model and color), vehicle head rear 5-bit identification, judgment of whether a vehicle with repeated numbers exists or not, and judgment of whether the front 2-bit character identification is needed or not.
The invention identifies the vehicle information from multiple aspects by carrying out an identification mode with high vehicle information identification degree aiming at the stable occasion area of a specific city, thereby greatly reducing the identification algorithm of the vehicle information, improving the system identification efficiency and accuracy rate, numbering the vehicles in the area and distinguishing and prompting the unlicensed vehicles; and vehicle information is recognized from multiple aspects by adopting license plate characters in stages, so that a recognition algorithm of the vehicle information is greatly reduced, the system recognition efficiency and the system recognition accuracy are improved, numbering processing is carried out on vehicles in the region, the unlicensed vehicles can be distinguished and prompted, the management efficiency of the parking lot barrier gate system is improved, and the management efficiency of the parking lot barrier gate system is improved.
Finally, the method of the present application is only a preferred embodiment and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.