Classification method, device and medium for target objects identified by machine vision

Whether the coordinates of the target object recognized through computer vision are within the pre-configured electronic fence solves the problem of target object classification in machine vision recognition technology, and realizes the effective classification and business application of target objects.

CN113822167BActive Publication Date: 2025-05-13HANGZHOU SMALLIOT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110993734.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-27
Publication Date
2025-05-13
Estimated Expiration
2041-08-27

AI Technical Summary

Technical Problem

In the prior art, it is difficult to effectively determine the classification of target objects recognized based on machine vision.

Method used

By obtaining the coordinates of the target object, its position on the frame plane is calculated, and whether it is within a pre-configured electronic fence. If in, determine that the target object belongs to the electronic fence.

Benefits of technology

It realizes the effective classification of target objects recognized by machine vision, and gives machine vision recognition technology practical business capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113822167B_ABST
    Figure CN113822167B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device and medium for classifying target objects identified based on machine vision. The method for classifying target objects identified based on machine vision includes: obtaining the coordinates of the target object; calculating the position of the coordinates of the target object on the frame plane, and determining whether the coordinates of the target object are within an electronic fence of a pre-configured belonging range; if so, determining that the target object belongs to the corresponding electronic fence. The method provided in the present application can determine the classification of target objects identified based on machine vision, thereby giving the machine vision recognition technology actual business capabilities.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of visual recognition technology, and in particular to a classification method, device and medium for target objects recognized based on machine vision. Background Art

[0002] Machine vision is a rapidly developing branch of artificial intelligence. Simply put, machine vision is to use machines to replace human eyes to make measurements and judgments. Because machine vision has the characteristics of high accuracy and no intervention, it is widely used in medical services.

[0003] In the related art, how to determine the classification of target objects identified based on machine vision has become an obstacle to the efficient integration of machine vision technology with business functions.

[0004] Currently, no effective solution has been proposed in the related art on how to determine the classification of target objects identified based on machine vision. Summary of the invention

[0005] Embodiments of the present application provide a method, device, and medium for classifying target objects identified based on machine vision, so as to solve the problem of determining the classification of target objects identified based on machine vision in the related art.

[0006] In a first aspect, an embodiment of the present application provides a method for classifying target objects identified based on machine vision, the method comprising:

[0007] Get the coordinates of the target object;

[0008] Calculate the coordinate position of the target object on the frame plane, and determine whether the coordinate of the target object is within the electronic fence of the pre-configured belonging range;

[0009] If so, it is determined that the target object belongs to the electronic fence.

[0010] In some embodiments, calculating the coordinate position of the target object on the frame plane includes:

[0011] Establishing a plane rectangular coordinate system based on the frame where the target object is located, wherein the plane rectangular coordinate system takes the upper left corner vertex as the origin, the horizontal coordinate is positive to the right, and the vertical coordinate is positive downward;

[0012] The center point of the target object is selected as the coordinate of the target object, and the coordinate position (X, Y) of the center point is calculated.

[0013] In some embodiments, when the electronic fence is a rectangular electronic fence, determining whether the coordinates of the target object are within the electronic fence of a preconfigured belonging range includes:

[0014] If X and Y satisfy Then the target object belongs to the rectangular electronic fence, where left is the horizontal coordinate of the left margin of the rectangular electronic fence, right is the horizontal coordinate of the right margin of the rectangular electronic fence, top is the vertical coordinate of the upper margin of the rectangular electronic fence, and bottom is the vertical coordinate of the lower margin of the rectangular electronic fence.

[0015] In some embodiments, when the electronic fence is a left triangle electronic fence, determining whether the coordinates of the target object are within the electronic fence of a preconfigured belonging range includes:

[0016] Determine whether X and Y satisfy (X-left) / (Y-top)≤(right-left) / (bottom-top). If so, the target object belongs to the left triangular electronic fence, wherein left is the horizontal coordinate of the left margin of the left triangular electronic fence, right is the horizontal coordinate of the right margin of the left triangular electronic fence, top is the vertical coordinate of the upper margin of the left triangular electronic fence, and bottom is the vertical coordinate of the lower margin of the left triangular electronic fence.

[0017] In some embodiments, when the electronic fence is a right triangle electronic fence, determining whether the coordinates of the target object are within the electronic fence of a preconfigured belonging range includes:

