CN114037713A - Cross-screen tripwire drawing method and device, electronic equipment and storage medium - Google Patents

Cross-screen tripwire drawing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114037713A
CN114037713A CN202111282539.7A CN202111282539A CN114037713A CN 114037713 A CN114037713 A CN 114037713A CN 202111282539 A CN202111282539 A CN 202111282539A CN 114037713 A CN114037713 A CN 114037713A
Authority
CN
China
Prior art keywords
tripwire
area
display
grid
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111282539.7A
Other languages
Chinese (zh)
Inventor
胡晶
贾召飞
张瑜凯
林杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN202111282539.7A priority Critical patent/CN114037713A/en
Publication of CN114037713A publication Critical patent/CN114037713A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • G06F3/1446Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display display composed of modules, e.g. video walls
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20021Dividing image into blocks, subimages or windows

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a cross-screen tripwire delineation method and device, electronic equipment and a storage medium. The method comprises the following steps: dividing a picture window area displayed on a display wall, and determining a divided area in each display split screen of the display wall; the display wall comprises a plurality of display sub-screens arranged in an array; setting the segmentation area as a central grid and dividing the display wall area into nine-grid grids; carrying out logic OR and logic AND operation on the codes of grids where two ends of tripwires are located in the picture window area; and controlling to draw the tripwire positioned in the partition area in the display split screen of the partition area according to the operation result of the logical OR and the logical AND so as to display the tripwire in a cross-screen mode. By adopting the technical scheme, compared with the tripwire distribution judgment through multiplication and division complex operation related to equation calculation, the tripwire distribution judgment method and the tripwire distribution judgment device can simplify the tripwire judgment calculation complexity through coding logic operation, accelerate the tripwire intersection identification speed and enable the tripwire to be quickly drawn in a plurality of areas.

Description

