CN112991808B - Parking space display method and device for parking area and electronic equipment - Google Patents
Parking space display method and device for parking area and electronic equipment Download PDFInfo
- Publication number
- CN112991808B CN112991808B CN202011599593.XA CN202011599593A CN112991808B CN 112991808 B CN112991808 B CN 112991808B CN 202011599593 A CN202011599593 A CN 202011599593A CN 112991808 B CN112991808 B CN 112991808B
- Authority
- CN
- China
- Prior art keywords
- parking space
- parking
- area
- target
- live
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/14—Traffic control systems for road vehicles indicating individual free spaces in parking areas
- G08G1/141—Traffic control systems for road vehicles indicating individual free spaces in parking areas with means giving the indication of available parking spaces
- G08G1/144—Traffic control systems for road vehicles indicating individual free spaces in parking areas with means giving the indication of available parking spaces on portable or mobile units, e.g. personal digital assistant [PDA]
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/14—Traffic control systems for road vehicles indicating individual free spaces in parking areas
- G08G1/145—Traffic control systems for road vehicles indicating individual free spaces in parking areas where the indication depends on the parking areas
- G08G1/148—Management of a network of parking areas
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/14—Traffic control systems for road vehicles indicating individual free spaces in parking areas
- G08G1/149—Traffic control systems for road vehicles indicating individual free spaces in parking areas coupled to means for restricting the access to the parking space, e.g. authorization, access barriers, indicative lights
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Traffic Control Systems (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application provides a parking space display method, a parking space display device and electronic equipment in a parking area, and the parking space display method, the parking space display device and the electronic equipment comprise: determining a target parking space area of a target parking space needing to be updated from a visual area of a currently displayed parking area map; and rendering the cached parking space real-scene image of the target parking space to the target parking space area. By using the method provided by the application, the electronic equipment not only displays the information of the occupied parking space, but also displays the parking space live-action image of the parking space, and a parking space manager can acquire various parking space information from the live-action image, so that the parking space management is greatly facilitated.
Description
Technical Field
The present disclosure relates to the field of computer communications, and in particular, to a method and an apparatus for displaying parking spaces in a parking area, and an electronic device.
Background
In order to manage parking spaces in a parking area, parking space management software has been developed.
When the electronic device is configured with parking management software, the display window of the electronic device can display a parking area map. The parking area map includes parking spaces.
In the existing parking space display method, a display window of an electronic device usually displays a pattern block for representing each parking space, and displays whether the parking space is occupied or not by using two different colors. For example, a certain picture block corresponds parking stall 1, and when parking stall 1 was taken up, this picture block was grey, when parking stall 1 was not taken up, this picture block was yellow.
However, the parking space display mode can only display the occupied condition of the parking space, and cannot reflect the overall appearance of the parking space, so that inconvenience is caused for parking space management.
Disclosure of Invention
In view of this, the present application provides a parking space display method and apparatus for a parking area, and an electronic device, so that the electronic device can not only display the occupied situation of the parking space, but also display the overall view of the parking space, thereby improving the parking space management.
Specifically, the method is realized through the following technical scheme:
according to a first aspect of the present application, a method for displaying parking spaces in a parking area is provided, and the method is applied to an electronic device, and includes:
determining a target parking space area of a target parking space needing to be updated from a visual area of a currently displayed parking area map;
and rendering the cached parking space real-scene image of the target parking space to the target parking space area.
Optionally, the determining a target parking space area of a target parking space to be updated from a visual area of a currently displayed parking area map includes:
and under the condition that the level updating operation aiming at the parking area map is monitored to meet the preset condition, determining the parking spaces which are not rendered and are contained in the visible area of the parking area map as target parking spaces to be updated.
Optionally, the preset conditions include:
the level of the parking area map is changed to a specified level.
Optionally, after the rendering the cached parking space live-action image of the target parking space to the target parking space region, the method further includes:
and when the currently displayed parking area map is monitored to be changed from the designated level to the non-designated level, clearing the rendered parking space live-action image in the visual area of the parking area map.
Optionally, the method further includes:
acquiring and caching the latest parking space real image of at least one parking space with the parking space real image changing in a target time period;
the step of determining a target parking space area of a target parking space to be updated from a visual area of a currently displayed parking area map comprises the following steps:
and if the parking space corresponding to the obtained any latest parking space real image is the parking space contained in the visual area and the current level of the parking area map is the designated level, determining the parking space corresponding to the any parking space real image as the target parking space to be updated.
Optionally, the obtaining and caching the latest parking space live-action image of at least one parking space in which the parking space live-action image changes within the target time period includes:
sending a query request for parking spaces in the parking area map to the server; the query request comprises a parking space identifier; the query request is used for triggering the server to search the return time of the parking space real image of the parking space returned to the electronic equipment at the last time based on the parking space identification, and determining whether the latest parking space real image of the parking space exists in a time period formed by the return time and the current time, if so, returning the acquisition address of the latest parking space real image to the electronic equipment;
and acquiring the latest parking space real image of at least one parking space with the changed parking space real image from the server through the acquisition address.
Optionally, rendering the real-scene parking space image of the cached target parking space to the target parking space region includes:
preprocessing the parking space live-action image to enable the preprocessed parking space live-action image to be matched with the shape of the target parking space area;
and rendering the preprocessed parking space live-action image to the target parking space area.
Optionally, the preprocessing the parking space live-action image includes:
adjusting the size of the parking space real image to enable the adjusted size of the parking space real image to be matched with the size of the target parking space area;
and/or the presence of a gas in the atmosphere,
and determining a rotation angle of the parking space live-action image, and rotating the parking space live-action image according to the rotation angle so as to enable the appointed side of the rotated parking space live-action image to coincide with the appointed side of the target parking space area.
Optionally, the adjusting the size of the parking space live-action image includes:
determining the size of the target parking space area based on the vertex coordinates of the target parking space area, carrying out scaling processing on the determined size of the target parking space area according to a preset scaling ratio, and adjusting the size of the parking space live-action image according to the processed size of the target parking space area;
the determining the rotation angle of the parking space live-action image comprises:
and determining an included angle between an appointed side and an appointed direction of the target parking space region based on the vertex coordinates of the target parking space region, and determining the determined included angle as the rotation angle of the parking space live-action image.
Optionally, after the rendering the cached parking space live-action image of the target parking space to the target parking space region, the method further includes:
when monitoring a display triggering operation aiming at the parking space real image displayed in the visible area, establishing a suspension display window in the visible area, and displaying the parking space real image in the suspension display window according to a display proportion indicated by the display triggering operation;
and/or the presence of a gas in the gas,
when monitoring a video preview triggering operation aiming at any parking place on the parking area map, acquiring a video of the any parking place collected from the current moment from a server, and displaying the video of the any parking place;
and/or the presence of a gas in the gas,
when monitoring the video playback triggering operation aiming at any parking place on the parking area map, acquiring the video of the any parking place acquired in the playback time period indicated by the playback triggering event from a server, and displaying the acquired video of the any parking place.
According to a second aspect of the present application, there is provided a parking space display device for a parking area, the device being applied to an electronic device, the device including:
the system comprises a determining unit, a display unit and a display unit, wherein the determining unit is used for determining a target parking space area of a target parking space needing to be updated from a visual area of a currently displayed parking area map;
and the rendering unit is used for rendering the cached parking space real-scene image of the target parking space to the target parking space area.
Optionally, when the determination unit determines the target parking space area of the target parking space to be updated from the visual area of the currently displayed parking area map, the determination unit is configured to determine, under the condition that it is monitored that the level updating operation for the parking area map satisfies the preset condition, the parking space included in the visual area of the parking area map and not being rendered as the target parking space to be updated.
Optionally, the preset conditions include:
the level of the parking area map is changed to a specified level.
Optionally, the rendering unit is further configured to, after rendering the cached parking space live-action image of the target parking space to the target parking space area, clear the rendered parking space live-action image in the visible area of the parking area map when it is monitored that the currently displayed parking area map is changed from the designated level to the non-designated level.
Optionally, the apparatus further comprises:
the acquisition unit is used for acquiring and caching the latest parking space real image of at least one parking space with the changed parking space real image in a target time period;
the determining unit is configured to, when a target parking space area of a target parking space to be updated is determined from a visual area of a currently displayed parking area map, determine, as the target parking space to be updated, a parking space corresponding to any latest parking space live-action image if the parking space corresponding to the acquired any latest parking space live-action image is a parking space included in the visual area and a current hierarchy of the parking area map is an appointed hierarchy.
Optionally, the obtaining unit is configured to send a query request for a parking space in the parking area map to the server when obtaining and caching a latest parking space real-scene image of at least one parking space in which the parking space real-scene image changes within a target time period; the query request comprises a parking space identifier; the query request is used for triggering the server to search the return time of the parking space live-action image of the parking space returned to the electronic equipment at the last time based on the parking space identification, and determining whether the latest parking space live-action image of the parking space exists in the time period formed by the return time and the current time, if so, returning the acquisition address of the latest parking space live-action image to the electronic equipment; and acquiring the latest parking space real image of at least one parking space with the changed parking space real image from the server through the acquisition address.
Optionally, the rendering unit is configured to, when rendering the cached parking space real-scene image of the target parking space to the target parking space region, pre-process the parking space real-scene image, so that the pre-processed parking space real-scene image matches the shape of the target parking space region; and rendering the preprocessed parking space real-scene image to the target parking space area.
Optionally, the rendering unit is configured to, when the parking space real-image is preprocessed, adjust the size of the parking space real-image, so that the adjusted size of the parking space real-image matches the size of the target parking space area; and/or determining a rotation angle of the parking space real image, and rotating the parking space real image according to the rotation angle, so that the appointed side of the rotated parking space real image is coincided with the appointed side of the target parking space area.
Optionally, when the size of the parking space live-action image is adjusted, the rendering unit is configured to determine the size of the target parking space region based on the vertex coordinates of the target parking space region, perform scaling processing on the determined size of the target parking space region according to a preset scaling ratio, and adjust the size of the parking space live-action image according to the processed size of the target parking space region;
and the rendering unit is used for determining an included angle between an appointed side and an appointed direction of the target parking space region based on the vertex coordinate of the target parking space region when determining the rotation angle of the parking space live-action image, and determining the determined included angle as the rotation angle of the parking space live-action image.
Optionally, the apparatus further comprises: the display unit is used for establishing a suspension display window in the visible area when monitoring display triggering operation aiming at the parking space real image displayed in the visible area, and displaying the parking space real image in the suspension display window according to the display proportion indicated by the display triggering operation; and/or when monitoring a video preview triggering operation for any parking space on the parking area map, acquiring a video of the any parking space acquired from the current moment from the server, and displaying the video of the any parking space; and/or when the video playback triggering operation aiming at any parking place on the parking area map is monitored, acquiring the video of the any parking place collected in the playback time period indicated by the playback triggering event from a server, and displaying the acquired video of the any parking place.
According to a third aspect of the present application, there is provided an electronic device comprising a readable storage medium and a processor;
wherein the readable storage medium is configured to store machine executable instructions;
and the processor is used for reading the machine executable instruction on the readable storage medium and executing the instruction to realize a parking space display method of a parking area.
According to a fourth aspect of the present application, a computer-readable storage medium is provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the parking space display method for the parking area.
According to a fifth aspect of the present application, there is provided a computer program, which is stored in a computer-readable storage medium and causes a processor to implement the above-mentioned parking space display method for a parking area when the processor executes the computer program.
The electronic equipment determines a target parking space area of a target parking space to be updated from a visual area of a currently displayed parking area map; and rendering the cached parking space real-scene image of the target parking space to the target parking space area.
Therefore, the electronic equipment not only displays the information of the occupied parking space, but also displays the parking space live-action image of the parking space, and a parking space manager can acquire various parking space information (such as a license plate number occupying the parking space, whether a violation badge exists for parking or not and the like) from the live-action image, so that the parking space management is greatly facilitated.
Drawings
FIG. 1a is a block diagram illustrating a parking space management system according to an exemplary embodiment of the present disclosure;
FIG. 1b is a schematic illustration of a parking area map shown in an exemplary embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for displaying parking spaces in a parking area according to an exemplary embodiment of the present disclosure;
FIG. 3 is a schematic illustration of a method of determining a viewable area in accordance with an exemplary embodiment of the present application;
FIG. 4 is a schematic illustration of a pre-process shown in an exemplary embodiment of the present application;
FIG. 5 is a diagram illustrating a hardware configuration of an electronic device according to an exemplary embodiment of the present application;
fig. 6 is a block diagram of a parking space display device in a parking area according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the existing parking space display method, a visual area of an electronic device usually displays a pattern block for representing each parking space, and displays whether the parking space is occupied or not by using two different colors. For example, a certain picture block corresponds parking stall 1, and when parking stall 1 was taken up, this picture block was grey, when parking stall 1 was not taken up, this picture block was yellow.
However, the parking space display mode can only display the occupied condition of the parking space, and cannot reflect the overall appearance of the parking space, so that inconvenience is caused for parking space management.
In view of the above, the present application provides a parking space display method for a parking area, which determines a target parking space area of a target parking space to be updated from a visible area of a currently displayed parking area map; and rendering the cached parking space real-scene image of the target parking space to the target parking space area.
Therefore, the electronic equipment not only displays the information of the occupied parking space, but also displays the real-scene image of the parking space, and a parking space manager can acquire various parking space information (such as the license plate number of the occupied parking space, whether a violation badge exists for parking and the like) from the real-scene image, so that the management of the parking space is greatly facilitated.
Referring to fig. 1a, fig. 1a is a networking architecture diagram of a parking space management system according to an exemplary embodiment of the present application.
This parking stall management system includes: the system comprises an electronic device, a server and at least one monitoring device.
1) Monitoring device
Wherein the at least one monitoring device is deployed in a parking area. The sum of all monitoring device fields of view can cover all parking spots. Each monitoring device is used for acquiring a parking space real-scene image of a parking space in the current visual field of the monitoring device.
Here, the parking area refers to an area for parking, for example, the parking area may be a parking lot, a temporary parking place, or the like. The parking area is only exemplified here, and is not particularly limited.
In an alternative implementation, the monitoring device may periodically acquire the parking space live-action image in the current view. Of course, the monitoring device may also capture the parking space live-action image of the current frame when the monitored parking space live-action image of the current frame is inconsistent with the parking space live-action image of the previous frame.
After the monitoring equipment captures the parking space real-scene image, the captured parking space real-scene image can be sent to the server to be stored. Certainly, in practical application, the monitoring device may also send the relevant information of the parking space live-action image to the server for storage. Wherein, the relevant information of the parking space live-action image can include: the method comprises the steps of snapshotting time for snapshotting a parking space real image, identification of monitoring equipment for snapshotting the parking space real image and the like. Here, the information related to the parking space live-action image is only exemplarily described, and is not particularly limited.
2) Server
The server is used for storing the parking space real-scene images captured by the monitoring equipment and relevant information of the parking space real-scene images and providing the parking space real-scene images for the electronic equipment.
3) Electronic device
A display window is disposed on the electronic device. The electronic equipment is loaded with the parking area map, and a user can display the whole parking area map or part of the parking area map on the display window through dragging, zooming in or zooming out and the like. For convenience of description, an area surrounded by the display window on the parking area map is referred to as a visible area of the parking area map.
It should be noted that the parking space display method for the parking area provided by the application can be applied to scenes of various parking areas. Such as in parking lots, garages, temporary parking areas on both sides of a roadway, etc. Here, the application scenario of the present application is merely exemplary and is not specifically limited.
Some concepts related to the present application are explained below.
1. Visual field of parking space regional map: the area enclosed by the display window of the electronic device on the parking area map is called the visible area of the parking area map. As shown in fig. 1b, the area enclosed by the dashed box shown in fig. 1b is visible.
The parking area map is a picture indicating the distribution of parking spaces. The parking area map is a picture capable of displaying the distribution of real parking spaces. For example, the parking area map may be a map in the conventional sense, i.e., the map not only shows the distribution of real parking spaces, but also shows the relevant geographical location information of the parking area, etc. Of course, the parking area map may also be a map in a broad sense, that is, the parking area map may be a picture of any pattern, but the picture may show the distribution of real parking spaces. Here, the parking area map is merely exemplary and is not particularly limited.
2. The parking space is regional: the parking space area is an area used for rendering a parking space real-scene image on a parking space area map. For example, as shown in fig. 1b, the gray squares in fig. 1b are parking space areas.
3. Parking space live-action image: the image of the parking stall that supervisory equipment shot. Such as the indicated parking space real-scene image in fig. 1 b.
Referring to fig. 2, fig. 2 is a flowchart illustrating a parking space display method for a parking area according to an exemplary embodiment of the present application, where the method is applicable to an electronic device and may include the following steps.
Step 201: the electronic equipment determines a target parking space area of a target parking space to be updated from a visual area of a currently displayed parking area map.
Step 202: and the electronic equipment renders the cached parking space real-scene image of the target parking space to the target parking space area.
In the embodiment of the application, the parking space display method for realizing the parking area comprises two conditions.
The first situation is that when it is monitored that the hierarchy updating operation for the parking area map meets a first preset condition (for example, the hierarchy of the parking area map is changed to an appointed hierarchy), the electronic device renders the cached parking space real-scene image of at least one parking space in the visible area of the parking area map onto the parking space area of the at least one parking space. And when the electronic device monitors that the hierarchy updating operation for the parking area map meets a second preset condition (for example, the hierarchy of the parking area map is changed from a specified hierarchy to a non-specified hierarchy), clearing the parking space live-action image of the visible field of the parking area map.
The second situation is that the parking space included in the visible area of the parking area map currently displayed by the electronic device is rendered with a parking space real image, and since the parking space real image of the parking area is continuously updated, the electronic device needs to update the rendered parking space real image, so that the rendered parking space real image is consistent with the real parking space real image.
The following two cases will be described separately.
1. In the first case:
1.1) in the first case, the above-mentioned "step 201: and determining a target parking space area of the target parking space to be updated from the visual area of the currently displayed parking area map.
In the existing Geographic Information System (GIS), when implemented: the map data in the GIS display side (i.e. the electronic device of the present application) is typically grid, specifically map slice data. The map slicing is to use a professional map cutting tool to make original map data into a plurality of levels of map layers according to the superposition information of the map, and the map layers of different levels have different scales. For example, the map information is displayed more detailed when the map is located at a larger map level.
The user can adjust the map hierarchy where the map is located through a hierarchy updating operation (such as zooming out and zooming in) to acquire the map information required by the user. For example, the user can raise the level of the parking area map by the zoom-in operation. The user can lower the hierarchy of the parking area map by the zoom-out operation.
The electronic device can monitor the level updating operation aiming at the parking area map, and under the condition that the level updating operation aiming at the parking area map is detected to meet the preset condition, at least one parking space contained in the visible area of the parking area map is determined as a target parking space needing to be updated.
1.11) detecting that the hierarchy updating operation for the parking area map satisfies a preset condition
Optionally, the preset condition may be: the level of the parking area map is changed to a specified level.
When the electronic equipment detects that the level of the parking area map is enlarged or reduced to a specified level, the cached parking space real-scene image of the target parking space is rendered to the target parking space area. When the electronic equipment detects that the level of the parking area map is enlarged or reduced to a non-specified level, the parking space live-action image rendering is not carried out.
The designated level refers to a level which has a display scale and can support a user to clearly see the parking space live-action image.
For example, the designated hierarchy may be 22 layers and/or 23 layers, etc. The 22 or 23 layers of the parking area map are layers with a larger display scale, and the parking space live-action image is rendered on the layers, so that the user can see the parking space live-action image more clearly. Of course, in practical applications, other hierarchies are possible, which are only illustrated by way of example and are not specifically applied.
Specifically, when the electronic device monitors that the hierarchy of the parking area map is enlarged or reduced to 22 or 23 levels, it may be determined that the electronic device monitors that the hierarchy update operation for the parking area map satisfies a preset condition. This is merely an example and is not particularly limited.
1.12) determining at least one parking space contained in the visual area of the parking area map as a target parking space to be updated.
Step 1.12) is explained below by step a1 to step a 2.
Step A1, the electronic device determines a viewable area of a parking area map.
Referring to fig. 3, the electronic device may determine the current viewable area as follows.
The rectangle ABCD is a display window of the electronic equipment, and the rectangle EFGH is a parking area map.
The electronic equipment can firstly acquire the pixel coordinates of the center of the display window in the parking area map and acquire the number of pixels occupied by the long edge and the wide edge of the display window.
Then, the electronic device determines the pixel coordinates of the four vertices A, B, C, D of the display window based on the pixel coordinates of the center of the display window and the number of pixels occupied by the long side and the wide side of the display window.
The electronic device determines the area on the parking area map framed by the display window based on the pixel coordinates of the four vertices of the display window, where the framed area is the visible area described above.
And step A2, the electronic equipment determines the unrendered parking spaces contained in the determined visual area as target parking spaces needing to be updated.
In an alternative implementation manner, the electronic device may determine all parking spaces included in the visible area of the parking area map as target parking spaces to be updated.
In another alternative implementation manner, the electronic device may determine a part of parking spaces included in the visible area of the parking area map as target parking spaces to be updated. For example, the user may select a parking space that needs to be rendered in the visual area, and the electronic device may use the parking space selected by the user as a target parking space that needs to be updated.
The determination of the target parking space is only exemplified and not particularly limited.
1.2) in the first case, step 202 is implemented, as follows: and the electronic equipment renders the cached parking space real-scene image of the target parking space to the target parking space area. "
Step 202 is described below by way of step B1 through step B2.
Step B1: and the electronic equipment acquires the cached parking space live-action image of the target parking space.
During implementation, the corresponding relation between the parking space identification and the parking space live-action image is cached by the electronic equipment, after the target parking space is determined, the parking space identification of the target parking space can be obtained from the parking area map, and the parking space live-action image corresponding to the target parking space identification is searched in the corresponding relation.
Step B2: and the electronic equipment preprocesses the parking space live-action image so as to enable the preprocessed parking space live-action image to be matched with the shape of the target parking space area. And rendering the preprocessed parking space live-action image to the target parking space area.
The "matching of the shape of the preprocessed parking space real image with the shape of the target parking space region" may mean that the shape and size of the preprocessed parking space real image are completely consistent with those of the target parking space region; or the size of the shape of the preprocessed parking space live-action image is smaller than that of the target parking space area, and the shape of the preprocessed parking space live-action image can be completely covered by the shape of the target parking space area; the parking space real-scene image after the preprocessing and the target parking space image area can also be in the same shape but different sizes. For example, the target parking space image region may include a preprocessed parking space live view image, and the like, and here, the "shape matching between the preprocessed parking space live view image and the target parking space region" is merely exemplarily described, and is not specifically limited.
In this embodiment of the application, when the parking space live-action image is preprocessed, the electronic device may preprocess the parking space live-action image by adjusting the size and/or the rotation angle of the parking space live-action image.
1) And adjusting the size of the parking space live-action image.
When the parking space real-scene image size is achieved, the parking space real-scene image size is adjusted, and therefore the adjusted parking space real-scene image size is matched with the size of the target parking space area.
The "matching between the adjusted parking space real-scene image size and the target parking space area size" may mean that the adjusted parking space real-scene image size is completely the same as the target parking space area size, or that the adjusted parking space real-scene image size is a size obtained by scaling down the size of the target parking space area, for example, the adjusted parking space real-scene image size is half of the size of the target parking space area, and the target parking space area may include the adjusted parking space real-scene image. Here, the "size of the adjusted parking space live view image matches the size of the target parking space region" is only exemplarily described, and is not specifically limited.
Next, the following describes in detail "adjusting the size of the parking space real-image so that the adjusted size of the parking space real-image matches the size of the target parking space area" in steps C1 to C2.
And step C1, the electronic equipment can determine the size of the target parking space area based on the vertex coordinates of the target parking space area.
In implementation, the electronic device may select a target vertex from the vertices of the target parking space region. And then calculating the length and the width of the target parking space area based on the coordinates of the target vertex and the coordinates of two vertexes adjacent to the target vertex.
For example, as shown in fig. 4, the rectangle in fig. 4 is a parking space area.
The 4 vertexes of the parking space area are respectively the vertexes A, B, C and D. The coordinates of vertex A are [3,0], the coordinates of vertex B are [11,6], the coordinates of vertex C are [8,10], and the coordinates of vertex D are [0,4 ].
The electronic device may use the vertex C as a target vertex, and calculate the long edge of the target parking space area based on the coordinates of the vertex C and the coordinates of the vertex D adjacent to the vertex C.
the electronic device may calculate the width of the target parking space area based on the coordinates of the vertex C and the coordinates of the adjacent vertex B of the vertex C.
this can deduce that the target parking space area is 10 long and 5 wide.
Step C2: and the electronic equipment performs scaling processing on the determined size of the target parking space area according to a preset scaling ratio, and adjusts the size of the parking space live-action image according to the processed size of the target parking space area.
In implementation, the present application configures scaling. The scaling ratio may be 1 (i.e., maintain the original appearance without scaling) or may be a value other than 1 (i.e., indicate scaling or zooming).
After the electronic device calculates the length and the width of the target parking space area, the electronic device can perform scaling processing on the determined length and width according to a preset scaling ratio.
When the scaling processing is performed, the electronic device may multiply the calculated length or width of the target parking space region by the scaling ratio column to obtain the scaled length or width of the target parking space region.
For example, when the scaling ratio is 1, the length or width of the target parking space area after scaling processing is consistent with that before scaling.
And when the scaling is smaller than 1, reducing the length or the width of the determined target parking space area.
And when the scaling is larger than 1, amplifying the determined length or width of the target parking space area.
In the embodiment of the application, the electronic device may adjust the parking space live-action image according to the zoomed length and width of the target parking space region, so that the length and width of the parking space live-action image are consistent with the length and width of the target parking space region.
For example, in order to display the parking space real image and the parking space identifier at the same time, the preset scaling ratio may be 1/2, and after determining the length and the width of the target parking space region, the electronic device may multiply the determined length of the target parking space region by the preset scaling ratio, where the scaled length of the target parking space region is 5 and the scaled width of the target parking space region is still 5.
Then, the electronic device may adjust the length of the parking space live-action image to 5 and the width to 5. Such adjustment can make the regional half of parking stall be used for showing the parking stall outdoor scene image of parking stall, and the other half is used for showing the parking stall sign.
2) Adjustment of the angle of rotation.
During implementation, the electronic device may determine a rotation angle of the parking space real image, and rotate the parking space real image according to the rotation angle, so that an appointed side of the rotated parking space real image coincides with an appointed side of the target parking space area
The designated edge of the parking space live-action image corresponds to the designated edge of the target parking space region, for example, the designated edge of the parking space live-action image is the bottom edge, and the designated edge of the target parking space region is also the bottom edge.
When the rotation angle of the parking space live-action image is determined, the electronic equipment can determine the included angle between the designated side of the target parking space region and the designated direction, and determine the determined included angle as the rotation angle of the parking space live-action image.
The designated side may be any side of the target parking space region, and the designated direction may be a horizontal direction or a vertical direction, or other directions, where the designated side and the designated direction are only exemplarily described and are not specifically limited.
The rotation angle of the parking space real view image will be described in detail below, taking the designated side as the top side of the target parking space area and the designated direction as the horizontal direction as an example.
For example, the example of fig. 4 is still taken as an example.
As shown in fig. 4, the angle (β) between the top edge (i.e. CD) of the target parking space region and the horizontal direction is the rotation angle of the parking space live-action image.
How to determine the rotation angle of the parking space live-action image is described below
Specifically, the rotation angle can be obtained by the arc tangent between two vertex coordinates of the top edge of the target parking space region, and the radian is arctan (|10-4|/|8-0 |). If the Y coordinates of all points on the top edge sequentially increase after traversing from left to right of the top edge, the rotation angle is arctan (|10-4|/|8-0 |). If the Y coordinates of all points on the top edge sequentially decrease from left to right according to the top edge, the rotation angle is 2 pi-arctan (|10-4|/|8-0 |).
The above is an introduction to the preprocessing method of the parking space live-action image.
In addition, in the embodiment of the application, when it is monitored that the hierarchy of the parking area map is changed from the designated hierarchy to the non-designated hierarchy, the electronic device removes the parking space live-action image of the visual field of the parking area map.
For example, when the user reduces the parking area map from 22 or 23 layers to a level lower than 22 layers, the electronic device may clear the parking space real image in the visible area of the parking area map, so that the visible area only displays the occupied parking space in a color block manner.
Because the parking space live-action image is only supported to be clearly displayed in the display scale of the designated level, in order to clearly display the parking space live-action image, when the electronic device detects that the map layer of the parking area map is updated to 22 layers or 23 layers, the electronic device renders the parking space live-action image corresponding to the parking space in the visible area of the cached parking area map to the corresponding parking space area.
When the electronic device detects that the map layer of the parking area map is updated from 22 layers or 23 layers to 22 layers or 23 layers, the layer cannot meet the requirement of clear display of the parking space real image, and in order to enable the rendered parking space real image not to occupy a memory, the electronic device can delete the rendered parking space real image in the parking area map visual field. In addition, if the sub-device still displays the parking space live-action image when detecting that the map layer of the parking area map is updated from 22 layers or 23 layers to non-22 layers or non-23 layers, the parking area map will display the dense and rough unclear parking space live-action image, and the use experience of the user is reduced.
In addition, when the electronic device detects that the parking area map is updated from one designated level to another designated level, the electronic device may adjust the display scale of the rendered parking space live-action image and re-render the adjusted parking space live-action image. For example, when the electronic device detects that the parking area map is updated from 23 layers to 22 layers, the electronic device may reduce the rendered parking space real image to the display scale supported by 22 layers, and then re-render the adjusted parking space real image.
2. In the second case: the parking space included in the visible area of the parking area map currently displayed by the electronic device is rendered with the parking space real image, and the parking space real image in the parking area is continuously updated, so that the rendered parking space real image needs to be updated by the electronic device, so that the rendered parking space real image is consistent with the real parking space real image.
2.1), in the second case, the above-mentioned "step 201: and determining a target parking space area of the target parking space to be updated from the visual area of the currently displayed parking area map.
Step 2.1) is explained below by steps D1 to D2.
Step D1: and the electronic equipment acquires and caches the latest parking space real image of at least one parking space with the parking space real image changed in the target time period.
The target time period may be one time period or a plurality of time periods.
When the target period is a plurality of periods, the target period may be spaced by equal time update cycles. For example, the electronic device may periodically obtain and cache the latest parking space real image of at least one parking space in which the parking space real image changes in the update period. For example, the update period is 5 minutes, and the electronic device may obtain and cache the latest parking space real-scene image of at least one parking space in which the parking space real-scene image changes in the current 5 minutes every 5 minutes.
Certainly, the multiple time periods may also be a plurality of time periods with different time intervals, for example, the electronic device may obtain, in the first 5 minutes, the latest parking space real image of at least one parking space where the parking space real image changes in the 5 minutes, and cache the latest parking space real image. And then acquiring and caching the latest parking space real image of at least one parking space with the changed parking space real image in 4 minutes after 4 minutes (namely 9 minutes) from the beginning of the 5 th minute.
The target time period is only exemplified and not particularly limited.
In practical applications, in order to save resources of the electronic device and reduce complexity of programming, the electronic device usually periodically obtains and caches the latest parking space real image of at least one parking space where the parking space real image changes in the update period.
Step D2: and if the parking space corresponding to the obtained any latest parking space real image is the parking space contained in the visual area and the current level of the parking area map is the designated level, the electronic equipment determines the parking space corresponding to the any parking space real image as the target parking space to be updated.
The following describes step D1 and step D2 in detail.
The implementation of step D1 is as follows:
after implementing "step D1: when the electronic device obtains and caches the latest parking space live-action image of at least one parking space in which the parking space live-action image changes within the target time period, the electronic device may send a query request for each parking space of the parking area map to the server.
After receiving the query request, the server determines at least one parking space in which the parking space real view image changes within the target time period, and sends an acquisition address (such as a link) of the latest parking space real view image corresponding to the at least one parking space to the electronic device. And the electronic equipment acquires and caches the latest parking space live-action image of at least one parking space with the changed parking space live-action image in the target time period based on the acquired address.
Specifically, for each parking space, the electronic device may send, to the service, an inquiry request for the parking space, where the inquiry request carries the parking space identifier.
After receiving the query request, the server may search whether the latest carport real-scene image exists in a time period formed by the time when the carport real-scene image was returned to the electronic device last time and the current time (for example, the server may read the current time of the device).
The query request can also carry the current time, and the server can search whether the latest parking space real-scene image exists in a time period formed by the time of returning the parking space real-scene image to the electronic equipment last time and the current time carried in the query request.
If the latest parking space real image exists, the parking space corresponding to the latest parking space real image is determined as the parking space with the changed parking space real image. The server may return to the electronic device an acquisition address (e.g., a link URL) for acquiring the latest image of the parking space scene of the parking space. And the electronic equipment acquires the latest parking space live-action image of the target parking space from the server based on the acquisition address.
Further, the electronic device may receive multiple acquisition links. In order to improve the efficiency of acquiring the latest real-scene images, the electronic device may concurrently acquire the corresponding latest parking-space real-scene images through a specified number of acquisition addresses.
The benefit of specifying the above specified number (alternatively referred to as the concurrency number) is that: the situation that the electronic equipment cannot display the parking space live-action image due to the fact that the request is intercepted overtime due to the fact that the number of concurrent requests for obtaining the image is increased is prevented.
Implementation manner of step D2:
after implementing "step D2: if the parking space corresponding to the obtained any latest parking space real image is the parking space included in the visible area and the current hierarchy of the parking area map is the designated hierarchy, and the electronic device determines the parking space corresponding to the any parking space real image as the target parking space needed to be updated, for each latest parking space real image, if the parking space corresponding to the parking space real image is detected as the parking space included in the visible area of the parking area map and the current hierarchy of the current parking area map is the designated hierarchy, the electronic device may determine the parking space corresponding to the latest parking space real image as the target parking space. And if the parking space corresponding to the parking space live-action image is detected not to be the parking space contained in the visible field of the parking area map or the current level of the current parking area map is not the designated level, rendering is not performed, and only caching is performed.
The above is an implementation of step 201.
The implementation of step 202 in the second case is the same as that of step 202 in the first case, and is not described here again.
In addition, in the embodiment of the application, after the parking space live-action image is rendered, the electronic device further provides a function of zooming the details of the parking space live-action image.
Specifically, when a user clicks a certain parking space real image in the visible area, the electronic device may monitor a trigger operation for the parking space real image displayed in the current visible area. When the display triggering operation aiming at the parking space real-scene image displayed in the current visual area is monitored, the electronic equipment can display the parking space real-scene image in a display mode different from the display mode of the parking space real-scene image displayed in the current visual area.
Specifically, the user may click on a display option of a certain parking space on the parking area map and input a corresponding display scale (e.g., input the display scale through a scroll wheel of a mouse). When the user performs this operation, the electronic device may detect a display trigger operation of the parking space live-action image displayed in the visible area of the parking area map. At this time, the electronic device may establish a floating display window in the visible area, and display the parking space live-action image in the floating display window according to the display scale indicated by the display triggering operation.
In addition, the electronic device also provides preview and playback functionality.
1) Preview function
For example, a "preview option" is also deployed on the parking area map, and the user can click on the "preview option" and select any parking space to be previewed. For example, if the user selects any parking space, a "preview option" and/or a "playback option" may appear on the interface for the user to select. For example, the user selects an arbitrary parking space, and the selecting operation for the arbitrary parking space is equivalent to triggering a video preview operation for the arbitrary parking space. When the user performs the operation, the electronic device may monitor a video preview trigger operation for any parking spot on the parking area map. At this time, the electronic device acquires the video of the arbitrary parking space from the server, and displays the video of the arbitrary parking space. In other words, the electronic device may obtain the video of the arbitrary parking space, which is collected by the monitoring device in real time, from the server, and display the obtained video to the user.
2) Playback function
A 'playback option' is also deployed on the parking area map, and a user can click the 'playback option' and select any parking place needing playback. For example, if the user selects any parking space, a "preview option" and/or a "playback option" may appear on the interface for the user to select. For example, the user selects any parking space, and the selection action of any parking space is equivalent to triggering the video playback operation of any parking space. When the user performs the operation, the electronic device may monitor a video playback trigger operation for any parking spot on the parking area map. At this time, the electronic device acquires the video of the arbitrary parking space acquired within the playback time period indicated by the playback trigger event from the server, and displays the acquired video of the arbitrary parking space.
The playback time period can be input by a user, and the electronic device can play back the video of any parking space in the playback time period input by the user.
Of course, the playback time period may also be preset by the electronic device for selection by the user. The electronic equipment can play back the parking space videos of any parking space in the playback time period selected by the user.
Because each parking space live-action image is periodically updated, in order to enable a user to see the parking space live-action images of the parking spaces in all the time, the electronic device can determine the parking space live-action images of the parking spaces in all the time by setting the playback time period. For example, the electronic device may set the playback time period according to the update cycle of the parking space live-action image. For example, setting the playback period includes an update cycle.
For example, it is assumed that the parking space live-action image is refreshed every 10 seconds, so that the user can only see the parking space live-action images of the first second and the 11 th second, but cannot see the parking space live-action images of 2 to 10 seconds. The electronic device can set the playback time period to 1-11 seconds, so that the user can acquire the parking space live-action image of each second of 1-11 seconds through the playback function.
The playback time period may also be a playback time period preset by the electronic device and based on a preset cycle duration from the current time point or the time point when the real-scene image of the current parking space is captured. The preset period duration may be a preset period duration used for determining whether the parking space live-action image changes within the preset period duration.
The playback time period may also be a plurality of time periods preset by the electronic device for the user to select, where the duration of each time period is a preset period duration, and the end-to-end time points of every two time periods are connected with each other, that is, the end time of the first time period is equal to the start time of the second time period, the second time period is the next time period of the first time period, and the last time point of each time period is the current time point or the time point at which the live-view image of the current parking space is captured.
It can be known from the above description that the parking space displayed by the electronic device is no longer the information about the occupied parking space alone, but is the current parking space live-action image of the parking space, and the parking space manager can acquire various parking space information (for example, the license plate number of the parking space occupied, whether there is a parking break, etc.) from the live-action image, so that the management of the parking space is greatly facilitated.
In addition, the electronic device can periodically acquire the latest parking space live-action image of the parking space with the changed parking space live-action image from the server and cache the latest parking space live-action image, so that the cached parking space live-action image of each parking space in the electronic device is consistent with the real parking space situation.
In addition, after the electronic device acquires the latest parking space live-action image, if the parking space corresponding to the latest parking space live-action image is in the visual area and the current level of the parking area map is the designated level, the acquired latest target parking space live-action image is rendered to the parking space area of the target parking space, so that the visual area can display the latest parking space live-action image.
Referring to fig. 5, fig. 5 is a hardware structure diagram of an electronic device according to an exemplary embodiment of the present application.
The electronic device includes: a readable storage medium and a processor;
wherein the readable storage medium is configured to store machine executable instructions;
the processor is used for reading the machine executable instruction on the readable storage medium and executing the instruction to realize the parking space display method of the parking area.
Optionally, as shown in fig. 5, the electronic device may further include a communication interface 501, a bus 504, in addition to the processor 502 and the machine-readable storage medium 503; wherein the communication interface 501, the processor 502 and the machine-readable storage medium 503 are in communication with each other via a bus 504. The processor 502 may perform the above-described parking space display method for the parking area by reading and executing the machine-executable instructions in the machine-readable storage medium 503 corresponding to the pattern selection control logic.
Referring to fig. 6, fig. 6 is a block diagram of a parking space display device for a parking area according to an exemplary embodiment of the present application.
The device is applied to the electronic equipment, and the device comprises:
a determining unit 601, configured to determine a target parking space area of a target parking space to be updated from a visible area of a currently displayed parking area map;
the rendering unit 602 is configured to render the cached parking space live-action image of the target parking space to the target parking space area.
Optionally, when determining a target parking space area of a target parking space to be updated from a visual area of a currently displayed parking area map, the determining unit 601 is configured to determine, as the target parking space to be updated, a parking space that is not rendered and is included in the visual area of the parking area map under the condition that it is monitored that a level updating operation for the parking area map satisfies a preset condition.
Optionally, the preset conditions include:
the level of the parking area map is changed to a specified level.
Optionally, the rendering unit 602 is further configured to, after rendering the cached parking space real-scene image of the target parking space to the target parking space area, clear the rendered parking space real-scene image in the visible area of the parking area map when it is monitored that the currently displayed parking area map is changed from the designated level to the non-designated level.
Optionally, the apparatus further comprises:
an obtaining unit 603, configured to obtain and cache a latest parking space real image of at least one parking space where the parking space real image changes within a target time period;
the determining unit 601, when determining a target parking space area of a target parking space to be updated from a visible area of a currently displayed parking area map, is configured to determine, if a parking space corresponding to an acquired any latest parking space real image is a parking space included in the visible area and a current hierarchy of the parking area map is an appointed hierarchy, a parking space corresponding to the any parking space real image as the target parking space to be updated.
Optionally, the obtaining unit 603 is configured to send a query request for a parking space in the parking area map to the server when obtaining and caching a latest parking space real-scene image of at least one parking space in which the parking space real-scene image changes within a target time period; the query request comprises a parking space identifier; the query request is used for triggering the server to search the return time of the parking space live-action image of the parking space returned to the electronic equipment at the last time based on the parking space identification, and determining whether the latest parking space live-action image of the parking space exists in the time period formed by the return time and the current time, if so, returning the acquisition address of the latest parking space live-action image to the electronic equipment; and acquiring the latest parking space live-action image of at least one parking space with the changed parking space live-action image from the server through the acquisition address.
Optionally, the rendering unit 602 is configured to, when rendering the cached parking space real image of the target parking space to the target parking space area, pre-process the parking space real image, so that the pre-processed parking space real image matches the shape of the target parking space area; and rendering the preprocessed parking space live-action image to the target parking space area.
Optionally, the rendering unit 602 is configured to, when the parking space real-image is preprocessed, adjust the size of the parking space real-image, so that the adjusted size of the parking space real-image matches the size of the target parking space area; and/or determining a rotation angle of the parking space real image, and rotating the parking space real image according to the rotation angle, so that the appointed side of the rotated parking space real image is coincided with the appointed side of the target parking space area.
Optionally, when the size of the parking space live-action image is adjusted, the rendering unit 602 is configured to determine the size of the target parking space region based on the vertex coordinates of the target parking space region, perform scaling processing on the determined size of the target parking space region according to a preset scaling ratio, and adjust the size of the parking space live-action image according to the processed size of the target parking space region;
the rendering unit 602 is configured to determine an included angle between an appointed side and an appointed direction of the target parking space region based on the vertex coordinate of the target parking space region when determining the rotation angle of the parking space live-action image, and determine the determined included angle as the rotation angle of the parking space live-action image.
Optionally, the apparatus further comprises: a display unit 604, configured to, when a display trigger operation for the parking space real image displayed in the visible region is monitored, establish a floating display window in the visible region, and display the parking space real image in the floating display window according to a display scale indicated by the display trigger operation; and/or when monitoring a video preview triggering operation for any parking space on the parking area map, acquiring a video of the any parking space acquired from the current moment from the server, and displaying the video of the any parking space; and/or when monitoring a video playback triggering operation for any parking space on the parking area map, acquiring a video of the any parking space acquired in a playback time period indicated by the playback triggering event from a server, and displaying the acquired video of the any parking space.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
In addition, the application further provides a computer readable storage medium, a computer program is stored in the computer readable storage medium, and when the computer program is executed by a processor, the parking space display method of the parking area is realized.
A computer-readable storage medium as referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: volatile memory, non-volatile memory, or similar storage media. In particular, the computer-readable storage medium may be a RAM (random Access Memory), a flash Memory, a storage drive (e.g., a hard disk drive), a solid state disk, any type of storage disk (e.g., a compact disk, a DVD, etc.), or similar storage medium, or a combination thereof.
In addition, the present application also provides a computer program, which is stored in a computer readable storage medium and causes a processor to implement the parking space display method for the parking area when the processor executes the computer program.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement without inventive effort.
The above description is only a preferred embodiment of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (10)
1. A parking space display method of a parking area is characterized in that the method is applied to electronic equipment and comprises the following steps:
acquiring and caching the latest parking space real image of at least one parking space with the parking space real image changed in a target time period;
when a target parking space area of a target parking space needing to be updated is determined from a visual area of a currently displayed parking area map, if a parking space corresponding to any latest parking space real image is a parking space contained in the visual area and the current level of the parking area map is an appointed level, determining the parking space corresponding to the any parking space real image as the target parking space needing to be updated;
and rendering the cached parking space real-scene image of the target parking space to the target parking space area.
2. The method of claim 1, wherein determining a target space area for the target space to be updated from the currently displayed visual area of the parking area map comprises:
and under the condition that the level updating operation aiming at the parking area map is monitored to meet the preset condition, determining the parking spaces which are not rendered and are contained in the visible area of the parking area map as target parking spaces to be updated.
3. The method according to claim 2, wherein the preset conditions include:
the level of the parking area map is changed to a specified level;
after the rendering of the cached parking space real-time image of the target parking space to the target parking space area, the method further includes:
and when the currently displayed parking area map is monitored to be changed from the designated level to the non-designated level, clearing the rendered parking space live-action image in the visual area of the parking area map.
4. The method of claim 1, wherein the obtaining and caching the latest parking space real-scene image of at least one parking space with the parking space real-scene image changing within the target time period comprises:
sending a query request aiming at the parking spaces in the parking area map to a server; the query request comprises a parking space identifier; the query request is used for triggering the server to search the return time of the parking space live-action image of the parking space returned to the electronic equipment at the last time based on the parking space identification, and determining whether the latest parking space live-action image of the parking space exists in the time period formed by the return time and the current time, if so, returning the acquisition address of the latest parking space live-action image to the electronic equipment;
and acquiring the latest parking space live-action image of at least one parking space with the changed parking space live-action image from the server through the acquisition address.
5. The method of claim 1, wherein the rendering the buffered parking space live-action image of the target parking space to the target parking space region comprises:
preprocessing the parking space live-action image to enable the preprocessed parking space live-action image to be matched with the shape of the target parking space area;
rendering the preprocessed parking space live-action image to the target parking space area;
the preprocessing is carried out on the parking space live-action image, and the method comprises the following steps:
adjusting the size of the parking space live-action image to enable the adjusted size of the parking space live-action image to be matched with the size of the target parking space area;
and/or the presence of a gas in the gas,
and determining a rotation angle of the parking space live-action image, and rotating the parking space live-action image according to the rotation angle so as to enable the appointed side of the rotated parking space live-action image to coincide with the appointed side of the target parking space area.
6. The method of claim 5, wherein the adjusting the parking space real image size comprises:
determining the size of the target parking space area based on the vertex coordinates of the target parking space area, carrying out scaling processing on the determined size of the target parking space area according to a preset scaling ratio, and adjusting the size of the parking space real image according to the processed size of the target parking space area;
the determining the rotation angle of the parking space live-action image comprises:
and determining an included angle between an appointed side and an appointed direction of the target parking space region based on the vertex coordinates of the target parking space region, and determining the determined included angle as the rotation angle of the parking space live-action image.
7. The method of claim 1, wherein after the rendering the buffered parking space live view image of the target parking space to the target parking space region, the method further comprises:
when monitoring a display triggering operation aiming at the parking space real image displayed in the visible area, establishing a suspension display window in the visible area, and displaying the parking space real image in the suspension display window according to a display proportion indicated by the display triggering operation;
and/or the presence of a gas in the gas,
when monitoring a video preview triggering operation aiming at any parking stall on the parking area map, acquiring a video of the any parking stall collected from the current moment from a server, and displaying the video of the any parking stall;
and/or the presence of a gas in the gas,
when monitoring the video playback triggering operation aiming at any parking place on the parking area map, acquiring the video of the any parking place acquired in the playback time period indicated by the playback triggering event from a server, and displaying the acquired video of the any parking place.
8. The utility model provides a parking stall display device of parking area which characterized in that, the device is applied to electronic equipment, the device includes:
the system comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring and caching the latest parking space real image of at least one parking space with the changed parking space real image in a target time period;
the parking space updating method comprises a determining unit, a displaying unit and a updating unit, wherein the determining unit is used for determining a target parking space area of a target parking space to be updated from a visual area of a currently displayed parking area map, and if the parking space corresponding to any latest parking space real image is a parking space contained in the visual area and the current level of the parking area map is an appointed level, determining the parking space corresponding to the any parking space real image as the target parking space to be updated;
and the rendering unit is used for rendering the cached parking space real-scene image of the target parking space to the target parking space area.
9. The device according to claim 8, wherein the determination unit, when determining a target parking space area of a target parking space to be updated from a visual area of a currently displayed parking area map, is configured to determine, as the target parking space to be updated, a parking space included in the visual area of the parking area map that is not rendered when it is monitored that a level updating operation for the parking area map satisfies a preset condition;
the preset conditions include:
the level of the parking area map is changed to a specified level;
the rendering unit is further configured to, after the cached parking space live-action image of the target parking space is rendered to the target parking space area, clear the rendered parking space live-action image in the visible area of the parking area map when it is monitored that the currently displayed parking area map is changed from the designated level to the non-designated level;
the device further comprises:
the acquisition unit is used for sending a query request for the parking places in the parking area map to a server when acquiring and caching the latest parking place real image of at least one parking place with the changed parking place real image in a target time period; the query request comprises a parking space identifier; the query request is used for triggering the server to search the return time of the parking space live-action image of the parking space returned to the electronic equipment at the last time based on the parking space identification, and determining whether the latest parking space live-action image of the parking space exists in the time period formed by the return time and the current time, if so, returning the acquisition address of the latest parking space live-action image to the electronic equipment; acquiring the latest parking space live-action image of at least one parking space with the changed parking space live-action image from the server through the acquisition address;
the rendering unit is used for preprocessing the parking space live-action image when rendering the cached parking space live-action image of the target parking space to the target parking space area so as to enable the preprocessed parking space live-action image to be matched with the shape of the target parking space area; rendering the preprocessed parking space live-action image to the target parking space area;
the rendering unit is used for adjusting the size of the parking space live-action image when the parking space live-action image is preprocessed, so that the adjusted size of the parking space live-action image is matched with the size of the target parking space area; and/or determining a rotation angle of the parking space real image, and rotating the parking space real image according to the rotation angle so as to enable the appointed side of the rotated parking space real image to coincide with the appointed side of the target parking space area;
the rendering unit is used for determining the size of the target parking space region based on the vertex coordinates of the target parking space region when the size of the parking space live-action image is adjusted, carrying out scaling processing on the determined size of the target parking space region according to a preset scaling ratio, and adjusting the size of the parking space live-action image according to the processed size of the target parking space region;
the rendering unit is used for determining an included angle between a specified side of the target parking space region and a specified direction based on the vertex coordinates of the target parking space region when the rotation angle of the parking space live-action image is determined, and determining the determined included angle as the rotation angle of the parking space live-action image;
the device further comprises: the display unit is used for establishing a suspension display window in the visible area when monitoring display triggering operation aiming at the parking space real image displayed in the visible area, and displaying the parking space real image in the suspension display window according to the display proportion indicated by the display triggering operation; and/or when monitoring a video preview triggering operation for any parking space on the parking area map, acquiring a video of the any parking space acquired from the current moment from the server, and displaying the video of the any parking space; and/or when monitoring a video playback triggering operation for any parking space on the parking area map, acquiring a video of the any parking space acquired in a playback time period indicated by the playback triggering event from a server, and displaying the acquired video of the any parking space.
10. An electronic device, comprising a readable storage medium and a processor;
wherein the readable storage medium is configured to store machine executable instructions;
the processor configured to read the machine executable instructions on the readable storage medium and execute the instructions to implement the steps of the method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011599593.XA CN112991808B (en) | 2020-12-29 | 2020-12-29 | Parking space display method and device for parking area and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011599593.XA CN112991808B (en) | 2020-12-29 | 2020-12-29 | Parking space display method and device for parking area and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112991808A CN112991808A (en) | 2021-06-18 |
CN112991808B true CN112991808B (en) | 2022-09-30 |
Family
ID=76345136
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011599593.XA Active CN112991808B (en) | 2020-12-29 | 2020-12-29 | Parking space display method and device for parking area and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112991808B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115273525B (en) * | 2022-05-17 | 2023-11-10 | 岚图汽车科技有限公司 | Parking space mapping display method and system |
Family Cites Families (53)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101097144B (en) * | 2006-06-30 | 2011-10-19 | 佛山市顺德区顺达电脑厂有限公司 | Navigation system having realistic display and method thereof |
US8189001B2 (en) * | 2010-01-04 | 2012-05-29 | Adshir Ltd. | Method and apparatus for parallel ray-tracing employing modular space division |
CN104937650B (en) * | 2012-12-21 | 2017-12-05 | 泊知港有限公司 | For positioning the system and method for available parking places |
CN103631871B (en) * | 2013-11-07 | 2017-01-11 | 杭州电子科技大学 | Implementation method for one-dimensional map |
KR102059311B1 (en) * | 2013-12-19 | 2019-12-24 | 애플 인크. | Slam on a mobile device |
CN103824473B (en) * | 2014-03-03 | 2015-11-11 | 山东大学 | A kind of intelligent parking bootstrap technique |
US9870707B2 (en) * | 2014-06-23 | 2018-01-16 | Hi-Park Solutions Ltd. | Method and system for locating vacant parking places |
CN106294458A (en) * | 2015-05-29 | 2017-01-04 | 北京四维图新科技股份有限公司 | A kind of map point of interest update method and device |
CN105426170A (en) * | 2015-10-29 | 2016-03-23 | 深圳市尊豪网络科技有限公司 | Information pushing method and information pushing apparatus |
CN108074394A (en) * | 2016-11-08 | 2018-05-25 | 武汉四维图新科技有限公司 | Outdoor scene traffic data update method and device |
CN107067950A (en) * | 2016-12-12 | 2017-08-18 | 梁健宁 | A kind of parking space figure solution |
CN106846819B (en) * | 2017-02-09 | 2021-03-23 | 惠州Tcl移动通信有限公司 | Aerial photography penalty ticket generation method based on small aircraft and implementation system |
CN108460051A (en) * | 2017-02-21 | 2018-08-28 | 杭州海康威视数字技术股份有限公司 | Parking stall ground drawing generating method, apparatus and system |
CN106658415B (en) * | 2017-02-21 | 2023-04-28 | 上海量明科技发展有限公司 | Method, vehicle ordering terminal and system for searching shared vehicle live-action |
CN107229690B (en) * | 2017-05-19 | 2019-01-25 | 广州中国科学院软件应用技术研究所 | Dynamic High-accuracy map datum processing system and method based on trackside sensor |
CN106997687A (en) * | 2017-05-31 | 2017-08-01 | 上海喜泊客信息技术有限公司 | Parking guide method and system, storage medium |
US11148257B2 (en) * | 2017-06-02 | 2021-10-19 | Winn & Coales International Limited | Clamping tool |
EP3635707B1 (en) * | 2017-06-05 | 2023-11-08 | Citifyd, Inc. | Parking objects detection system |
CN107247791B (en) * | 2017-06-16 | 2020-05-22 | 北京悦畅科技有限公司 | Parking lot map data generation method and device and machine-readable storage medium |
CN107341213A (en) * | 2017-06-26 | 2017-11-10 | 上海与德科技有限公司 | A kind of streetscape view preparation method and system |
CN207319476U (en) * | 2017-07-18 | 2018-05-04 | 俞正义 | A kind of intelligent reverse vehicle searching system based on AR real scene navigations |
CN110019590B (en) * | 2017-09-13 | 2021-10-12 | 北京嘀嘀无限科技发展有限公司 | Method and device for displaying map in page, electronic equipment and storage medium |
CN110069580B (en) * | 2017-09-07 | 2022-08-16 | 腾讯科技(深圳)有限公司 | Road marking display method and device, electronic equipment and storage medium |
JP2019067220A (en) * | 2017-10-02 | 2019-04-25 | シャープ株式会社 | Parking position display processor, parking position display method, and program |
CN207617740U (en) * | 2017-11-20 | 2018-07-17 | 北京万相融通科技股份有限公司 | A kind of rail traffic production operation command system |
CN110097776B (en) * | 2018-01-30 | 2021-05-14 | 杭州海康威视数字技术股份有限公司 | Parking space detection method, monitoring camera and monitoring terminal |
CN108446310B (en) * | 2018-02-05 | 2021-12-10 | 阿里巴巴(中国)有限公司 | Virtual street view map generation method and device and client device |
CN110309243A (en) * | 2018-03-22 | 2019-10-08 | 杭州海康威视系统技术有限公司 | Obtain method, apparatus, equipment and the storage medium of outdoor scene electronic map |
CN110390722A (en) * | 2018-04-20 | 2019-10-29 | 曜宇航空科技(上海)有限公司 | A kind of Millisecond draws the method and system of real-time live-action map |
CN108846084B (en) * | 2018-06-11 | 2021-06-29 | 成都山河空间信息技术有限公司 | System and method for generating live-action map |
CN110704553A (en) * | 2018-07-09 | 2020-01-17 | 陕西国广数码科技有限公司 | Section map of roadside parking space |
CN109166341B (en) * | 2018-07-25 | 2021-04-13 | 沈阳车泊乐科技有限公司 | Parking space occupation state monitoring method based on space planning |
CN110763250B (en) * | 2018-07-27 | 2024-04-09 | 宝马股份公司 | Method, device and system for processing positioning information |
CN110853395A (en) * | 2018-08-21 | 2020-02-28 | 上海擎感智能科技有限公司 | Roadside parking space scanning method, system, server and vehicle |
CN110874952A (en) * | 2018-09-03 | 2020-03-10 | 上海博泰悦臻电子设备制造有限公司 | Parking space dynamic management method and server |
CN109243289B (en) * | 2018-09-05 | 2021-02-05 | 武汉中海庭数据技术有限公司 | Method and system for extracting parking spaces of underground garage in high-precision map manufacturing |
CN109508474A (en) * | 2018-10-09 | 2019-03-22 | 北京优位智停科技有限公司 | The construction method of parking lot structure distribution map |
JP6833793B2 (en) * | 2018-11-29 | 2021-02-24 | 本田技研工業株式会社 | Content providing device, content providing method, and program |
CN111372184A (en) * | 2018-12-10 | 2020-07-03 | 四川中电昆辰科技有限公司 | Autonomous parking lot system, autonomous parking method and computer program product |
CN109544981B (en) * | 2018-12-29 | 2021-11-09 | 北京百度网讯科技有限公司 | Image processing method, apparatus, device and medium |
US20200258385A1 (en) * | 2019-02-11 | 2020-08-13 | Byton North America Corporation | Advanced detection of parking spot for vehicle |
CN111724618B (en) * | 2019-03-22 | 2022-05-03 | 博泰车联网科技(上海)股份有限公司 | Parking position recording and sharing method, electronic equipment and system based on map API |
CN111833279A (en) * | 2019-04-16 | 2020-10-27 | 杭州麦扑文化创意有限公司 | Fusion method of live-action hand-drawn map and electronic map |
KR102241906B1 (en) * | 2019-06-13 | 2021-04-20 | 주식회사 가린시스템 | System and method for guiding parking location of a vehicle |
CN112129310A (en) * | 2019-06-25 | 2020-12-25 | 上海擎感智能科技有限公司 | Map display method and device |
CN110442393B (en) * | 2019-07-17 | 2023-04-07 | 高新兴科技集团股份有限公司 | Map dynamic loading method, computer storage medium and electronic device |
CN110795643A (en) * | 2019-11-04 | 2020-02-14 | 上海磁网科技有限公司 | Map design system and method for refining perception scene from parking lot to parking space |
CN110779535B (en) * | 2019-11-04 | 2023-03-03 | 腾讯科技(深圳)有限公司 | Method, device and storage medium for obtaining map data and map |
CN111009150B (en) * | 2019-11-21 | 2021-07-06 | 武汉市哈斯特斯科技有限责任公司 | Open type parking lot management method and system and background server |
CN111125292A (en) * | 2019-12-27 | 2020-05-08 | 深圳市图元科技有限公司 | Park fine management system |
CN111739043B (en) * | 2020-04-13 | 2023-08-08 | 北京京东叁佰陆拾度电子商务有限公司 | Parking space drawing method, device, equipment and storage medium |
CN111829535B (en) * | 2020-06-05 | 2022-05-03 | 阿波罗智能技术(北京)有限公司 | Method and device for generating offline map, electronic equipment and storage medium |
CN111696384B (en) * | 2020-06-28 | 2022-06-03 | 重庆电子工程职业学院 | Intelligent shared parking system and method based on map |
-
2020
- 2020-12-29 CN CN202011599593.XA patent/CN112991808B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN112991808A (en) | 2021-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112053446B (en) | Real-time monitoring video and three-dimensional scene fusion method based on three-dimensional GIS | |
CN109348119B (en) | Panoramic monitoring system | |
US9024947B2 (en) | Rendering and navigating photographic panoramas with depth information in a geographic information system | |
KR101420885B1 (en) | Method and system for producing a video synopsis | |
CN112365397A (en) | Method for fusing two-dimensional video information and three-dimensional geographic information | |
EP3091735B1 (en) | Method and device for extracting surveillance record videos | |
CN108062507B (en) | Video processing method and device | |
US20210248817A1 (en) | Data processing method and apparatus | |
US20140139521A1 (en) | Apparatus and method for providing augmented reality using synthesized environment map | |
WO2011059659A1 (en) | System and method for annotating video with geospatially referenced data | |
US9576335B2 (en) | Method, device, and computer program for reducing the resolution of an input image | |
CN109788201B (en) | Positioning method and device | |
CN112991808B (en) | Parking space display method and device for parking area and electronic equipment | |
CN111629146B (en) | Shooting parameter adjusting method, shooting parameter adjusting device, shooting parameter adjusting equipment and storage medium | |
CN111949817A (en) | Crop information display system, method, equipment and medium based on remote sensing image | |
CN109120901B (en) | Method for switching pictures among cameras | |
CN110659385A (en) | Fusion method of multi-channel video and three-dimensional GIS scene | |
Jian et al. | Augmented virtual environment: fusion of real-time video and 3D models in the digital earth system | |
JP2008046608A (en) | Video window detector | |
CN117857839A (en) | Video fusion method and system based on eagle eye camera | |
CN110047035B (en) | Panoramic video hot spot interaction system and interaction equipment | |
CN116597076A (en) | Three-dimensional visual storehouse display method and system | |
CN108510433B (en) | Space display method and device and terminal | |
CN110910482B (en) | Method, system and readable storage medium for video data organization and scheduling | |
US11127201B2 (en) | Method for providing 3D GIS web services |
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 |