[0018] Determine whether X and Y satisfy (X-left) / (Y-top)>(right-left) / (bottom-top). If so, the target object belongs to the right triangular electronic fence, wherein left is the horizontal coordinate of the left margin of the right triangular electronic fence, right is the horizontal coordinate of the right margin of the right triangular electronic fence, top is the vertical coordinate of the upper margin of the right triangular electronic fence, and bottom is the vertical coordinate of the lower margin of the right triangular electronic fence.

[0019] In some embodiments, when the electronic fence is an upper triangular electronic fence, determining whether the coordinates of the target object are within the electronic fence of a preconfigured belonging range includes:

[0020] Determine whether X and Y satisfy (right-X) / (Y-top)≤(right-left) / (bottom-top). If so, the target object belongs to the upper triangular electronic fence, wherein left is the horizontal coordinate of the left margin of the upper triangular electronic fence, right is the horizontal coordinate of the right margin of the upper triangular electronic fence, top is the vertical coordinate of the upper margin of the upper triangular electronic fence, and bottom is the vertical coordinate of the lower margin of the upper triangular electronic fence.

[0021] In some embodiments, when the electronic fence is a lower triangle electronic fence, determining whether the coordinates of the target object are within the electronic fence of a preconfigured belonging range includes:

[0022] Determine whether X and Y satisfy (right-X) / (Y-top)>(right-left) / (bottom-top). If so, the target object belongs to the lower triangular electronic fence, wherein left is the horizontal coordinate of the left margin of the lower triangular electronic fence, right is the horizontal coordinate of the right margin of the lower triangular electronic fence, top is the vertical coordinate of the upper margin of the lower triangular electronic fence, and bottom is the vertical coordinate of the lower margin of the lower triangular electronic fence.

[0023] In some embodiments, when the electronic fence is an electronic fence composed of a rectangle and a triangle, the step of determining whether the coordinates of the target object are within the electronic fence of a preconfigured belonging range includes:

[0024] It is determined whether the coordinates of the target object are within the rectangle or the triangle. If so, the target object belongs to the combined electronic fence.

[0025] In a second aspect, an embodiment of the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for classifying target objects identified based on machine vision as described in the first aspect above is implemented.

[0026] In a third aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon, which, when executed by a processor, implements the classification method for target objects identified based on machine vision as described in the first aspect above.

[0027] Compared with the related art, the beneficial effect of the present application is: based on the frame where the target object identified by machine vision is located, a plane rectangular coordinate system is established, the coordinates of the target object are obtained, the position of the coordinates of the target object on the frame plane is calculated, and it is determined whether the coordinates of the target object are within the electronic fence of the pre-configured belonging range. If so, it is determined that the target object belongs to the electronic fence, and accordingly, the classification of the target object is determined based on the classification of the electronic fence. The method provided by the present application can determine the classification of the target object identified by machine vision, thereby giving the machine vision recognition technology actual business capabilities. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0029] Figure 1 is a flow chart of a method for classifying target objects identified based on machine vision according to an embodiment of the present application;

[0030] Figure 2 is a schematic diagram of a target object identified based on machine vision according to an embodiment of the present application;

[0031] Figure 3 is a schematic diagram showing that the coordinates of the target object belong to a rectangular electronic fence according to an embodiment of the present application;

[0032] Figure 4 is a schematic diagram showing that the coordinates of the target object belong to the left triangular electronic fence according to an embodiment of the present application;

[0033] Figure 5 It is a schematic diagram showing that the coordinates of the target object belong to the right triangular electronic fence according to the embodiment of the present application;

[0034] Figure 6 is a schematic diagram showing that the coordinates of the target object belong to the upper triangular electronic fence according to an embodiment of the present application;

[0035] Figure 7 is a schematic diagram showing that the coordinates of the target object belong to the lower triangular electronic fence according to an embodiment of the present application;

[0036] Figure 8 It is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application. In addition, it can also be understood that although the efforts made in this development process may be complex and lengthy, for ordinary technicians in the field related to the contents disclosed in the present application, some changes such as design, manufacturing or production based on the technical contents disclosed in the present application are only conventional technical means, and should not be understood as insufficient contents disclosed in the present application.

[0038] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0039] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to greater than or equal to two. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The terms "first", "second", "third" and the like involved in the present application are merely used to distinguish similar objects and do not represent a specific ordering of the objects.

[0040] The embodiment of the present application provides a classification method for target objects recognized based on machine vision, so as to solve the problem of determining the classification of target objects recognized based on machine vision.