Cross-screen tripwire drawing method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a cross-screen tripwire drawing method and device, electronic equipment and a storage medium.
Background
The camera device needs tripwires to divide a monitoring area, provides a monitoring mechanism in the monitoring area, and does not monitor in the monitoring area.
In order to save resources and increase data transmission speed, the tripwire is not generally overlapped on the image and then transmitted to the splicing controller, but is drawn at the splicing controller according to the tripwire coordinate transmitted by the front-end camera device. In the related technology, an equation is used for representing each split screen boundary line and a tripwire in a television wall, and then an intersection point is calculated through equation calculation to realize tripwire drawing. However, such a drawing method is complicated in calculation, wastes much calculation resources, and is relatively inefficient.
Disclosure of Invention
The embodiment of the invention provides a cross-screen tripwire drawing method and device, electronic equipment and a storage medium, which are used for rapidly drawing a tripwire under the complicated condition of multi-split-screen display.
In a first aspect, an embodiment of the present invention provides a cross-screen tripwire delineation method, where the method includes:
dividing a picture window area displayed on a display wall, and determining a divided area in each display split screen of the display wall; the display wall comprises a plurality of display split screens arranged in an array;
setting the segmentation area as a central grid and dividing the display wall area into nine-grid grids; the codes of the central grids are binary systems represented by preset values, and the codes of other grids are used for adjusting and determining the binary systems represented by the preset values based on the offset directions of the other grids relative to the central grids, wherein the preset value is an integer 0;
carrying out logic OR and logic AND operation on the codes of grids where two ends of tripwires are located in the picture window area;
and controlling to draw the tripwire positioned in the partition area in the display split screen of the partition area according to the operation result of the logical OR and the logical AND so as to display the tripwire in a cross-screen mode.
In a second aspect, an embodiment of the present invention further provides a cross-screen tripwire drawing device, where the device includes:
the segmentation determining module is used for segmenting the picture window area displayed on the display wall and determining the segmentation area in each display split screen of the display wall; the display wall comprises a plurality of display split screens arranged in an array;
the segmentation division configuration module is used for setting the segmentation area as a central grid and dividing the display wall area into nine-grid grids; the codes of the central grids are binary systems represented by preset values, and the codes of other grids are used for adjusting and determining the binary systems represented by the preset values based on the offset directions of the other grids relative to the central grids, wherein the preset value is an integer 0;
the logic operation module is used for carrying out logic OR and logic AND operation on the codes of the grids where the two ends of the tripwire are positioned in the picture window area;
and the tripwire drawing module is used for controlling to draw the tripwire positioned in the partition area in the display split screen of the partition area according to the logical OR and logical AND operation result so as to display the tripwire in a cross-screen mode.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
storage means for storing one or more programs;
the one or more programs are executable by the one or more processors to cause the one or more processors to implement a cross-screen tripwire delineation method as provided in any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, where the computer program, when executed by a processor, implements a cross-screen tripwire delineation method as provided in any embodiment of the present invention.
The embodiment of the invention provides a cross-screen tripwire delineation method, which comprises the steps of segmenting a picture window area displayed on a display wall, determining a segmentation area positioned in each display sub-screen of the display wall, setting the segmentation area as a central grid and dividing the display wall area into nine-grid grids; the codes of the central grids are binary systems represented by preset values, and the codes of other grids adjust and determine the binary systems represented by the preset values based on the offset directions of the other grids relative to the central grids, wherein the preset value is an integer 0; and carrying out logic OR and operation on codes of grids where two ends of the tripwire are located in the picture window area, and controlling the tripwire located in the partition area to be sketched in the display split screen where the partition area is located so as to realize cross-screen display of the tripwire. By adopting the technical scheme, compared with the method for judging the distribution of the tripwires through complicated operation of multiplication and division related to equation calculation, the method can simplify the complexity of judgment and calculation of the distribution of the tripwires through encoding logic operation, accelerate the speed of identifying whether the tripwires are intersected or not, and enable the tripwires to be quickly drawn in a plurality of areas, so that the tripwires crossing the screen can be quickly and clearly seen on a large screen connected with the splicing control equipment.
The above summary of the present invention is merely an overview of the technical solutions of the present invention, and the present invention can be implemented in accordance with the content of the description in order to make the technical means of the present invention more clearly understood, and the above and other objects, features, and advantages of the present invention will be more clearly understood.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart of a cross-screen tripwire delineation method provided in an embodiment of the present invention;
fig. 2 is a schematic diagram of dividing a screen window based on multiple split screens according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a situation in which a tripwire in a screen window is sketched based on multiple display split screens according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another situation for delineating a tripwire in a screen window based on multi-display split screens provided in the embodiment of the present invention;
FIG. 5 is a schematic diagram of a situation of drawing a tripwire in a screen window based on multi-display split screen according to another embodiment of the present invention;
FIG. 6 is a schematic diagram of a split screen delineation of tripwire in a picture window based on multi-display split screen provided in an embodiment of the present invention;
fig. 7 is a schematic diagram of nine-grid division of a display wall with a divided area of each display sub-screen as a center according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a grid encoding for nine-grid meshing of a display wall according to an embodiment of the present invention;
FIG. 9 is a flow chart of another cross-screen tripwire delineation method provided in embodiments of the present invention;
FIG. 10 is a schematic diagram of the occupancy of display split screens by tripwire after nine-grid division of a display wall according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of a tripwire segment occupation of a display wall in each display sub-screen segment after nine-grid division according to an embodiment of the present invention;
FIG. 12 is a flow chart of yet another cross-screen tripwire delineation method provided in embodiments of the present invention;
FIG. 13 is a schematic illustration of a tripwire with directional identification added thereto in accordance with an embodiment of the present invention;
FIG. 14 is a schematic diagram of an optimized display of a tripwire adding direction indicator provided in an embodiment of the present invention;
FIG. 15 is a block diagram of a cross-screen tripwire delineation device provided in an embodiment of the present invention;
fig. 16 is a schematic structural diagram of an electronic device provided in an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart of a cross-screen tripwire delineation method provided in an embodiment of the present invention, where the technical solution of the embodiment is applicable to a situation where tripwires are displayed across multiple screens, and the method may be executed by a cross-screen tripwire delineation apparatus, which may be implemented by software and/or hardware and may be integrated in an electronic device with a network communication function. As shown in fig. 1, the cross-screen tripwire delineation method in the embodiment of the present invention may include the following steps:
s110, segmenting a picture window area displayed on a display wall, and determining a segmentation area in each display split screen of the display wall; the display wall comprises a plurality of display sub-screens arranged in an array.
Referring to fig. 2, the display wall may include a plurality of display sub-screens arranged in an array, and different display sub-screens have preset display positions and sizes on the display wall, so as to form display layout information of the respective display sub-screens on the display wall. Considering that the size of an image picture transmitted by front-end equipment such as IPC is large and the image picture is difficult to be completely displayed in one display split screen, a splicing controller is generally adopted to cut the image picture and then respectively send the image picture to different display split screens of a display wall, so that a complete image is spliced and displayed on the display wall.
Referring to fig. 2, on the display wall, boundary lines of the display sub-screens are provided between different display sub-screens, and in the case where one picture window area is displayed across a plurality of display sub-screens, the displayed picture window area may be area-divided according to the boundary lines of the respective display sub-screens, so as to divide the picture window area into different display sub-screens. In this way, it is possible to know the divided regions located within each display split screen by region division, and to determine region position information of the divided regions located within each display split screen.
For example, referring to fig. 2, the picture window area may be divided into 4 areas according to the display split screen of the distance occupied by the picture window area when the picture window area is displayed on the display wall, wherein the areas are the area in the display split screen 1, the area in the display split screen 2, the area in the display split screen 3, and the area in the display split screen 4, after the picture window area is divided into the display split screens, the division areas belonging to each display split screen are obtained, and the division areas are named as a division area 1, a division area 2, a division area 3, and a division area 4.
And S120, aiming at the segmentation area positioned in each display split screen, setting the segmentation area as a central grid and dividing the display wall area into nine-grid grids.
The codes of the central grids are binary values represented by preset values, the codes of other grids are used for adjusting and determining the binary values represented by the preset values based on the offset directions of the other grids relative to the central grids, and the preset value is an integer 0.
Referring to fig. 2, a complete image screen may be displayed in a screen window area across a plurality of display sub-screens, and a tripwire in the image screen may need to be displayed across a plurality of display sub-screens, and similarly, a tripwire needs to be cut and then displayed on different display sub-screens, so that a complete tripwire can be displayed.
The tripwire is not generally overlapped on the image picture and then transmitted to the splicing controller, but is drawn out at the splicing controller according to tripwire coordinates transmitted by front-end equipment such as IPC. At the end of the splicing controller, each display sub-screen in the display wall corresponds to a different CPU processor, which means that different CPU processors are required to render respectively, so that each CPU processor is required to efficiently calculate a part of tripwires corresponding to the rendering of the display sub-screen so as to display.
The related scheme is that the intersection point is obtained by calculating equations of side lines and tripwires of each display sub-screen on the display wall to realize the drawing of the tripwires; for example, referring to fig. 3, it is necessary to determine whether a tripwire intersects with the divided area 1, and determine that the tripwire intersects with four edge lines of the divided area 1, where the edge line and the wire mixture are first expressed by an equation y ═ ax + b, and then expressed by a start point and an end point, and then an intersection point is calculated according to the two equations. However, the calculation of the equation involves complex operations such as multiplication and division, and 4 times of calculation are needed, which increases the calculation time and complexity, so that tripwires cannot be quickly drawn.
Referring to fig. 4 and 5, there are many cases of tripwire cross-screen display, including a cross of two display split screens VO, a cross of three display split screens VO, a left oblique-crossing display split screen, a right oblique-crossing display split screen, and the like. Meanwhile, there are some special cases, such as cross-display split screen and vertical-cross-display split screen. In this way, the division according to the situation has many situations, is very complicated, is easy to make mistakes, and has low drawing efficiency.
In view of the defects of the related tripwire delineation schemes, referring to fig. 6, in the scheme of the present application, instead of using an equation to perform a large number of multiplications and divisions to realize intersection judgment, a coding idea is adopted, in a cross-screen display tripwire scene, one tripwire is cut into different segments, for a partition region belonging to each display split screen, the intersection condition of the tripwire and the partition region is judged through simple coding logic operation, and each display split screen VO delineates a segment located in each display split screen in the tripwire in its own region.
To better use the coding concept for tripwire intersection determination, and to account for the tripwire that each display sub-screen delineates the partitioned areas within each display sub-screen, the partitioning and nine-grid construction operations may be performed once for the partitioned areas within each display sub-screen. Taking the divided region 1 as an example, taking the divided region 1 as a central mesh, referring to fig. 7, dividing the whole display wall region into nine-grid meshes, configuring a corresponding mesh code for each corresponding mesh in the nine-grid meshes, fixing the binary code of the central mesh, adjusting and determining the binary code of the central mesh based on the offset position of other meshes relative to the central mesh in the suspicious codes of other meshes, and the mesh codes of different meshes are different.
Alternatively, referring to fig. 7, in a nine-grid mesh divided as a central mesh for each divided region, the code of the central mesh is a preset binary number, the preset binary number is a four-bit binary number represented by the preset value, and the codes of the other meshes may be determined by bit-inverting the preset binary number based on binary bits corresponding to offset orientations of the other meshes with respect to the central mesh.
Alternatively, referring to fig. 7, the offset orientations of his mesh relative to the center mesh include right offset, left offset, up offset, down offset, up right offset, down right offset, up left offset, and down offset. The preset binary number of the central grid code comprises different binary digits, different binary digit combinations in the preset binary number correspond to different offset directions, and on the basis of the preset binary number, the grid codes of other grids relative to the central grid can be obtained by negating the numerical values of the binary digits corresponding to the offset directions of other grids relative to the central grid.
Referring to fig. 8, a divided area is used as a central grid, a nine-grid mesh is obtained by performing grid division on a display wall, the nine-grid mesh includes nine grids, a grid code of the central grid is fixedly set to be a four-bit binary number of 0000, grid codes of other grids are adjusted according to a grid code of the central grid relative to an orientation of the central grid, the four-bit binary number is four bits, and different binary bits represent an offset orientation represented by any grid area relative to the central grid area.
Referring to fig. 8, for a four-bit binary number used in trellis coding, the first binary digit represents whether the trellis region is above the central trellis region, and if the value of the corresponding binary digit is 1; the second binary digit represents whether the grid area is below the central grid area, and if the grid area is below the central grid area, the value of the corresponding binary digit is 1; the third binary digit represents whether the grid area is on the right side of the central grid area, and if the grid area is on the right side of the central grid area, the value of the corresponding binary digit is 1; the fourth binary digit represents whether the grid area is on the left side of the central grid area, and if the grid area is on the left side of the central grid area, the value of the corresponding binary digit is 1. Of course, if the combined orientation is right upper side, right lower side, left upper side, left lower side, etc., the binary bit combination can be directly adjusted, for example, if the grid area is right upper side of the central grid area, the values of the first binary bit and the second binary bit are adjusted to 1, and so on.
It is to be understood that the encoding of each mesh in the nine-grid mesh shown in fig. 8 is merely an example, and not the only configuration. For example, there may be an arrangement where a first binary digit represents whether the grid area is to the right of the central grid area, a second binary digit represents whether the grid area is to the left of the central grid area, a third binary digit represents whether the grid area is above the central grid area, and a fourth binary digit represents whether the grid area is below the central grid area. When the grid code is configured, only the four-bit binary code of the central grid needs to be 0000, and different binary bit combinations in the four-bit binary code correspond to different offset directions.
And S130, based on the nine-grid mesh divided by taking the divided area as the center mesh, carrying out logic OR and operation on the codes of the meshes where the two end points of the tripwire are located in the picture window area.
In an alternative of this embodiment, the logic or and operation of the encoding of the grid where the two ends of the tripwire are located in the screen window area may include the following steps a 1-A3:
and step A1, determining the end point position information when two end points of the tripwire are respectively displayed on the display wall in the picture window area aiming at one divided area as a central grid.
Referring to fig. 6 and 7, the end point positions of the respective tripwires in the shot screen (including the coordinates of the two end points at which the tripwires start) may be obtained in advance from a front-end device such as an IPC, and the end point positions of the tripwires in the screen window area may be obtained by multiplying the abscissa in the end point positions of the tripwires by the width of the screen window area and multiplying the ordinate in the end point positions of the tripwires by the height of the screen window area. Furthermore, the resolution corresponding to the picture window area is obtained, and the position layout of each display sub-screen on the display wall is combined, so that the end point position information of two end points of the tripwire when the two end points are respectively displayed on the display wall can be obtained through calculation.
And step A2, determining grids of the two ends of the tripwire according to the end point position information of the two ends of the tripwire and the nine-grid layout for dividing the display wall area based on the divided area as the central grid.
Referring to fig. 6 and 7, in the case of dividing the display wall area into nine-grid cells by taking the divided area as a central grid, the position information of each grid in the nine-grid cells on the display wall may be acquired and recorded for the nine-grid cell layout of the display wall area division. Therefore, the end point position information of the two end points of the tripwire is compared with the position information of each grid on the display wall, so that the situation that each end point of the tripwire is positioned in one of the nine-grid grids divided for the display wall can be judged, and the nine-grid where the two end points of the tripwire are positioned is determined.
And A3, assigning codes configured in grids where the two end points of the tripwire are located to the two end points of the tripwire, and carrying out logical OR operation and logical AND operation on the grid codes of the two end points.
Referring to fig. 7, after a partition area is used as a central mesh and the whole display wall area is divided into nine-grid meshes, each mesh in the nine-grid meshes is configured with a corresponding mesh code. After the grid where the tripwire end point is located is determined, the grid codes of the grid where the tripwire end point is located can be directly assigned to the tripwire end point, and therefore the grid codes corresponding to the grid where the tripwire end point is located exist in both end points of the tripwire. And carrying out logical OR operation on the four-bit binary grid codes at two end points of the tripwire bit by bit and carrying out logical AND operation on the two end points of the tripwire bit by bit. For example, the trellis codes of the two ends of the tripwire are 0100 and 0010, respectively, and the four-bit binary codes 0100 and 0010 are subjected to logical or operation bit by bit and logical and operation bit by bit.
By adopting the mode, compared with the tripwire distribution judgment through the complicated multiplication and division operation related to equation calculation, the tripwire distribution judgment method has the advantages that a large number of multiplications and divisions are not related through coding operation like equation calculation, and various complicated situations (such as disjointness, horizontal intersection, vertical intersection and the like) of tripwire and region connection are avoided, the complexity of drawing the corresponding tripwire in each display split screen can be simplified through simple coding logic operation, the resource consumption of a kernel is reduced, the tripwire drawing speed is increased, and the tripwire drawing efficiency is improved.
And S140, controlling to draw the tripwire in the partition area in the display split screen of the partition area according to the logical OR and logical AND operation result so as to display the tripwire in a cross-screen mode.
According to the cross-screen tripwire drawing method provided by the embodiment of the invention, compared with the tripwire distribution judgment through complicated riding and dividing operations related to equation calculation, the tripwire distribution judgment calculation complexity can be simplified through coding logic operation, the speed of identifying whether the tripwires are intersected or not is increased, the tripwire can be quickly drawn in a plurality of areas, the cross-screen tripwire drawing can be quickly and clearly seen on a large screen connected with the splicing control equipment, a foundation is laid for the later calculation of the cross-area tripwire, and a user can simultaneously divide the plurality of areas by using one tripwire through expanding the areas.
Fig. 9 is a flowchart of another cross-screen tripwire delineation method provided in the embodiment of the present invention, and the embodiment of the present invention further optimizes the foregoing embodiment on the basis of the foregoing embodiment, and the embodiment of the present invention may be combined with various alternatives in one or more of the foregoing embodiments. As shown in fig. 9, the cross-screen tripwire delineation method provided in the embodiment of the present application may include the following steps:
s910, segmenting a picture window area displayed on the display wall, and determining a segmentation area in each display split screen of the display wall; the display wall comprises a plurality of display sub-screens arranged in an array.
In an alternative of this embodiment, the dividing the picture window area displayed on the display wall, and determining the divided area located in each display split screen of the display wall, may include the following steps B1-B2:
step B1, determining the display split occupied by the picture window area when displayed on the display wall.
And step B2, comparing the horizontal and vertical coordinates of the picture window area with the horizontal and vertical coordinates of each occupied display split screen, and determining the position information of the split area in each display split screen according to the comparison result.
Taking the screen-crossing display of the screen window area shown in fig. 6 as an example, the screen window area is divided into 4 display split screens according to the situation of the display split screen area occupied by the screen window area on the display wall, wherein the display split screens are respectively in the display split screen 1, the display split screen 2, the display split screen 3 and the display split screen 4, and the division areas belonging to each display split screen are respectively named as a division area 1, a division area 2, a division area 3 and a division area 4.
Referring to fig. 6, the horizontal and vertical coordinate values of the picture window area can be compared with the occupied display split screen areas respectively, and the picture window area is the sum of the areas 1 to 4. Regarding any display split screen occupied by the picture window area, taking the display split screen 1 as an example, if the maximum value of the abscissa of the display split screen 1 is smaller than the maximum value of the abscissa of the picture window area, setting the abscissa of the division area positioned in the display split screen 1 as the maximum value of the abscissa of the display split screen; and if the maximum value of the ordinate of the display split screen 1 is smaller than the maximum value of the ordinate of the picture window area, setting the smaller coordinate of the split area in the display split screen 1 as the maximum value of the ordinate of the display split screen 1. Through simple addition and subtraction calculation, the division area 1 is an area formed by a starting point X of the window area, a starting point Y of the window area, an end point X of the display split screen 1 and an end point Y of the display split screen 1. In the above manner, the positions of the divided regions located in the respective display sub-screens can be determined in sequence.
And S920, aiming at the segmentation areas positioned in each display split screen, setting the segmentation areas as central grids and dividing the display wall area into nine-grid grids.
The codes of the central grids are binary values represented by preset values, the codes of other grids are used for adjusting and determining the binary values represented by the preset values based on the offset directions of the other grids relative to the central grids, and the preset value is an integer 0.
And S930, performing logic OR and operation on the codes of the grids where the two end points of the tripwire are located in the picture window area based on the nine-grid grids which are divided by taking the divided area as the center grid.
And S940, determining the occupation condition of the tripwire on a plurality of display sub-screens of the display wall in the picture window area according to the logical OR and logical AND operation result.
In an alternative of this embodiment, determining occupancy of tripwires in a plurality of display sub-screens of a display wall in a screen window area according to the operation result of logical or and may include steps C1-C2:
and step C1, if the logical OR operation result between the grid codes corresponding to the two end points of the tripwire is 0, determining that the tripwire in the picture window area is completely positioned in the partition area corresponding to the central grid.
And step C2, if the logic AND operation result between the grid codes corresponding to the two end points of the tripwire is not 0, determining that the tripwire is completely positioned outside the division area corresponding to the central grid in the picture window area.
Referring to fig. 3, 4 and 5, in a scene in which an image screen is displayed across screens, tripwire display in one display split screen may have the following three cases: the tripwire is located entirely within the display split, the tripwire is located across multiple display split segments within a different display split that includes the display split (across the display split), and the tripwire is located entirely outside of the display split. The situation of crossing the display split screen can also include a plurality of situations, for example, crossing two display split screens VOs, crossing three display split screens VOs, crossing the display split screen obliquely at the left side, crossing the display split screen obliquely at the right side, crossing the display split screen vertically, and the like.
Referring to fig. 7 and 8, the four-bit binary trellis codes at the two ends of the tripwire are logically ored bit by bit and logically anded bit by bit. If the logic OR operation result of the grid codes of the two end points is 0, the representative tripwire is completely positioned in the partition area corresponding to the central grid, and the multiple display sub-screens cannot be sketched for displaying. In the case that the logical or operation result of the mesh codes of the two end points is determined not to be 0, if it is detected that the logical and operation result of the mesh codes of the two end points is not 0, the representative tripwire is completely positioned in other meshes outside the divided area corresponding to the central mesh without being sketched and displayed in the divided area corresponding to the central mesh.
In another alternative of this embodiment, determining the occupancy of the tripwire on a plurality of display sub-screens of the display wall in the screen window area according to the operation result of the logical or and may further include the following steps:
and if the logic AND operation result between the grid codes corresponding to the two end points of the tripwire is 0 and the logic OR operation result is not 0, determining that the part of the tripwire in the picture window area is positioned in the partition area corresponding to the central grid and is intersected with the grid boundary line of the partition area, or determining that the tripwire in the picture window area is completely positioned outside the partition area corresponding to the central grid and is intersected with the extension line of the boundary line of the partition area.
Referring to fig. 10, a tripwire 1 is depicted across a divided area 1, a divided area 3, and a divided area 2 in a screen window area, and a tripwire 2 is depicted across a divided area 4, a divided area 3, and a divided area 2 in the screen window area. After a nine-grid is divided into a display wall area by taking a divided area as a center grid, two end points of a tripwire 1 and a tripwire 2 are the same in grids corresponding to the nine-grid, so that the two end points of the tripwire 1 and the tripwire 2 are provided with the same four-bit binary grid codes, the judgment range can be only roughly reduced to the extent that the part of the tripwire is positioned in the divided area corresponding to the center grid and is intersected with grid boundary lines of the divided areas or the tripwire is completely positioned outside the divided area corresponding to the center grid and is intersected with extension lines of boundary lines of the divided areas, but the specific situation cannot be distinguished through logic or and operation.
S950, controlling the display sub-screen where the division area is located to draw the tripwire located in the division area according to the occupation condition of the display sub-screen of the tripwire on the display wall.
In an alternative of this embodiment, controlling the display sub-screen where the split area is located to delineate the tripwire located in the split area according to the occupancy of the tripwire on the display sub-screen of the display wall may include the following steps:
and under the condition that the tripwire is completely positioned in the partition area corresponding to the central grid, the complete tripwire is controlled to be drawn in the display sub-screen in which the partition area is positioned by adopting the horizontal and vertical coordinates indicated by the end point position information when the two end points of the tripwire are displayed on the display wall.
Referring to fig. 3, when a tripwire is completely located in the divided area corresponding to the central mesh, it is described that the tripwire is not displayed in other display sub-screens except the display sub-screen where the divided area is located, at this time, the display sub-screens in the divided area where the tripwire is located correspond to different CPU processors, and the horizontal and vertical coordinates of the starting point and the ending point indicated by the end point position information of the two end points of the tripwire are directly rendered on the corresponding display sub-screens, so that the tripwire display can be performed.
In another alternative of this embodiment, controlling the display sub-screen where the split area is located to draw the tripwire located in the split area according to the occupancy of the tripwire on the display sub-screen of the display wall may include the following steps:
and in the case that the tripwire is completely positioned outside the divided area corresponding to the central grid, forbidding to draw the tripwire in the display split screen where the divided area is positioned.
Referring to fig. 3, 4 and 5, it is easy to see that when a tripwire is completely located outside the divided area corresponding to the central mesh, it is described that the tripwire is not displayed on the display sub-screen corresponding to the divided area, and at this time, the display sub-screen corresponding to the divided area where the tripwire is located does not need to be drawn by the tripwire, and only the image screen corresponding to the divided area is displayed.
In another alternative of this embodiment, controlling the display sub-screen where the division areas are located to delineate the tripwire located in the division area according to the occupancy of the tripwire on the display sub-screen of the display wall may include steps D1-D3:
d1, when the tripwire occupation condition is not accurately judged, determining a grid edge line intersected with the tripwire from the grid edge lines of the central grid where the partition area is located according to the grid codes corresponding to the two end points of the tripwire; the grid edges include grid boundary lines or extensions of the grid boundaries.
Referring to fig. 10, it can be analyzed that, in the case of the tripwire 1, a part of the tripwire is located in a divided area corresponding to the central mesh and intersects with a mesh boundary line of the divided area; in the case of the tripwire 2, the tripwire in the screen window area is completely located outside the divided area corresponding to the center mesh and intersects with the extension line of the boundary line of the divided area. In both cases, the extension lines of the grid boundary lines of the divided regions and the boundary lines of the divided regions coincide with the boundary lines of the display sub-screen where the divided regions are located, and thus it is known that the grid boundary lines and the boundary line extension lines of the divided regions have fixed abscissa values and ordinate values.
And D2, determining the coordinates of the intersection points of the grid side lines and the tripwire by adopting a similar triangle principle according to the horizontal and vertical coordinates indicated by the end point position information when the two ends of the tripwire are respectively displayed on the display wall and the horizontal and vertical coordinates of the grid side lines intersected with the tripwire.
Referring to fig. 10 and 11, when an intersection of the trip line and the grid boundary line or the extension line of the boundary line is calculated on the basis of knowing the abscissa and ordinate indicated by the end point position information when the two end points of the trip line are respectively displayed on the display wall, at least one of the abscissa and ordinate values of the intersection is known to be fixed. For example, when calculating the intersection point of the grid boundary line or the boundary line extension line where the trip line is parallel to the horizontal axis, the vertical coordinate of the intersection point is fixed as the vertical coordinate value of the boundary line; when the intersection point of the grid boundary line or the boundary line extension line of which the trip line is parallel to the longitudinal axis is calculated, the abscissa of the intersection point is fixed as the abscissa value of the boundary line.
Referring to fig. 11, the lower left point of the two ends of the tripwire is taken as a starting point a, the upper right point of the two ends of the tripwire is taken as an end point d, the intersection point of the tripwire and the lower boundary line of the divided region corresponding to the central mesh is taken as b, and the intersection point of the tripwire and the right boundary line of the divided region corresponding to the central mesh is taken as c. The mesh codes corresponding to the endpoint a and the endpoint d are 0100 and 0010 respectively, if the mesh code of the endpoint a and the mesh code of the endpoint d are in phase or not 0, the tripwire connected with the endpoint a and the endpoint d is judged not to be completely inside the segmentation area corresponding to the central mesh; and if the phase and of the grid codes of a and d are 0, judging that the tripwire connected with a and d intersects with the extension line of the boundary line of the partition area corresponding to the central grid or the boundary line.
In one alternative, referring to FIG. 11, trigonometric values (e.g., tangent values) can be derived from the abscissa of the start and the abscissa of the end of the trip wire. Taking a tangent value as an example, when the vertical coordinate of the intersection point with the grid boundary line or the extension line of the boundary line is fixed, according to the vertical coordinate difference value between the vertical coordinate of the intersection point of the trip line and the grid boundary line or the extension line of the boundary line and the vertical coordinate of an end point, and according to the obtained vertical coordinate difference value and the calculated tangent value, the horizontal coordinate difference value between the horizontal coordinate of the intersection point and the horizontal coordinate of the end point can be combined with the horizontal coordinate value of the end point to obtain the horizontal coordinate value of the intersection point, and the intersection point coordinate of the intersection point on the grid boundary line and the trip line is obtained by calculating aiming at all the intersection points of the intersection of the grid boundary line or the extension line of the grid boundary line according to the mode.
In another alternative, referring to FIG. 11, the manner of calculating the coordinates of the intersection points on the grid edge lines that intersect with the trip line is as follows: the grid code of the a end point of the two end points of the tripwire is 0100, so that the a end point of the two end points of the tripwire is surely intersected with the lower boundary of the divided region corresponding to the central grid, and the vertical coordinate of the intersection point b of the tripwire and the lower boundary of the divided region corresponding to the central grid is the vertical coordinate of the lower boundary of the divided region corresponding to the central grid, and is not required to be calculated and fixed. The abscissa of the intersection point b can be calculated using a similar triangle:
Figure BDA0003331722680000171
the coordinates of b can be obtained through the above method, and the coordinates of the intersection point c of the trip line and the right boundary of the divided area corresponding to the central grid can be obtained in the same way.
And D3, controlling the tripwire of which the part is located in the division area to be drawn in the display split screen of the division area according to the horizontal and vertical coordinates indicated by the end point position information when the two ends of the tripwire are displayed on the display wall and the obtained intersection point coordinates.
Referring to fig. 10 and 11, it can be easily seen that the horizontal and vertical coordinates indicated by the end point position information when the two end points of the tripwire are displayed on the display wall and the coordinates of the obtained intersection point can be used as the starting point and the end point of the part of the tripwire located in the divided area. After the nine-grid mesh is performed with each segmented region as a central mesh, the tripwire portions located in each segmented region can be obtained in turn. Therefore, the display split screen of each partition area corresponds to different CPU processors, and the trip line display can be carried out by directly drawing and rendering the corresponding display split screen according to the indicated horizontal and vertical coordinates of the starting point and the ending point of the trip line of the divided areas.
According to the cross-screen tripwire drawing method provided by the embodiment of the invention, compared with the tripwire distribution judgment through complicated riding and dividing operations related to equation calculation, the tripwire distribution judgment calculation complexity can be simplified through coding logic operation, the speed of identifying whether the tripwires are intersected or not is increased, the tripwire can be quickly drawn in a plurality of areas, the cross-screen tripwire drawing can be quickly and clearly seen on a large screen connected with the splicing control equipment, a foundation is laid for the later calculation of the cross-area tripwire, and a user can simultaneously divide the plurality of areas by using one tripwire through expanding the areas. Particularly, when the intersection point is calculated, the intersection point coordinate can be obtained only by adopting an addition and subtraction method and limited multiplication and division operations, the tripwire intersection condition is not required to be considered too much, the calculation complexity and the error rate are reduced, and the calculation efficiency is improved.
Fig. 12 is a flowchart of another cross-screen tripwire delineation method provided in the embodiment of the present invention, which is further optimized based on the foregoing embodiment, and the embodiment of the present invention may be combined with various alternatives in one or more of the foregoing embodiments. As shown in fig. 12, the cross-screen tripwire delineation method provided in the embodiment of the present application may include the following steps:
s1210, dividing a picture window area displayed on a display wall, and determining a divided area in each display split screen of the display wall; the display wall comprises a plurality of display split screens arranged in an array.
And S1220, aiming at the divided areas positioned in each display split screen, setting the divided areas as central grids and dividing the display wall area into nine-grid grids.
The codes of the central grids are preset binary numbers, the codes of other grids are determined by inverting the preset binary numbers according to bits based on binary bits corresponding to offset directions of other grids relative to the central grids, the preset binary numbers are four-bit binary numbers represented by preset values, and the preset values are integers of 0;
and S1230, based on the nine-grid mesh divided by taking the divided area as the center mesh, performing logic OR and operation on the codes of the meshes where the two ends of the tripwire are located in the picture window area.
And S1240, controlling to draw the tripwire in the partitioned area in the display split screen of the partitioned area according to the logical OR and logical AND operation result so as to display the tripwire in a cross-screen mode.
S1250, determining the horizontal and vertical coordinates of the midpoint between the two ends of the tripwire according to the end point position information when the two ends of the tripwire are respectively displayed on the display wall.
With reference to FIG. 13, tripwire sometimes requires a direction indicator (e.g., an arrow) to indicate the tripwire direction, and the present application improves upon the calculation of the position coordinates of the direction indicator. The direction mark and the tripwire are vertical bisectors, so that the direction mark of the tripwire can be added only by determining the vertical bisector of the tripwire. When the two ends of the tripwire are respectively displayed on the display wall, the horizontal and vertical coordinate values indicated by the end point position information are average, and the horizontal and vertical coordinate of the midpoint between the two ends of the tripwire can be obtained.
And S1260, determining a reference point horizontal and vertical coordinates on a vertical bisector of the midpoint between the two end points of the trip line through coordinate difference calculation according to the horizontal and vertical coordinates of the midpoint between the two end points of the trip line and the horizontal and vertical coordinates of one end point of the trip line.
In an alternative of this embodiment, determining the abscissa and ordinate of the reference point on the perpendicular bisector of the midpoint between the two ends of the trip wire by coordinate difference calculation according to the abscissa and ordinate of the midpoint between the two ends of the trip wire and the abscissa and ordinate of one end of the trip wire may include the following steps E1 to E2:
and E1, determining the horizontal coordinate difference value and the vertical coordinate difference value between the middle point between the two end points of the tripwire and one end point of the tripwire.
And E2, subtracting the vertical coordinate difference value from the horizontal coordinate value of the midpoint between the two end points of the tripwire, and subtracting the horizontal coordinate difference value from the vertical coordinate value of the midpoint between the two end points of the tripwire to obtain the horizontal and vertical coordinates of the reference point on the vertical bisector of the midpoint between the two end points of the tripwire.
In consideration of large slope calculation amount (more multiplication and open roots) and complex calculation (trigonometric function conversion), the method is realized by adopting a mode of calculating the vertical bisector of the graph by using graph equality (only addition and subtraction and limited four-time division are needed). Referring to FIG. 13, assuming A1 and A2 are the two endpoints of the tripwire, respectively, and A1A2 is the known wire coordinates, if A6A3 is made perpendicular to A1A2, triangle A6A5A3 and triangle A3A2A4 need to be congruent, so that the resulting angle A6A3A2 is a right angle.
To obtain the coordinate point of a6, the abscissa and ordinate differences between the midpoint between the two ends of the tripwire and one end of the tripwire may be determined according to the abscissa and abscissa of the midpoint between the two ends of the tripwire, which are the length value of A3a4 and the length value of A2a4, respectively. The abscissa of A6 only needs to subtract the length value of A2A4 from the abscissa of A3, the ordinate of A6 only needs to subtract the length value of A3A4 from the ordinate of A3, and the abscissa and the ordinate of A6 can be obtained only by addition and subtraction.
S1270, adding a direction identifier for indicating the direction of a tripwire on the tripwire in a picture window area according to a middle point horizontal and vertical coordinate between two end points of the tripwire and a reference point horizontal and vertical coordinate; wherein the direction identification comprises an arrow main line segment and an arrow direction line segment.
Referring to fig. 10 and 13, after determining the horizontal and vertical coordinates of the midpoint between the two ends of the trip wire and the horizontal and vertical coordinates of the reference point, the connecting line between the horizontal and vertical coordinates of the midpoint and the horizontal and vertical coordinates of the reference point is the perpendicular bisector passing through the midpoint between the two ends of the trip wire. At this time, an arrow body segment of the direction indicator may be looked for on the perpendicular bisector of the tripwire to add the direction indicator for indicating the tripwire direction. The tripwire delineation and the addition of the direction identification can be carried out synchronously or sequentially, but the front time interval and the rear time interval are smaller visually.
Optionally, the arrow main line segment of the direction identifier and the wire mixing main line segment are perpendicular bisectors, and the length of the arrow main line segment is the length of the wire mixing
Figure BDA0003331722680000201
(configurable as required). The included angle between each of the two arrow direction line segments of the direction identifier and the arrow main line segment is 45 degrees (which can be configured according to the requirement), and the length of the arrow direction line segment is a preset multiple of the arrow main line segment, for example
Figure BDA0003331722680000202
Multiple (modifiable to fixed length).
Optionally, when calculating the arrow body line segment of the direction identifier, the length between the horizontal and vertical coordinates of the midpoint and the horizontal and vertical coordinates of the reference point is a preset multiple of the length of the tripwire, for example
Figure BDA0003331722680000203
Multiple, so that the length of the arrow main line section is equal to the length of the mixing line
Figure BDA0003331722680000204
When calculating the arrow direction line segment: two end points of the direction line segment, one is an arrow main body end point, and the other is two points on the perpendicular bisector.
On the basis of the above embodiment, optionally, referring to fig. 14, adding a direction identifier for indicating the direction of the tripwire on the tripwire in the screen window area may include the following steps:
and angle adjustment is carried out on the direction mark for indicating the tripper wire direction, so that the direction marks before and after adjustment are simultaneously displayed in a three-strand crossing mode.
The method is easy to generate breakpoints according to the existing method for sketching oblique lines, and is very obvious after amplification. The reason is that trip lines are sometimes diagonal lines, so that there are many decimal points on the calculated line. For example, the abscissa of two adjacent points may be 14.4 and 16.0, but when the screen is displayed or rendered on a large screen, only integer points are rounded up to 14, 16. This results in the display of a point on the large screen with an abscissa of 15 being missing. The appearance of the breakpoint affects the viewing effect of the client. On the basis, scheme optimization is carried out, direction marks before and after adjustment are simultaneously drawn in a 3-strand crossing mode for display, and breakpoint operation can be obviously eliminated through test result display.
Optionally, referring to fig. 14, the starting point and the ending point of the direction identifier of the yarn mixing are shifted by one pixel point left and right to form three-stranded wires, so that the pixel points are shifted on the basis of the original direction identifier of the yarn mixing to make the direction identifier look thicker as much as possible. For example, the starting points of three direction marks before and after the adjustment of the tripwire are respectively X, X-1 and X +1, and the coordinates of the end point of the tripwire are overturned and respectively correspond to X, X +1 and X-1. The crossing mode is simple and effective, the generation of breakpoints is eliminated, and the connecting points for drawing the tripwire are optimized. Because of how to round, two adjacent lines will become complementary lines, and the missing points will be complemented.
According to the cross-screen tripwire drawing method provided by the embodiment of the invention, compared with the tripwire distribution judgment through complicated riding and dividing operations related to equation calculation, the tripwire distribution judgment calculation complexity can be simplified through coding logic operation, the speed of identifying whether the tripwires are intersected or not is increased, the tripwire can be quickly drawn in a plurality of areas, the cross-screen tripwire drawing can be quickly and clearly seen on a large screen connected with the splicing control equipment, a foundation is laid for the later calculation of the cross-area tripwire, and a user can simultaneously divide the plurality of areas by using one tripwire through expanding the areas.
Fig. 15 is a structural diagram of a cross-screen tripwire delineation device provided in an embodiment of the present invention, where the technical solution of the embodiment is applicable to a situation where tripwires are displayed across multiple screens, and the method may be performed by the cross-screen tripwire delineation device, which may be implemented by software and/or hardware, and may be integrated in an electronic device with a network communication function. As shown in fig. 15, the cross-screen tripwire delineation device in the embodiment of the present invention may include the following: a split determination module 1510, a split partition configuration module 1520, a logical operation module 1530, and a tripwire delineation module 1540. Wherein:
a division determining module 1510, configured to divide a picture window area displayed on the display wall, and determine a division area located in each display sub-screen of the display wall; the display wall comprises a plurality of display split screens arranged in an array.
A division and division configuration module 1520, configured to set the division region as a central mesh and divide the display wall region into nine-grid meshes; the codes of the central grids are binary values represented by preset values, and the codes of other grids are used for adjusting and determining the binary values represented by the preset values based on the offset directions of the other grids relative to the central grids, wherein the preset value is an integer 0.
And the logical operation module 1530 is used for performing logical or and logical and operation on the codes of the grids where the two ends of the tripwire are located in the picture window area.
And the tripwire delineating module 1540 is configured to control to delineate a tripwire located in the split area in the display split screen where the split area is located according to the logical or and logical and operation result, so as to display the tripwire across screens.
On the basis of the foregoing embodiment, optionally, the code of the central grid is a preset binary number, the code of the other grid determines a bit-by-bit inversion of the preset binary number based on binary bits corresponding to offset orientations of the other grid with respect to the central grid, and the preset binary number is a four-bit binary number represented by the preset value.
On the basis of the foregoing embodiment, optionally, the segmentation determining module 1510 includes:
determining the display split screen occupied by the picture window area when the picture window area is displayed on the display wall;
and comparing the horizontal and vertical coordinates of the picture window area with the horizontal and vertical coordinates of each occupied display split screen, and determining the position information of the segmentation area belonging to each display split screen according to the comparison result.
On the basis of the above embodiment, optionally, the logic operation module 1530 includes:
determining the end point position information of two end points of the tripwire in the picture window area when the two end points are displayed on a display wall;
determining grids where the two end points of the tripwire are located according to the end point position information of the two end points of the tripwire and the nine-grid layout for dividing the display wall area based on the divided area as the central grid;
and assigning codes configured in grids where the two end points of the tripwire are located to the two end points of the tripwire, and carrying out logic OR operation and logic AND operation on the grid codes of the two end points.
Based on the above embodiments, optionally, the tripwire delineation module 1540 includes:
determining the occupation conditions of tripwires in a picture window area on a plurality of display sub-screens of a display wall according to the logical OR and logical AND operation result;
and controlling the display sub-screen where the division area is located to draw the tripwire located in the division area according to the occupation condition of the display sub-screen of the tripwire on the display wall.
On the basis of the foregoing embodiment, optionally, determining, according to an operation result of logical or and logical and, an occupation situation of tripwires in a screen window area on a plurality of display sub-screens of a display wall includes:
if the logic OR operation result between the grid codes corresponding to the two end points of the tripwire is 0, determining that the tripwire in the picture window area is completely positioned in the partition area corresponding to the central grid;
if the logic and operation result between the grid codes corresponding to the two end points of the tripwire is not 0, determining that the tripwire in the picture window area is completely positioned outside the segmentation area corresponding to the central grid;
and if the logic AND operation result between the grid codes corresponding to the two end points of the tripwire is 0 and the logic OR operation result is not 0, determining that the part of the tripwire in the picture window area is positioned in the partition area corresponding to the central grid and is intersected with the grid boundary line of the partition area, or determining that the tripwire in the picture window area is completely positioned outside the partition area corresponding to the central grid and is intersected with the extension line of the boundary line of the partition area.
On the basis of the above embodiment, optionally, controlling the display split screen where the split area is located to delineate the tripwire located in the split area according to the occupancy of the tripwire on the display split screen of the display wall includes:
under the condition that the tripwire is completely positioned in the partition area corresponding to the central grid, the complete tripwire is controlled to be drawn in the display sub-screen where the partition area is positioned by adopting the horizontal and vertical coordinates indicated by the end point position information when the two end points of the tripwire are displayed on the display wall;
and in the case that the tripwire is completely positioned outside the divided area corresponding to the central grid, forbidding to draw the tripwire in the display split screen where the divided area is positioned.
On the basis of the above embodiment, optionally, controlling the display split screen where the split area is located to delineate the tripwire located in the split area according to the occupancy of the tripwire on the display split screen of the display wall includes:
when the occupation condition of the tripwire is not accurately judged, determining a grid edge line intersected with the tripwire from grid edge lines of a central grid in which the partition area is located according to grid codes corresponding to two end points of the tripwire; the grid sideline comprises a grid boundary line or an extension line of the grid boundary;
determining the coordinate of an intersection point on the grid sideline intersected with the tripwire by adopting a similar triangle principle according to the horizontal and vertical coordinates indicated by the endpoint position information when the two endpoints of the tripwire are respectively displayed on the display wall and the horizontal and vertical coordinates of the grid sideline intersected with the tripwire;
and controlling the tripwire of which the part is sketched in the division area in the display split screen of the division area according to the horizontal and vertical coordinates indicated by the end point position information of the two tripwire end points when the two tripwire end points are displayed on the display wall and the obtained intersection point coordinates.
On the basis of the foregoing embodiment, optionally, after controlling to delineate a tripwire located in the split area in the display split screen where the split area is located, the method further includes:
determining a midpoint horizontal and vertical coordinate between two end points of the tripwire according to the end point position information when the two end points of the tripwire are respectively displayed on the display wall;
according to the horizontal and vertical coordinates of the middle point between the two end points of the trip line and the horizontal and vertical coordinates of one end point of the trip line, the horizontal and vertical coordinates of a reference point on a vertical bisector of the middle point between the two end points of the trip line are determined through coordinate difference calculation;
adding a direction identifier for indicating the direction of the tripwire on the tripwire in a picture window area according to a middle point horizontal and vertical coordinate between two end points of the tripwire and a reference point horizontal and vertical coordinate; wherein the direction identification comprises an arrow main line segment and an arrow direction line segment.
On the basis of the foregoing embodiment, optionally, determining, by coordinate difference operation, a reference point abscissa and ordinate on a perpendicular bisector of a midpoint between two ends of the tripwire according to the midpoint abscissa and ordinate between the two ends of the tripwire and the one end abscissa of the tripwire, includes:
determining a horizontal coordinate difference value and a vertical coordinate difference value between a middle point between two end points of the trip wire and one end point of the trip wire;
and subtracting the longitudinal coordinate difference value from a midpoint abscissa value between the two ends of the tripwire, and subtracting the abscissa difference value from a midpoint ordinate value between the two ends of the tripwire to obtain a reference point abscissa and ordinate on a perpendicular bisector of a midpoint between the two ends of the tripwire.
On the basis of the above embodiment, optionally, adding a direction identifier for indicating the direction of the tripwire on the tripwire in the screen window area includes:
and angle adjustment is carried out on the direction mark for indicating the tripper wire direction, so that the direction marks before and after adjustment are simultaneously displayed in a three-strand crossing mode.
The cross-screen tripwire drawing device provided by the embodiment of the invention can execute the cross-screen tripwire drawing method provided by any embodiment of the invention, has corresponding functions and beneficial effects of executing the cross-screen tripwire drawing method, and has the detailed process referred to related operations of the cross-screen tripwire drawing method in the embodiment.
Fig. 16 is a schematic structural diagram of an electronic device provided in an embodiment of the present invention. As shown in fig. 16, the electronic device provided in the embodiment of the present invention includes: one or more processors 1610 and storage 1620; the processor 1610 in the electronic device may be one or more, and one processor 1610 is taken as an example in fig. 16; storage 1620 is used to store one or more programs; the one or more programs are executed by the one or more processors 1610, such that the one or more processors 1610 implement a cross-screen tripwire delineation method according to any of the embodiments of the present invention.
The electronic device may further include: an input device 1630 and an output device 1640.
The processor 1610, the storage device 1620, the input device 1630, and the output device 1640 in the electronic apparatus may be connected by a bus or by another means, and are illustrated as being connected by a bus in fig. 16.
The storage 1620 in the electronic device is used as a computer readable storage medium for storing one or more programs, which may be software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the cross-screen tripwire delineation method provided in the embodiments of the present invention. The processor 1610 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the storage 1620, namely, implements the cross-screen tripwire delineation method in the above-described method embodiment.
The storage 1620 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device, and the like. Further, the storage 1620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, storage 1620 may further include memory located remotely from processor 1610, which may be connected to devices over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 1630 may be used for receiving input numeric or character information and generating key signal inputs related to user settings and function control of the electronic apparatus. The output device 1640 may include a display device such as a display screen.
And, when one or more programs included in the above electronic device are executed by the one or more processors 1610, the programs perform the following operations:
dividing a picture window area displayed on a display wall, and determining a divided area in each display split screen of the display wall; the display wall comprises a plurality of display split screens arranged in an array;
setting the segmentation area as a central grid and dividing the display wall area into nine-grid grids; the codes of the central grids are binary systems represented by preset values, and the codes of other grids are used for adjusting and determining the binary systems represented by the preset values based on the offset directions of the other grids relative to the central grids, wherein the preset value is an integer 0;
carrying out logic OR and logic AND operation on the codes of grids where two ends of tripwires are located in the picture window area;
and controlling to draw the tripwire positioned in the partition area in the display split screen of the partition area according to the operation result of the logical OR and the logical AND so as to display the tripwire in a cross-screen mode.
Of course, it will be understood by those skilled in the art that when one or more programs included in the electronic device are executed by the one or more processors 1610, the programs may also perform related operations in the cross-screen tripwire drawing method provided in any embodiment of the present invention.
An embodiment of the present invention provides a computer-readable medium having stored thereon a computer program for executing a cross-screen tripwire delineation method when executed by a processor, the method comprising:
dividing a picture window area displayed on a display wall, and determining a divided area in each display split screen of the display wall; the display wall comprises a plurality of display split screens arranged in an array;
setting the segmentation area as a central grid and dividing the display wall area into nine-grid grids; the codes of the central grids are binary systems represented by preset values, and the codes of other grids are used for adjusting and determining the binary systems represented by the preset values based on the offset directions of the other grids relative to the central grids, wherein the preset value is an integer 0;
carrying out logic OR and logic AND operation on the codes of grids where two ends of tripwires are located in the picture window area;
and controlling to draw the tripwire positioned in the partition area in the display split screen of the partition area according to the operation result of the logical OR and the logical AND so as to display the tripwire in a cross-screen mode.
Optionally, the program, when executed by a processor, may be further configured to perform a cross-screen tripwire delineation method provided in any embodiment of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a flash Memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. A computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take a variety of forms, including, but not limited to: an electromagnetic signal, an optical signal, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A cross-screen tripwire delineation method, the method comprising:
dividing a picture window area displayed on a display wall, and determining a divided area in each display split screen of the display wall; the display wall comprises a plurality of display split screens arranged in an array;
setting the segmentation area as a central grid and dividing the display wall area into nine-grid grids; the codes of the central grids are binary systems represented by preset values, and the codes of other grids are used for adjusting and determining the binary systems represented by the preset values based on the offset directions of the other grids relative to the central grids, wherein the preset value is an integer 0;
carrying out logic OR and logic AND operation on the codes of grids where two ends of tripwires are located in the picture window area;
and controlling to draw the tripwire positioned in the partition area in the display split screen of the partition area according to the operation result of the logical OR and the logical AND so as to display the tripwire in a cross-screen mode.
2. The method of claim 1, wherein the code of the central grid is a predetermined binary number, and the codes of the other grids determine the predetermined binary number by bit negation based on binary bits corresponding to offset orientations of the other grids with respect to the central grid, and the predetermined binary number is a four-bit binary number represented by the predetermined value.
3. The method according to claim 1 or 2, wherein logically OR-AND the coding of the mesh in which the two end points of the tripwire are located in the picture window area comprises:
determining the end point position information of two end points of the tripwire in the picture window area when the two end points are displayed on a display wall;
determining grids where the two end points of the tripwire are located according to the end point position information of the two end points of the tripwire and the nine-grid layout for dividing the display wall area based on the divided area as the central grid;
and assigning codes configured in grids where the two end points of the tripwire are located to the two end points of the tripwire, and carrying out logic OR operation and logic AND operation on the grid codes of the two end points.
4. The method according to claim 1 or 2, wherein controlling to delineate a tripwire located in a partition in a display split screen where the partition is located according to a logical or and operation result comprises:
determining the occupation conditions of tripwires in a picture window area on a plurality of display sub-screens of a display wall according to the logical OR and logical AND operation result;
and controlling the display sub-screen where the division area is located to draw the tripwire located in the division area according to the occupation condition of the display sub-screen of the tripwire on the display wall.
5. The method of claim 4, wherein determining occupancy of tripwires in a plurality of display sub-screens of a display wall in a screen window area based on a logical OR and logical AND operation comprises:
if the logic OR operation result between the grid codes corresponding to the two end points of the tripwire is 0, determining that the tripwire in the picture window area is completely positioned in the partition area corresponding to the central grid;
if the logic and operation result between the grid codes corresponding to the two end points of the tripwire is not 0, determining that the tripwire in the picture window area is completely positioned outside the segmentation area corresponding to the central grid;
and if the logic AND operation result between the grid codes corresponding to the two end points of the tripwire is 0 and the logic OR operation result is not 0, determining that the part of the tripwire in the picture window area is positioned in the partition area corresponding to the central grid and is intersected with the grid boundary line of the partition area, or determining that the tripwire in the picture window area is completely positioned outside the partition area corresponding to the central grid and is intersected with the extension line of the boundary line of the partition area.
6. The method of claim 5, wherein controlling the display sub-screen in which the split area is located to delineate the tripwire located in the split area according to occupancy of the tripwire in the display sub-screen of the display wall comprises:
under the condition that the tripwire is completely positioned in the partition area corresponding to the central grid, the complete tripwire is controlled to be drawn in the display sub-screen where the partition area is positioned by adopting the horizontal and vertical coordinates indicated by the end point position information when the two end points of the tripwire are displayed on the display wall;
under the condition that the tripwire is completely positioned outside the segmentation area corresponding to the central grid, the tripwire is prohibited from being drawn in the display split screen where the segmentation area is positioned;
or, according to the display split screen occupation condition of the tripwire on the display wall, controlling the tripwire located in the division area to be sketched on the display split screen where the division area is located, and further comprising:
when the occupation condition of the tripwire is not accurately judged, determining a grid edge line intersected with the tripwire from grid edge lines of a central grid in which the partition area is located according to grid codes corresponding to two end points of the tripwire; the grid sideline comprises a grid boundary line or an extension line of the grid boundary;
determining the coordinate of an intersection point on the grid sideline intersected with the tripwire by adopting a similar triangle principle according to the horizontal and vertical coordinates indicated by the endpoint position information when the two endpoints of the tripwire are respectively displayed on the display wall and the horizontal and vertical coordinates of the grid sideline intersected with the tripwire;
and controlling the tripwire of which the part is sketched in the division area in the display split screen of the division area according to the horizontal and vertical coordinates indicated by the end point position information of the two tripwire end points when the two tripwire end points are displayed on the display wall and the obtained intersection point coordinates.
7. The method of claim 1, wherein controlling further comprises, after delineating a tripwire located within the split area in the display split in which the split area is located, the method further comprising:
determining a midpoint horizontal and vertical coordinate between two end points of the tripwire according to the end point position information when the two end points of the tripwire are respectively displayed on the display wall;
according to the horizontal and vertical coordinates of the middle point between the two end points of the trip line and the horizontal and vertical coordinates of one end point of the trip line, the horizontal and vertical coordinates of a reference point on a vertical bisector of the middle point between the two end points of the trip line are determined through coordinate difference calculation;
adding a direction identifier for indicating the direction of the tripwire on the tripwire in a picture window area according to a middle point horizontal and vertical coordinate between two end points of the tripwire and a reference point horizontal and vertical coordinate; wherein the direction identification comprises an arrow main line segment and an arrow direction line segment.
8. A cross-screen tripwire delineation device, the device comprising:
the segmentation determining module is used for segmenting the picture window area displayed on the display wall and determining the segmentation area in each display split screen of the display wall; the display wall comprises a plurality of display split screens arranged in an array;
the segmentation division configuration module is used for setting the segmentation area as a central grid and dividing the display wall area into nine-grid grids; the codes of the central grids are binary systems represented by preset values, and the codes of other grids are used for adjusting and determining the binary systems represented by the preset values based on the offset directions of the other grids relative to the central grids, wherein the preset value is an integer 0;
the logic operation module is used for carrying out logic OR and logic AND operation on the codes of the grids where the two ends of the tripwire are positioned in the picture window area;
and the tripwire drawing module is used for controlling to draw the tripwire positioned in the partition area in the display split screen of the partition area according to the logical OR and logical AND operation result so as to display the tripwire in a cross-screen mode.
9. An electronic device, comprising:
one or more processing devices;
storage means for storing one or more programs;
when executed by the one or more processing devices, cause the one or more processing devices to implement the cross-screen tripwire delineation method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processing device, implements the cross-screen tripwire delineation method of any of claims 1-7.
CN202111282539.7A 2021-11-01 2021-11-01 Cross-screen tripwire drawing method and device, electronic equipment and storage medium Pending CN114037713A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111282539.7A CN114037713A (en) 2021-11-01 2021-11-01 Cross-screen tripwire drawing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111282539.7A CN114037713A (en) 2021-11-01 2021-11-01 Cross-screen tripwire drawing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114037713A true CN114037713A (en) 2022-02-11

