CN109856657A - A kind of path recording method based on image transformation - Google Patents
A kind of path recording method based on image transformation Download PDFInfo
- Publication number
- CN109856657A CN109856657A CN201910160973.4A CN201910160973A CN109856657A CN 109856657 A CN109856657 A CN 109856657A CN 201910160973 A CN201910160973 A CN 201910160973A CN 109856657 A CN109856657 A CN 109856657A
- Authority
- CN
- China
- Prior art keywords
- image
- path
- data
- coordinate
- recording method
- 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
Landscapes
- Studio Devices (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a kind of path recording methods based on image transformation, comprising the following steps: 1) acquires the path image data containing GPS data;2) GPS data is separated with image data, obtains the image data of the corresponding path image of each GPS data;3) map image coordinate is converted by GPS data, each map image coordinate pair answers the image array of a path image;4) convert simultaneously additional background image relative to the image of correspondence image coordinate to the image data of path image;5) it by additional background image and completes transformed image and prints, obtain path and record image.The present invention can not only record path whole track, and the local message in path can be described, have the characteristics that at low cost, speed is fast, high reliablity.
Description
Technical field
The present invention relates to a kind of path recording methods, and in particular to a kind of path recording method based on image transformation.
Background technique
Path, which is recorded, can facilitate the more suitable path of selection in subsequent planning path, summarize recorded road
The advantage and disadvantage of diameter.Existing path recording method includes in place of using trajectory diagram and video recording, these modes all to come with some shortcomings.
Specifically, trajectory diagram is merely able to the whole track of simple record path, the local message in path cannot be retouched
It states, and the local message in path can be described using the recording method of video recording, but cannot reflect the entirety in path
Trace information, and a large amount of storage volume is needed, difficulty is searched for routing information, needs to check by time shaft.
Summary of the invention
It is an object of the invention to be directed to above-mentioned the problems of the prior art, a kind of path note based on image transformation is provided
Recording method, is able to record the whole track in path, and can describe the local message in path, and at low cost, speed is fast, reliability
It is high.
To achieve the goals above, the technical solution adopted by the present invention the following steps are included:
1) the path image data containing GPS data are acquired;
2) GPS data is separated with image data, obtains the picture number of the corresponding path image of each GPS data
According to;
3) map image coordinate is converted by GPS data, each map image coordinate pair answers the image of a path image
Data;
4) convert simultaneously additional background image relative to the image of correspondence image coordinate to the image data of path image;
5) it by additional background image and completes transformed image and prints, obtain path and record image.
Fusion described in step 1) has the path image data of GPS data to obtain by mobile phone or digital camera shooting.
The initial data function of image is read when separating GPS data with image data in step 2) by JavaScript
Extend GPS geographic position data.When converting map image coordinate for GPS data using image coordinate system and world coordinate system it
Between transformational relation, the api interface of invocation map realizes.Additional background image first in the step 4), then to image
Two-dimensional array carry out relative to correspondence image coordinate image convert, with each coordinate of this circular treatment and corresponding figure
Picture;Alternatively, first the two-dimensional array of image convert relative to the image of correspondence image coordinate, it is each with this circular treatment
A coordinate and corresponding image, then additional background image.The background image is according to GPS data maximum and minimum value institute
The default plane map drawn is added.By the map reference (x of path imagei, yi) determine path image in background image
Position x=p*xi/(xmax-xmin), y=q*yi/(ymax-ymin), in formula, xmin, xmax, ymin, ymaxFor the maximum of map reference
And minimum value, Pixel Dimensions size are p*q;(x is changed by the map reference of path image againi-xi-1, yi-yi-1) reduce path profile
Picture, pixel size is p after diminutioni=p* (xi-xi-1)/(xmax-xmin), qi=q* (yi-yi-1)/(ymax-ymin), by road
The map reference slope variation of diameter image judges straight line path image and bend path image, and the expression formula of slope is ki=(yi-
yi-1)/(xi-xi-1), the variation of slope is a=| ki-ki+1|, when parameter a>0.08 is judged as bend path image, when parameter a<
0.08 is judged as straight line path image.
The concrete operations of described image transformation are as follows: straight line path carries out rotation translation variation to image, and bend path is to figure
As carrying out bending change.Rotationally-varying expression formula is X0=Xcos θ+Ysin θ+x, Y0=-Xsin θ+Ycos θ+y, θ=
tanki, to (x when bending changei-1, yi-1), (xi, yi), (xi+1, yi+1) 3 points the fitting center of circle (x is obtained by circle fitting0, y0)
And fitting radius of circle r0, (xi-1, yi-1), (xi+1, yi+1) with the center of circle composition central angle be θ0, the expression formula of bending change are as follows:Y0=q*atan2 ((Y-y), (X-x))/θ0;In formula,
X0Be it is rotationally-varying after image abscissa, X be path image data pixels abscissa, x be path image in background image
In abscissa, Y0Be it is rotationally-varying after image ordinate, Y be path image data pixels ordinate, y is path image
Ordinate in background image.
Compared with prior art, the present invention has following the utility model has the advantages that by converting image coordinate for GPS data,
So that the two-dimensional array of the corresponding image of each image coordinate, sit relative to correspondence image to the two-dimensional array of image
The transformation of target image and additional background image, since track is made of straight line and curve, straight line path rotates image
Translation variation, curved path carry out bending change to image, and then to the details in all paths and overall track description.This
Kind mode is more at low cost than video recorder, writing speed is fast, also than simple track app high reliablity.
Detailed description of the invention
Fig. 1 merges 1 image data of example for having GPS data;
Fig. 2 merges 2 image data of example for having GPS data;
The video image of Fig. 3 record path;
The effect picture that Fig. 4 path recording method of the present invention obtains.
Specific embodiment
Present invention will be described in further detail below with reference to the accompanying drawings.
Referring to Fig. 1,2, existing track record product is merely able to the whole track of simple record path on the market, cannot be right
The local message in path is described, and referring to Fig. 3, the mode in videograph path cannot reflect whole track.
The present invention is based on the path recording methods of image transformation, and pavement image information is placed on map by image transformation
On, thus there are the details on whole track and road surface.The present invention is based on the path recording methods of image transformation, including with
Lower step:
1) it is shot by mobile phone or digital camera, acquisition fusion has the image data of GPS data;
2) GPS data is separated with image data, obtains the two-dimemsional number of the corresponding image data of each GPS data
Group;The initial data Function Extension GPS geographic position data of image is read when separation by JavaScript.
3) image coordinate is converted by GPS data, using the transformational relation between image coordinate system and world coordinate system, adjusted
It is realized with the api interface of map.Make the two-dimensional array of the corresponding image of each image coordinate.
4) the image transformation and additional background image relative to correspondence image coordinate are carried out to the two-dimensional array of image:
Straight line path carries out rotation translation variation to image when image converts, and bend path carries out bending change to image.
Background image is maximum according to GPS data and minimum value is preset the plane map drawn and added, can be first
Then additional background image convert relative to the image of correspondence image coordinate to the two-dimensional array of image, recycles place with this
Manage each coordinate and corresponding image;Alternatively, first carrying out the two-dimensional array of image relative to correspondence image coordinate
Image transformation, with each coordinate of this circular treatment and corresponding image, then additional background image.
5) it by additional background image and completes transformed image and prints, obtain path and record image.
Since track is made of straight line and curve, the present invention carries out rotation translation variation to image for straight line path,
Bending change is carried out to image for curved path, and then to the details in all paths and overall track description.
This mode is more at low cost than video recorder, writing speed is fast, also than simple track app high reliablity.
, it can be seen that the existing whole routing information of effect picture that the present invention obtains also has local path information from Fig. 4.
The foregoing is merely presently preferred embodiments of the present invention, not to do restriction in any form to the present invention, this
Field technical staff is not it should be understood that under conditions of departing from spirit of that invention and principle, if the present invention can also carry out
Modification and simple replacement in dry form, these modifications and replacement also fall within the protection scope delimited by submitted claim
Within.
Claims (9)
1. a kind of path recording method based on image transformation, which comprises the following steps:
1) the path image data containing GPS data are acquired;
2) GPS data is separated with image data, obtains the image data of the corresponding path image of each GPS data;
3) map image coordinate is converted by GPS data, each map image coordinate pair answers the image data of a path image;
4) correspond to the image data of path image image transformation and the additional background image of image coordinate;
5) it by additional background image and completes transformed image and prints, obtain path and record image.
2. the path recording method according to claim 1 based on image transformation, it is characterised in that: melt described in step 1)
Closing has the path image data of GPS data to obtain by mobile phone or digital camera shooting.
3. the path recording method according to claim 1 based on image transformation, it is characterised in that: by GPS in step 2)
The initial data Function Extension GPS geographic position data of image is read when data are separated with image data by JavaScript.
4. the path recording method according to claim 1 based on image transformation, it is characterised in that: convert GPS data
To utilize the transformational relation between image coordinate system and world coordinate system, the api interface reality of invocation map when map image coordinate
It is existing.
5. the path recording method according to claim 1 based on image transformation, it is characterised in that: in the step 4)
Then additional background image first become relative to the image of corresponding map image coordinate to the image data of path image
It changes, with each coordinate of this circular treatment and corresponding image;Alternatively, being carried out first to the image data of path image opposite
It is converted in the image of correspondence image coordinate, with each coordinate of this circular treatment and corresponding image, then additional background figure
Picture.
6. the path recording method according to claim 1 or 5 based on image transformation, which is characterized in that the background
Image is maximum according to GPS data and minimum value is preset the plane map drawn and added.
7. the path recording method according to claim 6 based on image transformation, it is characterised in that: by the ground of path image
Figure coordinate (xi, yi) determine position x=p*x of the path image in background imagei/(xmax-xmin), y=q*yi/(ymax-
ymin), in formula, xmin, xmax, ymin, ymaxFor the maximum and minimum value of map reference, Pixel Dimensions size is p*q;
(x is changed by the map reference of path image againi-xi-1, yi-yi-1) path image is reduced, pixel size is after diminution
pi=p* (xi-xi-1)/(xmax-xmin), qi=q* (yi-yi-1)/(ymax-ymin), by the map reference slope variation of path image
Judge straight line path image and bend path image, wherein the expression formula of slope is ki=(yi-yi-1)/(xi-xi-1), slope
Variation is a=| ki-ki+1|, when parameter a>0.08 is judged as bend path image, when parameter a<0.08 is judged as straight line path figure
Picture.
8. the path recording method according to claim 1 or 5 based on image transformation, which is characterized in that described image becomes
The concrete operations changed are as follows: straight line path carries out rotation translation variation to image, and bend path carries out bending change to image.
9. the path recording method according to claim 8 based on image transformation, it is characterised in that: rotationally-varying expression
Formula is X0=Xcos θ+Ysin θ+x, Y0=-Xsin θ+Ycos θ+y, θ=tanki, to (x when bending changei-1, yi-1), (xi,
yi), (xi+1, yi+1) 3 points the fitting center of circle (x is obtained by circle fitting0, y0) and fitting radius of circle r0, (xi-1, yi-1), (xi+1,
yi+1) with the center of circle composition central angle be θ0, the expression formula of bending change are as follows:Y0=q*atan2 ((Y-y), (X-x))/θ0;In formula,
X0Be it is rotationally-varying after image abscissa, X be path image data pixels abscissa, x be path image in background image
In abscissa, Y0Be it is rotationally-varying after image ordinate, Y be path image data pixels ordinate, y is path image
Ordinate in background image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910160973.4A CN109856657B (en) | 2019-03-04 | 2019-03-04 | Path recording method based on image transformation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910160973.4A CN109856657B (en) | 2019-03-04 | 2019-03-04 | Path recording method based on image transformation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109856657A true CN109856657A (en) | 2019-06-07 |
CN109856657B CN109856657B (en) | 2022-06-21 |
Family
ID=66899687
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910160973.4A Active CN109856657B (en) | 2019-03-04 | 2019-03-04 | Path recording method based on image transformation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109856657B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111429549A (en) * | 2020-03-02 | 2020-07-17 | 北京梧桐车联科技有限责任公司 | Route image generation method and device and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101487711A (en) * | 2008-01-18 | 2009-07-22 | 华晶科技股份有限公司 | Devices and methods with image track record displaying, browsing and navigating function |
JP2009223220A (en) * | 2008-03-18 | 2009-10-01 | Zenrin Co Ltd | Road surface marking map creating method |
JP2009223213A (en) * | 2008-03-18 | 2009-10-01 | Zenrin Co Ltd | Road surface marking map creating method |
CN101867730A (en) * | 2010-06-09 | 2010-10-20 | 马明 | Multimedia integration method based on user trajectory |
JP2011043871A (en) * | 2009-08-19 | 2011-03-03 | Nikon Systems Inc | Image display method, program, and image display device |
CN102158644A (en) * | 2009-12-25 | 2011-08-17 | 卡西欧计算机株式会社 | Image synthesizing apparatus and image synthesizing method |
CN102162735A (en) * | 2010-02-23 | 2011-08-24 | 王昊 | Method, system and mobile communication terminal for obtaining travelling route through image data |
CN102680992A (en) * | 2012-06-05 | 2012-09-19 | 代松 | Method for utilizing video files containing global positioning system (GPS) information to synchronously determine movement track |
CN107547783A (en) * | 2016-06-27 | 2018-01-05 | 卡西欧计算机株式会社 | Display device, display methods, recording medium and display system |
-
2019
- 2019-03-04 CN CN201910160973.4A patent/CN109856657B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101487711A (en) * | 2008-01-18 | 2009-07-22 | 华晶科技股份有限公司 | Devices and methods with image track record displaying, browsing and navigating function |
JP2009223220A (en) * | 2008-03-18 | 2009-10-01 | Zenrin Co Ltd | Road surface marking map creating method |
JP2009223213A (en) * | 2008-03-18 | 2009-10-01 | Zenrin Co Ltd | Road surface marking map creating method |
JP2011043871A (en) * | 2009-08-19 | 2011-03-03 | Nikon Systems Inc | Image display method, program, and image display device |
CN102158644A (en) * | 2009-12-25 | 2011-08-17 | 卡西欧计算机株式会社 | Image synthesizing apparatus and image synthesizing method |
CN102162735A (en) * | 2010-02-23 | 2011-08-24 | 王昊 | Method, system and mobile communication terminal for obtaining travelling route through image data |
CN101867730A (en) * | 2010-06-09 | 2010-10-20 | 马明 | Multimedia integration method based on user trajectory |
CN102680992A (en) * | 2012-06-05 | 2012-09-19 | 代松 | Method for utilizing video files containing global positioning system (GPS) information to synchronously determine movement track |
CN107547783A (en) * | 2016-06-27 | 2018-01-05 | 卡西欧计算机株式会社 | Display device, display methods, recording medium and display system |
Non-Patent Citations (1)
Title |
---|
杨刚 等: "基于路径的图像变形算法", 《贵州工业大学学报(自然科学版)》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111429549A (en) * | 2020-03-02 | 2020-07-17 | 北京梧桐车联科技有限责任公司 | Route image generation method and device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109856657B (en) | 2022-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10664708B2 (en) | Image location through large object detection | |
CN103440318B (en) | The landscape identifying system of mobile terminal | |
CN107045844B (en) | A kind of landscape guide method based on augmented reality | |
CN101924992B (en) | Method, system and equipment for acquiring scene information through mobile terminal | |
CN103150715B (en) | Image mosaic processing method and processing device | |
CN108965687A (en) | Shooting direction recognition methods, server and monitoring method, system and picture pick-up device | |
KR102014192B1 (en) | Spatial image drawing system by confirmation of location and topographic information | |
CN109520500B (en) | Accurate positioning and street view library acquisition method based on terminal shooting image matching | |
US20110285811A1 (en) | Online creation of panoramic augmented reality annotations on mobile platforms | |
CN103003847A (en) | Method and apparatus for rendering a location-based user interface | |
CN103514446A (en) | Outdoor scene recognition method fused with sensor information | |
US20150155009A1 (en) | Method and apparatus for media capture device position estimate- assisted splicing of media | |
CN104040546A (en) | Method and system for displaying panoramic imagery | |
CN103632626A (en) | Intelligent tour guide realizing method and intelligent tour guide device based on mobile network and mobile client | |
JP5330606B2 (en) | Method, system, and computer-readable recording medium for adaptively performing image matching according to circumstances | |
TW202203085A (en) | Automatic camera guidance and settings adjustment | |
CN106162204A (en) | Panoramic video generation, player method, Apparatus and system | |
CN101753807A (en) | Image pick-up device | |
JP2012053776A (en) | Display image search device, display device, display image search system, and display image search method | |
US11854130B2 (en) | Methods, apparatus, systems, devices, and computer program products for augmenting reality in connection with real world places | |
CN103593450A (en) | System and method for establishing streetscape spatial database | |
CN104679879A (en) | Intelligent storage method and intelligent storage device for photo | |
CN109903338A (en) | A kind of method for positioning mobile robot based on improvement ORB algorithm | |
Huang et al. | Trip Synopsis: 60km in 60sec | |
CN107885763A (en) | The update method of interest point information, device and computer-readable medium in indoor figure |
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 |