CN111429469B - Berth position determining method and device, electronic equipment and storage medium - Google Patents

Berth position determining method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111429469B
CN111429469B CN201910309691.6A CN201910309691A CN111429469B CN 111429469 B CN111429469 B CN 111429469B CN 201910309691 A CN201910309691 A CN 201910309691A CN 111429469 B CN111429469 B CN 111429469B
Authority
CN
China
Prior art keywords
berth
boundary
berths
monitoring
acquiring
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.)
Active
Application number
CN201910309691.6A
Other languages
Chinese (zh)
Other versions
CN111429469A (en
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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201910309691.6A priority Critical patent/CN111429469B/en
Publication of CN111429469A publication Critical patent/CN111429469A/en
Application granted granted Critical
Publication of CN111429469B publication Critical patent/CN111429469B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/14Traffic control systems for road vehicles indicating individual free spaces in parking areas

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the application provides a berth position determining method, a berth position determining device, electronic equipment and a storage medium, which are applied to the technical field of image processing, wherein the berth position determining method comprises the following steps: acquiring target image data of a monitoring scene of a designated monitoring device, and displaying the target image data; acquiring a first berth boundary, a second berth boundary and the number of berths in target image data; according to the number of berths, dividing the area determined by the first berth boundary and the second berth boundary into a plurality of berth positions. The berth position determining method of the embodiment of the application realizes the determination of the berth position in the monitoring scene of the monitoring equipment, and can increase the marking efficiency of the berth position compared with the method that a user marks four sides of each berth respectively.

Description

Berth position determining method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a berth position determining method, a berth position determining device, an electronic device, and a storage medium.
Background
With the popularization of monitoring equipment, the parking lot berths, roadside berths and the like gradually realize monitoring coverage. In the related art, only the surveillance video data is generally utilized for the purpose of subsequent evidence collection, but in practice, the surveillance video data may also be used for statistics and intelligent management of berths.
For monitoring equipment, for example, for intelligent cameras and the like, parking situations such as whether the berth is parked or not can be counted according to the determined berth position by utilizing a computer vision technology. The statistics of parking situations depend on the determination of the berth position, but the berth position in the monitoring equipment is difficult to determine due to different factors such as the erection height and the erection angle of different monitoring equipment, so that the berth position in the monitoring scene of the monitoring equipment is expected to be confirmed.
Disclosure of Invention
The embodiment of the application aims to provide a berth position determining method, a berth position determining device, electronic equipment and a storage medium, so as to determine the berth position in a monitoring scene of monitoring equipment. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for determining a berth position, where the method includes:
acquiring target image data of a monitoring scene of a designated monitoring device, and displaying the target image data;
acquiring a first berth boundary, a second berth boundary and the number of berths in the target image data;
and dividing the area determined by the first berth boundary and the second berth boundary into a plurality of berth positions according to the berth number.
Optionally, after the target image data of the monitoring scene of the designated monitoring device is acquired and the target image data is displayed, the method further includes:
judging whether the positions of the berths in the monitoring scene of the appointed monitoring equipment are marked or not;
the obtaining the first berth boundary, the second berth boundary and the number of berths in the target image data comprises the following steps:
and if the positions of the berths in the monitoring scene of the appointed monitoring equipment are not marked, acquiring a first berth boundary, a second berth boundary and the number of berths in the target image data.
Optionally, after the determining whether each berth position in the monitoring scene of the specified monitoring device has been marked, the method further includes:
and if the positions of the berths in the monitoring scene of the appointed monitoring equipment are marked, displaying the positions of the berths in the monitoring scene of the appointed monitoring equipment.
Optionally, the acquiring the first berth boundary, the second berth boundary, and the number of berths in the target image data includes:
acquiring first berth boundary drawing information and second berth boundary drawing information input by a user, drawing the first berth boundary according to the first berth boundary drawing information, and drawing the second berth boundary according to the second berth boundary drawing information;
and acquiring the number information of the berths input by the user, and determining the number of the berths according to the number information of the berths.
Optionally, the dividing the area defined by the first berth boundary and the second berth boundary into a plurality of berth positions according to the number of berths includes:
determining each berth endpoint of the first berth boundary according to the first berth boundary and the number of berths, and determining each berth endpoint of the second berth boundary according to the second berth boundary and the number of berths;
and connecting each berth endpoint of the first berth boundary with one berth endpoint of the second berth boundary, wherein the berth endpoints are in the same sequence, so as to obtain each berth position in the monitoring scene of the appointed monitoring equipment.
Optionally, the berth position determining method of the embodiment of the present application further includes:
acquiring berth endpoint adjustment information input by a user;
according to the berth endpoint adjustment information, adjusting the positions of corresponding berth endpoints in the first berth boundary and/or the second berth boundary;
and correcting the corresponding berth position in the monitoring scene of the appointed monitoring equipment according to the position of the adjusted berth endpoint.
Optionally, the berth position determining method of the embodiment of the present application further includes:
acquiring berth boundary adjustment information input by a user;
adjusting the first berth boundary and/or the second berth boundary according to the berth boundary adjustment information;
and correcting the corresponding berth position in the monitoring scene of the appointed monitoring equipment according to the current first berth boundary and the second berth boundary.
Optionally, the berth position determining method of the embodiment of the present application further includes:
and storing each berth position in the monitoring scene of the appointed monitoring equipment.
In a second aspect, an embodiment of the present application provides a berth position determining apparatus, the apparatus including:
the image data display module is used for acquiring target image data of a monitoring scene of the appointed monitoring equipment and displaying the target image data;
the computing parameter acquisition module is used for acquiring a first berth boundary, a second berth boundary and the number of berths in the target image data;
and the berth position determining module is used for dividing the area determined by the first berth boundary and the second berth boundary into a plurality of berth positions according to the berth number.
Optionally, the berth position determining device of the embodiment of the present application further includes:
the berth marking judging module is used for judging whether the berth positions in the monitoring scene of the appointed monitoring equipment are marked or not;
the calculation parameter acquisition module is specifically configured to:
and if the positions of the berths in the monitoring scene of the appointed monitoring equipment are not marked, acquiring a first berth boundary, a second berth boundary and the number of berths in the target image data.
Optionally, the berth position determining device of the embodiment of the present application further includes:
and the berth position display module is used for displaying the berth positions in the monitoring scene of the appointed monitoring equipment if the berth positions in the monitoring scene of the appointed monitoring equipment are marked.
Optionally, the calculation parameter obtaining module includes:
the drawing information acquisition sub-module is used for acquiring first berth boundary drawing information and second berth boundary drawing information input by a user, drawing the first berth boundary according to the first berth boundary drawing information and drawing the second berth boundary according to the second berth boundary drawing information;
the number information acquisition sub-module is used for acquiring the number information of the berths input by the user and determining the number of the berths according to the number information of the berths.
Optionally, the berth position determining module includes:
the berth endpoint determination submodule is used for determining all berth endpoints of the first berth boundary according to the first berth boundary and the berth quantity, and determining all berth endpoints of the second berth boundary according to the second berth boundary and the berth quantity;
and the berth position marking sub-module is used for connecting each berth endpoint of the first berth boundary with the berth endpoint with the same sequence in each berth endpoint of the second berth boundary to obtain each berth position in the monitoring scene of the appointed monitoring equipment.
Optionally, the berth position determining device of the embodiment of the present application further includes:
the terminal adjustment information acquisition module is used for acquiring the berth terminal adjustment information input by the user;
the berth endpoint correction module is used for adjusting the positions of corresponding berth endpoints in the first berth boundary and/or the second berth boundary according to the berth endpoint adjustment information;
and the berth position correction module is used for correcting the corresponding berth position in the monitoring scene of the appointed monitoring equipment according to the position of the adjusted berth endpoint.
Optionally, the berth position determining device of the embodiment of the present application further includes:
the boundary adjustment information acquisition module is used for acquiring berth boundary adjustment information input by a user;
the berth boundary correction module is used for adjusting the first berth boundary and/or the second berth boundary according to the berth boundary adjustment information;
and the berth position correction module is used for correcting the corresponding berth position in the monitoring scene of the designated monitoring equipment according to the current first berth boundary and the second berth boundary.
Optionally, the berth position determining device of the embodiment of the present application further includes:
and the berth position storage module is used for storing each berth position in the monitoring scene of the appointed monitoring equipment.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to implement the berth location determining method according to any one of the first aspect when executing the program stored in the memory.
In a fourth aspect, a computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the berth position determination method of any of the first aspects above.
According to the berth position determining method, the berth position determining device, the electronic equipment and the storage medium provided by the embodiment of the application, target image data of a monitoring scene of the appointed monitoring equipment is obtained, and the target image data is displayed; acquiring a first berth boundary, a second berth boundary and the number of berths in target image data; according to the number of berths, dividing the area determined by the first berth boundary and the second berth boundary into a plurality of berth positions. The method and the device have the advantages that the berth positions in the monitoring scene of the monitoring equipment are determined, and compared with the situation that the users mark four sides of each berth respectively, the marking efficiency of the berth positions can be improved. Of course, it is not necessary for any one product or method of practicing the application to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a first schematic diagram of a berth position determination method according to an embodiment of the present application;
fig. 2a is a first schematic diagram of a first berth boundary and a second berth boundary according to an embodiment of the application;
fig. 2b is a second schematic diagram of a first berth boundary and a second berth boundary according to an embodiment of the application;
FIG. 3 is a second schematic diagram of a berth position determination method according to an embodiment of the application;
FIG. 4 is a schematic diagram of a berth terminal according to an embodiment of the present application;
FIG. 5 is a third schematic diagram of a berth position determination method according to an embodiment of the application;
FIG. 6 is a schematic diagram of a berth position determining apparatus according to an embodiment of the application;
fig. 7 is a schematic diagram of an electronic device according to an embodiment of the application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Berth: refers to parking spaces in parkable places such as roadsides, garages and the like. The embodiment of the application provides a berth position determining method, referring to fig. 1, comprising the following steps:
s101, acquiring target image data of a monitoring scene of a designated monitoring device, and displaying the target image data.
The berth position determining method of the embodiment of the application can be realized through the client device, the client device comprises a processor and a memory, the memory stores a computer program, and the berth position determining method of the embodiment of the application is realized when the processor executes the computer program stored in the memory.
The client device acquires image data of a monitored scene acquired by the designated monitoring device, namely target image data. The target image data may be a video stream or may be a separate video frame. The client device, after acquiring the target image data, will display the target image data. The client device may be built-in or externally connected to a display screen, displaying the target image data on the display screen.
S102, acquiring a first berth boundary, a second berth boundary and the number of berths in the target image data.
The electronic device obtains a first berth boundary, a second berth boundary and the number of berths in the target image data. The first berth boundary and the second berth boundary are two opposite berth boundary lines in the actual monitoring scene, and the first berth boundary and the second berth boundary penetrate through berths of positions to be marked in the actual monitoring scene, for example, the first berth boundary and the second berth boundary may be as shown in fig. 2a and fig. 2b, where the positions of the first berth boundary and the second berth boundary may be interchanged. In one possible implementation, the target image data includes berths to be marked, and the electronic device may analyze the target image data through a computer vision technology, such as a convolutional neural network trained in advance, so as to obtain a first berth boundary, a second berth boundary and the number of berths in the target image data. Wherein lighter and thicker lines represent berth boundaries, darker and thinner lines are berth lines, and 001, 002 and 003 are marks of each berth, although in actual situations, there may be no berth lines and marks of berths, and only the positions of the berth boundaries are illustrated here.
In one possible embodiment, the first berth boundary, the second berth boundary, and the number of berths may be manually entered in order to increase the accuracy of the berth position markers. Optionally, referring to fig. 3, the acquiring the first berth boundary, the second berth boundary, and the number of berths in the target image data includes:
s301, acquiring first berth boundary drawing information and second berth boundary drawing information input by a user, drawing the first berth boundary according to the first berth boundary drawing information, and drawing the second berth boundary according to the second berth boundary drawing information.
The client device acquires first berth boundary drawing information and second berth boundary drawing information input by a user, draws the first berth boundary in target image data according to the first berth boundary drawing information, and draws the second berth boundary in the target image data according to the second berth boundary drawing information. For example, the user may designate to input two line segments on the target image data by means of a mouse or a touch screen, and the client device draws the first berth boundary and the second berth boundary according to the line segments input by the user.
S302, acquiring the number information of the berths input by a user, and determining the number of the berths according to the number information of the berths.
The client device obtains the berth number information input by the user, so as to determine the berth number. For example, if the user inputs the number of berths information as 4, it is determined that the number of berths is 4. In the embodiment of the present application, the order of S301 and S302 is not limited, and S301 may be executed first, then S302 may be executed first, then S301 may be executed, or S301 and S302 may be executed simultaneously.
And S103, dividing the area determined by the first berth boundary and the second berth boundary into a plurality of berth positions according to the berth number.
The client device determines a quadrilateral area according to the first berth boundary and the second berth boundary, and divides the quadrilateral area into subareas with the same number according to the number of berths, wherein each subarea is one berth position. For example, the quadrangular region may be divided into the same number of sub-regions as the number of berths on average, and so on.
In one possible embodiment, the dividing the area defined by the first berth boundary and the second berth boundary into a plurality of berth positions according to the number of berths includes:
step one, determining each berth endpoint of the first berth boundary according to the first berth boundary and the berth quantity, and determining each berth endpoint of the second berth boundary according to the second berth boundary and the berth quantity.
The client device divides the two lane lines according to a preset rule, and determines berth endpoints on each lane line. The preset rule can be determined according to actual conditions, for example, the client device can divide two lane lines at equal intervals respectively; or the client device may determine a reduction ratio of the distances of the equal distances in the actual scene in the target image data according to the view angle and the shooting distance of the monitoring device and the order of the shooting distances from the near to the far, and divide the two lane lines in equal proportion according to the reduction ratio. The number of berth endpoints on each lane is 1 more than the number of berths. For example, if the number of berths is 5, the number of berth endpoints on each lane is 6.
And step two, connecting each berth endpoint of the first berth boundary with berth endpoints with the same sequence in each berth endpoint of the second berth boundary to obtain each berth position in the monitoring scene of the appointed monitoring equipment.
The client device connects, according to the order of the berth endpoints, the berth endpoints with the same order in the berth endpoints of the first berth boundary and the second berth boundary, for example, as shown in fig. 4, connects the 1 st berth endpoint of the first berth boundary with the 1 st berth endpoint of the second berth boundary, connects the 2 nd berth endpoint of the first berth boundary with the 2 nd berth endpoint of the second berth boundary, and so on, thereby obtaining the berth positions in the monitoring scene of the designated monitoring device. The order of the berth endpoints may be set according to the implementation, but it is necessary to ensure that the first berth boundary and the second berth boundary determine the same rule of the order of the berth endpoints. For example, when the lane line is in the vertical direction, the berth end point near the top is the first berth end point in the order from top to bottom; when the lane line is in the horizontal direction, the berth end point close to the left is the first berth end point in the order from left to right. Wherein lighter and thicker lines represent berth boundaries, darker and thinner lines are berth lines, and 001, 002 and 003 are marks of each berth, although in actual situations, there may be no berth lines and marks of berths, and only the positions of the berth boundaries are illustrated here.
After the client device determines each berth position in the monitoring scene of the specified monitoring device, each berth position can be configured in the specified monitoring device, for example, the client device can access the specified monitoring device through a browser by utilizing a Web control, so that the configuration of the berth position of the specified monitoring device is realized.
In the embodiment of the application, the berth position in the monitoring scene of the monitoring equipment is determined, and compared with the case that the user marks four sides of each berth respectively, the marking efficiency of the berth position can be increased.
Optionally, referring to fig. 5, after the acquiring the target image data of the monitoring scene of the designated monitoring device and displaying the target image data, the method further includes:
s501, judging whether the positions of the berths in the monitoring scene of the designated monitoring equipment are marked.
The client device determines whether the positions of the berths in the monitoring scene of the designated monitoring device are marked. For example, the client device determines whether the specified storage location stores each berth location in the monitoring scene of the specified monitoring device, if so, determines that each berth location in the monitoring scene of the specified monitoring device has been marked, and if not, determines that each berth location in the monitoring scene of the specified monitoring device has not been marked. The designated storage location is determined according to the actually set berth location save location, for example, the designated storage location is a client device local storage, cloud storage, or storage of a designated monitoring device.
The obtaining the first berth boundary, the second berth boundary and the number of berths in the target image data includes:
and if the positions of the berths in the monitoring scene of the appointed monitoring equipment are not marked, acquiring a first berth boundary, a second berth boundary and the number of berths in the target image data.
If the positions of the berths in the monitoring scene of the appointed monitoring equipment are not marked, the client equipment acquires the first berth boundary, the second berth boundary and the number of the berths in the target image data so as to carry out a subsequent berth position calibration flow.
Optionally, after the determining whether each berth position in the monitoring scene of the specified monitoring device has been marked, the method further includes:
s502, if the positions of the berths in the monitoring scene of the appointed monitoring equipment are marked, displaying the positions of the berths in the monitoring scene of the appointed monitoring equipment.
And if the positions of the berths in the monitoring scene of the appointed monitoring equipment are marked, the client equipment acquires and displays the positions of the berths in the monitoring scene of the appointed monitoring equipment in the target image data.
In practical situations, there may be situations where automatic marking of berth endpoints is inaccurate, and thus there may be situations where manual revisions are required. Optionally, the berth position determining method of the embodiment of the present application further includes:
s503, acquiring berth endpoint adjustment information input by a user.
The client device acquires berth endpoint adjustment information input by a user, wherein the berth endpoint adjustment information characterizes a berth endpoint to be adjusted and a position of the berth endpoint to be adjusted after adjustment. For example, the user may drag the position of the specified berth endpoint directly through a touch screen or a mouse, and the client device obtains the adjustment input of the user, that is, the berth endpoint adjustment information.
S504, adjusting the positions of the corresponding berth endpoints in the first berth boundary and/or the second berth boundary according to the berth endpoint adjustment information.
When the berth endpoint adjustment information characterizes an adjustment of an endpoint on the first berth boundary, the client device adjusts a position of a corresponding berth endpoint on the first berth boundary. When the berth endpoint adjustment information characterizes adjusting the berth endpoint on the second berth boundary, the client device adjusts the position of the corresponding berth endpoint on the second berth boundary. When the berth endpoint adjustment information characterizes and adjusts the berth endpoints on the first berth boundary and the second berth boundary, the client device adjusts the positions of the corresponding berth endpoints on the first berth boundary and the second berth boundary.
S505, correcting the corresponding berth position in the monitoring scene of the appointed monitoring equipment according to the position of the adjusted berth endpoint.
And the client device corrects the adjusted berth position of the berth endpoint in the monitoring scene of the appointed monitoring device according to the position of the adjusted berth endpoint, and does not adjust the unadjusted berth position of the berth endpoint.
Optionally, the berth position determining method of the embodiment of the present application further includes:
s506, storing the positions of the berths in the monitoring scene of the appointed monitoring equipment.
And the client device converts each berth position in the monitoring scene of the appointed monitoring device into coordinate data and stores the coordinate data. The client device may store the coordinate data of each berth location locally on the client device, may store the coordinate data of each berth location in the cloud storage, and may store the coordinate data of each berth location in the designated monitoring device.
In the embodiment of the application, each berth position in the monitoring scene of the appointed monitoring equipment is stored, so that the acquisition of each berth position monitored by the appointed monitoring equipment is convenient, and the use and correction of the subsequent berth position are convenient.
In order to improve the accuracy of the berth position marking, in a possible implementation manner, the berth position determining method of the embodiment of the application further includes:
step one, acquiring berth boundary adjustment information input by a user.
The client device acquires berth boundary adjustment information input by a user, wherein the berth boundary adjustment information characterizes a to-be-adjusted berth boundary and the position of the to-be-adjusted berth boundary after adjustment. For example, the user may directly drag the position of the designated berth boundary through a touch screen or a mouse, and the client device obtains the adjustment input of the user, that is, the berth boundary adjustment information.
And step two, adjusting the first berth boundary and/or the second berth boundary according to the berth boundary adjustment information.
When the berth boundary adjusting information characterizes and adjusts the position of the first berth boundary, adjusting the position of the first berth boundary; adjusting the position of the second berth boundary when the berth boundary adjusting information characterizes and adjusts the position of the second berth boundary; and when the berth boundary adjusting information characterizes and adjusts the positions of the first berth boundary and the second berth boundary, adjusting the positions of the first berth boundary and the second berth boundary.
And thirdly, correcting the corresponding berth position in the monitoring scene of the appointed monitoring equipment according to the current first berth boundary and the second berth boundary.
And redefining each berth position according to the adjusted current first berth boundary and the second berth boundary so as to correct each berth position.
The embodiment of the application also provides a berth position determining device, referring to fig. 6, the device comprises:
the image data display module 601 is configured to obtain target image data of a monitoring scene of a specified monitoring device, and display the target image data;
a calculation parameter obtaining module 602, configured to obtain a first berth boundary, a second berth boundary, and the number of berths in the target image data;
the berth position determining module 603 is configured to divide the area determined by the first berth boundary and the second berth boundary into a plurality of berth positions according to the number of berths.
In the embodiment of the application, the berth position in the monitoring scene of the monitoring equipment is determined, and compared with the case that the user marks four sides of each berth respectively, the marking efficiency of the berth position can be increased.
Optionally, the berth position determining device implemented by the application further comprises:
the berth marking judging module is used for judging whether the berth positions in the monitoring scene of the appointed monitoring equipment are marked or not;
the above-mentioned calculation parameter obtaining module 602 is specifically configured to:
and if the positions of the berths in the monitoring scene of the appointed monitoring equipment are not marked, acquiring a first berth boundary, a second berth boundary and the number of berths in the target image data.
Optionally, the berth position determining device implemented by the application further comprises:
and the berth position display module is used for displaying the berth positions in the monitoring scene of the appointed monitoring equipment if the berth positions in the monitoring scene of the appointed monitoring equipment are marked.
Optionally, the calculation parameter obtaining module 602 includes:
the drawing information acquisition sub-module is used for acquiring first berth boundary drawing information and second berth boundary drawing information input by a user, drawing the first berth boundary according to the first berth boundary drawing information, and drawing the second berth boundary according to the second berth boundary drawing information;
the number information acquisition sub-module is used for acquiring the number information of the berths input by the user and determining the number of the berths according to the number information of the berths.
Optionally, the berth position determining module 603 includes
The berth endpoint determination submodule is used for determining all berth endpoints of the first berth boundary according to the first berth boundary and the berth quantity, and determining all berth endpoints of the second berth boundary according to the second berth boundary and the berth quantity;
and the berth position marking sub-module is used for connecting each berth endpoint of the first berth boundary with the berth endpoint with the same sequence in each berth endpoint of the second berth boundary to obtain each berth position in the monitoring scene of the appointed monitoring equipment.
Optionally, the berth position determining device implemented by the application further comprises:
the adjusting information acquisition module is used for acquiring the berth endpoint adjusting information input by the user;
the berth endpoint correction module is used for adjusting the positions of corresponding berth endpoints in the first berth boundary and/or the second berth boundary according to the berth endpoint adjustment information;
and the berth position correction module is used for correcting the corresponding berth position in the monitoring scene of the appointed monitoring equipment according to the position of the adjusted berth endpoint.
Optionally, the berth position determining device implemented by the application further comprises:
and the berth position storage module is used for storing each berth position in the monitoring scene of the appointed monitoring equipment.
Optionally, the berth position determining device of the embodiment of the present application further includes:
the boundary adjustment information acquisition module is used for acquiring berth boundary adjustment information input by a user;
the berth boundary correction module is used for adjusting the first berth boundary and/or the second berth boundary according to the berth boundary adjustment information;
and the berth position correction module is used for correcting the corresponding berth position in the monitoring scene of the appointed monitoring equipment according to the current first berth boundary and the second berth boundary.
The embodiment of the application also provides electronic equipment, which comprises a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to implement the following steps when executing the program stored in the memory:
acquiring target image data of a monitoring scene of a designated monitoring device, and displaying the target image data, wherein the target image data comprises berths to be marked;
acquiring a first berth boundary, a second berth boundary and the number of berths in the target image data;
and dividing the area defined by the first berth boundary and the second berth boundary into a plurality of berth positions according to the berth number.
In the embodiment of the application, the berth position in the monitoring scene of the monitoring equipment is determined, and compared with the case that the user marks four sides of each berth respectively, the marking efficiency of the berth position can be increased.
Optionally, the processor is configured to execute the program stored in the memory, and further implement any one of the berth position determining methods.
Optionally, as shown in fig. 7, the electronic device of the embodiment of the present application may further include a communication interface 702 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 complete communication with each other through the communication bus 704.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the following steps when being executed by a processor:
acquiring target image data of a monitoring scene of a designated monitoring device, and displaying the target image data, wherein the target image data comprises berths to be marked;
acquiring a first berth boundary, a second berth boundary and the number of berths in the target image data;
and dividing the area defined by the first berth boundary and the second berth boundary into a plurality of berth positions according to the berth number.
In the embodiment of the application, the berth position in the monitoring scene of the monitoring equipment is determined, and compared with the case that the user marks four sides of each berth respectively, the marking efficiency of the berth position can be increased.
Optionally, the computer program can implement any of the above-mentioned berth position determining methods when executed by the processor.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for embodiments of the apparatus, electronic device and storage medium, the description is relatively simple as it is substantially similar to the method embodiments, where relevant see the section description of the method embodiments.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (14)

1. A method of berth location determination, the method comprising:
acquiring target image data of a monitoring scene of a designated monitoring device, and displaying the target image data;
acquiring a first berth boundary, a second berth boundary and the number of berths in the target image data, wherein the first berth boundary and the second berth boundary are two opposite berth boundary lines in an actual monitoring scene, and the first berth boundary and the second berth boundary penetrate through berths of positions to be marked in the actual monitoring scene;
determining each berth endpoint of the first berth boundary according to the first berth boundary and the number of berths, and determining each berth endpoint of the second berth boundary according to the second berth boundary and the number of berths;
and connecting each berth endpoint of the first berth boundary with one berth endpoint of the second berth boundary, wherein the berth endpoints are in the same sequence, so as to obtain each berth position in the monitoring scene of the appointed monitoring equipment.
2. The method of claim 1, wherein after the acquiring the target image data of the monitoring scene of the specified monitoring device and presenting the target image data, the method further comprises:
judging whether the positions of the berths in the monitoring scene of the appointed monitoring equipment are marked or not;
the obtaining the first berth boundary, the second berth boundary and the number of berths in the target image data comprises the following steps:
and if the positions of the berths in the monitoring scene of the appointed monitoring equipment are not marked, acquiring a first berth boundary, a second berth boundary and the number of berths in the target image data.
3. The method of claim 2, wherein after said determining whether each berth position in the monitoring scene of the designated monitoring device has been marked, the method further comprises:
and if the positions of the berths in the monitoring scene of the appointed monitoring equipment are marked, displaying the positions of the berths in the monitoring scene of the appointed monitoring equipment.
4. The method of claim 1, wherein the acquiring the first berth boundary, the second berth boundary, and the number of berths in the target image data comprises:
acquiring first berth boundary drawing information and second berth boundary drawing information input by a user, drawing the first berth boundary according to the first berth boundary drawing information, and drawing the second berth boundary according to the second berth boundary drawing information;
and acquiring the number information of the berths input by the user, and determining the number of the berths according to the number information of the berths.
5. The method according to claim 1, wherein the method further comprises:
acquiring berth endpoint adjustment information input by a user;
according to the berth endpoint adjustment information, adjusting the positions of corresponding berth endpoints in the first berth boundary and/or the second berth boundary;
and correcting the corresponding berth position in the monitoring scene of the appointed monitoring equipment according to the position of the adjusted berth endpoint.
6. The method according to claim 1, wherein the method further comprises:
acquiring berth boundary adjustment information input by a user;
adjusting the first berth boundary and/or the second berth boundary according to the berth boundary adjustment information;
and correcting the corresponding berth position in the monitoring scene of the appointed monitoring equipment according to the current first berth boundary and the second berth boundary.
7. The method according to any one of claims 1-6, further comprising:
and storing each berth position in the monitoring scene of the appointed monitoring equipment.
8. A berth position determining apparatus, the apparatus comprising:
the image data display module is used for acquiring target image data of a monitoring scene of the appointed monitoring equipment and displaying the target image data;
the computing parameter acquisition module is used for acquiring a first berth boundary, a second berth boundary and the number of berths in the target image data, wherein the first berth boundary and the second berth boundary are two opposite berth boundary lines in an actual monitoring scene, and the first berth boundary and the second berth boundary penetrate through berths of positions to be marked in the actual monitoring scene;
the berth endpoint determination submodule is used for determining all berth endpoints of the first berth boundary according to the first berth boundary and the berth quantity, and determining all berth endpoints of the second berth boundary according to the second berth boundary and the berth quantity;
and the berth position marking sub-module is used for connecting each berth endpoint of the first berth boundary with the berth endpoint with the same sequence in each berth endpoint of the second berth boundary to obtain each berth position in the monitoring scene of the appointed monitoring equipment.
9. The apparatus of claim 8, wherein the apparatus further comprises:
the berth marking judging module is used for judging whether the berth positions in the monitoring scene of the appointed monitoring equipment are marked or not;
the calculation parameter acquisition module is specifically configured to:
and if the positions of the berths in the monitoring scene of the appointed monitoring equipment are not marked, acquiring a first berth boundary, a second berth boundary and the number of berths in the target image data.
10. The apparatus of claim 9, wherein the apparatus further comprises:
and the berth position display module is used for displaying the berth positions in the monitoring scene of the appointed monitoring equipment if the berth positions in the monitoring scene of the appointed monitoring equipment are marked.
11. The apparatus of claim 8, wherein the computing parameter acquisition module comprises:
the drawing information acquisition sub-module is used for acquiring first berth boundary drawing information and second berth boundary drawing information input by a user, drawing the first berth boundary according to the first berth boundary drawing information and drawing the second berth boundary according to the second berth boundary drawing information;
the number information acquisition sub-module is used for acquiring the number information of the berths input by the user and determining the number of the berths according to the number information of the berths.
12. The apparatus of claim 8, wherein the apparatus further comprises:
the terminal adjustment information acquisition module is used for acquiring the berth terminal adjustment information input by the user;
the berth endpoint correction module is used for adjusting the positions of corresponding berth endpoints in the first berth boundary and/or the second berth boundary according to the berth endpoint adjustment information;
and the berth position correction module is used for correcting the corresponding berth position in the monitoring scene of the appointed monitoring equipment according to the position of the adjusted berth endpoint.
13. The apparatus of claim 8, wherein the apparatus further comprises:
the boundary adjustment information acquisition module is used for acquiring berth boundary adjustment information input by a user;
the berth boundary correction module is used for adjusting the first berth boundary and/or the second berth boundary according to the berth boundary adjustment information;
and the berth position correction module is used for correcting the corresponding berth position in the monitoring scene of the designated monitoring equipment according to the current first berth boundary and the second berth boundary.
14. The apparatus according to any one of claims 8-13, wherein the apparatus further comprises:
and the berth position storage module is used for storing each berth position in the monitoring scene of the appointed monitoring equipment.
CN201910309691.6A 2019-04-17 2019-04-17 Berth position determining method and device, electronic equipment and storage medium Active CN111429469B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910309691.6A CN111429469B (en) 2019-04-17 2019-04-17 Berth position determining method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910309691.6A CN111429469B (en) 2019-04-17 2019-04-17 Berth position determining method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111429469A CN111429469A (en) 2020-07-17
CN111429469B true CN111429469B (en) 2023-11-03

Family

ID=71546745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910309691.6A Active CN111429469B (en) 2019-04-17 2019-04-17 Berth position determining method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111429469B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115457760B (en) * 2022-08-03 2023-09-01 北京云星宇交通科技股份有限公司 Method and device for identifying and binding license plate and berth of vehicle

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2138653A2 (en) * 2008-06-23 2009-12-30 PMS GmbH Parking area management
CN102005133A (en) * 2010-11-04 2011-04-06 任杰 Recognizable mark-based parking position detecting method
WO2013136592A1 (en) * 2012-03-14 2013-09-19 オムロン株式会社 Area designating method and area designating device
CN103473950A (en) * 2012-06-06 2013-12-25 刘鉵 Parking lot parking space monitoring method
CN104112370A (en) * 2014-07-30 2014-10-22 哈尔滨工业大学深圳研究生院 Monitoring image based intelligent parking lot parking place identification method and system
JP2015075966A (en) * 2013-10-09 2015-04-20 富士通株式会社 Image processing device, image processing method and program
CN107248309A (en) * 2017-06-19 2017-10-13 深圳市盛路物联通讯技术有限公司 A kind of intelligentized parking charging method and system
KR101806066B1 (en) * 2017-03-24 2018-01-11 주식회사 넥스쿼드 Camera module with function of parking guidance
CN107738612A (en) * 2017-09-22 2018-02-27 西安电子科技大学 The detection of automatic parking parking stall and identifying system based on panoramic vision accessory system
CN108351958A (en) * 2015-10-22 2018-07-31 日产自动车株式会社 The detection method and device of the wire on parking stall
CN109472184A (en) * 2017-09-08 2019-03-15 深圳市金溢科技股份有限公司 The condition detection method in berth, system and its data processing equipment in road

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8766818B2 (en) * 2010-11-09 2014-07-01 International Business Machines Corporation Smart spacing allocation
JP5981322B2 (en) * 2012-11-27 2016-08-31 クラリオン株式会社 In-vehicle image processing device
US9449236B2 (en) * 2013-11-04 2016-09-20 Xerox Corporation Method for object size calibration to aid vehicle detection for video-based on-street parking technology
CN106652546B (en) * 2015-10-30 2020-01-24 重庆邮电大学 Parking space navigation method, device and system and parking space management method and device
KR101965834B1 (en) * 2016-10-12 2019-08-13 엘지전자 주식회사 Parking Assistance Apparatus and Vehicle Having The Same
US10801860B2 (en) * 2017-06-14 2020-10-13 Here Global B.V. Mapping system and method for identifying a parking lot from probe data

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2138653A2 (en) * 2008-06-23 2009-12-30 PMS GmbH Parking area management
CN102005133A (en) * 2010-11-04 2011-04-06 任杰 Recognizable mark-based parking position detecting method
WO2013136592A1 (en) * 2012-03-14 2013-09-19 オムロン株式会社 Area designating method and area designating device
CN103473950A (en) * 2012-06-06 2013-12-25 刘鉵 Parking lot parking space monitoring method
JP2015075966A (en) * 2013-10-09 2015-04-20 富士通株式会社 Image processing device, image processing method and program
CN104112370A (en) * 2014-07-30 2014-10-22 哈尔滨工业大学深圳研究生院 Monitoring image based intelligent parking lot parking place identification method and system
CN108351958A (en) * 2015-10-22 2018-07-31 日产自动车株式会社 The detection method and device of the wire on parking stall
KR101806066B1 (en) * 2017-03-24 2018-01-11 주식회사 넥스쿼드 Camera module with function of parking guidance
CN107248309A (en) * 2017-06-19 2017-10-13 深圳市盛路物联通讯技术有限公司 A kind of intelligentized parking charging method and system
CN109472184A (en) * 2017-09-08 2019-03-15 深圳市金溢科技股份有限公司 The condition detection method in berth, system and its data processing equipment in road
CN107738612A (en) * 2017-09-22 2018-02-27 西安电子科技大学 The detection of automatic parking parking stall and identifying system based on panoramic vision accessory system

Also Published As

Publication number Publication date
CN111429469A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN109284674B (en) Method and device for determining lane line
EP3806064B1 (en) Method and apparatus for detecting parking space usage condition, electronic device, and storage medium
US11205284B2 (en) Vehicle-mounted camera pose estimation method, apparatus, and system, and electronic device
CN109389135B (en) Image screening method and device
CN108629292B (en) Curved lane line detection method and device and terminal
CN109426788B (en) Queuing length detection method and device and server
US11430226B2 (en) Lane line recognition method, lane line recognition device and non-volatile storage medium
US20150363659A1 (en) Data processing apparatus, data processing method, and program
EP4170601A1 (en) Traffic marker detection method and training method for traffic marker detection model
CN112348835A (en) Method and device for detecting material quantity, electronic equipment and storage medium
CN111275765B (en) Method and device for determining target GPS and camera
CN111429469B (en) Berth position determining method and device, electronic equipment and storage medium
CN108055486B (en) Brightness correction method and device
CN114943954B (en) Parking space detection method, device and system
CN113497897B (en) Vehicle-road cooperative roadside camera installation parameter adjusting method and device and electronic equipment
CN109598746A (en) A kind of method and device tracking image template generation
CN115393433A (en) Detection area recovery method, device, equipment and storage medium
CN112866631B (en) Region determination method, system and device and electronic equipment
US10223592B2 (en) Method and associated apparatus for performing cooperative counting with aid of multiple cameras
CN110243357B (en) Unmanned aerial vehicle positioning method and device, unmanned aerial vehicle and storage medium
CN112509028A (en) Method and apparatus for estimating window area
CN104700396B (en) The method and system of the parameter for estimating the volume of traffic is determined from image
CN111698413A (en) Object image acquisition method and device and electronic equipment
CN112863183B (en) Traffic flow data fusion method and system
CN111275766B (en) Calibration method and device for image coordinate system and GPS coordinate system and camera

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
GR01 Patent grant
GR01 Patent grant