[0041] Figure 1 is a flowchart of a method for classifying a target object identified by machine vision according to an embodiment of the present application, referring to Figure 1 As shown, the method may include steps S101 to S103.

[0042] Step S101, obtaining the coordinates of the target object.

[0043] Step S102, calculating the coordinate position of the target object on the frame plane.

[0044] Step S103, determining whether the coordinates of the target object are within the pre-configured electronic fence, if so, executing step S104.

[0045] Step S104: determine whether the target object belongs to the electronic fence.

[0046] In summary, the coordinates of the target object are obtained, the position of the coordinates of the target object on the frame plane is calculated, and it is determined whether the coordinates of the target object are within the electronic fence of the pre-configured belonging range. If so, it is determined that the target object belongs to the electronic fence, and accordingly, the classification of the target object is determined based on the classification of the electronic fence. The method provided in the present application can determine the classification of the target object based on machine vision recognition, thereby giving the machine vision recognition technology actual business capabilities.

[0047] Figure 2 is a schematic diagram of a target object identified based on machine vision according to an embodiment of the present application, such as Figure 2 As shown, the embodiment of the present application includes all target objects recognized by machine vision in the electronic fence based on the center point, thereby accurately determining the classification of the target objects.

[0048] It is worth noting that the electronic fence of the embodiment of the present application is used to determine whether the coordinates of the target object are within a pre-configured attribution range. Its shape can be a rectangle, a triangle, or any combination of a rectangle and a triangle. The electronic fence can be set to correspond to the attribution range of the target object. When the coordinates of the target object are within the pre-configured electronic fence, the target object corresponds to the attribution range. Here, a medical business scenario can be taken as an example. The target object is the action of a nurse or a patient. An electronic fence corresponding to the action of the nurse is pre-set. For example, an electronic fence range is set for the action of the nurse giving an IV to the patient. By judging that the coordinate position corresponding to the action captured by the machine recognition is within the range of the IV electronic fence, it can be determined that the target object corresponding to the action is the action of the nurse.

[0049] As an optional embodiment, in step S102, a plane rectangular coordinate system is established based on the frame where the target object is located, wherein the plane rectangular coordinate system takes the upper left corner vertex as the origin, the horizontal coordinate is positive to the right, and the vertical coordinate is positive downward, the center point of the target object is selected as the coordinate of the target object, and the coordinate position (C, Y) of the center point is calculated. Taking the center point of the target object as the coordinate of the target object can comprehensively place the target object within the belonging range of the electronic fence, and accordingly, the belonging range of the target object obtained is more accurate.

[0050] In some embodiments, Figure 3 The coordinates of the target object shown in the embodiment of the present application belong to a rectangular electronic fence, such as Figure 3 As shown, when the electronic fence is a rectangular electronic fence, when the coordinate positions X and Y of the target object meet Then the target object belongs to the rectangular electronic fence, where left is the abscissa of the left margin of the rectangular electronic fence, right is the abscissa of the right margin of the rectangular electronic fence, top is the ordinate of the upper margin of the rectangular electronic fence, and bottom is the ordinate of the lower margin of the rectangular electronic fence. When the coordinates of the target object are within the rectangular electronic fence, the classification of the target object is the same as that of the rectangular electronic fence. When the coordinates of the target object are not within the rectangular electronic fence, the classification of the target object is different from that of the rectangular electronic fence.

[0051] In some embodiments, Figure 4 is a schematic diagram showing that the coordinates of the target object in the embodiment of the present application belong to the left triangular electronic fence, as Figure 4 shown. When the electronic fence is a left triangular electronic fence, for the angle (α) formed by the coordinates (X, Y) of the target object and the vertical axis or the horizontal axis, and the triangle-related angle (β), it is necessary to satisfy: tan(α) < tan(β). Specifically, in terms of the coordinate position relationship: when the coordinate positions C, Y of the target object satisfy (C - left) / (Y - top) ≤ (right - left) / (bottom - top), then the target object belongs to the left triangular electronic fence, that is, the classification of the target object is the same as that of the left triangular electronic fence. When the coordinate positions X, Y of the target object do not satisfy (X - left) / (Y - top) ≤ (right - left) / (bottom - top), then the target object does not belong to the left triangular electronic fence, that is, the classification of the target object is different from that of the left triangular electronic fence.

