CN105512170A - Radar mosaic display optimizing method based on gestures - Google Patents
Radar mosaic display optimizing method based on gestures Download PDFInfo
- Publication number
- CN105512170A CN105512170A CN201510808846.2A CN201510808846A CN105512170A CN 105512170 A CN105512170 A CN 105512170A CN 201510808846 A CN201510808846 A CN 201510808846A CN 105512170 A CN105512170 A CN 105512170A
- Authority
- CN
- China
- Prior art keywords
- picture
- time
- meteorological
- radar
- scope
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/54—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a radar mosaic display optimizing method based on gestures. The method comprises steps of selecting a radar mosaic according to image data produced by a Kepler radar to produce an image during a specific time segment, and integrating and processing the image data during the specific time segment. The radar mosaic display optimizing method is provided to meet specific targets, a buffering mechanism of an IOS system is utilized and some improvements are made on the basis; meteorological pictures are decided according to a specific time algorithm; and compared with other algorithm and buffering mechanisms, flow loss due to frequent server visits can be reduced when the radar mosaic display optimizing method is applied to meteorological picture information displaying field. Great user experience effect can be achieved via gesture operation; deficiencies of large memory loss and memory overflow during traditional picture display can be overcome; and shortcomings of frame skip during meteorological picture playing and abnormal time segment selection in the prior art can be overcome.
Description
Technical field
Pin of the present invention relates to a kind of radar mosaic display optimization method based on gesture, belongs to weather information and issues field.
Background technology
We live in the middle of the world that climate and weather constantly changes, and about the topic of climate and weather is not only instantly, also will occupy the critical role in people's life in future.Along with the development of science and technology, meteorology is progressive ripe day by day, and people can obtain increasing weather information, and wherein radar mosaic can shift to an earlier date the weather conditions of dozens of minutes precognition, and this trip for people and daily life work are helpful.
Traditional meteorological pictorial information major part shows on website, but press close to the mobile devices such as the still mobile phone of people most, and the weather information that website shows is difficult to the needs meeting people's practical application.Traditional a large amount of internal memory of meteorological image display method consumption, and broadcasting has the shortcoming such as frame-skipping, waste flow, and these problems limit the displaying of weather information in certain degree, create bad Consumer's Experience.
In order to further pursue the splendid displaying of weather information, reduce the consumption of network traffics, maximum reduction is to the memory consumption of mobile device, therefore relate in a program some efficient algorithms very in want, in algorithm design, the memory consumption problem of mobile device to be alleviated as far as possible, avoid repetition to send identical request to server.
Summary of the invention
The present invention proposes a kind of radar mosaic display optimization method based on gesture, by the meteorological pictorial information that the pulsating wave obtaining Kepler's radar gathers, the image of special time period is obtained with time algorithm, add gesture navigation operation, significantly enhance Consumer's Experience, be aimed at and reduce the internal memory of mobile device and network flow consumption, improve the fluency that meteorological image is play, and strengthen the demands such as Consumer's Experience and propose.
The present invention is for solving the problems of the technologies described above by the following technical solutions:
Based on a radar mosaic display optimization method for gesture, comprise the following steps:
Step one, turn back to the meteorological image data of server according to Kepler's radar, choose the picture of certain hour section.The time returning picture due to server is GMT (Greenwich mean time), so local zone time will be converted to GMT (Greenwich mean time).Picture is obtained to server, to the process of data income merging by the time converted;
Step 2, by time m-URL algorithm calculate the URL of current time to the meteorological picture between first 6 hours, determine meteorological picture scope to display by the index in time gate: we with f1 represent choose the front end time time determined scope, with f2 represent choose the rear end time time determined scope, index1 represents the index of time selected by front end, index2 represents the index of time selected by rear end, urlArray represents total size, URL represents initial range, and move represents the element removed in this scope.So have:
f1=URL(index1+1,urlArray)
move
f2=f1(0,index2)
move
After finishing this computing, f2 is the meteorological picture scope that will show.Show on interface according to the image of this scope by this scope.
Step 3, the picture scope utilizing step 2 to produce, for gesture is added in picture viewing area, make picture to change with gesture and can drop-downly refresh;
Step 4, by image cache in hard disk, if find when sending request to server next time, the meteorological image in hard disk preferentially goes find in hard disk and show with when asking identical, do not adopt during picture display and traditional recycle mechanism, but go replacing image to reach with a self-defining ImageView farthest to save internal memory.
Step 5, interpolation animation playing function, utilize the characteristic of NSTimer, in controller, add timer, realize animation playing function, remove timer prevent RAM leakage when controller does not show.
Beneficial effect
The present invention proposes a kind of radar mosaic display optimization method based on gesture, by the meteorological pictorial information that the pulsating wave obtaining Kepler's radar gathers, the image of special time period is obtained with time algorithm, add gesture navigation operation, different control displays and specific cache way is adopted to reduce the consumption of network traffics, maximum reduction, to the memory consumption of mobile device, improves the fluency that meteorological image is play, and strengthens Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is a kind of radar mosaic display optimization method flow diagram based on gesture
Embodiment
Below in conjunction with accompanying drawing, technical scheme of the present invention is described in further detail:
As shown in Figure 1, the described radar mosaic display optimization method based on gesture, comprises the following steps method flow diagram of the present invention:
Step one, turn back to the meteorological image data of server according to Kepler's radar, adopt time algorithm to choose the picture of certain hour section.The time returning picture due to server is GMT (Greenwich mean time), so local zone time will be converted to GMT (Greenwich mean time).Obtain picture by the time converted to server, the comformed information of picture is stored in array the process of data income merging;
Step 2, by time m-URL algorithm calculate the URL of current time to the meteorological picture between first 6 hours, determine meteorological picture scope to display by the index in time gate: we with f1 represent choose the front end time time determined scope, with f2 represent choose the rear end time time determined scope, index1 represents the index of time selected by front end, index2 represents the index of time selected by rear end, urlArray represents total size, URL represents initial range, and move represents the element removed in this scope.So have:
f1=URL(index1+1,urlArray)
move
f2=f1(0,index2)
move
After finishing this computing, f2 is the meteorological picture scope that will show.According to the scope calculated, this image is shown on interface.In order to can infinite loop roll when Showing Picture, the present invention considers to use if last picture browsing is complete show the first pictures immediately, it realizes principle, respectively puts a pictures (now total n+2 picture is in UIScrollView) before and after picture.Such as there are 5 pictures, as long as use 7 UIImageView to deposit successively: picture 5, picture 1, picture 2, picture 3, picture 4, picture 5, picture 1.When being rolled to picture 5 from picture 1 because last is that picture 1 is just to the sensation of a kind of infinite loop of user, when after this figure completely display, the rapid contentOffset by UIScrollView is set to second UIImageView, namely picture 1, then user can continue to roll backward.Certain rolls forward principle is just the same, shows the 6th figure (picture 5) when being rolled to the first pictures (picture 5) with regard to the contentOffset arranging rapidly UIScrollView.
If but picture these pictures too much all certainly will be loaded into internal memory, now need the scheme optimized above.N+2 UIImageView need not be created completely, in fact 3 enough, as long as always keep display in the middle of UIImageView, dynamically change the picture of three UIImageView during rolling.Such as three UIImageView acquiescences put picture 5, picture 1, picture 2, UIImageView in the middle of current display, namely picture 1, if rolled backward so will Show Picture 2, when picture 2 show complete after reset rapidly three UIImageView content be picture 1, picture 2, picture 3, then the UIImageView in the middle of display is set by contentOffset, namely picture 2.Continue to see picture 3 backward, when picture 3 content resetting rapidly 3 UIImageView of having rolled is picture 2, picture 3, picture 4, then the UIImageView of contentOffset display centre is set, namely picture 3.Certainly, rolls forward principle is just the same, so just gives user a kind of circulation illusion, and does not take too much internal memory.Utilize this principle, the image cache that can't see in hard disk, needs directly to take out from hard disk when switching picture, is put on this control by the present invention.This method is exactly adopt this strategy to reach the method for at utmost saving mobile device internal memory.
Step 3, the picture scope utilizing step 2 to produce, for left cunning, right cunning and drop-down gesture are added in picture viewing area, make picture to change with gesture and can drop-downly refresh;
Step 4, by image cache in hard disk, if find when sending request to server next time, the meteorological image in hard disk preferentially goes find in hard disk and show with when asking identical, do not adopt during picture display and traditional recycle mechanism, but adopt step 2 machine-processedly used.
Step 5, interpolation animation playing function, utilize the characteristic of NSTimer, timer is added in controller, realize animation playing function, timer is added in the operation circulation in system, making it not interfere with the task of main thread when operating, removing timer when controller does not show and preventing RAM leakage.
Above embodiments of the present invention are explained in detail, but the present invention is not limited to above-mentioned embodiment, in the ken that those of ordinary skill in the art possess, can also makes a variety of changes under the prerequisite not departing from present inventive concept.The above, it is only preferred embodiment of the present invention, not any pro forma restriction is done to the present invention, although the present invention discloses as above with preferred embodiment, but and be not used to limit the present invention, any those skilled in the art, do not departing within the scope of technical solution of the present invention, make a little change when the technology contents of above-mentioned announcement can be utilized or be modified to the Equivalent embodiments of equivalent variations, in every case be do not depart from technical solution of the present invention content, according to technical spirit of the present invention, within the spirit and principles in the present invention, to any simple amendment that above embodiment is done, equivalent replacement and improvement etc., within the protection domain all still belonging to technical solution of the present invention.
Claims (1)
1., based on a radar mosaic display optimization method for gesture, it is characterized in that comprising the following steps:
Step one, turn back to the meteorological image data of server according to Kepler's radar, choose the picture of certain hour section; Local zone time is converted to GMT (Greenwich mean time), obtains picture by the time converted to server, to the process of data income merging;
Step 2, by time m-URL algorithm calculate the URL of current time to the meteorological picture between first 6 hours, determine meteorological picture scope to display by the index in time gate: with f1 represent choose the front end time time determined scope, with f2 represent choose the rear end time time determined scope, index1 represents the index of time selected by front end, index2 represents the index of time selected by rear end, urlArray represents total size, URL represents initial range, move represents the element removed in this scope, so has:
f1=URL(index1+1,urlArray)
move
f2=f1(0,index2)
move
Step 3, the picture scope utilizing step 2 to produce, for gesture is added in picture viewing area, make picture to change with gesture and can drop-downly refresh;
Step 4, by image cache in hard disk, if find when sending request to server next time, the meteorological image in hard disk preferentially goes find in hard disk and show with when asking identical, do not adopt during picture display and traditional recycle mechanism, but go replacing image to reach with a self-defining ImageView farthest to save internal memory;
Step 5, interpolation animation playing function, utilize the characteristic of NSTimer, in controller, add timer, realize animation playing function, remove timer prevent RAM leakage when controller does not show.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510808846.2A CN105512170A (en) | 2015-11-19 | 2015-11-19 | Radar mosaic display optimizing method based on gestures |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510808846.2A CN105512170A (en) | 2015-11-19 | 2015-11-19 | Radar mosaic display optimizing method based on gestures |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105512170A true CN105512170A (en) | 2016-04-20 |
Family
ID=55720152
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510808846.2A Pending CN105512170A (en) | 2015-11-19 | 2015-11-19 | Radar mosaic display optimizing method based on gestures |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105512170A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106547508A (en) * | 2016-10-20 | 2017-03-29 | 天脉聚源(北京)传媒科技有限公司 | A kind of display methods and device of preview picture |
CN110750743A (en) * | 2019-09-25 | 2020-02-04 | 腾讯科技(深圳)有限公司 | Animation playing method, device, equipment and storage medium |
US11983397B2 (en) | 2020-07-24 | 2024-05-14 | Boe Technology Group Co., Ltd. | Sliding image container switching display method, device, and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20010034742A1 (en) * | 2000-01-17 | 2001-10-25 | Konata Stinson | Apparatus, method and system for a temporal interface, interpretive help, directed searches, and dynamic association mapping |
CN101662584A (en) * | 2008-08-28 | 2010-03-03 | 索尼株式会社 | Information processing apparatus and method and computer program |
CN102541538A (en) * | 2011-12-06 | 2012-07-04 | Tcl集团股份有限公司 | Picture displaying method and device based on mobile terminal |
CN104301795A (en) * | 2014-09-26 | 2015-01-21 | 四川长虹电器股份有限公司 | Method for managing big data poster information of smart television on basis of 3D model |
CN104581003A (en) * | 2013-10-12 | 2015-04-29 | 北京航天长峰科技工业集团有限公司 | Video rechecking positioning method |
CN104599307A (en) * | 2015-02-11 | 2015-05-06 | 成都品果科技有限公司 | Mobile terminal animated image display method |
-
2015
- 2015-11-19 CN CN201510808846.2A patent/CN105512170A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20010034742A1 (en) * | 2000-01-17 | 2001-10-25 | Konata Stinson | Apparatus, method and system for a temporal interface, interpretive help, directed searches, and dynamic association mapping |
CN101662584A (en) * | 2008-08-28 | 2010-03-03 | 索尼株式会社 | Information processing apparatus and method and computer program |
CN102541538A (en) * | 2011-12-06 | 2012-07-04 | Tcl集团股份有限公司 | Picture displaying method and device based on mobile terminal |
CN104581003A (en) * | 2013-10-12 | 2015-04-29 | 北京航天长峰科技工业集团有限公司 | Video rechecking positioning method |
CN104301795A (en) * | 2014-09-26 | 2015-01-21 | 四川长虹电器股份有限公司 | Method for managing big data poster information of smart television on basis of 3D model |
CN104599307A (en) * | 2015-02-11 | 2015-05-06 | 成都品果科技有限公司 | Mobile terminal animated image display method |
Non-Patent Citations (1)
Title |
---|
李维勇: "基于JavaFX的移动应用开发研究", 《电脑与电信》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106547508A (en) * | 2016-10-20 | 2017-03-29 | 天脉聚源(北京)传媒科技有限公司 | A kind of display methods and device of preview picture |
CN110750743A (en) * | 2019-09-25 | 2020-02-04 | 腾讯科技(深圳)有限公司 | Animation playing method, device, equipment and storage medium |
US11983397B2 (en) | 2020-07-24 | 2024-05-14 | Boe Technology Group Co., Ltd. | Sliding image container switching display method, device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10540077B1 (en) | Conserving processing resources by controlling updates to damaged tiles of a content page | |
JP2023063306A (en) | Dynamic custom interstitial transition videos for video streaming services | |
CN107181976A (en) | A kind of barrage display methods and electronic equipment | |
CN105512170A (en) | Radar mosaic display optimizing method based on gestures | |
WO2022116962A1 (en) | Video playback method and apparatus, and electronic device | |
CN102082896B (en) | Method for treating video of liquid crystal display device | |
CN109391852B (en) | Message display method, device, equipment and storage medium | |
He et al. | CBM: Online strategies on cost-aware buffer management for mobile video streaming | |
CN109874047B (en) | Live broadcast interaction method, device and system | |
CN104699372A (en) | Method and system for self-adaptively changing window size | |
CN106373489A (en) | Display method and display device based on curved display screen and user equipment | |
CN106530080A (en) | Dormant transaction matchmaking method based on queue dynamic change | |
CN104301795A (en) | Method for managing big data poster information of smart television on basis of 3D model | |
CN104811785A (en) | Control method and device for displaying graphical user interface of intelligent terminal | |
CN113055742A (en) | Video display method, device, terminal and storage medium | |
JP2018529101A (en) | Navigation image drawing method, apparatus, and storage medium | |
CN101751901B (en) | Method and device for playing dynamic electronic album | |
US20220351701A1 (en) | Method and device for adjusting image quality, and readable storage medium | |
JP2024504744A (en) | Shooting control method, equipment and electronic equipment | |
CN102708504B (en) | Virtual micro carousel advertising method on basis of network video and device thereof | |
CN106598411B (en) | Information processing method and electronic equipment | |
TW201248388A (en) | Cloud-based energy-saving service system and method | |
WO2017143728A1 (en) | Method for switching between operation interfaces of intelligent terminal | |
CN105677483A (en) | Data caching method and device | |
CN103002329B (en) | Device and method for predicting reach-frequency table data of network video advertisements |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160420 |