CN110458912B - Vehicle icon processing method and device - Google Patents

Vehicle icon processing method and device Download PDF

Info

Publication number
CN110458912B
CN110458912B CN201910729908.9A CN201910729908A CN110458912B CN 110458912 B CN110458912 B CN 110458912B CN 201910729908 A CN201910729908 A CN 201910729908A CN 110458912 B CN110458912 B CN 110458912B
Authority
CN
China
Prior art keywords
parking space
parking
endpoint
left corner
upper left
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910729908.9A
Other languages
Chinese (zh)
Other versions
CN110458912A (en
Inventor
秦眉芳
刘炬光
张少峰
李玲
杨成
田倩倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinguazi Technology Development Beijing Co ltd
Original Assignee
Jinguazi Technology Development Beijing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jinguazi Technology Development Beijing Co ltd filed Critical Jinguazi Technology Development Beijing Co ltd
Priority to CN201910729908.9A priority Critical patent/CN110458912B/en
Publication of CN110458912A publication Critical patent/CN110458912A/en
Application granted granted Critical
Publication of CN110458912B publication Critical patent/CN110458912B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/14Traffic control systems for road vehicles indicating individual free spaces in parking areas

Abstract

The invention provides a vehicle icon processing method and device, wherein the method comprises the following steps: when the included angle between the boundary of the parking space and the transverse axis of the coordinate system is an angle which is an integer multiple of the non-right angle, determining that the parking space is an inclined parking space, and calculating the rotating radian when the parking space rotates to a forward position, wherein in the forward position, two boundaries which are parallel to each other in the parking space are perpendicular to or parallel to the transverse axis of the coordinate system; rotating the parking space to the forward position according to the rotating radian, and determining the endpoint coordinate of the upper left corner of the parking space from the endpoint coordinates of the rotated parking space; and drawing the vehicle icon in a region near the upper left corner end point indicated by the upper left corner end point coordinate in the parking space. By the vehicle icon processing method and the vehicle icon processing device, the purpose of drawing the vehicle icon in the inclined parking space in the parking lot is achieved.

Description

Vehicle icon processing method and device
Technical Field
The invention relates to the technical field of computers, in particular to a vehicle icon processing method and device.
Background
At present, in order to enable a user to quickly find a parking space in a parking lot, a parking space position diagram of the parking lot needs to be drawn, so that the user entering the parking lot can know the use condition of the parking space in the parking lot through the parking space position diagram of the parking lot. On the basis, in order to inform a user of the use condition of the parking spaces in the parking lot, vehicle icons can be drawn in a parking space position diagram of the parking lot.
By carrying out operations such as on/off or display/hiding on the drawn vehicle icons in the parking space position diagram of the parking lot, the use condition of the parking spaces in the parking lot can be prompted to a user.
When drawing a vehicle icon in a parking space position map of a parking lot, the vehicle icon cannot be drawn in a parking space inclined in the parking lot.
Disclosure of Invention
In order to solve the above problems, an embodiment of the present invention is to provide a method and an apparatus for processing a vehicle icon.
In a first aspect, an embodiment of the present invention provides a vehicle icon processing method, configured to draw a vehicle icon in a rectangular parking space in a parking lot, including:
when the included angle between the boundary of the parking space and the transverse axis of the coordinate system is an integral multiple of the non-right angle, determining that the parking space is an inclined parking space, and calculating the rotating radian when the parking space rotates to a forward position, wherein in the forward position, two boundaries parallel to each other in the parking space are perpendicular to or parallel to the transverse axis of the coordinate system;
according to the rotating radian, rotating the parking space to the forward position, and determining the endpoint coordinate of the upper left corner of the parking space from the endpoint coordinates of the rotated parking space;
and drawing the vehicle icon in a region, close to the upper left corner endpoint indicated by the upper left corner endpoint coordinate, in the parking space.
In a second aspect, an embodiment of the present invention further provides a vehicle icon processing device, configured to draw a vehicle icon in a rectangular parking space in a parking lot, including:
the processing module is used for determining that the parking space is an inclined parking space when the included angle between the boundary of the parking space and the transverse axis of the coordinate system is an angle which is an integral multiple of a non-right angle, and calculating the rotating radian when the parking space rotates to a forward position, wherein two boundaries which are parallel to each other in the parking space are perpendicular to or parallel to the transverse axis of the coordinate system in the forward position;
the rotating module is used for rotating the parking space to the forward position according to the rotating radian, and determining the endpoint coordinate of the upper left corner of the parking space from the endpoint coordinates of the rotating parking space;
and the drawing module is used for drawing the vehicle icon in the area, close to the upper left corner end point indicated by the upper left corner end point coordinates, in the parking space.
In a third aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program is executed by a processor to perform the steps of the method according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a vehicle icon processing device, where the vehicle icon processing device includes a memory, a processor, and one or more programs, where the one or more programs are stored in the memory, and configured to execute the steps of the method described in the first aspect by the processor.
In the solutions provided in the first to fourth aspects of the embodiments of the present invention, when it is determined that the parking space is an inclined parking space, the parking space is rotated according to the rotation radian when the parking space rotates to the forward position, then the upper left corner endpoint coordinate of the parking space is determined from the endpoint coordinates of the rotated parking space, and the vehicle icon is drawn in the area of the parking space near the upper left corner endpoint indicated by the upper left corner endpoint coordinate. Moreover, the method has the characteristics of small system overhead and simple and convenient operation.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 shows a schematic plan view of a parking space with a coordinate system, which can be used in an embodiment of the invention;
FIG. 2 shows a block diagram of a server that may be used in embodiments of the invention;
FIG. 3 is a flow chart showing a data processing method according to embodiment 1 of the present invention;
fig. 4 is a schematic diagram showing a structure of a data processing apparatus according to embodiment 2 of the present invention;
fig. 5 is a schematic diagram showing the structure of another data processing apparatus according to embodiment 3 of the present invention.
Detailed Description
At present, in order to enable a user to quickly find a parking space in a parking lot, a parking space position diagram of the parking lot needs to be drawn, so that the user entering the parking lot can know the use condition of the parking space in the parking lot through the parking space position diagram of the parking lot. On the basis, in order to inform a user of the use condition of the parking spaces in the parking lot, vehicle icons can be drawn in a parking space position diagram of the parking lot. By performing operations such as on/off or display/hiding on the vehicle icons in each parking space in the parking space position diagram of the parking lot, the use condition of the parking space in the parking lot can be prompted to the user. When drawing a vehicle icon in a parking space position map of a parking lot, the vehicle icon cannot be drawn in a parking space inclined in the parking lot.
In the parking space position map of the parking space, the shape of the parking space is not a regular shape, and the orientations of the parking spaces are different although the parking space is a rectangular shape, so that the vehicle icon needs to be drawn inside the parking space.
In order to draw the vehicle icon in the inclined parking space, the endpoint coordinates of four endpoints of the parking space can be obtained, and the starting endpoint of the vehicle icon drawing and the rotation angle required by the vehicle icon drawing are found out. According to the starting endpoint of the vehicle icon drawing and the rotation angle required by the vehicle icon drawing, the vehicle icon can be drawn in the parking space. Referring to the schematic plan view of a parking space with a coordinate system shown in fig. 1, the upper left corner of the parking space is usually used as the starting point for drawing a vehicle icon. Then, in this scheme, after determining the rotation angle that the upper left corner extreme point of parking stall and vehicle icon draw the time needs, just can draw the vehicle icon in the slope parking stall.
Based on the above, in the vehicle icon processing method and device provided by the embodiment, when the parking space is determined to be an inclined parking space, the parking space is calculated and rotated according to the rotation radian when the parking space rotates to the forward position, then the upper left corner endpoint coordinate of the parking space is determined from the endpoint coordinates of the rotated parking space, and the vehicle icon is drawn in the area, which is close to the upper left corner endpoint indicated by the upper left corner endpoint coordinate, in the parking space, so that the vehicle icon is drawn in the area, which is close to the upper left corner endpoint, in the inclined parking space after the inclined parking space is rotated and the upper left corner endpoint of the inclined parking space is determined, and the purpose of drawing the vehicle icon in the inclined parking space in the parking space is achieved; moreover, the method has the characteristics of small system overhead and simple and convenient operation.
Fig. 2 shows a block diagram of a server as described above, which may be used in an embodiment of the present invention. As shown in fig. 2, the server 200 includes: memory 201, processor 202, and network module 203.
The memory 201 may be used to store software programs and modules, such as program instructions/modules corresponding to the vehicle icon processing method and apparatus in the embodiment of the present invention, and the processor 202 executes the software programs and modules stored in the memory 201, thereby performing various functional applications and data processing, that is, implementing the vehicle icon processing method in the embodiment of the present invention. Memory 201 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. Further, the software program and the module may further include: an operating system 221 and a service module 222. Where the operating system 221, which may be, for example, LINUX, UNIX, WINDOWS, may include various software components and/or drivers for managing system tasks (e.g., memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for the other software components. The service module 222 operates on the basis of the operating system 221, monitors a request from the network through network service of the operating system 221, completes corresponding data processing according to the request, and returns a processing result to the client. That is, the service module 222 is used to provide network services to clients.
The network module 203 is configured to receive and transmit network signals. The network signals may include wireless signals or wired signals.
It is to be understood that the structure shown in fig. 2 is merely illustrative, and that server 200 may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 2. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof. In addition, the server in the embodiment of the invention can also comprise a plurality of servers with specific different functions.
In order to make the above objects, features and advantages of the present application more comprehensible, the present application is described in further detail below with reference to the accompanying drawings and detailed description.
Example 1
The vehicle icon processing method provided in this embodiment has the execution subject being the server described above.
Referring to a flowchart of a vehicle icon processing method shown in fig. 3, the present embodiment provides a vehicle icon processing method for drawing a vehicle icon in a rectangular parking space in a parking lot, including the following specific steps:
and 300, when the included angle between the boundary of the parking space and the transverse axis of the coordinate system is an angle which is an integral multiple of the non-right angle, determining that the parking space is an inclined parking space, and calculating the rotating radian when the parking space rotates to a forward position, wherein in the forward position, two boundaries which are parallel to each other in the parking space are perpendicular to or parallel to the transverse axis of the coordinate system.
The included angle between the boundary of the parking space and the transverse axis of the coordinate system can be between 0 and 360 degrees.
And an included angle between the boundary of the parking space and the transverse axis of the coordinate system is an angle between the boundary (the extension line of the boundary) and the transverse axis of the coordinate system at the intersection position after the boundary (the extension line of the boundary) of the parking space and the transverse axis of the coordinate system intersect.
If the included angle between the boundary of the parking space and the transverse axis of the coordinate system is an integral multiple of the right angle, namely, the included angle is 0 degree, 90 degrees, 180 degrees and 270 degrees, the parking space is positioned at the forward position, and the vehicle icon can be drawn in the parking space without rotating; otherwise, the parking space is an inclined parking space, and the drawing operation of the vehicle icon can be performed only after the flow of the step 300 and the subsequent step 302 is executed.
In the above step 300, referring to the parking space plan shown in fig. 1, the parking space is a rectangular parking space having four endpoints of a, b, c, and d, and having four boundaries of ab, bc, cd, and ad consisting of the four endpoints of a, b, c, and d.
In order to determine whether the parking space is an inclined parking space and calculate the rotation radian when the parking space rotates to the forward position, the above step 300 may be performed in the following steps (1) to (3):
(1) Acquiring the endpoint coordinates of the parking space, and determining four boundaries of the parking space according to the endpoint coordinates of the parking space;
(2) Calculating to obtain an included angle between one of four boundaries of the parking space and a transverse axis of the coordinate system;
(3) When the calculated degrees of the included angles are angles which are not right angle multiples, determining that the parking spaces are inclined parking spaces, and calculating the rotating radian when the parking spaces rotate to the forward position according to the calculated degrees of the included angles.
In the step (1), the parking space position map of the parking lot may be a scalable vector graphic (Scalable Vector Graphics, SVG) format file of the parking lot stored in the server.
SVG format files of the parking lot include, but are not limited to: the corresponding relation between the parking space position diagram and the endpoint coordinates of the parking space and the parking space identification.
And a parking space mark is described in the image of each parking space in the parking space position diagram.
When a user selects a parking place needing to draw a vehicle icon in a parking place position diagram of an SVG format file of the parking lot, the server can acquire the endpoint coordinates of the parking place from the corresponding relation between the parking place identification in the SVG format file and the endpoint coordinates of the parking place according to the parking place identification selected by the user.
Therefore, the server can use the vehicle position identification to traverse the corresponding relation between the vehicle position identification in the SVG format file of the parking lot and the endpoint coordinates of the vehicle position, and then the endpoint coordinates of the vehicle position can be inquired and obtained.
The end point coordinates of the parking space comprise end point coordinates of four end points in the parking space.
According to the endpoint coordinates of the four endpoints a, b, c and d of the parking space, four boundaries ab, bc, cd and ad of the parking space can be determined, and the specific process is the prior art and is not repeated here.
In one embodiment, the coordinates of the end point a may be (Ax, ay), the coordinates of the end point b may be (Bx, by), the coordinates of the end point c may be (Cx, cy), and the coordinates of the end point d may be (Dx, dy) in the parking space.
In the following, a description will be given of how to obtain the upper left corner end point coordinates of the inclined parking space, taking the boundary ab of the parking space as an example.
In the step (2), the included angle between one boundary of the parking space and the transverse axis of the coordinate system may be calculated by the following formula 1:
θ=arctan((By-Ay)/(Bx-Ax)) (1)
wherein θ represents the degree of the angle.
In the step (3), the rotation radian when the parking space rotates to the forward position may be calculated by the following formula 2:
changeAngle=(-θ*π/180) (2)
wherein changeAngle represents the radian of rotation when the parking stall rotates to forward position.
And 302, rotating the parking space to the forward position according to the rotating radian, determining the endpoint coordinate of the upper left corner of the parking space from the endpoint coordinates of the rotated parking space, and then jumping to step 306.
Specifically, to determine the coordinates of the upper left corner end point of the parking space, the above step 302 may perform the following steps (1) to (2):
(1) Taking one end point of the boundary of the included angle obtained by calculation in the four boundaries of the parking space as a rotation center, enabling the parking space to rotate around the rotation center by the rotation radian, and enabling the parking space to rotate to the forward position;
(2) And determining the endpoint coordinate with the minimum abscissa and the minimum ordinate in the rotated parking space as the endpoint coordinate of the upper left corner of the parking space.
In the step (1), if the angle between one of the four boundaries of the parking space and the transverse axis of the coordinate system is calculated by using the ab boundary of the parking space, the server needs to determine the a endpoint or the b endpoint of the ab boundary as a rotation center, so that the parking space rotates around the rotation center by the rotation radian, and the parking space rotates to the forward position.
In the step (2), referring to a dashed box in the parking space plan shown in fig. 1, a schematic diagram of the server rotating the parking space to the forward position with the a-end point of the parking space as the rotation center is shown.
After the parking space is rotated to the forward position, the server can sort the horizontal coordinates and the vertical coordinates of the four endpoints of the rotated parking space according to the order from small to large respectively to obtain the sorting result of the horizontal coordinates and the sorting result of the vertical coordinates of the four endpoints of the parking space; therefore, the server can determine that the abscissa of the a end points is the smallest and the ordinate of the a end points is the smallest in the four end points of the parking space according to the ordering result of the abscissa and the ordering result of the ordinate, and then the server determines the a end point of the parking space as the upper left corner end point coordinate of the parking space.
When the included angle between the boundary of the parking space and the transverse axis of the coordinate system is an integral multiple of the right angle, it is indicated that the parking space is the parking space located at the forward position, and then the following step 304 may be executed to determine the endpoint coordinate of the upper left corner of the parking space.
And 304, determining the endpoint coordinate with the minimum abscissa and the minimum ordinate in the parking space as the upper left corner endpoint coordinate of the parking space when the included angle between the boundary of the parking space and the transverse axis of the coordinate system is an integral multiple of the right angle.
In the above step 304, the process of determining the top left corner endpoint coordinate of the parking space located at the forward position is similar to the process of determining the top left corner endpoint coordinate of the parking space from the endpoint coordinates of the parking space rotated to the forward position in the above step 302, and will not be repeated herein.
After determining the coordinates of the end point of the upper left corner of the parking space through steps 300 to 302 or 304, step 306 may be continuously performed to draw the vehicle icon in the parking space.
And 306, drawing the vehicle icon in a region, close to the upper left corner end point indicated by the upper left corner end point coordinate, in the parking space.
Here, in order to draw the vehicle icon and ensure that the drawn vehicle icon coincides with the inclination direction of the parking space, the above-described step 304 may be performed with the following steps (1) to (2):
(1) Determining the included angle as a rotation angle of the vehicle icon;
(2) And drawing the vehicle icon in a region, which is close to the upper left corner endpoint, in the parking space based on the rotation angle from the upper left corner endpoint indicated by the upper left corner endpoint coordinate of the parking space.
In the step (1), in order to make the display direction of the vehicle icon coincide with the inclination angle of the parking space, the included angle needs to be determined as the rotation angle of the vehicle icon so as to adjust the display direction of the vehicle icon.
In the step (2), based on the rotation angle, a specific process of drawing the vehicle icon in the region near the upper left corner end point in the parking space may be any manner in the prior art that may draw the icon in the SVG format file, which is not described herein.
In summary, this embodiment provides a vehicle icon processing method, when it is determined that a parking space is an inclined parking space, the parking space is calculated and rotated according to a rotation radian when the parking space rotates to a forward position, then an endpoint coordinate of a left upper corner of the parking space is determined from endpoint coordinates of the rotated parking space, and a vehicle icon is drawn in a region in the parking space, which is close to the left upper corner endpoint indicated by the endpoint coordinate of the left upper corner, and compared with a process in which the vehicle icon cannot be drawn in the inclined parking space in a parking lot in the related art, the vehicle icon can be drawn in the region in the inclined parking space, which is close to the left upper corner endpoint, after the upper left corner endpoint of the inclined parking space is determined, so that the purpose of drawing the vehicle icon in the inclined parking space in the parking lot is achieved. Moreover, the method has the characteristics of small system overhead and simple and convenient operation.
Based on the same inventive concept, the embodiment of the present application further provides a vehicle icon processing method and a corresponding vehicle icon processing device, and since the principle of solving the problem by the device in the embodiment of the present application is similar to that of the vehicle icon processing method described in embodiment 1 of the present application, the implementation of the device may refer to the implementation of the foregoing vehicle icon processing method, and the repetition is omitted.
Example 2
The present embodiment proposes a vehicle icon processing apparatus for executing the vehicle icon processing method proposed in embodiment 1 described above.
Referring to a schematic structural diagram of a vehicle icon processing device shown in fig. 4, this embodiment proposes a vehicle icon processing device for drawing a vehicle icon in a rectangular parking space in a parking lot, including:
the processing module 400 is configured to determine that the parking space is an inclined parking space when an included angle between a boundary of the parking space and a transverse axis of the coordinate system is an angle that is an integer multiple of a non-right angle, and calculate a rotation radian when the parking space rotates to a forward position, where two boundaries parallel to each other in the parking space are perpendicular to or parallel to the transverse axis of the coordinate system in the forward position;
the rotating module 402 is configured to rotate the parking space to the forward position according to the rotation radian, and determine an endpoint coordinate of an upper left corner of the parking space from endpoint coordinates of the rotated parking space;
and the drawing module 404 is configured to draw the vehicle icon in an area near the upper left corner endpoint indicated by the upper left corner endpoint coordinate in the parking space.
In order to determine whether the parking space is an inclined parking space, the processing module 400 is specifically configured to:
acquiring the endpoint coordinates of the parking space, and determining four boundaries of the parking space according to the endpoint coordinates of the parking space;
calculating to obtain an included angle between one of four boundaries of the parking space and a transverse axis of the coordinate system;
when the calculated degrees of the included angles are angles which are not right angle multiples, determining that the parking spaces are inclined parking spaces, and calculating the rotating radian when the parking spaces rotate to the forward position according to the calculated degrees of the included angles.
In summary, this embodiment provides a vehicle icon processing device, when determining that a parking space is an inclined parking space, calculating and rotating the parking space according to a rotation radian when the parking space rotates to a forward position, then determining an endpoint coordinate of a left upper corner of the parking space from endpoint coordinates of the rotated parking space, and drawing a vehicle icon in a region in the parking space, which is close to the endpoint of the left upper corner indicated by the endpoint coordinate of the left upper corner, compared with a process in which the vehicle icon cannot be drawn in the inclined parking space in a parking lot in the related art, the vehicle icon can be drawn in the region in the inclined parking space, which is close to the endpoint of the left upper corner, after the upper left corner of the inclined parking space is determined, so as to achieve the purpose of drawing the vehicle icon in the inclined parking space in the parking lot. Moreover, the method has the characteristics of small system overhead and simple and convenient operation.
Based on the same inventive concept, the embodiments of the present application further provide a vehicle icon processing method and a corresponding computer storage medium and a vehicle icon processing device, and because the principles of solving the problems with the computer storage medium and the device in the embodiments of the present application are similar to those of the vehicle icon processing method described in embodiment 1 of the present application, the implementation of the device may refer to the implementation of the foregoing vehicle icon processing method, and the repetition is omitted.
Example 3
The present embodiment proposes a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the data processing method described in the above embodiment 1. The specific implementation can be referred to method embodiment 1, and will not be described herein.
Further, referring to the schematic structural diagram of another vehicle icon processing device shown in fig. 5, the present embodiment also proposes a vehicle icon processing device that includes a bus 51, a processor 52, a transceiver 53, a bus interface 54, a memory 55, and a user interface 56. The data processing means comprise a memory 55.
In this embodiment, the vehicle icon processing device further includes: one or more programs stored on memory 55 and executable on processor 52, configured to be executed by the processor for performing steps (1) through (3) below:
(1) When the included angle between the boundary of the parking space and the transverse axis of the coordinate system is an integral multiple of the non-right angle, determining that the parking space is an inclined parking space, and calculating the rotating radian when the parking space rotates to a forward position, wherein in the forward position, two boundaries parallel to each other in the parking space are perpendicular to or parallel to the transverse axis of the coordinate system;
(2) According to the rotating radian, rotating the parking space to the forward position, and determining the endpoint coordinate of the upper left corner of the parking space from the endpoint coordinates of the rotated parking space;
(3) And drawing the vehicle icon in a region, close to the upper left corner endpoint indicated by the upper left corner endpoint coordinate, in the parking space.
A transceiver 53 for receiving and transmitting data under the control of the processor 52.
In fig. 5, a bus architecture (represented by bus 51), the bus 51 may comprise any number of interconnected buses and bridges, with the bus 51 linking together various circuits, including one or more processors, represented by a general purpose processor 52, and memory, represented by memory 55. The bus 51 may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., as are well known in the art, and therefore, will not be described further in connection with this embodiment. Bus interface 54 provides an interface between bus 51 and transceiver 53. The transceiver 53 may be one element or may be a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. For example: the transceiver 53 receives external data from other devices. The transceiver 53 is used to transmit the data processed by the processor 52 to other devices. Depending on the nature of the computing system, a user interface 56 may also be provided, such as a keypad, display, speaker, microphone, joystick.
The processor 52 is responsible for managing the bus 51 and general processing, as described above, running a general purpose operating system. And memory 55 may be used to store data used by processor 52 in performing operations.
Alternatively, processor 52 may be, but is not limited to: a central processing unit, a single chip microcomputer, a microprocessor or a programmable logic device.
It will be appreciated that the memory 55 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (Double Data Rate SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). The memory 55 of the system and method described in this embodiment is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 55 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof: operating system 551 and application programs 552.
The operating system 551 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application programs 552 include various application programs such as a Media Player (Media Player), a Browser (Browser), and the like for implementing various application services. A program for implementing the method of the embodiment of the present invention may be included in the application program 552.
In summary, when it is determined that the parking space is an inclined parking space, the computer storage medium and the vehicle icon processing device according to the embodiments calculate and rotate the parking space according to the rotation radian when the parking space rotates to the forward position, then determine the top left corner endpoint coordinate of the parking space from the endpoint coordinates of the rotated parking space, and draw the vehicle icon in the area of the parking space near the top left corner endpoint indicated by the top left corner endpoint coordinate. Moreover, the method has the characteristics of small system overhead and simple and convenient operation.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A vehicle icon processing method for drawing a vehicle icon in a rectangular parking space in a parking space position diagram of a parking lot, characterized by comprising:
when the included angle between the boundary of the parking space and the transverse axis of the coordinate system is an integral multiple of the non-right angle, determining that the parking space is an inclined parking space, and calculating the rotating radian when the parking space rotates to a forward position, wherein in the forward position, two boundaries parallel to each other in the parking space are perpendicular to or parallel to the transverse axis of the coordinate system; the parking spaces are the parking spaces in a parking space position diagram of the parking lot;
according to the rotating radian, rotating the parking space to the forward position, and determining the endpoint coordinate of the upper left corner of the parking space from the endpoint coordinates of the rotated parking space;
and drawing the vehicle icon in a region, close to the upper left corner endpoint indicated by the upper left corner endpoint coordinate, in the parking space.
2. The method of claim 1, wherein when the angle between the boundary of the space and the transverse axis of the coordinate system is an angle that is an integer multiple of a non-right angle, determining that the space is an inclined space, and calculating the arc of rotation when the space is rotated to the forward position, comprises:
acquiring the endpoint coordinates of the parking space, and determining four boundaries of the parking space according to the endpoint coordinates of the parking space;
calculating to obtain an included angle between one of four boundaries of the parking space and a transverse axis of the coordinate system;
when the calculated degrees of the included angles are angles which are not right angle multiples, determining that the parking spaces are inclined parking spaces, and calculating the rotating radian when the parking spaces rotate to the forward position according to the calculated degrees of the included angles.
3. The method of claim 2, wherein calculating the arc of rotation of the parking spot to the forward position based on the calculated degrees of the included angle comprises:
calculating the rotation radian when the parking space rotates to the forward position through the following formula:
changeAngle=(-θ*π/180)
wherein changeAngle represents the rotation radian when the parking space rotates to a forward position; θ represents the degree of the angle.
4. The method of claim 1, wherein rotating the parking spot to the forward position according to the arc of rotation and determining an upper left corner endpoint coordinate of the parking spot from the rotated endpoint coordinates of the parking spot comprises:
taking one end point of the boundary of the included angle obtained by calculation in the four boundaries of the parking space as a rotation center, enabling the parking space to rotate around the rotation center by the rotation radian, and enabling the parking space to rotate to the forward position;
and determining the endpoint coordinate with the minimum abscissa and the minimum ordinate in the rotated parking space as the endpoint coordinate of the upper left corner of the parking space.
5. The method of claim 1, wherein drawing the vehicle icon at a location within the parking space proximate to an upper left corner endpoint indicated by the upper left corner endpoint coordinate comprises:
determining the included angle as a rotation angle of the vehicle icon;
and drawing the vehicle icon in a region, which is close to the upper left corner endpoint, in the parking space based on the rotation angle from the upper left corner endpoint indicated by the upper left corner endpoint coordinate of the parking space.
6. The method of claim 1, further comprising, prior to the step of drawing the vehicle icon in the area within the parking space proximate to the upper left corner endpoint indicated by the upper left corner endpoint coordinate:
and when the included angle between the boundary of the parking space and the transverse axis of the coordinate system is an angle which is an integral multiple of the right angle, determining the endpoint coordinate with the minimum abscissa and the minimum ordinate in the parking space as the endpoint coordinate of the upper left corner of the parking space.
7. A vehicle icon processing apparatus for drawing a vehicle icon in a rectangular parking space in a parking space position diagram of a parking lot, comprising:
the processing module is used for determining that the parking space is an inclined parking space when the included angle between the boundary of the parking space and the transverse axis of the coordinate system is an angle which is an integral multiple of a non-right angle, and calculating the rotating radian when the parking space rotates to a forward position, wherein two boundaries which are parallel to each other in the parking space are perpendicular to or parallel to the transverse axis of the coordinate system in the forward position; the parking spaces are the parking spaces in a parking space position diagram of the parking lot;
the rotating module is used for rotating the parking space to the forward position according to the rotating radian, and determining the endpoint coordinate of the upper left corner of the parking space from the endpoint coordinates of the rotating parking space;
and the drawing module is used for drawing the vehicle icon in the area, close to the upper left corner end point indicated by the upper left corner end point coordinates, in the parking space.
8. The apparatus according to claim 7, wherein the processing module is specifically configured to:
acquiring the endpoint coordinates of the parking space, and determining four boundaries of the parking space according to the endpoint coordinates of the parking space;
calculating to obtain an included angle between one of four boundaries of the parking space and a transverse axis of the coordinate system;
when the calculated degrees of the included angles are angles which are not right angle multiples, determining that the parking spaces are inclined parking spaces, and calculating the rotating radian when the parking spaces rotate to the forward position according to the calculated degrees of the included angles.
9. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor performs the steps of the method of any of the preceding claims 1-6.
10. A vehicle icon processing device comprising a memory, a processor and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor to perform the steps of the method of any of claims 1-6.
CN201910729908.9A 2019-08-08 2019-08-08 Vehicle icon processing method and device Active CN110458912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910729908.9A CN110458912B (en) 2019-08-08 2019-08-08 Vehicle icon processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910729908.9A CN110458912B (en) 2019-08-08 2019-08-08 Vehicle icon processing method and device

Publications (2)

Publication Number Publication Date
CN110458912A CN110458912A (en) 2019-11-15
CN110458912B true CN110458912B (en) 2023-05-09

Family

ID=68485539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910729908.9A Active CN110458912B (en) 2019-08-08 2019-08-08 Vehicle icon processing method and device

Country Status (1)

Country Link
CN (1) CN110458912B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110070623A (en) * 2019-04-16 2019-07-30 百度在线网络技术(北京)有限公司 Guide line draws reminding method, device, computer equipment and storage medium

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9063644B2 (en) * 2012-03-26 2015-06-23 The Boeing Company Adjustment mechanisms for virtual knobs on a touchscreen interface
CN102930744B (en) * 2012-11-16 2015-03-04 北京天一众合科技股份有限公司 Parking plot guiding and reverse vehicle tracking method for parking lot
CN103345851B (en) * 2013-07-23 2015-04-22 上海风翼空调设备有限公司 Integrative system for garage ventilation and illumination and parking place guidance and control method of system
US20150254738A1 (en) * 2014-03-05 2015-09-10 TerrAvion, LLC Systems and methods for aerial imaging and analysis
CN103839441B (en) * 2014-03-07 2016-09-28 毛蔚青 Mobile terminal parking position based on character recognition technology localization method
JP2015186058A (en) * 2014-03-25 2015-10-22 キヤノン株式会社 Imaging apparatus
CN203882450U (en) * 2014-04-24 2014-10-15 纳米新能源(唐山)有限责任公司 Parking-stall state detector
CN105719504A (en) * 2014-12-02 2016-06-29 西安联控电气有限责任公司 Parking spot reservation system
US10200824B2 (en) * 2015-05-27 2019-02-05 Apple Inc. Systems and methods for proactively identifying and surfacing relevant content on a touch-sensitive device
CN204946364U (en) * 2015-07-30 2016-01-06 东北石油大学 Carport information management system for parking lots
CN105220914B (en) * 2015-10-18 2018-06-01 姚仰华 A kind of built-in garage
CN205281808U (en) * 2016-01-08 2016-06-01 黑龙江大学 Underground parking garage navigation
CN105575178B (en) * 2016-03-02 2018-03-23 赵鹏 A kind of intelligent space lock based on coupler temporary parking position
CN107180555A (en) * 2017-06-16 2017-09-19 深圳市盛路物联通讯技术有限公司 City parking stall monitoring method and device
CN109872558A (en) * 2017-12-04 2019-06-11 广州市捷众智能科技有限公司 A kind of indoor parking stall state-detection method based on Cross hair laser projection
CN110033636A (en) * 2018-01-11 2019-07-19 杜宇 A kind of parking stall management method and system
CN108564665A (en) * 2018-03-29 2018-09-21 小牛(深圳)科技贸易有限公司 A kind of parking stall management method and system
CN108734796B (en) * 2018-04-08 2021-03-26 许昌学院 Intelligent parking lot management system and method based on Internet of things technology
CN108831183A (en) * 2018-06-06 2018-11-16 哈尔滨工业大学(威海) Managing system of car parking based on machine vision
CN108986538A (en) * 2018-09-19 2018-12-11 Oppo广东移动通信有限公司 Parking stall indicating means, device, terminal and system
CN109163914A (en) * 2018-11-12 2019-01-08 金瓜子科技发展(北京)有限公司 A kind of vehicle remote detection method and device
CN109508682A (en) * 2018-11-20 2019-03-22 成都通甲优博科技有限责任公司 A kind of detection method on panorama parking stall

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110070623A (en) * 2019-04-16 2019-07-30 百度在线网络技术(北京)有限公司 Guide line draws reminding method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110458912A (en) 2019-11-15

Similar Documents

Publication Publication Date Title
US10614592B2 (en) Three-dimensional posture estimating method and apparatus, device and computer storage medium
US8339399B2 (en) Declustering point-of-interest icons
CN110990510B (en) Three-dimensional map generation method, terminal and server
CN112583620B (en) Network topology map generation method, device, electronic equipment and storage medium
CN112055091A (en) Vehicle-mounted micro-service architecture, and communication method and device of vehicle-mounted module
CN111192352A (en) Map rendering method and device, computer equipment and storage medium
JP6869258B2 (en) Road name display method, device and storage medium
CN110794826B (en) Hybrid navigation method and device, communication method and device, equipment and storage medium
WO2021057663A1 (en) Map overlay thinning method, device and apparatus, and computer storage medium
EP4119413A1 (en) Error compensation method and apparatus, computer device, and storage medium
CN110458912B (en) Vehicle icon processing method and device
KR101701294B1 (en) System and method for image view binding optimization
JP6733490B2 (en) Development support system, development support device, response control program, response control method, and response control device
US9692806B2 (en) Route a service
EP3322149B1 (en) Customized map generation with real time messages and locations from concurrent users
CN113269168B (en) Obstacle data processing method and device, electronic equipment and computer readable medium
CN110490926B (en) Elevation determination method and device and electronic equipment
CN113872798A (en) Method and device for constructing space network topological graph, storage medium and electronic equipment
US20190320473A1 (en) Methods and apparatuses for connecting a wireless access point through an application in a user equipment
CN112462764B (en) Vehicle constraint graph construction method and device
KR102531860B1 (en) Gateway apparatus and method for dynamically applying API settings
CN113779459B (en) Page display method and device and electronic equipment
JP2023526703A (en) Collision detection method for object, device, electronic device, storage medium and computer program
CN117061684A (en) Special effect video generation method and device, electronic equipment and storage medium
JP2015096971A (en) Server and method of outputting map image

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