[0052] In some embodiments, Figure 5 is a schematic diagram showing that the coordinates of the target object in the embodiment of the present application belong to the right triangular electronic fence, as Figure 5 shown. When the electronic fence is a right triangular electronic fence, for the angle (α) formed by the coordinates (X, Y) of the target object and the vertical axis or the horizontal axis, and the triangle-related angle (β), it is necessary to satisfy: tan(α) < tan(β). Specifically, in terms of the coordinate position relationship: determine whether X, Y satisfy (X - left) / (Y - top) > (right - left) / (bottom - top). If so, then the target object belongs to the right triangular electronic fence, that is, the classification of the target object is the same as that of the right triangular electronic fence; if not, then the target object does not belong to the right triangular electronic fence, that is, the classification of the target object is different from that of the right triangular electronic fence.

[0053] In some embodiments, Figure 6 is a schematic diagram showing that the coordinates of the target object in the embodiment of the present application belong to the upper triangular electronic fence, as Figure 6As shown, when the electronic fence is an upper triangular electronic fence, the angle (α) formed by the coordinates (X, Y) of the target object and the vertical axis or the horizontal axis, the triangle related angle (β) must satisfy: tan(α)<tan(β), which is specifically reflected in the coordinate position relationship: determine whether X and Y satisfy (right-X) / (Y-top)≤(right-left) / (bottom-top). If so, the target object belongs to the upper triangular electronic fence, that is, the classification of the target object is the same as the classification of the upper triangular electronic fence.

[0054] In some embodiments, Figure 7 The coordinates of the target object shown in the embodiment of the present application belong to the schematic diagram of the lower triangular electronic fence, such as Figure 7 As shown, in the case where the electronic fence is a lower triangular electronic fence, the angle (α) formed by the coordinates (X, Y) of the target object and the vertical axis or the horizontal axis, the triangle related angle (β) must satisfy: tan(α)<tan(β), which is specifically reflected in the coordinate position relationship: determine whether X and Y satisfy (right-X) / (Y-top)>(right-left) / (bottom-top). If so, the target object belongs to the lower triangular electronic fence, that is, the classification of the target object is the same as the classification of the lower triangular electronic fence.

[0055] Furthermore, in the case where the electronic fence is a combination of a rectangle and a triangle, it is determined whether the coordinates of the target object are within the rectangle or the triangle. If so, the target object belongs to the combined electronic fence, that is, the classification of the target object is the same as the classification of the combined electronic fence. Specifically, if the classification to which a target object belongs or the classified electronic fence is a set of N geometric figures (rectangles or triangles):

[0056] fence = {shape1, shape2, ... | shape∈□ or △}, where fence is the classification of the electronic fence. The coordinates (X, Y) of a target object must satisfy the following conditions to determine whether it belongs to a certain classification:

[0057] (X, Y)∈shape1|(X,Y)∈shape2|...

[0058] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0059] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0060] In addition, in combination with the classification method of the target object identified by machine vision in the above embodiment, the embodiment of the present application can provide a storage medium for implementation. The storage medium stores a computer program; when the computer program is executed by the processor, any one of the classification methods of the target object identified by machine vision in the above embodiment is implemented.

[0061] In one embodiment of the present application, an electronic device is also provided, which may be a terminal. The electronic device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a classification method for target objects identified based on machine vision is implemented. The display screen of the electronic device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device may be a touch layer covered on the display screen, or a key, trackball or touchpad provided on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.

[0062] In one embodiment, Figure 8 is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application, such as Figure 8 As shown, an electronic device is provided, which may be a server, and its internal structure diagram may be as shown in Figure 8 As shown. The electronic device includes a processor, a network interface, an internal memory and a non-volatile memory connected through an internal bus, wherein the non-volatile memory stores an operating system, a computer program and a database. The processor is used to provide computing and control capabilities, the network interface is used to communicate with an external terminal through a network connection, the internal memory is used to provide an environment for the operation of the operating system and the computer program, the computer program is executed by the processor to implement a classification method based on target objects recognized by machine vision, and the database is used to store data.