Family

ID=80142453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111282539.7A Pending CN114037713A (en) 2021-11-01 2021-11-01 Cross-screen tripwire drawing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114037713A (en)

Similar Documents

Publication Publication Date Title
CN108038897B (en) Shadow map generation method and device
EP3267391B1 (en) Graphic processing method, device and system
US10290145B2 (en) Image space-based particle generation modeling
CN111862204A (en) Method for extracting visual feature points of image and related device
CN114529658A (en) Graph rendering method and related equipment thereof
JP7262530B2 (en) Location information generation method, related device and computer program product
CN113538623B (en) Method, device, electronic equipment and storage medium for determining target image
CN112634401B (en) Plane track drawing method, device, equipment and storage medium
CN109325902B (en) Panoramic image fusion method, device and system and computer readable storage medium
CN110502305B (en) Method and device for realizing dynamic interface and related equipment
CN114037713A (en) Cross-screen tripwire drawing method and device, electronic equipment and storage medium
CN112848312B (en) Method and device for detecting three-dimensional model object, computer equipment and storage medium
CN114418829A (en) Static scene occlusion processing method and device, electronic equipment and readable medium
CN111784796A (en) Terrain grid generation method, device, equipment and medium
CN111524446B (en) Data processing method and device, electronic equipment and readable storage medium
CN113870403A (en) Information processing method and device for image rendering
CN112465692A (en) Image processing method, device, equipment and storage medium
CN116071276B (en) Vertex-based three-dimensional model gap repairing method, device, equipment and medium
CN116310261B (en) Three-dimensional model segmentation method, device, equipment and storage medium
CN113487694B (en) Electronic map rendering method, device, equipment and automatic driving vehicle
CN116309974B (en) Animation scene rendering method, system, electronic equipment and medium
KR102608466B1 (en) Method and apparatus for processing image
CN117392263A (en) Point cloud three-dimensional frame drawing method, device and storage medium
CN117953184A (en) Collision detection method and device of WebGL rendering engine and electronic equipment
CN115965702A (en) Vector graphic rendering method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination