CN110458912A - A kind of vehicle icon treating method and apparatus - Google Patents
A kind of vehicle icon treating method and apparatus Download PDFInfo
- Publication number
- CN110458912A CN110458912A CN201910729908.9A CN201910729908A CN110458912A CN 110458912 A CN110458912 A CN 110458912A CN 201910729908 A CN201910729908 A CN 201910729908A CN 110458912 A CN110458912 A CN 110458912A
- Authority
- CN
- China
- Prior art keywords
- parking stall
- angle
- upper left
- left corner
- vehicle icon
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
-
- 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
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Traffic Control Systems (AREA)
Abstract
The present invention provides a kind of vehicle icon treating method and apparatus, wherein, this method comprises: when the angle between the boundary of parking stall and coordinate system horizontal axis is the angle of on-right angle angle integral multiple, determine that parking stall is inclination parking stall, and calculate rotation radian when parking stall rotates to forward position, wherein, in forward position, two boundaries being parallel to each other in parking stall are vertical or parallel with coordinate system horizontal axis;According to rotated radian, parking stall is rotated into the forward position, and the upper left corner extreme coordinates of parking stall are determined from the extreme coordinates of postrotational parking stall;Draw the vehicle icon in region in parking stall close to the upper left corner endpoint of upper left corner extreme coordinates instruction.The vehicle icon treating method and apparatus provided through the embodiment of the present invention has achieved the purpose that draw vehicle icon in inclined parking stall in parking lot.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of vehicle icon treating method and apparatus.
Background technique
Currently, need to draw the parking stall location drawing in parking lot to make user that can be quickly found out parking stall in parking lot,
Understand that the user into parking lot to the service condition of parking stall in parking lot by the parking stall location drawing in parking lot.
On this basis, it in order to inform the service condition of parking stall in user parking lot, can be drawn in the parking stall location drawing in parking lot
Vehicle icon.
By operating in the parking stall location drawing in parking lot to drawing vehicle icon and turned on/off or shown/hidden etc.,
The service condition of parking stall in the user can be prompted parking lot.
When drawing vehicle icon in the parking stall location drawing in parking lot, vehicle can not be drawn in inclined parking stall in parking lot
Icon.
Summary of the invention
To solve the above problems, the embodiment of the present invention is designed to provide a kind of vehicle icon treating method and apparatus.
In a first aspect, the embodiment of the invention provides a kind of vehicle icon processing methods, for the rectangle in parking lot
Vehicle icon is drawn in parking stall, comprising:
When the angle between the boundary of the parking stall and coordinate system horizontal axis is the angle of on-right angle angle integral multiple, determine
The parking stall is inclination parking stall, and calculates the rotation radian when parking stall rotates to forward position, wherein in the positive position
When setting, two boundaries being parallel to each other in the parking stall are vertical or parallel with coordinate system horizontal axis;
According to the rotation radian, the parking stall is rotated into the forward position, and from the postrotational parking stall
The upper left corner extreme coordinates of the parking stall are determined in extreme coordinates;
Draw the vehicle in region in the parking stall close to the upper left corner endpoint of upper left corner extreme coordinates instruction
Icon.
Second aspect, the embodiment of the invention also provides a kind of vehicle icon processing units, for the rectangle in parking lot
Parking stall in draw vehicle icon, comprising:
Processing module, for being on-right angle angle integral multiple when the angle between the boundary and coordinate system horizontal axis of the parking stall
Angle when, determine that the parking stall is inclination parking stall, and calculate the rotation radian when parking stall rotates to forward position,
In, in the forward position, two boundaries being parallel to each other in the parking stall are vertical or parallel with coordinate system horizontal axis;
Rotary module, for the parking stall being rotated to the forward position, and after rotation according to the rotation radian
The parking stall extreme coordinates in determine the upper left corner extreme coordinates of the parking stall;
Drafting module, the region of the upper left corner endpoint for being indicated in the parking stall close to the upper left corner extreme coordinates
Draw the vehicle icon.
The third aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium
Computer program is stored on storage media, which is characterized in that the computer program executes above-mentioned first when being run by processor
The step of method described in aspect.
Fourth aspect, the embodiment of the invention also provides a kind of vehicle icon processing unit, the vehicle icon processing dress
Setting includes memory, processor and one or more than one program, wherein the one or more programs
It is stored in the memory, and is configured to the step of method described in above-mentioned first aspect is executed as the processor.
In the above-mentioned first aspect of the embodiment of the present invention scheme that you provide to fourth aspect, determining that parking stall is inclination parking stall
When, rotation radian when calculating and rotating to forward position according to parking stall rotates parking stall, then from postrotational parking stall
Extreme coordinates in determine the upper left corner extreme coordinates of the parking stall, and refer in parking stall close to the upper left corner extreme coordinates
Vehicle icon is drawn in the region of the upper left corner endpoint shown, and can not draw vehicle in inclined parking stall in parking lot in the related technology
The process of icon is compared, and after the upper left corner endpoint that can carry out rotating and determine inclined parking stall to inclined parking stall, is being inclined
Vehicle icon is drawn close to the region of upper left corner endpoint in oblique parking stall, has reached and has drawn vehicle in inclined parking stall in parking lot
The purpose of icon;Moreover, having the characteristics that overhead is small and simple to operate.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 shows a kind of parking stall floor map with coordinate system that can be applied in the embodiment of the present invention;
Fig. 2 shows a kind of structural block diagrams that can be applied to the server in the embodiment of the present invention;
Fig. 3 shows a kind of flow chart of data processing method provided by the embodiment of the present invention 1;
Fig. 4 shows a kind of structural schematic diagram of data processing equipment provided by the embodiment of the present invention 2;
Fig. 5 shows the structural schematic diagram of another kind data processing equipment provided by the embodiment of the present invention 3.
Specific embodiment
Currently, need to draw the parking stall location drawing in parking lot to make user that can be quickly found out parking stall in parking lot,
Understand that the user into parking lot to the service condition of parking stall in parking lot by the parking stall location drawing in parking lot.
On this basis, it in order to inform the service condition of parking stall in user parking lot, can be drawn in the parking stall location drawing in parking lot
Vehicle icon.By the vehicle icon being plotted in the parking stall location drawing in parking lot in each parking stall is turned on/off or is shown/
Equal operation is hidden, the service condition of parking stall in the user can be prompted parking lot.Vehicle is drawn in the parking stall location drawing in parking lot
When icon, vehicle icon can not be drawn in inclined parking stall in parking lot.
In the parking stall location drawing in parking lot, the shape in parking lot is not regular shape, although parking stall is rectangular shape but each
The direction of parking stall is different, needs for vehicle icon to be plotted to inside parking stall.
In order to which to vehicle icon is drawn in inclined parking stall, the extreme coordinates of four endpoints on available parking stall are looked for
The rotation angle that the starting endpoint and vehicle icon that vehicle icon is drawn out need when drawing.The starting drawn according to vehicle icon
The rotation angle that endpoint and vehicle icon need when drawing, so that it may vehicle icon is drawn in parking stall.Shown in Figure 1
Parking stall floor map with coordinate system, it is generally the case that the upper left corner endpoint of parking stall can be drawn as vehicle icon
Starting endpoint.So, the rotation angle needed when in the present solution, determining that the upper left corner endpoint of parking stall and vehicle icon are drawn
Afterwards, so that it may which the vehicle icon in inclination parking stall is drawn.
Based on this, a kind of vehicle icon treating method and apparatus that the present embodiment proposes is determining that parking stall is inclination parking stall
When, rotation radian when calculating and rotating to forward position according to parking stall rotates parking stall, then from postrotational parking stall
Extreme coordinates in determine the upper left corner extreme coordinates of the parking stall, and refer in parking stall close to the upper left corner extreme coordinates
Vehicle icon is drawn in the region of the upper left corner endpoint shown, and the left side for rotating and determining inclined parking stall can be carried out to inclined parking stall
After upper angle endpoint, vehicle icon is drawn close to the region of upper left corner endpoint in inclined parking stall, has reached and has inclined in parking lot
The purpose of vehicle icon is drawn in oblique parking stall;Moreover, having the characteristics that overhead is small and simple to operate.
Fig. 2 shows a kind of structural block diagrams that can be applied to the above-mentioned server in the embodiment of the present invention.As shown in Fig. 2,
Server 200 includes: memory 201, processor 202 and network module 203.
Memory 201 can be used for storing software program and module, such as the vehicle icon processing side in the embodiment of the present invention
Method and the corresponding program instruction/module of device, processor 202 by the software program that is stored in memory 201 of operation and
Module, thereby executing various function application and data processing, i.e. vehicle icon processing method in the realization embodiment of the present invention.
Memory 201 may include high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage fills
It sets, flash memory or other non-volatile solid state memories.Further, above-mentioned software program and module may also include that operation
System 221 and service module 222.Wherein operating system 221 may be, for example, LINUX, UNIX, WINDOWS, may include each
Component software and/or driving of the kind for management system task (such as memory management, storage equipment control, power management etc.),
And can mutually be communicated with various hardware or component software, to provide the running environment of other software component.Service module 222 is transported
Row is monitored on the basis of operating system 221, and through the network service of operating system 221 come the request of automatic network, according to asking
It asks and completes corresponding data processing, and return to processing result to client.That is, service module 222 is used for client
Network service is provided.
Network module 203 is for receiving and transmitting network signal.Above-mentioned network signal may include wireless signal or have
Line signal.
It is appreciated that structure shown in Fig. 2 is only to illustrate, server 200 may also include than shown in Fig. 1 more or more
Few component, or with the configuration different from shown in Fig. 2.Each component shown in Fig. 1 can use hardware, software or its group
It closes and realizes.In addition, the server in the embodiment of the present invention can also include the server of multiple specific different function.
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real
Mode is applied to be further described in detail the application.
Embodiment 1
A kind of vehicle icon processing method that the present embodiment proposes, executing subject is above-mentioned server.
A kind of flow chart of vehicle icon processing method shown in Figure 3, the present embodiment propose at a kind of vehicle icon
Reason method, for drawing vehicle icon in the parking stall of rectangle in parking lot, comprising the following specific steps
Step 300, when the angle that the angle between the boundary and coordinate system horizontal axis of the parking stall is on-right angle angle integral multiple
When spending, determine that the parking stall is inclination parking stall, and calculate the rotation radian when parking stall rotates to forward position, wherein In
When the forward position, two boundaries being parallel to each other in the parking stall are vertical or parallel with coordinate system horizontal axis.
Angle between the boundary of the parking stall and the coordinate system horizontal axis, can be between 0 degree to 360 degree.
Angle between the boundary of the parking stall and the coordinate system horizontal axis is exactly the boundary (extended line on boundary) of parking stall
After intersecting with the coordinate system horizontal axis, boundary (extended line on boundary) and angle of the coordinate system horizontal axis at intersection location.
If the angle between the boundary of the parking stall and the coordinate system horizontal axis is the angle of right angle integral multiple, i.e.,
Angle is 0 degree, 90 degree, 180 degree and at 270 degree, illustrates that parking stall is located at forward position, without being rotated, so that it may
To draw vehicle icon in parking stall;Otherwise, illustrate that parking stall is inclination parking stall, need to be implemented step 300 and subsequent step
After 302 process, the drafting operation of vehicle icon just can be carried out.
In above-mentioned steps 300, parking stall plan view shown in Figure 1, parking stall is rectangle parking stall, has a, b, c and d tetra-
A endpoint, and there are ab, bc, cd and ad four edges circle being made of tetra- endpoints of a, b, c and d.
In order to determine whether the parking stall is inclination parking stall, and calculate the rotary arc when parking stall rotates to forward position
Degree, above-mentioned steps 300 can execute following steps (1) to step (3):
(1) extreme coordinates of the parking stall are obtained, and according to the extreme coordinates of the parking stall, determine four of the parking stall
Boundary;
(2) angle between a line circle in four edges circle of the parking stall and the coordinate system horizontal axis is calculated;
(3) when the degree for the angle being calculated is the angle of on-right angle angular multiples, determine that the parking stall is
Parking stall is tilted, and according to the degree for the angle being calculated, calculates the rotary arc when parking stall rotates to forward position
Degree.
In above-mentioned steps (1), the parking stall location drawing in the parking lot can be using the parking lot stored in the server
Scalable vector graphics (Scalable Vector Graphics, SVG) formatted file.
The SVG formatted file in the parking lot, including but not limited to: the parking stall location drawing and parking stall mark and parking stall
The corresponding relationship of extreme coordinates.
Description has parking stall mark in the image of each parking stall in the above-mentioned parking stall location drawing.
When user selects to need to draw in the parking stall location drawing of the SVG formatted file in the parking lot vehicle of vehicle icon
When position, the parking stall that server can be selected according to user is identified, and is sat from the endpoint of parking stall mark and parking stall in SVG formatted file
The extreme coordinates of parking stall are got in target corresponding relationship.
So parking stall mark can be used in server, to the parking stall mark and vehicle in the SVG formatted file in the parking lot
The corresponding relationship of the extreme coordinates of position is traversed, so that it may inquire and get the extreme coordinates of the parking stall.
The extreme coordinates of the parking stall, the extreme coordinates including four endpoints in parking stall.
According to the extreme coordinates of tetra- endpoints of a, b, c and d of parking stall, so that it may determine four edges circle ab, bc, cd of parking stall
And ad, detailed process are the prior arts, which is not described herein again.
In one embodiment, in parking stall the extreme coordinates of a endpoint can be (Ax, Ay), the extreme coordinates of b endpoint can
To be that the extreme coordinates of (Bx, By), c endpoint can be (Cx, Cy), the coordinate of d endpoint can be (Dx, Dy).
In the following contents, by taking the boundary ab by parking stall as an example, to the upper left corner extreme coordinates for how obtaining inclination parking stall
It is described.
In above-mentioned steps (2), can be calculated by following equation 1 the parking stall a line circle and the coordinate
It is the angle between horizontal axis:
θ=arctan ((By-Ay)/(Bx-Ax)) (1)
Wherein, θ indicates the degree of the angle.
In above-mentioned steps (3), rotation radian when forward position can be rotated to the parking stall by following equation 2
It is calculated:
ChangeAngle=(π/180-θ *) (2)
Wherein, changeAngle indicates the rotation radian when parking stall rotates to forward position.
Step 302, according to the rotation radian, the parking stall is rotated into the forward position, and from postrotational institute
The upper left corner extreme coordinates for determining the parking stall in the extreme coordinates of parking stall are stated, then go to step 306.
Specifically, in order to determine the upper left corner extreme coordinates of the parking stall, above-mentioned steps 302 can execute following steps
(1) to step (2):
(1) using be calculated in four edges circle of the parking stall angle boundary an endpoint as rotation center,
So that the parking stall is rotated the rotation radian around the rotation center, the parking stall is rotated into the forward position;
(2) abscissa in the postrotational parking stall is minimum and the smallest extreme coordinates of ordinate are determined as the parking stall
Upper left corner extreme coordinates.
In above-mentioned steps (1), in four edges circle of the parking stall obtained if it is the ab feature modeling using parking stall
A line circle and the coordinate system horizontal axis between angle when, server needs to determine a endpoint on the boundary ab or b endpoint
For rotation center, so that the parking stall is rotated the rotation radian around the rotation center, the parking stall is rotated into the forward direction
Position.
In above-mentioned steps (2), the dotted line frame in parking stall plan view shown in Figure 1 indicates server with a of parking stall
Endpoint is rotation center, and the parking stall is rotated to the schematic diagram of the forward position.
After parking stall is rotated to forward position, server can abscissa to four endpoints of postrotational parking stall and
Ordinate is ranked up according to sequence from small to large respectively, is obtained the ranking results of the abscissa of four endpoints of parking stall and is indulged
The ranking results of coordinate;To which server can be determined according to the ranking results of abscissa and the ranking results of ordinate
In four endpoints of parking stall, the abscissa of a endpoint is minimum and ordinate is minimum, then, a endpoint of parking stall is determined as by server
The upper left corner extreme coordinates of the parking stall.
When the angle between the boundary of the parking stall and the coordinate system horizontal axis is the angle of right angle integral multiple, say
Bright parking stall is exactly to determine the upper left corner end of the parking stall then following steps 304 can be executed positioned at the parking stall of forward position
Point coordinate.
Step 304, when the angle between the boundary and the coordinate system horizontal axis of the parking stall is right angle integral multiple
When angle, abscissa minimum and the smallest extreme coordinates of ordinate in the parking stall are determined as to the upper left corner endpoint of the parking stall
Coordinate.
In above-mentioned steps 304, the process for being located at the upper left corner extreme coordinates of the parking stall of forward position is determined, and it is upper
It states in step 302, the mistake of the upper left corner extreme coordinates of parking stall is determined from the extreme coordinates of parking stall for rotating to forward position
Journey is similar, and which is not described herein again.
The upper left corner extreme coordinates of the parking stall are determined in through the above steps 300 to step 302 or step 304
Afterwards, step 306 can be continued to execute, drafting operation is carried out to vehicle icon in parking stall.
Step 306, the region in the parking stall close to the upper left corner endpoint of upper left corner extreme coordinates instruction are drawn
The vehicle icon.
Here, in order to draw vehicle icon, and guarantee that the vehicle icon drawn is consistent with the inclined direction of parking stall, above-mentioned step
Rapid 304, following steps (1) can be executed to step (2):
(1) angle is determined as to the rotation angle of the vehicle icon;
(2) since the upper left corner endpoint that the upper left corner extreme coordinates of the parking stall indicate, it is based on the rotation angle
Degree draws the vehicle icon in the region of the upper left corner endpoint in the parking stall.
In above-mentioned steps (1), in order to keep the display direction of vehicle icon consistent with the tilt angle of parking stall, need institute
The rotation angle that angle is determined as the vehicle icon is stated, is adjusted with the display direction to vehicle icon.
In above-mentioned steps (2), it is based on the rotation angle, close to the region of the upper left corner endpoint in the parking stall
The interior detailed process for drawing the vehicle icon can draw icon in SVG formatted file using any in the prior art
Mode the vehicle icon in parking stall is drawn, which is not described herein again.
In conclusion the present embodiment proposes a kind of vehicle icon processing method, when determining parking stall is inclination parking stall, calculate
And rotation radian when rotating to forward position according to parking stall rotates parking stall, then sits from the endpoint of postrotational parking stall
The upper left corner extreme coordinates of the parking stall are determined in mark, and close to the upper left of upper left corner extreme coordinates instruction in parking stall
Vehicle icon is drawn in the region of angle endpoint, and can not draw vehicle icon in inclined parking stall in parking lot in the related technology
Process is compared, after the upper left corner endpoint that rotation and determining inclined parking stall can be carried out to inclined parking stall, in inclined parking stall
Vehicle icon is drawn in the region of interior close upper left corner endpoint, has been reached and has been drawn vehicle icon in inclined parking stall in parking lot
Purpose;Moreover, having the characteristics that overhead is small and simple to operate.
Based on the same inventive concept, it is additionally provided in the embodiment of the present application and above-mentioned vehicle icon processing method and corresponding
Vehicle icon processing unit, described in the principle and the embodiment of the present application 1 solved the problems, such as the device in the embodiment of the present application
Vehicle icon processing method is similar, therefore the implementation of device may refer to the implementation of aforementioned vehicle icon processing method, repetition
Place repeats no more.
Embodiment 2
The present embodiment proposes a kind of vehicle icon processing unit, at the vehicle icon for executing the proposition of above-described embodiment 1
Reason method.
A kind of structural schematic diagram of vehicle icon processing unit shown in Figure 4, the present embodiment propose a kind of vehicle figure
Processing unit is marked, for drawing vehicle icon in the parking stall of rectangle in parking lot, comprising:
Processing module 400, for being that on-right angle angle is whole when the angle between the boundary and coordinate system horizontal axis of the parking stall
When the angle of several times, determine that the parking stall is inclination parking stall, and calculate the rotation radian when parking stall rotates to forward position,
Wherein, in the forward position, two boundaries being parallel to each other in the parking stall are vertical or parallel with coordinate system horizontal axis;
The parking stall is rotated to the forward position for according to the rotation radian by rotary module 402, and from rotation
The upper left corner extreme coordinates of the parking stall are determined in the extreme coordinates of the parking stall after turning;
Drafting module 404, in the parking stall close to the upper left corner endpoint of upper left corner extreme coordinates instruction
Draw the vehicle icon in region.
In order to determine whether parking stall is inclination parking stall, the processing module 400 is specifically used for:
The extreme coordinates of the parking stall are obtained, and according to the extreme coordinates of the parking stall, determine the four edges of the parking stall
Boundary;
The angle between a line circle in four edges circle of the parking stall and the coordinate system horizontal axis is calculated;
When the degree for the angle being calculated is the angle of on-right angle angular multiples, determine that the parking stall is inclination
Parking stall, and according to the degree for the angle being calculated, calculate the rotation radian when parking stall rotates to forward position.
In conclusion the present embodiment proposes a kind of vehicle icon processing unit, when determining parking stall is inclination parking stall, calculate
And rotation radian when rotating to forward position according to parking stall rotates parking stall, then sits from the endpoint of postrotational parking stall
The upper left corner extreme coordinates of the parking stall are determined in mark, and close to the upper left of upper left corner extreme coordinates instruction in parking stall
Vehicle icon is drawn in the region of angle endpoint, and can not draw vehicle icon in inclined parking stall in parking lot in the related technology
Process is compared, after the upper left corner endpoint that rotation and determining inclined parking stall can be carried out to inclined parking stall, in inclined parking stall
Vehicle icon is drawn in the region of interior close upper left corner endpoint, has been reached and has been drawn vehicle icon in inclined parking stall in parking lot
Purpose;Moreover, having the characteristics that overhead is small and simple to operate.
Based on the same inventive concept, it is additionally provided in the embodiment of the present application and above-mentioned vehicle icon processing method and corresponding
Computer storage medium and vehicle icon processing unit, due to the computer storage medium and device solution in the embodiment of the present application
Before the principle of problem is similar to vehicle icon processing method described in the embodiment of the present application 1, therefore the implementation of device may refer to
The implementation of vehicle icon processing method is stated, overlaps will not be repeated.
Embodiment 3
The present embodiment proposes a kind of computer readable storage medium, and calculating is stored on the computer readable storage medium
The step of machine program, the computer program executes the data processing method that above-described embodiment 1 describes when being run by processor.Tool
Body, which is realized, can be found in embodiment of the method 1, and details are not described herein.
In addition, the structural schematic diagram of another vehicle icon processing unit shown in Figure 5, the present embodiment also propose one
Kind vehicle icon processing unit, above-mentioned vehicle icon processing unit includes bus 51, processor 52, transceiver 53, bus interface
54, memory 55 and user interface 56.Above-mentioned data processing equipment includes memory 55.
In the present embodiment, above-mentioned vehicle icon processing unit further include: be stored on memory 55 and can be in processor 52
Perhaps more than one program is configured to execute said one or more than one journey by above-mentioned processor one of upper operation
Sequence is for following the steps below (1) to step (3):
(1) when the angle between the boundary of the parking stall and coordinate system horizontal axis is the angle of on-right angle angle integral multiple,
Determine that the parking stall is inclination parking stall, and calculate the rotation radian when parking stall rotates to forward position, wherein it is described just
When to position, two boundaries being parallel to each other in the parking stall are vertical or parallel with coordinate system horizontal axis;
(2) according to the rotation radian, the parking stall is rotated into the forward position, and from the postrotational parking stall
Extreme coordinates in determine the upper left corner extreme coordinates of the parking stall;
(3) vehicle is drawn in the region in the parking stall close to the upper left corner endpoint of upper left corner extreme coordinates instruction
Icon.
Transceiver 53, for sending and receiving data under the control of processor 52.
In Fig. 5, bus architecture (is represented) with bus 51, bus 51 may include any number of interconnection bus and
Bridge, bus 51 by include the one or more processors represented by general processor 52 and memory that memory 55 represents it is each
Kind circuit links together.Bus 51 can also be by the various of such as peripheral equipment, voltage-stablizer and management circuit or the like
Other circuits link together, and these are all it is known in the art, and therefore, the present embodiment no longer further retouches it
It states.Bus interface 54 provides interface between bus 51 and transceiver 53.Transceiver 53 can be an element, be also possible to more
A element, such as multiple receivers and transmitter, provide the unit for communicating over a transmission medium with various other devices.Example
Such as: transceiver 53 receives external data from other equipment.Transceiver 53 is used for that treated that data are sent to it by processor 52
His equipment.Depending on the property of computing system, user interface 56, such as keypad, display, loudspeaker, wheat can also be provided
Gram wind, control stick.
Processor 52 is responsible for management bus 51 and common processing, such as aforementioned above-mentioned operation general-purpose operating system.And it stores
Device 55 can be used for the used data when executing operation of storage processor 52.
Optionally, processor 52 can be but not limited to: central processing unit, single-chip microcontroller, microprocessor programmable are patrolled
Collect device.
It is appreciated that the memory 55 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 55 of the system and method for the present embodiment description is intended to include but is not limited to these and appoints
The memory for other suitable types of anticipating.
In some embodiments, memory 55 stores following element, executable modules or data structures, or
Their subset or their superset: operating system 551 and application program 552.
Wherein, operating system 551 include various system programs, such as ccf layer, core library layer, driving layer etc., for real
Existing various basic businesses and the hardware based task of processing.Application program 552 includes various application programs, such as media are broadcast
Device (Media Player), browser (Browser) etc. are put, for realizing various applied business.Realize embodiment of the present invention side
The program of method may be embodied in application program 552.
In conclusion computer storage medium and vehicle icon processing unit that the present embodiment proposes, are determining that parking stall is
When tilting parking stall, rotation radian when calculating and rotating to forward position according to parking stall rotates parking stall, then from rotation
The upper left corner extreme coordinates of the parking stall are determined in the extreme coordinates of parking stall afterwards, and close to the upper left corner end in parking stall
Point coordinate instruction upper left corner endpoint region draw vehicle icon, in the related technology can not in parking lot inclined parking stall
The interior process for drawing vehicle icon is compared, and the upper left corner endpoint for rotating and determining inclined parking stall can be carried out to inclined parking stall
Afterwards, vehicle icon is drawn close to the region of upper left corner endpoint in inclined parking stall, has reached the inclined parking stall in parking lot
The interior purpose for drawing vehicle icon;Moreover, having the characteristics that overhead is small and simple to operate.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection 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 kind of vehicle icon processing method, for drawing vehicle icon in the parking stall of rectangle in parking lot, which is characterized in that
Include:
When the angle between the boundary of the parking stall and coordinate system horizontal axis is the angle of on-right angle angle integral multiple, described in determination
Parking stall is inclination parking stall, and calculates the rotation radian when parking stall rotates to forward position, wherein in the forward position
When, two boundaries being parallel to each other in the parking stall are vertical or parallel with coordinate system horizontal axis;
According to the rotation radian, the parking stall is rotated into the forward position, and the endpoint from the postrotational parking stall
The upper left corner extreme coordinates of the parking stall are determined in coordinate;
Draw the vehicle icon in region in the parking stall close to the upper left corner endpoint of upper left corner extreme coordinates instruction.
2. the method according to claim 1, wherein when between the boundary and the coordinate system horizontal axis of the parking stall
Angle determine that the parking stall is inclination parking stall when being the angle of on-right angle angle integral multiple, and calculate the parking stall and rotate to
Rotation radian when forward position, comprising:
The extreme coordinates of the parking stall are obtained, and according to the extreme coordinates of the parking stall, determine four edges circle of the parking stall;
The angle between a line circle in four edges circle of the parking stall and the coordinate system horizontal axis is calculated;
When the degree for the angle being calculated is the angle of on-right angle angular multiples, determine that the parking stall is dump car
Position, and according to the degree for the angle being calculated, calculate the rotation radian when parking stall rotates to forward position.
3. according to the method described in claim 2, it is characterized in that, calculating institute according to the degree for the angle being calculated
State rotation radian when parking stall rotates to forward position, comprising:
Rotation radian when rotating to forward position to the parking stall by following formula calculates:
ChangeAngle=(π/180-θ *)
Wherein, changeAngle indicates the rotation radian when parking stall rotates to forward position;θ indicates the degree of the angle
Number.
4. the method according to claim 1, wherein the parking stall is rotated to institute according to the rotation radian
Forward position is stated, and determines the upper left corner extreme coordinates of the parking stall from the extreme coordinates of the postrotational parking stall, is wrapped
It includes:
Using be calculated in four edges circle of the parking stall angle boundary an endpoint as rotation center, make the vehicle
Position rotates the rotation radian around the rotation center, and the parking stall is rotated to the forward position;
Abscissa minimum and the smallest extreme coordinates of ordinate in the postrotational parking stall are determined as to the upper left of the parking stall
Angle extreme coordinates.
5. the method according to claim 1, wherein referring in the parking stall close to the upper left corner extreme coordinates
Draw the vehicle icon in the position of the upper left corner endpoint shown, comprising:
The angle is determined as to the rotation angle of the vehicle icon;
Since the upper left corner endpoint that the upper left corner extreme coordinates of the parking stall indicate, it is based on the rotation angle, in institute
It states and draws the vehicle icon in parking stall in the region of the upper left corner endpoint.
6. the method according to claim 1, wherein in the upper left corner endpoint close in the parking stall
It draws before the vehicle icon step in the region of the upper left corner endpoint of coordinate instruction, further includes:
It, will be described when the angle between the boundary of the parking stall and the coordinate system horizontal axis is the angle of right angle integral multiple
Abscissa minimum and the smallest extreme coordinates of ordinate are determined as the upper left corner extreme coordinates of the parking stall in parking stall.
7. a kind of vehicle icon processing unit, for drawing vehicle icon in the parking stall of rectangle in parking lot, which is characterized in that
Include:
Processing module, for when the angle that the angle between the boundary and coordinate system horizontal axis of the parking stall is on-right angle angle integral multiple
When spending, determine that the parking stall is inclination parking stall, and calculate the rotation radian when parking stall rotates to forward position, wherein In
When the forward position, two boundaries being parallel to each other in the parking stall are vertical or parallel with coordinate system horizontal axis;
The parking stall is rotated to the forward position for according to the rotation radian by rotary module, and from postrotational institute
State the upper left corner extreme coordinates that the parking stall is determined in the extreme coordinates of parking stall;
Drafting module is drawn for the region in the parking stall close to the upper left corner endpoint of upper left corner extreme coordinates instruction
The vehicle icon.
8. device according to claim 7, which is characterized in that the processing module is specifically used for:
The extreme coordinates of the parking stall are obtained, and according to the extreme coordinates of the parking stall, determine four edges circle of the parking stall;
The angle between a line circle in four edges circle of the parking stall and the coordinate system horizontal axis is calculated;
When the degree for the angle being calculated is the angle of on-right angle angular multiples, determine that the parking stall is dump car
Position, and according to the degree for the angle being calculated, calculate the rotation radian when parking stall rotates to forward position.
9. a kind of computer readable storage medium, computer program, feature are stored on the computer readable storage medium
The step of being, the claims 1-6 described in any item methods executed when the computer program is run by processor.
10. a kind of vehicle icon processing unit, which is characterized in that the vehicle icon processing unit includes memory, processing
Device and one or more than one program, wherein the one or more programs are stored in the memory,
And the step of being configured to methods described in any item by processor perform claim requirement 1-6.
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 true CN110458912A (en) | 2019-11-15 |
CN110458912B 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 (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102930744A (en) * | 2012-11-16 | 2013-02-13 | 北京天一众合科技股份有限公司 | Parking plot guiding and reverse vehicle tracking method for parking lot |
US20130249814A1 (en) * | 2012-03-26 | 2013-09-26 | Peng Zeng | Adjustment Mechanisms For Virtual Knobs On A Touchscreen Interface |
CN103345851A (en) * | 2013-07-23 | 2013-10-09 | 上海风翼空调设备有限公司 | Integrative system for garage ventilation and illumination and parking place guidance and control method of system |
CN103839441A (en) * | 2014-03-07 | 2014-06-04 | 毛蔚青 | Parking lot parking space positioning method based on character recognition technology through mobile terminal |
CN203882450U (en) * | 2014-04-24 | 2014-10-15 | 纳米新能源(唐山)有限责任公司 | Parking-stall state detector |
US20150254738A1 (en) * | 2014-03-05 | 2015-09-10 | TerrAvion, LLC | Systems and methods for aerial imaging and analysis |
JP2015186058A (en) * | 2014-03-25 | 2015-10-22 | キヤノン株式会社 | Imaging apparatus |
CN105220914A (en) * | 2015-10-18 | 2016-01-06 | 姚仰华 | A kind of built-in garage |
CN204946364U (en) * | 2015-07-30 | 2016-01-06 | 东北石油大学 | Carport information management system for parking lots |
CN105575178A (en) * | 2016-03-02 | 2016-05-11 | 赵鹏 | Intelligent parking stall lock of temporary parking stall based on coupler |
CN205281808U (en) * | 2016-01-08 | 2016-06-01 | 黑龙江大学 | Underground parking garage navigation |
CN105719504A (en) * | 2014-12-02 | 2016-06-29 | 西安联控电气有限责任公司 | Parking spot reservation system |
CN107180555A (en) * | 2017-06-16 | 2017-09-19 | 深圳市盛路物联通讯技术有限公司 | City parking stall monitoring method and device |
CN108564665A (en) * | 2018-03-29 | 2018-09-21 | 小牛(深圳)科技贸易有限公司 | A kind of parking stall management method and system |
CN108734796A (en) * | 2018-04-08 | 2018-11-02 | 许昌学院 | 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 |
CN109240588A (en) * | 2015-05-27 | 2019-01-18 | 苹果公司 | System and method for actively identifying and displaying relevant content on a touch sensitive device |
CN109508682A (en) * | 2018-11-20 | 2019-03-22 | 成都通甲优博科技有限责任公司 | A kind of detection method on panorama parking stall |
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 |
CN110070623A (en) * | 2019-04-16 | 2019-07-30 | 百度在线网络技术(北京)有限公司 | Guide line draws reminding method, device, computer equipment and storage medium |
-
2019
- 2019-08-08 CN CN201910729908.9A patent/CN110458912B/en active Active
Patent Citations (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130249814A1 (en) * | 2012-03-26 | 2013-09-26 | Peng Zeng | Adjustment Mechanisms For Virtual Knobs On A Touchscreen Interface |
CN102930744A (en) * | 2012-11-16 | 2013-02-13 | 北京天一众合科技股份有限公司 | Parking plot guiding and reverse vehicle tracking method for parking lot |
CN103345851A (en) * | 2013-07-23 | 2013-10-09 | 上海风翼空调设备有限公司 | 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 |
CN103839441A (en) * | 2014-03-07 | 2014-06-04 | 毛蔚青 | Parking lot parking space positioning method based on character recognition technology through mobile terminal |
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 |
CN109240588A (en) * | 2015-05-27 | 2019-01-18 | 苹果公司 | System and method for actively identifying and displaying relevant content on a touch sensitive device |
CN204946364U (en) * | 2015-07-30 | 2016-01-06 | 东北石油大学 | Carport information management system for parking lots |
CN105220914A (en) * | 2015-10-18 | 2016-01-06 | 姚仰华 | A kind of built-in garage |
CN205281808U (en) * | 2016-01-08 | 2016-06-01 | 黑龙江大学 | Underground parking garage navigation |
CN105575178A (en) * | 2016-03-02 | 2016-05-11 | 赵鹏 | Intelligent parking stall lock of temporary parking stall based on coupler |
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 |
CN108734796A (en) * | 2018-04-08 | 2018-11-02 | 许昌学院 | 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 |
CN110070623A (en) * | 2019-04-16 | 2019-07-30 | 百度在线网络技术(北京)有限公司 | Guide line draws reminding method, device, computer equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
YUCHENG LI: "Approach for Parking Spaces Detection Based on ARM Embedded System", 《2013 5TH INTERNATIONAL CONFERENCE ON INTELLIGENT HUMAN-MACHINE SYSTEMS AND CYBERNETICS》 * |
张月芹: "升降横移式自动化立体停车系统设计", 《高技术通讯》 * |
Also Published As
Publication number | Publication date |
---|---|
CN110458912B (en) | 2023-05-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210174678A1 (en) | Systems and Methods for Computational Resource Allocation for Autonomous Vehicles | |
US11921239B2 (en) | Methods and systems for calibration of multiple lidar devices with non-overlapping fields of view | |
US11770704B2 (en) | Distance based session roaming | |
CN114093198B (en) | Parking stall recommendation method, device, computer equipment and storage medium | |
US12118837B2 (en) | Responding to autonomous vehicle error states | |
US12025450B2 (en) | Route comparison for vehicle routing | |
US20210110710A1 (en) | Edge-accelerated artificial intelligence for collaborative sensing of physical intelligent moving objects | |
WO2021150689A1 (en) | System and methods for calibrating cameras with a fixed focal point | |
US12067388B2 (en) | Updating software elements with different trust levels | |
CN112735162A (en) | Vehicle scheduling method, device, system, equipment and storage medium | |
CN110458912A (en) | A kind of vehicle icon treating method and apparatus | |
US11842640B2 (en) | Computing system and method for operating a computing system | |
CN113870310A (en) | Target tracking method, device and storage medium based on unmanned aerial vehicle | |
CN115690365A (en) | Method, apparatus, device and medium for managing three-dimensional model | |
JP7098267B2 (en) | Robot activation Positioning method, device, electronic device and storage medium | |
CN114663615A (en) | Electronic map display method and device and electronic equipment | |
CN113776545A (en) | Construction method, device, medium and electronic equipment of robot navigation map | |
JPWO2020155663A5 (en) | Method and sensing device, display device and computer program product for controlling rotation of displayed image | |
CN111414925B (en) | Image processing method, apparatus, computing device and medium | |
US11861815B2 (en) | Composite image creating method, composite image creating apparatus, and computer program stored in recording medium to execute the method | |
CN116074309B (en) | Access method of operating system in cross-platform container and related equipment | |
US11019613B2 (en) | Methods and systems for managing network resources of a vehicle | |
US10423125B1 (en) | Systems and methods to boot a computing system of an autonomous vehicle | |
CN111176134B (en) | Simulation system adaptation method, device and terminal | |
US20230351896A1 (en) | Transportation service provision with a vehicle fleet |
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 |