Electronic fence and method for setting the electronic fence
By using positioning stakes and cameras in the electronic fence to identify the fence area, it solves the problems in the existing technology that the electronic fence cannot accurately distinguish vehicles and people and the calibration is complicated, realizes the rapid setting and correction of the fence, and provides an area for cargo handling and loading. Accident accountability function, and alarm when the positioning pile is touched.
Patent Information
- Application Number
- CN201910578082.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-28
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2039-06-28
AI Technical Summary
Existing electronic fences cannot accurately distinguish vehicles and people, are complex to calibrate and prone to failure, and cannot achieve accountability for accidents in cargo handling and loading areas.
Two positioning piles set face to face are used. The positioning piles are equipped with horizontal ribbons and cameras. The camera captures images to calculate the boundaries, identify the fence area, and communicate with the host computer to achieve rapid setting and correction of the electronic fence, combined with alarms. The device performs object recognition and alarm.
It realizes the rapid setting and correction of electronic fences, eliminates the blind area of a single positioning pile, comprehensively covers the fence area, provides a basis for accident accountability in the cargo handling and loading area, and issues an alarm when the positioning pile is touched.
Smart Images

Figure BDA0002112555790000021 
Figure BDA0002112555790000022 
Figure BDA0002112555790000023
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic fences, and in particular to an electronic fence and a method for setting the electronic fence. Background Art
[0002] Fences are often used to enclose a cargo handling and loading area in a station, dock or factory. Lifting equipment and trucks are used in this area. Usually only vehicles are allowed to enter this area, and people are not allowed to enter. The purpose is to prevent casualties caused by accidental falls during cargo handling and loading.
[0003] The fences in the prior art mainly include physical fences and electronic fences. The electronic fences mainly include infrared electronic fences and laser electronic fences. The problem with rope-drawn fences is that the fences need to be disconnected manually when vehicles enter, and people will enter the fenced area at this time. The problems with infrared electronic fences and laser electronic fences are that they cannot accurately distinguish between vehicles and people, and the calibration is complex and demanding. When the electronic fence is slightly tilted, it will cause the electronic fence to fail.
[0004] On the other hand, currently stations, docks and factories usually need to hold people accountable for accidents that occur, but the cargo handling and loading areas enclosed by rope fences or electronic fences in the prior art cannot achieve this function.
[0005] In view of this, this invention is proposed. Summary of the invention
[0006] In view of the deficiencies in the prior art, the present invention provides an electronic fence and a method for setting up an electronic fence. Compared with the electronic fence in the prior art, the present invention can quickly set up an electronic fence, and when it is accidentally touched and moved, it can identify the distance of movement and correct the electronic fence. On the other hand, the present invention provides a basis for accountability for accidents in cargo handling and loading areas.
[0007] The technical solution of the present invention is achieved in this way:
[0008] An electronic fence comprises: two positioning piles arranged face to face, with horizontal color bands and cameras on the opposite surfaces of the positioning piles, and the camera faces the other positioning pile; and also comprises: a host computer, and the camera on the positioning pile is communicatively connected with the host computer.
[0009] Furthermore, the positioning pile includes a pile body in the shape of a regular quadrangular prism, a circle of horizontal color band is arranged on the pile body in the horizontal direction, and each side surface of the pile body is provided with at least one camera facing outwards.
[0010] Furthermore, it also includes an alarm device, and the alarm device is connected to a host computer for communication.
[0011] Furthermore, a method for setting an electronic fence of the present invention comprises the following steps:
[0012] Step 1: Set the physical distance between the two positioning stakes according to the physical length D1 required by the electronic fence, and turn on the camera to shoot the opposite positioning stake;
[0013] Step 2: The position of the horizontal color band in the image captured by the camera is the far boundary. The left and right boundaries L1 and R1 on the far boundary in the image are calculated according to the following formula:
[0014]
[0015]
[0016]
[0017] In the formula, W xs is the number of pixels in the horizontal direction of the image, W'1 is the number of pixels that the midpoint of the horizontal color band is offset from the pixel point in the horizontal center of the image, W is the physical width required for the electronic fence, and W sd is the physical width of the horizontal ribbon, W xs1 is the number of pixels occupied by the horizontal color band in the horizontal direction of the image;
[0018] The bottom of the image captured by the camera is the far boundary. The left and right boundaries L2 and R2 on the near boundary in the image are calculated according to the following formula:
[0019]
[0020]
[0021]
[0022]
[0023]
[0024] In the formula, W jd is the physical width of the near boundary, D2 is the closest distance to the ground within the camera's field of view, α is the camera's opening angle, and H is the physical height of the camera from the ground.
[0025] Step 3: The distal boundary, the left and right boundaries L1 and R1 on the distal boundary, the proximal boundary, the left and right boundaries L2 and R2 on the proximal boundary are enclosed in the image;
[0026] Step 4: The fence area in the image captured by the cameras on the two positioning piles forms an electronic fence, and the object within the electronic fence in the image is recognized, and an alarm is triggered when it is recognized as an alarm object.
[0027] Furthermore, a threshold value of W'1 is set. In step 1, when W'1 is within the threshold range, the alarm device sounds, indicating that the positioning pile is in place; in steps 2 to 4, when W'1 exceeds the threshold range, the alarm device sounds, indicating that the positioning pile is touched.
[0028] The beneficial effects of the present invention are:
[0029] (1) The fenced area in the image captured by the cameras on the two positioning piles forms an electronic fence, eliminating the blind spot of the camera on a single positioning pile, thereby fully covering the area where the electronic fence needs to be set up. On the other hand, the camera can capture vehicles and people entering the fenced area, thereby providing a basis for accountability for accidents in the cargo handling and loading area.
[0030] (2) The color bands on the two positioning stakes serve as references to each other. Through the feature extraction technology in image technology, the electronic fence can be quickly set up in scenes such as stations, docks or factories where the distance required for the electronic fence is long but the accuracy requirement is not high. When the positioning stake is accidentally touched and moved, the distance the positioning stake has moved can be identified and the electronic fence can be corrected. When the positioning stake moves a lot, an alarm can be issued.
[0031] (3) The positioning pile includes a pile body in the shape of a regular tetrahedron, a circle of color ribbon is provided on the pile body in the horizontal direction, and cameras are provided on the four sides of the pile body, and the cameras are facing the outside of the column body. The above structure allows the positioning pile to be set as a standard part. Combined with the beneficial effect (1), it enables the rapid deployment of electronic fences of various shapes. The pile body is a regular tetrahedron. When the positioning pile is accidentally touched and causes rotation, the overall physical length of the color ribbon in the horizontal direction changes little, and therefore does not affect the use of the electronic fence. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 This is a front view of the electronic fence in Example 1;
[0033] Figure 2 A top view of the electronic fence of Example 1;
[0034] Figure 3 A top view of a mouth-shaped electronic fence according to an embodiment;
[0035] Figure 4 A top view of a Z-shaped electronic fence according to Embodiment 1;
[0036] Figure 5 A top view of two positioning piles in Example 2;
[0037] Figure 6 This is a schematic diagram of setting up an electronic fence in Example 2;
[0038] Figure 7This is the camera field of view of positioning pile A in Example 2;
[0039] Figure 8 This is a schematic diagram of setting up an electronic fence when positioning pile B is offset in Example 2.
[0040] In the figure: 101-positioning pile, 102-horizontal color band, 103-camera, 104-pile body, 201-positioning pile A, 202-positioning pile B, 203-camera, 204-horizontal color band, 205-pixel point in the horizontal center of the image, 206-far boundary, 207-near boundary, 208-camera field of view, 209-ground. DETAILED DESCRIPTION
[0041] In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention is clearly and completely described below in conjunction with the accompanying drawings of the present invention. Based on the embodiments in this application, other similar embodiments obtained by ordinary technicians in this field without making any creative work should all fall within the scope of protection of this application.
[0042] Embodiment 1:
[0043] like Figures 1-2 As shown, an electronic fence includes two positioning stakes 101 arranged face to face, horizontal ribbons 102 are attached to the opposite surfaces of the positioning stakes 101, and cameras 103 are installed, and the camera 103 faces the other positioning stake 101 ( Figure 1 and 2 The shadow in the figure is the field of view of the cameras of the two positioning piles); it also includes a host computer (not drawn in the accompanying drawings), which can be arranged in the positioning pile 101 or independently arranged. The camera 103 on the positioning pile 101 is communicated with the host computer, that is, the camera 103 transmits the captured image to the host computer through the communication connection. The communication connection can be a wired communication connection or a wireless communication connection. When in use, the cameras 103 on the two positioning piles 101 are turned on to shoot the opposite positioning pile 101, and the host computer calculates and sets the electronic fence according to the images captured by the cameras 103 on the two positioning piles 101.
[0044] like Figures 3-4As shown, in this embodiment, preferably, the positioning pile 101 includes a pile body 104 in the shape of a regular quadrangular prism, a circle of horizontal ribbon 102 is attached to the pile body 104 in the horizontal direction, and at least one camera 103 facing outward on each side of the pile body 104 is installed. Through the positioning pile 101 of the above structure, electronic fences of various shapes can be quickly arranged. In this embodiment, preferably, an alarm device (not shown in the accompanying drawings) is also included. The alarm device can be set in the positioning pile 101 or can be set independently. The alarm device is connected to the host computer in communication, that is, the host computer sends a control signal to the alarm device through the communication connection to start the alarm device.
[0045] Embodiment 2:
[0046] A method for setting an electronic fence comprises the following steps:
[0047] Step 1: Set the physical distance between the two positioning stakes according to the physical length D1 required by the electronic fence. For example, if you need to set the physical length of the electronic fence to 50m, Figure 5 As shown, the physical distance between the positioning pile A201 and the positioning pile B202 (the reference numerals A and B are only used for easy distinction during description) is set to 50 m, and then the camera is turned on to shoot the positioning pile on the opposite side.
[0048] For convenience of explanation, Figure 6 As shown in the figure, the image of the positioning stake B202 captured by the camera 203 on the positioning stake A201 (hereinafter referred to as the image, the thick solid frame in the figure represents the image captured by the camera 203) is used to illustrate steps 2 and 3 of setting the electronic fence. When the midpoint of the horizontal color band 204 on the positioning stake B202 is located at the pixel point 205 in the horizontal direction of the image (when the number of pixels in the horizontal direction of the image is W xs When the value is 1920, the 960th pixel is the horizontal center pixel). Follow the steps below to set up the electronic fence:
[0049] Step 2: In the image, the position of the horizontal color band 204 is set to the far end boundary 206, and the physical width W of the horizontal color band 204 is sd and the number of pixels W it occupies horizontally in the image xs1 Calculate the physical width ΔW corresponding to a single pixel on the far boundary 206 in the image yd , the calculation formula is as follows:
[0050]
[0051] Then the physical width W and △W required by the electronic fence jd The left and right boundaries L1 and R1 on the far-end boundary 206 in the image are calculated using the following formula:
[0052]
[0053]
[0054] W in the formula xs is the number of pixels in the horizontal direction of the image, W xs / 2 is the pixel point 205 at the horizontal center of the image, and is also used to set the midpoint of the fence area on the far-end boundary 206 in the image;
[0055] In the image, the bottom of the image is set as the near-end boundary 207 (eg Figure 7 As shown, the near-end boundary 207 is the closest point of the ground 209 within the camera field of view 208 in the physical space. Figure 7 The upper figure is a main view, and the lower figure is a top view). The physical width W of the proximal boundary 207 jd and the number of pixels in the horizontal direction of the image W xs Calculate the physical width △W corresponding to a single pixel on the near-end boundary 207 in the image jd , the calculation formula is as follows:
[0056]
[0057]
[0058]
[0059] In the formula, D2 is the horizontal physical distance from the closest point of the ground 209 within the camera field of view 208 to the camera 203, α is the opening angle of the camera 203, and H is the physical height of the camera 203 from the ground 209;
[0060] Then the physical width W and △W required by the electronic fence jd The left and right boundaries L2 and R2 on the near-end boundary 207 in the image are calculated using the following formula:
[0061]
[0062]
[0063] In the formula, W xs / 2 is the pixel point 205 in the horizontal center of the image, and is also used to set the midpoint of the fence area on the near-end boundary 207 in the image.
[0064] Step 3: The far-end boundary 206, the left and right boundaries L1 and R1 on the far-end boundary 206, the near-end boundary 207, and the left and right boundaries L2 and R2 on the near-end boundary 207 in the image surround the fence area (such as Figure 6 dotted box shown).
[0065] Step 4: The fence area in the image captured by the cameras on the two positioning piles forms an electronic fence, and the object in the electronic fence in the image is image recognized. When it is recognized as an alarm object, an alarm is issued. In this embodiment, the alarm object is a person.
[0066] like Figure 8 As shown, when the midpoint of the horizontal color band 204 on the positioning stake B202 is not located at the pixel point 205 in the horizontal center of the image, the positioning stake B202 is set to be offset to the right by a physical distance W1 and an offset physical angle β, and the calculation formula of β is as follows:
[0067]
[0068] In the formula, W'1 is the number of pixels that the midpoint of the horizontal color band 204 on the positioning stake B202 (ie, the midpoint of the fence area on the original far-end boundary 206) is offset to the right from the pixel point 205 in the horizontal center of the image.
[0069] The physical width W of the distal boundary 206 yd The calculation formula is as follows:
[0070] W yd =ΔW yd *W xs Formula (10)
[0071]
[0072] Formula 10 is equal to Formula 11, and the calculation formula of D1 is as follows:
[0073]
[0074] Substituting formula 12 into formula 9, we get:
[0075]
[0076] When the center point of the horizontal color band 204 on the positioning stake B202 is offset to the right by a physical angle β and a physical distance W1, the midpoint of the proximal boundary 207 should be offset to the right by a physical angle β and a physical distance W2 to correspond to the offset of the positioning stake B202. The calculation formula of W2 is as follows:
[0077] W2=ΔW jd *W′2 formula (14)
[0078] In the formula, W'2 is the number of pixels that the midpoint of the fence area on the near-end boundary 207 should be offset to the right from the pixel point 205 at the center in the horizontal direction of the image.
[0079] According to formula 5 and 6, formula 14 is transformed into:
[0080]
[0081] The calculation formula of β is also as follows:
[0082]
[0083] Formula 13 is equal to Formula 16, and the solution is:
[0084] W1'=W'2 Formula (17)
[0085] In summary, the positioning stake B202 is offset to the right by a physical distance W1 and a physical angle β, which causes the midpoint of its horizontal color band 204 to be offset to the right by W'1 pixels from the pixel point 205 in the horizontal center of the image. In order to correspond to the offset, the midpoint of the fence area on the near-end boundary 207 should be offset to the right by W'2 pixels from the pixel point 205 in the horizontal center of the image. Therefore, (2), (3), (7) and (8) in step 2 are corrected as follows:
[0086]
[0087]
[0088]
[0089]
[0090] Preferably, in this embodiment, a threshold value of W'1 can be set. In step 1, when W'1 is within the threshold range, an alarm device sounds, indicating that the positioning pile is in place. In steps 2 to 4, that is, when the electronic fence is applied, if the positioning pile is accidentally touched and causes horizontal deviation, when W'1 exceeds the threshold range, an alarm device sounds, indicating that the positioning pile is touched. On the other hand, the threshold range of D1 can also be set to provide the same prompt.
[0091] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A method for setting up an electronic fence, characterized in that: The steps include: Step 1: Set the physical distance between the two positioning stakes according to the physical length D1 required by the electronic fence, and turn on the camera to shoot the opposite positioning stake; Step 2: The position of the horizontal color band in the image captured by the camera is the far boundary. The left and right boundaries L1 and R1 on the far boundary in the image are calculated according to the following formula: In the formula, W xs is the number of pixels in the horizontal direction of the image, W ’ 1 is the number of pixels that the midpoint of the horizontal color band is offset from the horizontal center pixel of the image, W is the physical width required for the electronic fence, and W sd is the physical width of the horizontal ribbon, W xs1 is the number of pixels occupied by the horizontal color band in the horizontal direction of the image; The bottom of the image captured by the camera is the near-end boundary. The left and right boundaries L2 and R2 on the near-end boundary in the image are calculated according to the following formula: In the formula, W jd is the physical width of the near-end boundary, D2 is the closest distance to the ground within the camera's field of view, α is the camera's opening angle, and H is the physical height of the camera from the ground; Step 3: The distal boundary, the left and right boundaries L1 and R1 on the distal boundary, the proximal boundary, the left and right boundaries L2 and R2 on the proximal boundary are enclosed in the image; Step 4: The fence area in the image captured by the cameras on the two positioning piles forms an electronic fence, and the object within the electronic fence in the image is recognized, and an alarm is triggered when it is recognized as an alarm object.
2. A method for setting an electronic fence as claimed in claim 1, characterized in that: Setting W ’ 1 threshold, in step 1, when W ’ 1 is within the threshold range, the alarm device sounds, indicating that the positioning pile is in place; in steps 2 to 4, when W ’ 1 When the threshold range is exceeded, the alarm device sounds, indicating that the positioning pile is touched.
Citation Information
Patent Citations
Power composite apparatus anti-human-body-crossing alarming method
CN109615821A
