A smart street light for parking lots based on image processing
By installing a lifting mechanism and a control mechanism on the parking lot street lamp, the camera can move up and down safely and simply, solving the safety and efficiency problems of camera maintenance on traditional street lamps, and improving the image quality through image processing technology.
Patent Information
- Application Number
- CN202311194456.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-15
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2043-09-15
AI Technical Summary
The maintenance of existing parking lot streetlight cameras requires personnel to climb to high places, which is dangerous and inefficient. Moreover, camera maintenance on traditional streetlights requires the use of external tools, which poses safety hazards and efficiency issues.
Design a smart street light based on image processing, which uses a lifting mechanism and a control mechanism to enable the camera to move up and down through the built-in lifting mechanism and control mechanism. It is simple to operate, saves power, is green and environmentally friendly, and performs image processing through a combination of the Otsu method and the watershed algorithm. Preprocessing to improve image continuity.
It solves the problem of camera maintenance requiring climbing, reduces the risk and time of maintenance, improves maintenance efficiency, and improves image continuity through image preprocessing.
Smart Images

Figure CN117404636B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of street lamps, and in particular to a smart street lamp for parking lots based on image processing. Background Art
[0002] Parking lots are places for vehicles to park. There are simple parking lots with only parking spaces but no management or fees, and there are paid parking lots with entrances and exits, parking managers, and timekeepers. Parking lots can be open-air or indoor, and open-air parking lots need to be illuminated by parking lot street lights at night. Currently, most parking lot street lights are equipped with photographic devices to monitor the parking lot in real time to prevent vehicle theft.
[0003] However, the current parking lot street lamps are relatively high, and the photographic device is generally installed above the parking lot street lamps. When maintenance personnel repair the photographic device, they need to climb up above the street lamps with the help of tools, which is very dangerous and reduces maintenance efficiency. Summary of the invention
[0004] In view of the above technical problems, the present invention aims to provide a smart street light for parking lots based on image processing. To solve the above technical problems, the present invention adopts the following technical solutions:
[0005] A smart street lamp for parking lots based on image processing, comprising a lamp post, a crossbar and a light source, wherein the crossbar is fixed to the upper end of the lamp post, and the light source is installed on the bottom wall of the crossbar;
[0006] A first cavity is provided in the lamp post, a glass sheet is inlaid on the side wall of the first cavity, an inspection port connected to the outer wall of the lamp post is provided on the side wall of the first cavity, an inspection door that can be opened and closed is provided on the outer wall of the lamp post, a lifting mechanism and a control mechanism are provided in the first cavity, the control mechanism is used to control the movement of the lifting mechanism, and a camera is installed on the lifting mechanism;
[0007] The camera is provided with a shooting module, a frame extraction module and an image preprocessing module which are electrically connected in sequence. The shooting module is used to shoot the monitoring area to obtain monitoring video data. The frame extraction module is used to extract the monitoring video data with an adaptive frame number interval to obtain video frames. The image preprocessing module preprocesses the video frames to obtain preprocessed images.
[0008] Advantageously, a fifth cavity is further provided in the lamp post, a first groove is provided on the top wall of the first cavity, and a third groove is provided on the side wall of the first cavity;
[0009] The lifting mechanism comprises a guide wheel, a transmission rope, a photographing device, a first guide rail plate, a second guide rail plate, a first rotating plate, a ball storage box, a guide sheet, a bottom plate, a ball box and a mass ball;
[0010] The guide wheel is rotatably connected to the rear wall of the first cavity, the first guide plate and the second guide plate are respectively fixed to the rear wall of the first cavity, the photographic device is slidably connected to the side wall of the first guide plate, a third cavity is opened in the photographic device, the camera is installed in the third cavity, a third channel is opened on the second guide plate, the first rotating plate is rotatably connected to the inner wall of the third channel through the first rotating shaft, the top wall of the first rotating plate is connected to the top wall of the third channel through the first elastic member, the ball storage box is slidably connected to the side wall of the second guide plate, a fourth cavity is opened on the ball storage box, the guide sheet is fixed to the top wall of the ball storage box, the bottom plate is rotatably connected to the bottom wall of the ball storage box through the rebound rotating shaft, the mass ball is placed in the fourth cavity, the pass box is slidably connected to the side wall of the third slot body, the top wall of the pass box is provided with a fourth slot body, and the side wall of the fourth slot body is provided with a guide notch;
[0011] Advantageously, the side wall of the first cavity is further provided with a second groove, the lamp post is further provided with a second cavity, and the first cavity is connected to the front wall of the lamp post through the first channel and the second channel;
[0012] The control mechanism includes a second rotating plate, a second rotating shaft, a second elastic member, a first transmission rod, a second transmission rod, a third transmission rod, an extension bar, a first wedge block, a fourth transmission rod, a fifth transmission rod, a second wedge block, a third elastic member, a connecting plate, a guide rail plate, a third rotating shaft, a push plate, a rotating wheel, a fourth elastic member, a third wedge block, a transmission plate, a fifth elastic member, a sixth transmission rod, a seventh transmission rod, an eighth transmission rod, a slide plate, a connecting plate, a first pressing plate and a second pressing plate.
[0013] The second rotating plate is rotatably connected to the rear wall of the second groove body by the second rotating shaft, the second rotating plate extends into the third channel at the left end of the second rotating plate through the second elastic member and the bottom wall of the third channel, the top wall of the second rotating plate is abutted against the bottom wall of the first rotating plate, the first transmission rod is slidably connected to the side wall of the second groove body, the second transmission rod is fixedly connected to the side wall of the first transmission rod, the bottom wall of the second transmission rod and the top wall of the second rotating plate are abutted, the third transmission rod is fixedly connected to the front wall of the first transmission rod, the lower end of the first transmission rod extends into the second cavity, the first transmission rod is located in the second cavity, the extension bar is fixedly connected to the front wall of the bottom plate, the first wedge block is fixedly connected to the side wall of the extension bar, the fourth transmission rod is slidably connected to the side wall of the second cavity, the upper end of the fourth transmission rod extends into the first cavity, the fourth transmission rod, the connecting plate and the guide rail plate are respectively fixed to the front wall of the fourth transmission rod, the fifth transmission rod is located in the second cavity, the connecting plate and the guide rail plate are located in the first cavity, and the second wedge block is slidably connected to the top of the guide rail plate The cam is connected to the rear wall of the first cavity by a third elastic member, and the second wedge block is connected to the connecting piece by a third elastic member. The push plate is rotatably connected to the rear wall of the first cavity by a third rotating shaft. The rotating wheel is rotatably connected to one end of the push plate. The bottom wall of the push plate is connected to the bottom wall of the first cavity by a fourth elastic member. The transmission plate is slidably connected to the inner wall of the fifth cavity. A transmission channel is provided on the transmission plate. The transmission channel includes a vertical section and an inclined section. The third wedge block is fixedly connected to the side wall of the transmission plate. The third wedge block extends into the first cavity. The rotating wheel and the bottom wall of the third wedge block abut against each other. The transmission plate is connected to the side wall of the fifth cavity by a fifth elastic member. The rear wall of the fifth cavity is slidably connected with a seventh transmission rod. The front wall of the seventh transmission rod is fixedly connected with an eighth transmission rod. The eighth transmission rod is slidably connected to the inner wall of the transmission channel. The lower end of the seventh transmission rod extends into the second cavity. The lower end of the seventh transmission rod is connected to the fourth transmission rod by the sixth transmission rod. The front end of the fifth transmission rod extends to the front of the lamp post through the first channel, and the front end of the third transmission rod extends to the front of the lamp post through the second channel.
[0014] The slide plate is slidably connected to the front wall of the lamp post, the first pressing plate is fixed to the top wall of the slide plate, the bottom wall of the second pressing plate is connected to the top wall of the slide plate through a connecting plate, the bottom wall of the slide plate is connected to the fixing plate through a spring, and the fixing plate is fixed to the front wall of the lamp post.
[0015] Advantageously, the first cavity side wall is fixedly connected with a first elastic buffer plate and a limiting plate, the limiting plate top wall is fixedly connected with a second elastic buffer plate, and the third slot top wall is fixedly connected with a third elastic buffer plate.
[0016] Advantageously, a limiting plate is fixedly connected to the top wall of the first cavity.
[0017] Advantageously, a track is fixedly connected to the front wall of the lamp post, and the slide plate is slidably connected to the track.
[0018] Advantageously, the bottom wall of the third cavity is fixedly connected to a base, and the camera is mounted on the base.
[0019] Advantageously, two electrical plugs are fixedly connected to the bottom wall of the camera, and two electrical sockets are provided on the top wall of the base, and the two electrical plugs are respectively inserted into the two electrical sockets.
[0020] Advantageously, the top wall of the base is inclined.
[0021] Advantageously, the preprocessing of the video frame to obtain the preprocessed image includes:
[0022] Grayscale the video frame to obtain a grayscale image;
[0023] Performing noise reduction processing on the grayscale image to obtain a noise-reduced image;
[0024] Perform foreground extraction processing on the denoised image to obtain a preprocessed image.
[0025] The present invention has the following beneficial effects:
[0026] The present invention can drive the photographing device and the third cavity to move up and down by moving the second pressing plate, the connecting plate and the first pressing plate left and right. The operation is simple and convenient, no electric drive is required, electricity is saved, and it is green and environmentally friendly. It solves the problem that the maintenance of the camera on the traditional street lamp requires personnel to climb up the street lamp with the help of external tools, reduces the danger of maintenance, and improves the maintenance efficiency. Through the mutual linkage of the lifting mechanism and the control mechanism, the two mechanisms can be reset after operation, so as to facilitate the next operation. The design is ingenious and the linkage is high.
[0027] The Otsu method and the watershed algorithm are combined to process the denoised image, obtain the intersection of the processing results, and repair the holes based on the intersection, thereby improving the continuity of the image. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The present invention is further described using the accompanying drawings, but the embodiments in the accompanying drawings do not constitute any limitation to the present invention. A person skilled in the art can obtain other drawings based on the following drawings without creative work.
[0029] Figure 1 It is a structural schematic diagram of a smart street lamp for parking lots based on image processing according to the present invention;
[0030] Figure 2 The present invention Figure 1 The enlarged view of point A in the middle;
[0031] Figure 3 The present invention Figure 1 The enlarged view of point B in the middle;
[0032] Figure 4 The present invention Figure 3 An enlarged view of the middle transmission plate and the seventh transmission rod;
[0033] Figure 5 The present invention Figure 2 A magnified view of the photographic device;
[0034] Figure 6 The present invention Figure 5 Left view of the center camera and base;
[0035] Figure 7 The present invention Figure 1 A schematic diagram of the structure of the lower end of the outer wall of the middle lamp post;
[0036] Figure 8 The present invention Figure 3 A top view of the middle extension strip and the first wedge.
[0037] Figure numerals: 1, lamp post; 2, cross bar; 3, light source; 4, first cavity; 5, second cavity; 6, first slot; 7, second slot; 8, first channel; 9, second channel; 10, guide wheel; 11, transmission rope; 12, photographic device; 13, third cavity; 14, first guide plate; 15, glass sheet; 16, second guide plate; 17, third channel; 18, first rotating plate; 19, first rotating shaft; 20, first elastic member; 21, second rotating plate; 22, second rotating shaft; 23, second elastic member; 24, first transmission rod; 25, second transmission rod; 26, third transmission rod; 27, limit plate; 28, first elastic buffer plate; 29, ball storage box; 30, fourth cavity; 31, guide plate; 32, bottom plate; 33, extension strip; 34, first wedge block; 35, fourth transmission rod; 36, fifth transmission rod; 37 , second wedge block; 38, third elastic member; 39, connecting plate; 40, guide rail plate; 41, limiting plate; 42, second elastic buffer plate; 43, third slot body; 44, third elastic buffer plate; 45, pass box; 46, fourth slot body; 47, guide notch; 48, third rotating shaft; 49, push plate; 50, rotating wheel; 51, fourth elastic member; 52, third wedge block; 53, transmission plate; 531, transmission channel; 54. Fifth cavity; 55. Fifth elastic member; 56. Sixth transmission rod; 57. Seventh transmission rod; 58. Eighth transmission rod; 59. Mass sphere; 60. Slide plate; 601. Spring; 602. Fixing plate; 61. Connecting plate; 62. First pressure plate; 63. Second pressure plate; 64. Track; 65. Camera; 66. Base; 67. Electric plug; 68. Electric socket; 69. Inspection port; 70. Inspection door. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] In the description of the present invention, it should be noted that the terms "vertical", "upper", "lower", "horizontal", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, "first", "second", "third", and "fourth" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0040] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection, it can be a mechanical connection, it can be an electrical connection, it can be a direct connection, it can be connected through an intermediate medium, and it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0041] like Figure 1-Figure 8 As shown, a smart street lamp for parking lot based on image processing includes a lamp post 1, a crossbar 2 and a light source 3, wherein the crossbar 2 is fixed to the upper end of the lamp post 1, and the light source 3 is installed on the bottom wall of the crossbar 2;
[0042] A first cavity 4 is provided in the lamp post 1, a glass sheet 15 is inlaid on the side wall of the first cavity 4, an inspection port 69 connected to the outer wall of the lamp post 1 is provided on the side wall of the first cavity 4, and an inspection door 70 that can be opened and closed is provided on the outer wall of the lamp post 1. A lifting mechanism and a control mechanism are provided in the first cavity 4, and the control mechanism is used to control the movement of the lifting mechanism, and a camera 65 is installed on the lifting mechanism;
[0043] The camera 65 is provided with a shooting module, a frame extraction module and an image preprocessing module which are electrically connected in sequence. The shooting module is used to shoot the monitoring area to obtain monitoring video data. The frame extraction module is used to extract the monitoring video data with an adaptive frame number interval to obtain video frames. The image preprocessing module preprocesses the video frames to obtain preprocessed images. Embodiment 1
[0044] The camera 65 can monitor the monitoring area through the glass sheet 15. When the camera 65 needs to be inspected and repaired, the maintenance personnel can control the camera 65 to rise and fall along the lifting mechanism through the control mechanism, so that the maintenance personnel can easily inspect the camera 65, thereby improving the maintenance efficiency. There is no need to climb onto the street lamp, which is safe and reliable.
[0045] According to an optional embodiment of the present invention, a fifth cavity 54 is further provided in the lamp post 1, a first groove 6 is provided on the top wall of the first cavity 4, and a third groove 43 is provided on the side wall of the first cavity 4;
[0046] The lifting mechanism includes a guide wheel 10, a transmission rope 11, a photographing device 12, a first guide plate 14, a second guide plate 16, a first rotating plate 18, a ball storage box 29, a guide plate 31, a bottom plate 32, a ball box 45 and a mass ball 59;
[0047] The guide wheel 10 is rotatably connected to the rear wall of the first cavity 4, the first guide plate 14 and the second guide plate 16 are respectively fixed to the rear wall of the first cavity 4, the photographing device 12 is slidably connected to the side wall of the first guide plate 14, the photographing device 12 is provided with a third cavity 13, the camera 65 is installed in the third cavity 13, the second guide plate 16 is provided with a third channel 17, the first rotating plate 18 is rotatably connected to the inner wall of the third channel 17 through the first rotating shaft 19, and the top wall of the first rotating plate 18 is rotatably connected to the inner wall of the third channel 17 through the first elastic The member 20 is connected to the top wall of the third channel 17, the ball storage box 29 is slidably connected to the side wall of the second guide plate 16, a fourth cavity 30 is opened on the ball storage box 29, a guide sheet 31 is fixed to the top wall of the ball storage box 29, a bottom plate 32 is rotatably connected to the bottom wall of the ball storage box 29 through a rebound shaft, a mass ball 59 is placed in the fourth cavity 30, a pass box 45 is slidably connected to the side wall of the third slot 43, a fourth slot 46 is opened on the top wall of the pass box 45, and a guide notch 47 is opened on the side wall of the fourth slot 46;
[0048] According to an optional embodiment of the present invention, a second groove 7 is further provided on the side wall of the first cavity 4, a second cavity 5 is further provided in the lamp post 1, the first cavity 4 is connected to the front wall of the lamp post 1 through a first channel 8 and a second channel 9, and the control mechanism includes a second rotating plate 21, a second rotating shaft 22, a second elastic member 23, a first transmission rod 24, a second transmission rod 25, a third transmission rod 26, an extension bar 33, a first wedge block 34, a fourth transmission rod 35, a fifth transmission rod 36, a second wedge block 37, a third elastic member 38, a connecting plate 39, a guide rail plate 40, a third rotating shaft 48, a push plate 49, a rotating wheel 50, a fourth elastic member 51, a third wedge block 52, a transmission plate 53, a fifth elastic member 55, a sixth transmission rod 56, a seventh transmission rod 57, an eighth transmission rod 58, a slide plate 60, a connecting plate 61, a first pressing plate 62 and a second pressing plate 63.
[0049] The second rotating plate 21 is rotatably connected to the rear wall of the second slot body 7 through the second rotating shaft 22, the left end of the second rotating plate 21 extends into the third channel 17, the left end of the second rotating plate 21 is connected to the bottom wall of the third channel 17 through the second elastic member 23, the top wall of the second rotating plate 21 and the bottom wall of the first rotating plate 18 are against each other, the first transmission rod 24 is slidably connected to the side wall of the second slot body 7, the second transmission rod 25 is fixedly connected to the side wall of the first transmission rod 24, the bottom wall of the second transmission rod 25 is against the top wall of the second rotating plate 21, the third transmission rod 26 is fixedly connected to the front wall of the first transmission rod 24, and the lower end of the first transmission rod 24 The first transmission rod 24 is located in the second cavity 5, the extension strip 33 is fixed to the front wall of the bottom plate 32, the first wedge block 34 is fixed to the side wall of the extension strip 33, the fourth transmission rod 35 is slidably connected to the side wall of the second cavity 5, the upper end of the fourth transmission rod 35 extends into the first cavity 4, the fourth transmission rod 35, the connecting piece 39 and the guide rail piece 40 are respectively fixed to the front wall of the fourth transmission rod 35, the fifth transmission rod 36 is located in the second cavity 5, the connecting piece 39 and the guide rail piece 40 are located in the first cavity 4, and the second wedge block 37 is slidably connected to the top wall of the guide rail piece 40. The second wedge block 37 is connected through the third elastic member 38 and the connecting piece 39, the push plate 49 is rotatably connected to the rear wall of the first cavity 4 through the third rotating shaft 48, the rotating wheel 50 is rotatably connected to one end of the push plate 49, the bottom wall of the push plate 49 is connected to the bottom wall of the first cavity 4 through the fourth elastic member 51, the transmission plate 53 is slidably connected to the inner wall of the fifth cavity 54, the transmission plate 53 is provided with a transmission channel 531, the transmission channel 531 includes a vertical section and an inclined section, the third wedge block 52 is fixedly connected to the side wall of the transmission plate 53, the third wedge block 52 extends into the first cavity 4, the rotating wheel 50 and the bottom wall of the third wedge block 52 The transmission plate 53 is connected to the side wall of the fifth cavity 54 through the fifth elastic member 55, the rear wall of the fifth cavity 54 is slidably connected with the seventh transmission rod 57, the front wall of the seventh transmission rod 57 is fixedly connected with the eighth transmission rod 58, the eighth transmission rod 58 is slidably connected to the inner wall of the transmission channel 531, the lower end of the seventh transmission rod 57 extends into the second cavity 5, the lower end of the seventh transmission rod 57 is connected to the fourth transmission rod 35 through the sixth transmission rod 56, the front end of the fifth transmission rod 36 passes through the first channel 8 to extend to the front of the lamp post 1, and the front end of the third transmission rod 26 passes through the second channel 9 to extend to the front of the lamp post 1;
[0050] The slide plate 60 is slidably connected to the front wall of the lamp post 1, the first pressure plate 62 is fixed to the top wall of the slide plate 60, the bottom wall of the second pressure plate 63 is connected to the top wall of the slide plate 60 through the connecting plate 61, the bottom wall of the slide plate 60 is connected to the fixing plate 602 through the spring 601, and the fixing plate 602 is fixed to the front wall of the lamp post 1.
[0051] According to an optional embodiment of the present invention, the first cavity 4 has a first elastic buffer plate 28 and a limit plate 41 fixedly connected to its side wall, the limit plate 41 has a second elastic buffer plate 42 fixedly connected to its top wall, and the third slot 43 has a third elastic buffer plate 44 fixedly connected to its top wall.
[0052] According to an optional implementation of the present invention, a limiting plate 27 is fixedly connected to the top wall of the first cavity 4 .
[0053] According to an optional implementation of the present invention, a track 64 is fixedly connected to the front wall of the lamp post 1 , and the slide plate 60 is slidably connected to the track 64 .
[0054] According to an optional implementation of the present invention, the bottom wall of the third cavity 13 is fixedly connected to a base 66 , and the camera 65 is installed on the base 66 .
[0055] According to an optional embodiment of the present invention, two electrical plugs 67 are fixedly connected to the bottom wall of the camera 65 , and two electrical sockets 68 are opened on the top wall of the base 66 , and the two electrical plugs 67 are respectively inserted into the two electrical sockets 68 .
[0056] According to an optional implementation of the present invention, the top wall of the base 66 is in an inclined shape.
[0057] Embodiment 2: In the initial state, if Figure 1 As shown, the photographic device 12 is located at the top, the ball storage box 29 is located at the bottom, the mass ball 59 is located in the fourth cavity 30, and the bottom plate 32 supports the mass ball 59.
[0058] The camera 65 can monitor the external monitoring area through the glass sheet 15. When the camera 65 fails or needs regular maintenance, the second pressure plate 63 is moved to the left by the foot, so that the fifth transmission rod 36 is located between the second pressure plate 63 and the first pressure plate 62, and the second pressure plate 63 is stepped on, thereby driving the fifth transmission rod 36, the fourth transmission rod 35, the second wedge block 37, the sixth transmission rod 56, the seventh transmission rod 57, and the eighth transmission rod 58 to move downward, and the bottom wall of the second wedge block 37 and the top wall of the first wedge block 34 are against each other, and the second wedge block 37 drives the first wedge block 34 to move downward, thereby driving the bottom plate 32 to rotate clockwise and tilt, and the mass sphere 59 The camera 12 rolls along the inclined bottom plate 32 into the guide notch 47 of the ball box 45, and falls into the fourth slot 46 along the inclined surface of the bottom wall of the guide notch 47. At this time, the camera 12 is heavier than the ball storage box 29, and the camera 12 moves downward under its own gravity. After the camera 12 and the first elastic buffer plate 28 abut against each other, the first elastic buffer plate 28 can slow down the camera 12 from moving too fast downward, which may cause damage to the camera 12. The camera 12 pulls the ball storage box 29 upward through the transmission rope 11, and stops moving downward after the bottom wall of the camera 12 abuts against the second elastic buffer plate 42. The second elastic buffer plate 42 has a buffering function, and further To prevent the photographic device 12 from being damaged, the maintenance personnel can open the inspection door 70, inspect the camera 65 through the inspection port 69, and can directly take out the camera 65 for inspection. After the inspection is completed, the two electrical plugs 67 are aligned with the two electrical sockets 68 and inserted. The electrical plug 67 is inserted into the electrical socket 68 so that the power supply of the street lamp can be supplied to the camera 65 through the electrical plug 67. When the eighth transmission rod 58 continues to move downward, it passes through the vertical section of the transmission channel 531 and then enters the inclined section, thereby driving the transmission plate 53 and the third wedge block 52 to move rightward. After the rotating wheel 50 loses the support limit of the third wedge block 52, the push plate 49 and the rotating wheel 50 are in the fourth spring position. Under the action of the elastic force of the elastic member 51, it rotates rapidly counterclockwise around the third rotating shaft 48, so that the push plate 49 collides with the ball box 45, pushing the ball box 45 upward, and the ball box 45 quickly moves up until it contacts the third elastic buffer plate 44 and then rebounds and falls. The mass ball 59 in the fourth groove body 46 will be bounced up, move up along the right wall of the second guide plate 16 and the right wall of the first cavity 4, enter the first groove body 6 and fall to the top wall of the first rotating plate 18. The foot releases the second pressure plate 63, and the rebound shaft drives the bottom plate 32 and the first wedge block 34 to rotate counterclockwise, thereby driving the second wedge block 37, the fourth transmission rod 35, and the second pressure plate 63 to move up and reset.
[0059] After the inspection is completed, the second pressing plate 63 is moved to the right with the foot, so that the third transmission rod 26 is located between the second pressing plate 63 and the first pressing plate 62, and the second pressing plate 63 is stepped on to drive the third transmission rod 26, the first transmission rod 24, and the second transmission rod 25 to move downward, thereby driving the second rotating plate 21 to rotate clockwise around the second rotating shaft 22, so that the second rotating plate 21 drives the first rotating plate 18 to rotate counterclockwise around the first rotating shaft 19, and the mass ball 59 on the top wall of the first rotating plate 18 can fall into the fourth cavity 30. The weight of the ball storage box 29 is heavier than that of the photographic device 12. The ball storage box 29 moves downward, thereby driving the photographic device 12 through the transmission rope 11 The position 12 is moved up and reset so that the camera 65 can monitor the monitoring area through the glass sheet 15. When the first wedge block 34 moves down, it will push the second wedge block 37 to overcome the elastic force of the third elastic member 38 and move to the left. When the first wedge block 34 is moved below the second wedge block 37, the second wedge block 37 moves right and resets, so that the second wedge block 37 can drive the bottom plate 32 to move. After releasing the first pressure plate 62, the first rotating plate 18 is reset under the elastic force of the first elastic member 20, and the second rotating plate 21 is reset under the elastic force of the second elastic member 23. The second transmission rod 25, the first transmission rod 24, and the second pressure plate 63 are driven by the second rotating plate 21 to move up and reset.
[0060] This embodiment can drive the photographic device 12 and the third cavity 13 to move up and down by moving the second pressure plate 63, the connecting plate 61, and the first pressure plate 62 left and right. The operation is simple and convenient, no electric drive is required, electricity is saved, and it is green and environmentally friendly. It solves the problem that the maintenance of the camera on the traditional street lamp requires personnel to climb up the street lamp with the help of external tools, reduces the danger of maintenance, and improves the maintenance efficiency. Through the mutual linkage of the lifting mechanism and the control mechanism, the two mechanisms can be reset after operation to facilitate the next operation. The design is ingenious and the linkage is high.
[0061] According to an optional implementation of the present invention, preprocessing the video frame to obtain the preprocessed image includes:
[0062] Grayscale the video frame to obtain a grayscale image;
[0063] Performing noise reduction processing on the grayscale image to obtain a noise-reduced image;
[0064] Perform foreground extraction processing on the denoised image to obtain a preprocessed image. Embodiment 3
[0065] In the camera 65, a shooting module is used to shoot the monitoring area to obtain monitoring video data, and the obtained monitoring video data is transmitted to the frame extraction module. The frame extraction module uses an adaptive frame number interval to extract the monitoring video data to obtain a video frame. After the image preprocessing module obtains the video frame, the grayscale module is used to grayscale the video frame to obtain a grayscale image, and then the noise reduction module is used to reduce the noise of the grayscale image to obtain a noise reduction image, and then the foreground extraction module is used to extract the foreground of the noise reduction image to obtain a preprocessed image.
[0066] The foreground extraction module uses the Otsu method to perform foreground extraction on the denoised image to obtain the set of foreground pixels rdSet, and then uses the watershed algorithm to perform foreground extraction on the denoised image to obtain the set of foreground pixels sdSet. Finally, the intersection tdSet of rdSet and sdSet is obtained, and the edge pixels in tdSet are used as seed pixels to perform image growth processing to obtain the preprocessed image.
[0067] The Otsu method and the watershed algorithm are combined to process the denoised image, obtain the intersection of the processing results, and repair the holes based on the intersection, thereby improving the continuity of the image.
[0068] The components, modules, mechanisms and devices not described in detail in the present invention are all universal standard parts or components known to those skilled in the art, and their structures and principles can be known to those skilled in the art through technical manuals or conventional experimental methods.
[0069] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention, rather than to limit the scope of protection of the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the essence and scope of the technical solution of the present invention.
Claims
1. A smart street light for parking lots based on image processing, characterized in that: It comprises a lamp post (1), a crossbar (2) and a light source (3), wherein the crossbar (2) is fixedly connected to the upper end of the lamp post (1), and the light source (3) is installed on the bottom wall of the crossbar (2); A first cavity (4) is provided in the lamp post (1), a glass sheet (15) is inlaid on the side wall of the first cavity (4), an inspection port (69) connected to the outer wall of the lamp post (1) is provided on the side wall of the first cavity (4), an inspection door (70) that can be opened and closed is provided on the outer wall of the lamp post (1), a lifting mechanism and a control mechanism are provided in the first cavity (4), the control mechanism is used to control the movement of the lifting mechanism, and a camera (65) is installed on the lifting mechanism; The camera (65) is provided with a shooting module, a frame extraction module and an image preprocessing module which are electrically connected in sequence, the shooting module is used to shoot the monitoring area to obtain monitoring video data, the frame extraction module is used to extract frames of the monitoring video data using an adaptive frame number interval to obtain video frames, and the image preprocessing module preprocesses the video frames to obtain preprocessed images; A fifth cavity (54) is also provided in the lamp post (1); a first groove (6) is provided on the top wall of the first cavity (4); and a third groove (43) is provided on the side wall of the first cavity (4); The lifting mechanism comprises a guide wheel (10), a transmission rope (11), a photographing device (12), a first guide plate (14), a second guide plate (16), a first rotating plate (18), a ball storage box (29), a guide plate (31), a bottom plate (32), a ball box (45) and a mass ball (59); The guide wheel (10) is rotatably connected to the rear wall of the first cavity (4); the first guide plate (14) and the second guide plate (16) are respectively fixed to the rear wall of the first cavity (4); the photographic device (12) is slidably connected to the side wall of the first guide plate (14); a third cavity (13) is provided in the photographic device (12); the camera (65) is installed in the third cavity (13); a third channel (17) is provided on the second guide plate (16); a first rotating plate (18) is rotatably connected to the inner wall of the third channel (17) via a first rotating shaft (19); and a top wall of the first rotating plate (18) is rotatably connected to the inner wall of the third channel (17) via a first elastic member. The ball storage box (29) is connected to the top wall of the third channel (17), the ball storage box (29) is slidably connected to the side wall of the second guide rail plate (16), a fourth cavity (30) is provided on the ball storage box (29), a guide sheet (31) is fixedly connected to the top wall of the ball storage box (29), a bottom plate (32) is rotatably connected to the bottom wall of the ball storage box (29) through a rebound shaft, a mass ball (59) is placed in the fourth cavity (30), a pass box (45) is slidably connected to the side wall of the third slot body (43), a fourth slot body (46) is provided on the top wall of the pass box (45), and a guide notch (47) is provided on the side wall of the fourth slot body (46); The side wall of the first cavity (4) is also provided with a second groove (7), the lamp post (1) is also provided with a second cavity (5), the first cavity (4) is connected to the front wall of the lamp post (1) through a first channel (8) and a second channel (9), and the control mechanism comprises a second rotating plate (21), a second rotating shaft (22), a second elastic member (23), a first transmission rod (24), a second transmission rod (25), a third transmission rod (26), an extension bar (33), a first wedge block (34), a fourth transmission rod (35 ), a fifth transmission rod (36), a second wedge block (37), a third elastic member (38), a connecting plate (39), a guide rail plate (40), a third rotating shaft (48), a push plate (49), a rotating wheel (50), a fourth elastic member (51), a third wedge block (52), a transmission plate (53), a fifth elastic member (55), a sixth transmission rod (56), a seventh transmission rod (57), an eighth transmission rod (58), a slide plate (60), a connecting plate (61), a first pressing plate (62) and a second pressing plate (63); The second rotating plate (21) is rotatably connected to the rear wall of the second trough body (7) through a second rotating shaft (22), the left end of the second rotating plate (21) extends into the third channel (17), the left end of the second rotating plate (21) is connected to the bottom wall of the third channel (17) through a second elastic member (23), the top wall of the second rotating plate (21) and the bottom wall of the first rotating plate (18) are in contact with each other, the first transmission rod (24) is slidably connected to the side wall of the second trough body (7), the second transmission rod (25) is fixedly connected to the side wall of the first transmission rod (24), the bottom wall of the second transmission rod (25) and the top wall of the second rotating plate (21) are in contact with each other, the third transmission rod (26) is fixedly connected to the front wall of the first transmission rod (24), and the lower end of the first transmission rod (24) extends to the third transmission rod (26). The first transmission rod (24) is located in the second cavity (5), the extension bar (33) is fixed to the front wall of the bottom plate (32), the first wedge block (34) is fixed to the side wall of the extension bar (33), the fourth transmission rod (35) is slidably connected to the side wall of the second cavity (5), the upper end of the fourth transmission rod (35) extends into the first cavity (4), the fourth transmission rod (35), the connecting piece (39) and the guide rail piece (40) are respectively fixed to the front wall of the fourth transmission rod (35), the fifth transmission rod (36) is located in the second cavity (5), the connecting piece (39) and the guide rail piece (40) are located in the first cavity (4), the second wedge block (37) is slidably connected to the top wall of the guide rail piece (40), and the fifth transmission rod (36) is located in the second cavity (5). The two wedge blocks (37) are connected via a third elastic member (38) and a connecting sheet (39); the push plate (49) is rotatably connected to the rear wall of the first cavity (4) via a third rotating shaft (48); the rotating wheel (50) is rotatably connected to one end of the push plate (49); the bottom wall of the push plate (49) is connected to the bottom wall of the first cavity (4) via a fourth elastic member (51); the transmission plate (53) is slidably connected to the inner wall of the fifth cavity (54); a transmission channel (531) is provided on the transmission plate (53); the transmission channel (531) includes a vertical section and an inclined section; the third wedge block (52) is fixedly connected to the side wall of the transmission plate (53); the third wedge block (52) extends into the first cavity (4); the rotating wheel (50) and the third wedge block (52) The bottom walls are against each other, the transmission plate (53) is connected to the side wall of the fifth cavity (54) through the fifth elastic member (55), the rear wall of the fifth cavity (54) is slidably connected to the seventh transmission rod (57), the front wall of the seventh transmission rod (57) is fixedly connected to the eighth transmission rod (58), the eighth transmission rod (58) is slidably connected to the inner wall of the transmission channel (531), the lower end of the seventh transmission rod (57) extends into the second cavity (5), the lower end of the seventh transmission rod (57) is connected to the fourth transmission rod (35) through the sixth transmission rod (56), the front end of the fifth transmission rod (36) passes through the first channel (8) and extends to the front of the lamp post (1), and the front end of the third transmission rod (26) passes through the second channel (9) and extends to the front of the lamp post (1); The slide plate (60) is slidably connected to the front wall of the lamp post (1), the first pressing plate (62) is fixedly connected to the top wall of the slide plate (60), the bottom wall of the second pressing plate (63) is connected to the top wall of the slide plate (60) via a connecting plate (61), the bottom wall of the slide plate (60) is connected to the fixing plate (602) via a spring (601), and the fixing plate (602) is fixedly connected to the front wall of the lamp post (1); The first cavity (4) has a side wall fixedly connected to a first elastic buffer plate (28) and a limit plate (41), the limit plate (41) has a top wall fixedly connected to a second elastic buffer plate (42), and the third slot (43) has a top wall fixedly connected to a third elastic buffer plate (44); The top wall of the first cavity (4) is fixedly connected to a limiting plate (27).
2. According to claim 1, the intelligent street light for parking lot based on image processing is characterized in that: The front wall of the lamp post (1) is fixedly connected with a track (64), and the slide plate (60) is slidably connected to the track (64).
3. According to claim 2, the intelligent street light for parking lot based on image processing is characterized in that: The bottom wall of the third cavity (13) is fixedly connected to a base (66), and the camera (65) is installed on the base (66).
4. The smart street light for parking lot based on image processing according to claim 3 is characterized in that: The bottom wall of the camera (65) is fixedly connected with two electrical plugs (67), and the top wall of the base (66) is provided with two electrical sockets (68), and the two electrical plugs (67) are respectively inserted into the two electrical sockets (68).
5. The smart street light for parking lot based on image processing according to claim 4 is characterized in that: The top wall of the machine base (66) is in the shape of an inclined surface.
6. A smart street light for parking lot based on image processing according to any one of claims 1-5, characterized in that: The preprocessing of the video frame to obtain the preprocessed image includes: Grayscale the video frame to obtain a grayscale image; Performing noise reduction processing on the grayscale image to obtain a noise-reduced image; Perform foreground extraction processing on the denoised image to obtain a preprocessed image.