[0063] Those skilled in the art will understand that Figure 8 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0064] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0065] Those skilled in the art should understand that the technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0066] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for classifying target objects identified by machine vision, characterized in that: The method comprises: Get the coordinates of the target object; Calculating the coordinate position of the target object on the frame plane includes: Establishing a plane rectangular coordinate system based on the frame where the target object is located, wherein the plane rectangular coordinate system takes the upper left corner vertex as the origin, the horizontal coordinate is positive to the right, and the vertical coordinate is positive downward; Selecting the center point of the target object as the coordinates of the target object, calculating the coordinate position (X, Y) of the center point, and determining whether the coordinates of the target object are within the electronic fence of the pre-configured belonging range; If yes, it is determined that the target object belongs to the electronic fence, wherein the electronic fence is pre-set to correspond to the belonging range of the target object, and when the coordinates of the target object are within the pre-configured electronic fence, it is considered that the target object corresponds to the belonging range; The classification of the electronic fence is determined as the classification of the target object, the target object is a preset action, and the classification of the electronic fence is the category of the subject that performs the preset action.

2. The method according to claim 1, characterized in that In the case where the electronic fence is a rectangular electronic fence, the step of determining whether the coordinates of the target object are within the electronic fence of a pre-configured belonging range includes: If X and Y satisfy Then the target object belongs to the rectangular electronic fence, where left is the horizontal coordinate of the left margin of the rectangular electronic fence, right is the horizontal coordinate of the right margin of the rectangular electronic fence, top is the vertical coordinate of the upper margin of the rectangular electronic fence, and bottom is the vertical coordinate of the lower margin of the rectangular electronic fence.

3. The method according to claim 1, characterized in that In the case where the electronic fence is a left triangle electronic fence, the determining whether the coordinates of the target object are within the electronic fence of a pre-configured belonging range comprises: Determine whether X and Y satisfy (X-left) / (Y-top)≤(right-left) / (bottom-top). If so, the target object belongs to the left triangular electronic fence, wherein left is the horizontal coordinate of the left margin of the left triangular electronic fence, right is the horizontal coordinate of the right margin of the left triangular electronic fence, top is the vertical coordinate of the upper margin of the left triangular electronic fence, and bottom is the vertical coordinate of the lower margin of the left triangular electronic fence.

4. The method according to claim 1, characterized in that: In the case where the electronic fence is a right triangle electronic fence, the step of determining whether the coordinates of the target object are within the electronic fence of a pre-configured belonging range includes: Determine whether X and Y satisfy (X-left) / (Y-top)>(right-left) / (bottom-top). If so, the target object belongs to the right triangular electronic fence, wherein left is the horizontal coordinate of the left margin of the right triangular electronic fence, right is the horizontal coordinate of the right margin of the right triangular electronic fence, top is the vertical coordinate of the upper margin of the right triangular electronic fence, and bottom is the vertical coordinate of the lower margin of the right triangular electronic fence.

5. The method according to claim 1, characterized in that In the case where the electronic fence is an upper triangular electronic fence, the determining whether the coordinates of the target object are within the electronic fence of a pre-configured belonging range includes: Determine whether X and Y satisfy (right-X) / (Y-top)≤(right-left) / (bottom-top). If so, the target object belongs to the upper triangular electronic fence, wherein left is the horizontal coordinate of the left margin of the upper triangular electronic fence, right is the horizontal coordinate of the right margin of the upper triangular electronic fence, top is the vertical coordinate of the upper margin of the upper triangular electronic fence, and bottom is the vertical coordinate of the lower margin of the upper triangular electronic fence.

6. The method according to claim 1, characterized in that In the case where the electronic fence is a lower triangular electronic fence, the step of determining whether the coordinates of the target object are within the electronic fence of a preconfigured belonging range includes: Determine whether X and Y satisfy (right-X) / (Y-top)>(right-left) / (bottom-top). If so, the target object belongs to the lower triangular electronic fence, wherein left is the horizontal coordinate of the left margin of the lower triangular electronic fence, right is the horizontal coordinate of the right margin of the lower triangular electronic fence, top is the vertical coordinate of the upper margin of the lower triangular electronic fence, and bottom is the vertical coordinate of the lower margin of the lower triangular electronic fence.

7. The method according to claim 1, characterized in that In the case where the electronic fence is an electronic fence composed of a rectangle and a triangle, the step of determining whether the coordinates of the target object are within the electronic fence of a pre-configured belonging range includes: It is determined whether the coordinates of the target object are within the rectangle or the triangle. If so, the target object belongs to the combined electronic fence.

8. An electronic device, comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to run the computer program to execute the classification method of target objects recognized based on machine vision according to any one of claims 1 to 7.

9. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the classification method of target objects recognized based on machine vision according to any one of claims 1 to 7 when running.

Citation Information

Patent Citations

  • Transformer substation electronic fence monitoring method based on intelligent video monitoring, storage medium and equipment

    CN111144232A