Summary of the invention
Embodiment of the invention technical matters to be solved is, a kind of Weather information processing method based on portable terminal and portable terminal are provided, and can reflect current weather and portable terminal present located scene in real time, intuitively.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of Weather information processing method based on portable terminal, comprising:
Obtain the residing current scene of portable terminal in real time, determine the scene image that described current scene is corresponding, described scene comprises: indoor scene and/or outdoor scene; Described scene image comprises: at the indoor outside picture shot of window or the video of seeing through, at indoor door outwards picture shot or video and in outdoor picture shot or video any one or more of seeing through;
Receive the Weather information of the residing current geographic position of described portable terminal;
Described Weather information and described scene image are synthesized processing, generate weather forecast information.
Wherein, the described residing current scene of portable terminal of obtaining in real time comprises:
Obtain the residing current geographic position of portable terminal in real time by AGPS (Assisted Global Positioning System, agps system) or GPS (Global Positioning System, GPS);
Call the electronic chart of described current geographic position;
The current geographic position of described portable terminal is matched with in the described electronic chart, determines the residing current scene of described portable terminal.
Wherein, described definite corresponding scene image of described current scene, comprise: from the picture library that network data base or local terminal prestore, extract the first corresponding scene image of described current scene, described first scene image is defined as the corresponding scene image of described current scene.
Wherein, described definite corresponding scene image of described current scene comprises:
From the picture library that network data base or local terminal prestore, extract the first corresponding scene image of described current scene;
Described scene image is carried out scene identity handle, form second scene image;
Described second scene image is defined as the corresponding scene image of described current scene.
Wherein, described described Weather information and described scene image are synthesized processing, generate weather forecast information, comprising:
According to described Weather information, generate the weather sign corresponding with described Weather information;
Described weather sign is superimposed on the described scene image, synthesizes weather forecast information;
Wherein, described weather sign comprises: the icon corresponding with weather and information; Described weather sign comprises with in the hypograph any one or more: static images, dynamic image and video; Described scene image comprises with in the hypograph any one or more: static images, dynamic image and video; Described weather forecast information comprises with in the hypograph any one or more: static images, dynamic image and video.
Correspondingly, the embodiment of the invention also provides a kind of portable terminal, comprising:
The scene acquisition module is used for obtaining the residing current scene of portable terminal in real time, and described scene comprises: indoor scene and/or outdoor scene;
The scene image determination module, be used for the corresponding scene image of described current scene that definite described scene acquisition module obtains, described scene image comprises: at the indoor outside picture shot of window or the video of seeing through, at indoor door outwards picture shot or video and in outdoor picture shot or video any one or more of seeing through;
Receiver module is for the Weather information that receives the residing current geographic position of described portable terminal;
Synthetic processing module, the Weather information and the definite scene image of described scene image determination module that are used for described receiver module is received synthesize processing, generate weather forecast information.
Wherein, described scene acquisition module comprises:
Connect positioning unit, be used for establishing a communications link with AGPS or gps system, obtain the residing current geographic position of portable terminal in real time;
Call unit is for the electronic chart of the current geographic position that calls described connection positioning unit location;
The scene matching unit is used for the current geographic position of described connection positioning unit location is matched with the electronic chart that described call unit calls, and determines the residing current scene of described portable terminal.
Wherein, described scene image determination module comprises:
Extraction unit is used for extracting the first corresponding scene image of current scene that obtains with described scene acquisition module from the picture library that network data base or local terminal prestore;
First determining unit is used for described first scene image that described extraction unit extracts is defined as the corresponding scene image of described current scene.
Wherein, described scene image determination module comprises:
Extraction unit is used for extracting the first corresponding scene image of current scene that obtains with described scene acquisition module from the picture library that network data base or local terminal prestore;
The scene identity processing unit is used for that first scene image that described extraction unit extracts is carried out scene identity and handles, and generates second scene image;
Second determining unit is used for second scene image that described scene identity processing unit generates is defined as the corresponding scene image of described current scene.
Wherein, described synthetic processing module comprises:
The sign generation unit is used for according to described Weather information, generates the weather sign corresponding with described Weather information;
Synthetic processing unit is used for described weather sign is superimposed to described scene image, synthesizes weather forecast information;
Wherein, described weather sign comprises: the icon corresponding with weather and information; Described weather sign comprises with in the hypograph any one or more: static images, dynamic image and video; Described scene image comprises with in the hypograph any one or more: static images, dynamic image and video; Described weather forecast information comprises with in the hypograph any one or more: static images, dynamic image and video.
Wherein, described portable terminal also comprises: memory module, be used for the picture library that storage in advance comprises various scene images, and store various scene identity in advance, and store icon and the information corresponding with various Weather informations in advance.
Implement the embodiment of the invention, have following beneficial effect:
1, the embodiment of the invention is determined corresponding scene image by obtaining the residing current scene of portable terminal, the Weather information of current geographic position and the scene image of current scene are synthesized, form weather forecast information, make weather forecast information can reflect current weather and portable terminal present located scene in real time, intuitively;
2, the residing current scene of portable terminal obtained of the embodiment of the invention is dynamic change, and its corresponding scene image also is dynamic change, and this image has the multiple form of expression; In addition, the form of expression of the weather sign of the Weather information correspondence under the current scene also is diversified, also there are the multiple form of expression in weather sign and the synthetic weather forecast information of scene image, thereby make the form of expression of weather forecast more vivid, lively, colorful various;
3, the corresponding weather of the Weather information of embodiment of the invention sign comprises and also comprises the information under the different weather by icon, the demand that weather forecast more is close to the users.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Need to prove that the portable terminal of the embodiment of the invention comprises any one or more in the following portable terminal: mobile phone, smart mobile phone and PDA (Personal Digital Assistant, personal digital assistant).
See also Fig. 1, be the structural representation of the embodiment of portable terminal of the present invention; Described terminal comprises:
Scene acquisition module 10 is used for obtaining in real time the residing current scene of portable terminal;
In the specific implementation, described scene acquisition module 10 can obtain the residing current scene of portable terminal in real time by AGPS or gps system, and wherein, described scene comprises: indoor scene and/or outdoor scene; And described outdoor scene includes but not limited in the following scene any one or more: park, highway, seashore and street.Particularly, described scene acquisition module 10 can obtain the latitude and longitude coordinates of the current present position of described portable terminal by AGPS or gps system, thereby determine described portable terminal current geographic position, the current location point that this latitude and longitude coordinates is determined is matched with in the electronic chart of described current geographic position, determine the residing current scene of portable terminal, such as: the latitude and longitude coordinates scope that is arranged in electronic chart floor area of building zone when described current location point, the current scene of then determining described portable terminal is indoor scene, otherwise the current scene of determining described portable terminal is outdoor scene; For another example: when described current location point is arranged in certain bar highway of electronic chart, determine that then the current scene of described portable terminal is highway; Other situation similar analysis are not given unnecessary details at this.
Be understandable that, described scene acquisition module 10 obtains the residing current geographic position of portable terminal by AGPS or gps system and only is a kind of preferred implementation, it can also obtain the residing current geographic position of portable terminal by the various communication networks that operator provides, and does not give unnecessary details at this.
Scene image determination module 20 is used for the corresponding scene image of described current scene of determining that described scene acquisition module 10 obtains;
In the specific implementation, described scene image determination module 20 can obtain some images corresponding with described current scene from this network data base in real time by the mode of visit particular network database, also can from the picture library that portable terminal itself prestores, extract some images corresponding with described current scene, above-mentioned image can include but not limited to in the hypograph any one or more: at the indoor outside picture shot of window or the video of seeing through, at indoor door outwards picture shot or the video and at outdoor picture shot or video of seeing through; Can establish a communications link by portable terminal and network, portable terminal be caught and be stored in to the image that obtains during from network implementation also can in real time by the camera on the portable terminal, by described scene image determination module 20 extract real-time.
Particularly, the image that the picture library that described scene image determination module 20 prestores by network data base or local terminal obtains is called first scene image, if described first scene image can definitely reflect the scene that described portable terminal is current, then can directly described first scene image be defined as the scene image of described current scene, such as: when obtaining the current scene of described portable terminal, described scene acquisition module 10 is the indoor scene of certain building, first scene image that described scene image determination module 20 obtains is the indoor outside picture shot of window or the video of seeing through from this building, described first scene image can definitely reflect described portable terminal current scene, and then described scene image determination module 20 is defined as this first scene image the scene image of the residing current scene of described portable terminal; For another example: the current scene of obtaining described portable terminal when described scene acquisition module 10 is certain highway, first scene image that described scene image determination module 20 obtains is certain road section surface of this highway or the surrounding enviroment of this highway, described first scene image can definitely reflect described portable terminal current scene, and then described scene image determination module 20 is defined as this first scene image the scene image of the residing current scene of described portable terminal.
Be understandable that, if described first scene image can not definitely reflect the scene that described portable terminal is current, then can also need described first scene image is handled by described scene image determination module 20, make it become the scene image of described current scene, such as: when obtaining the current scene of described portable terminal, described scene acquisition module 10 is the indoor scene of certain building, first scene image that described scene image determination module 20 obtains is picture or the video of the outdoor environment of this building, at this moment, described scene image determination module 20 need add a scene identity (as: adding a window) to this first scene image, make second scene image of this first scene image through add to handle the back and form intuitively the residing current scene of reflect mobile terminal be indoor scene, this second scene image of formation was defined as the scene image corresponding with the current scene of described portable terminal after then described scene image determination module 20 will be handled; For another example: the current scene of obtaining described portable terminal when described scene acquisition module 10 is outdoor scene (as the park), first scene image that described scene image determination module 20 obtains be one from indoor picture or the video that sees through this park that window outwards takes, at this moment, described scene image determination module 20 need be removed a scene identity (as: removing this window) to this first scene image, make this first scene image through remove handle back formation second scene image intuitively the residing current scene of reflect mobile terminal be outdoor scene.
Receiver module 30 is for the Weather information that receives the residing current geographic position of described portable terminal;
In the specific implementation, described Weather information comprises following key element: the state of weather that described current geographic position is current and/or the state of weather in several days future, and current weather index; Wherein, described current weather index comprises: the index of wearing the clothes, comfort level index, morning exercises index, air-conditioning index, humidity index, air pollution index, travelling index etc.Described receiver module 30 can receive the Weather information from described meteorological network, and wherein, described meteorological network can be the database of observatory, such as: the Central Meteorological Observatory, Shenzhen weather bureau, the database of other local observatory etc., or the database of forming from the information that above-mentioned observatory obtains.
Synthetic processing module 40 is used for Weather information and described scene image determination module that described receiver module 30 receives are determined that 20 scene image synthesizes processing, generates weather forecast information.
In the specific implementation, the Weather information that described synthetic processing module 40 at first receives according to described receiver module 30, call icon and information that portable terminal is stored in advance, generate the weather sign corresponding with this Weather information, described weather sign includes but not limited to in the hypograph any one or more: static images, dynamic image and video (such as: FLASH); Secondly, this weather sign synthesize processing with scene image, generation weather forecast information, this weather forecast information include but not limited to in the hypograph any one or more: static images, dynamic image and video.Described weather forecast information has intuitively reflected the residing current scene of portable terminal and current weather.
See also Fig. 1 again, described portable terminal further comprises:
Memory module 50 is used for the picture library that storage in advance comprises various scene images, stores various scene identity in advance, and stores icon and the information corresponding with various Weather informations in advance.
In the specific implementation, described memory module 50 is used for storage in advance and comprises the picture library of various scene images and various scene identity and offer described scene image determination module 20 and call; Storage icon and the information corresponding with various Weather informations offers the generation processing that described synthetic processing module 40 is carried out the weather sign in advance.
Be understandable that, described memory module 50 can for the internal memory of portable terminal or External memory equipment (such as: storage card), it is undertaking the basic memory function of portable terminal simultaneously, does not give unnecessary details at this.
The embodiment of the invention can reflect current weather and portable terminal present located scene in real time, intuitively, has promoted user's experience.
Describe the working condition of each module of portable terminal of the present invention below in detail with an instantiation.
See also Fig. 2, for portable terminal of the present invention carries out design sketch after Weather information is handled;
Supposing that portable terminal is current is in indoorly, and the weather in portable terminal present located geographic position is rainy day.
It is indoor scene that the scene acquisition module 10 of portable terminal at first obtains the residing current scene of portable terminal in real time by AGPS or gps system; Described scene image determination module 20 can extract a width of cloth from the outdoor picture shot (seeing also mountain shown in Fig. 2 and the outdoor picture of tree reflection) of this building from the picture library of portable terminal, and being that it adds scene identity (seeing also the window shown in Fig. 2), the image that has added this scene identity is confirmed as scene image (seeing also the expression that has window among Fig. 2 from the image of indoor outside shooting); The Weather information that described receiver module 30 receives the residing current geographic position of described portable terminal comprises: the current weather state is for raining, and current weather index comprises: the index of wearing the clothes, humidity index are (19-34 degree), morning exercises index, air-conditioning index, air pollution index and travelling index.Described synthetic processing module 40 at first is converted to described Weather information corresponding weather sign, and this weather sign is superimposed on the scene image, the weather forecast information that forms as shown in Figure 2 (sees also Fig. 2, this weather forecast information comprises that also information " please notes the band umbrella ", wherein, weather is designated transparent image, and scene image is as the background image of this weather forecast information).
Be understandable that the design sketch that portable terminal shown in Figure 2 carries out obtaining after Weather information is handled only is for example, but other situation similar analysis are not given unnecessary details at this.
For clearer explanation the present invention, will the scene acquisition module 10 of above-mentioned portable terminal be described in detail below.
See also Fig. 3, be the structural representation of the embodiment of scene acquisition module of the present invention; Described scene acquisition module 10 comprises:
Connect positioning unit 101, be used for establishing a communications link with AGPS or gps system, obtain the residing current geographic position of portable terminal in real time;
In the specific implementation, described connection positioning unit 101 establishes a communications link with AGPS or gps system, obtains the latitude and longitude coordinates of the current present position of described portable terminal from AGPS or gps system, thereby determines described portable terminal current geographic position; Be understandable that, described connection positioning unit 101 obtains the residing current geographic position of portable terminal by AGPS or gps system and only is a kind of preferred implementation, it can also obtain the residing current geographic position of portable terminal by the various communication networks that operator provides, and does not give unnecessary details at this.
Call unit 102 is for the electronic chart of the current geographic position that calls described connection positioning unit 101 location;
In the specific implementation, described call unit 102 can obtain the electronic chart in this geographic position in real time according to the current geographic position of described connection positioning unit 101 location from network data base, also can directly call the electronic chart in this geographic position from this portable terminal.
Scene matching unit 103 is used for the current geographic position of described connection positioning unit 101 location is matched with the electronic chart that described call unit 102 calls, and determines the residing current scene of described portable terminal; Wherein, described scene comprises: indoor scene and/or outdoor scene; Wherein, described outdoor scene comprises any one or more in the following scene: park, highway, seashore and street.
In the specific implementation, the current location point that described scene matching unit 103 is determined the latitude and longitude coordinates of described connection positioning unit 101 location is matched with in the electronic chart that described call unit 102 calls, determine the residing current scene of portable terminal, such as: the latitude and longitude coordinates scope that is arranged in electronic chart floor area of building zone when described current location point, the current scene of then determining described portable terminal is indoor scene, otherwise the current scene of determining described portable terminal is outdoor scene; For another example: when described current location point is arranged in certain bar highway of electronic chart, determine that then the current scene of described portable terminal is highway; Other situation similar analysis are not given unnecessary details at this.
The embodiment of the invention can be obtained portable terminal present located scene in real time, has promoted user's experience.
For clearer explanation the present invention, will the scene image determination module 20 of above-mentioned portable terminal be described in detail below.
See also Fig. 4, be the structural representation of first embodiment of scene image determination module of the present invention; Described scene image determination module 20 comprises:
Extraction unit 201 is used for extracting the first corresponding scene image of current scene that obtains with described scene acquisition module from the picture library that network data base or local terminal prestore;
In the specific implementation, described extraction unit 201 can obtain some images corresponding with described current scene from this network data base in real time by the mode of visit particular network database, also can from the picture library that portable terminal itself prestores, extract some images corresponding with described current scene, above-mentioned image can include but not limited to in the hypograph any one or more: at the indoor outside picture shot of window or the video of seeing through, at indoor door outwards picture shot or the video and at outdoor picture shot or video of seeing through; Can establish a communications link by portable terminal and network, the image that obtains during from network implementation, also can catch and be stored in portable terminal in real time by the camera on the portable terminal, by described extraction unit 201 extract real-time, particularly, the image that obtains of the picture library that prestores by network data base or local terminal of described extraction unit 201 is called first scene image.
First determining unit 202 is used for described first scene image that described extraction unit 201 extracts is defined as the corresponding scene image of described current scene.
In the specific implementation, if first scene image that described extraction unit 201 extracts can definitely reflect the scene that described portable terminal is current, then described first determining unit 202 directly is defined as described first scene image scene image of described current scene, such as: when obtaining the current scene of described portable terminal, described scene acquisition module 10 is the indoor scene of certain building, first scene image that described extraction unit 201 obtains is the indoor outside picture shot of window or the video of seeing through from this building, described first scene image can definitely reflect described portable terminal current scene, and then described first determining unit 202 is defined as this first scene image the scene image of the residing current scene of described portable terminal; For another example: the current scene of obtaining described portable terminal when described scene acquisition module 10 is certain highway, first scene image that described extraction unit 201 obtains is certain road section surface of this highway or the surrounding enviroment of this highway, described first scene image can definitely reflect described portable terminal current scene, and then described first determining unit 202 is defined as this first scene image the scene image of the residing current scene of described portable terminal.
The embodiment of the invention can be determined corresponding scene image according to portable terminal present located scene in real time, has promoted user's experience.
See also Fig. 5, be the structural representation of second embodiment of scene image determination module of the present invention; Similar with a last embodiment, described scene image determination module 20 comprises extraction unit 201, and in the present embodiment, described scene image determination module 20 further comprises:
Scene identity processing unit 203 is used for that first scene image that described extraction unit 201 extracts is carried out scene identity and handles, and generates second scene image; Wherein, described scene identity includes but not limited in the following sign any one or more: door and window for distinguishing the sign of indoor scene and outdoor scene.Be understandable that described scene identity can be other signs of scene in the divided chamber and outdoor scene, comprising: wall, ceiling etc., other situation similar analysis are not given unnecessary details at this.
Be understandable that, if first scene image that described extraction unit 201 obtains can not definitely reflect the scene that described portable terminal is current, then described scene identity processing unit 203 need be handled described first scene image, make it become the scene image of described current scene, such as: when obtaining the current scene of described portable terminal, described scene acquisition module 10 is the indoor scene of certain building, first scene image that described extraction unit 201 obtains is picture or the video of the outdoor environment of this building, at this moment, 203 pairs of these first scene images of described scene identity processing unit add a scene identity (as: adding a window), make this first scene image through add handle after formation second scene image intuitively the residing current scene of reflect mobile terminal be indoor scene; For another example: the current scene of obtaining described portable terminal when described scene acquisition module 10 is outdoor scene (as the park), first scene image that described extraction unit 201 obtains be one from indoor picture or the video that sees through this park that window outwards takes, at this moment, 203 pairs of these first scene images of described scene identity processing unit are removed a scene identity (as: removing this window), make this first scene image through remove handle back formation second scene image intuitively the residing current scene of reflect mobile terminal be outdoor scene.
Second determining unit 204 is used for second scene image that described scene identity processing unit 203 generates is defined as the corresponding scene image of described current scene.
The embodiment of the invention can be determined corresponding scene image according to portable terminal present located scene in real time, has promoted user's experience.
For clearer explanation the present invention, will the synthetic processing module 40 of above-mentioned portable terminal be described in detail below.
See also Fig. 6, be the structural representation of the embodiment of synthetic processing module of the present invention; Described synthetic processing module 40 comprises:
Sign generation unit 401 is used for according to described Weather information, generates the weather sign corresponding with described Weather information; Wherein, described weather sign comprises: the icon corresponding with weather and information; Described weather sign comprises with in the hypograph any one or more: static images, dynamic image and video;
In the specific implementation, described sign generation unit 401 can extract the key element of Weather information, generates corresponding weather sign; Wherein, described weather sign comprises any one or more in the following file: have the static images of transparency, have dynamic image or the video file of transparency;Such as: current weather is light rain, then can generate the icon (dynamic or static) that raindrop drips downwards, and is furnished with the information of corresponding " please noting the band umbrella ", or generate the downward icon that drips of raindrop and with the sound that drips, be furnished with the information of voice prompt (being video file) of corresponding " please note and be with umbrella " simultaneously downwards; Particularly, described sign generation unit 401 can adopt the device of function such as translucent filtrator, generates static images, dynamic image or video file with certain transparency (0%-100%) and identifies as weather.
Synthetic processing unit 402 is used for described weather sign is superimposed to described scene image, synthesizes weather forecast information; Wherein, described scene image comprises with in the hypograph any one or more: static images, dynamic image and video; Described weather forecast information comprises with in the hypograph any one or more: static images, dynamic image and video.
Be understandable that described synthetic processing unit 402 adopts the synthetic processing mode of weather sign stack scene image, makes scene image as the background of weather forecast information; Wherein, the synthetic processing mode of described synthetic processing unit 402 is not limited to aforesaid way, and it is similar with the synthetic processing mode of existing video or image, does not give unnecessary details at this.
The corresponding weather of the Weather information of embodiment of the invention sign comprises and also comprises the information under the different weather by icon, the demand that weather forecast more is close to the users; In addition, the embodiment of the invention is synthesized weather sign and the scene image of current scene, form weather forecast information, make weather forecast information can reflect current weather and portable terminal present located scene in real time, intuitively, promoted user's experience; Further, the residing current scene of portable terminal is dynamic change, and its corresponding scene image also is dynamic change, and this image has the multiple form of expression; In addition, the form of expression of the weather sign of the Weather information correspondence under the current scene also is diversified, also there are the multiple form of expression in weather sign and the synthetic weather forecast information of scene image, thereby the form of expression that makes weather forecast is more vivid, lively, colorful various, has further promoted user's experience.
For clearer explanation the present invention, will describe in detail to the performed Weather information processing method of above-mentioned terminal of the present invention below.
See also Fig. 7, be the process flow diagram of first embodiment of the Weather information processing method based on portable terminal of the present invention; Described method comprises:
S101 obtains the residing current scene of portable terminal in real time;
In the specific implementation, described S101 can obtain the residing current scene of portable terminal in real time by AGPS or gps system, and wherein, described scene comprises: indoor scene and/or outdoor scene; And described outdoor scene includes but not limited in the following scene any one or more: park, highway, seashore and street.Particularly, described S101 can obtain the latitude and longitude coordinates of the current present position of described portable terminal by AGPS or gps system, thereby determine described portable terminal current geographic position, the current location point that this latitude and longitude coordinates is determined is matched with in the electronic chart of described current geographic position, determine the residing current scene of portable terminal, such as: the latitude and longitude coordinates scope that is arranged in electronic chart floor area of building zone when described current location point, the current scene of then determining described portable terminal is indoor scene, otherwise the current scene of determining described portable terminal is outdoor scene; For another example: when described current location point is arranged in certain bar highway of electronic chart, determine that then the current scene of described portable terminal is highway; Other situation similar analysis are not given unnecessary details at this.
Be understandable that, described S101 obtains the residing current geographic position of portable terminal by AGPS or gps system and only is a kind of preferred implementation, it can also obtain the residing current geographic position of portable terminal by the various communication networks that operator provides, and does not give unnecessary details at this.
S102 determines the scene image that described current scene is corresponding;
In the specific implementation, described S102 can obtain some images corresponding with described current scene from this network data base in real time by the mode of visit particular network database, also can from the picture library that portable terminal itself prestores, extract some images corresponding with described current scene, above-mentioned image can include but not limited to in the hypograph any one or more: at the indoor outside picture shot of window or the video of seeing through, at indoor door outwards picture shot or the video and at outdoor picture shot or video of seeing through; Can establish a communications link by portable terminal and network, portable terminal be caught and be stored in to the image that obtains during from network implementation also can in real time by the camera on the portable terminal, by the S102 of institute extract real-time.
Particularly, the image that the picture library that described S102 prestores by network data base or local terminal obtains is called first scene image, if described first scene image can definitely reflect the scene that described portable terminal is current, then can directly described first scene image be defined as the scene image of described current scene, such as: when obtaining the current scene of described portable terminal, described S101 is the indoor scene of certain building, first scene image that described S102 obtains is the indoor outside picture shot of window or the video of seeing through from this building, described first scene image can definitely reflect described portable terminal current scene, and then described S102 is defined as this first scene image the scene image of the residing current scene of described portable terminal; For another example: the current scene of obtaining described portable terminal as described S101 is certain highway, first scene image that described S102 obtains is certain road section surface of this highway or the surrounding enviroment of this highway, described first scene image can definitely reflect described portable terminal current scene, and then described S102 is defined as this first scene image the scene image of the residing current scene of described portable terminal.
Be understandable that, if described first scene image can not definitely reflect the scene that described portable terminal is current, then can also need described first scene image is handled by described S102, make it become the scene image of described current scene, such as: when obtaining the current scene of described portable terminal, described S101 is the indoor scene of certain building, first scene image that described S102 obtains is picture or the video of the outdoor environment of this building, at this moment, described S102 need add a scene identity (as: adding a window) to this first scene image, make second scene image of this first scene image through add to handle the back and form intuitively the residing current scene of reflect mobile terminal be indoor scene, this second scene image of formation was defined as the scene image corresponding with the current scene of described portable terminal after then described S102 will handle; For another example: the current scene of obtaining described portable terminal as described S101 is outdoor scene (as the park), first scene image that described S102 obtains be one from indoor picture or the video that sees through this park that window outwards takes, at this moment, described S102 need remove a scene identity (as: removing this window) to this first scene image, make this first scene image through remove handle back formation second scene image intuitively the residing current scene of reflect mobile terminal be outdoor scene.
S103 receives the Weather information of the residing current geographic position of described portable terminal;
In the specific implementation, described Weather information comprises following key element: the state of weather that described current geographic position is current and/or the state of weather in several days future, and current weather index; Wherein, described current weather index comprises: the index of wearing the clothes, comfort level index, morning exercises index, air-conditioning index, humidity index, air pollution index, travelling index etc.Described S103 can receive the Weather information from described meteorological network, and wherein, described meteorological network can be the database of observatory, such as: the Central Meteorological Observatory, Shenzhen weather bureau, the database of other local observatory etc., or the database of forming from the information that above-mentioned observatory obtains.
S104 synthesizes processing to described Weather information and described scene image, generates weather forecast information.
In the specific implementation, the Weather information that described S104 at first receives according to described S103, call icon and information that portable terminal is stored in advance, generate the weather sign corresponding with this Weather information, described weather sign includes but not limited to in the hypograph any one or more: static images, dynamic image and video (such as: FLASH); Secondly, this weather sign synthesize processing with scene image, generation weather forecast information, this weather forecast information include but not limited to in the hypograph any one or more: static images, dynamic image and video.Described weather forecast information has intuitively reflected the residing current scene of portable terminal and current weather.
Be understandable that each flow process of process present embodiment can obtain design sketch as shown in Figure 2 to the processing of Weather information.
The embodiment of the invention can reflect current weather and portable terminal present located scene in real time, intuitively, has promoted user's experience.
See also Fig. 8, be the process flow diagram of first embodiment of the Weather information processing method based on portable terminal of the present invention; Described method comprises:
S201 obtains the residing current geographic position of portable terminal in real time by AGPS or gps system;
In the specific implementation, described S201 and AGPS or gps system establish a communications link, and obtain the latitude and longitude coordinates of the current present position of described portable terminal from AGPS or gps system, thereby determine described portable terminal current geographic position; Be understandable that, described S201 obtains the residing current geographic position of portable terminal by AGPS or gps system and only is a kind of preferred implementation, it can also obtain the residing current geographic position of portable terminal by the various communication networks that operator provides, and does not give unnecessary details at this.
S202 calls the electronic chart of described current geographic position;
In the specific implementation, described S202 can obtain the electronic chart in this geographic position in real time according to the current geographic position of described S201 location from network data base, also can directly call the electronic chart in this geographic position from this portable terminal.
S203 is matched with the current geographic position of described portable terminal in the described electronic chart, determines the residing current scene of described portable terminal; Wherein, described scene comprises: indoor scene and/or outdoor scene; Wherein, described outdoor scene comprises any one or more in the following scene: park, highway, seashore and street.
In the specific implementation, the current location point that described S203 determines the latitude and longitude coordinates of described S201 location is matched with in the electronic chart that described S202 calls, determine the residing current scene of portable terminal, such as: the latitude and longitude coordinates scope that is arranged in electronic chart floor area of building zone when described current location point, the current scene of then determining described portable terminal is indoor scene, otherwise the current scene of determining described portable terminal is outdoor scene; For another example: when described current location point is arranged in certain bar highway of electronic chart, determine that then the current scene of described portable terminal is highway; Other situation similar analysis are not given unnecessary details at this.
S204 extracts the first corresponding scene image of described current scene from the picture library that network data base or local terminal prestore;
In the specific implementation, described S204 can obtain some images corresponding with described current scene from this network data base in real time by the mode of visit particular network database, also can from the picture library that portable terminal itself prestores, extract some images corresponding with described current scene, above-mentioned image can include but not limited to in the hypograph any one or more: at the indoor outside picture shot of window or the video of seeing through, at indoor door outwards picture shot or the video and at outdoor picture shot or video of seeing through; Can establish a communications link by portable terminal and network, the image that obtains during from network implementation, also can catch and be stored in portable terminal in real time by the camera on the portable terminal, by described S204 extract real-time, particularly, the image that obtains of the picture library that prestores by network data base or local terminal of described S204 is called first scene image.
In one embodiment of the invention, if first scene image that described S204 extracts can definitely reflect the scene that described portable terminal is current, then can directly described first scene image be defined as the scene image of described current scene, such as: when determining the current scene of described portable terminal, described S203 is the indoor scene of certain building, first scene image that described S204 obtains is the indoor outside picture shot of window or the video of seeing through from this building, described first scene image can definitely reflect described portable terminal current scene, then this first scene image can be defined as the scene image of the residing current scene of described portable terminal; For another example: the current scene of obtaining described portable terminal as described S203 is certain highway, first scene image that described S204 obtains is certain road section surface of this highway or the surrounding enviroment of this highway, described first scene image can definitely reflect described portable terminal current scene, then this first scene image can be defined as the scene image of the residing current scene of described portable terminal.
In another embodiment of the present invention, if first scene image that described S204 extracts can not definitely reflect the scene that described portable terminal is current, then change step S205 after the step S204 over to.
S205 carries out scene identity to described first scene image and handles, and forms second scene image; Wherein, described scene identity comprises in the following sign any one or more: door and window for distinguishing the sign of indoor scene and outdoor scene.
Be understandable that, if first scene image that described S204 obtains can not definitely reflect the scene that described portable terminal is current, then described S205 need handle described first scene image, make it become the scene image of described current scene, such as: when determining the current scene of described portable terminal, described S203 is the indoor scene of certain building, first scene image that described S204 obtains is picture or the video of the outdoor environment of this building, at this moment, described S205 adds a scene identity (as: adding a window) to this first scene image, make this first scene image through add handle after formation second scene image intuitively the residing current scene of reflect mobile terminal be indoor scene; For another example: be outdoor scene (as the park) when described S203 determines the current scene of described portable terminal, first scene image that described S204 obtains be one from indoor picture or the video that sees through this park that window outwards takes, at this moment, described S205 removes a scene identity (as: removing this window) to this first scene image, make this first scene image through remove handle back formation second scene image intuitively the residing current scene of reflect mobile terminal be outdoor scene.
S206 is defined as the corresponding scene image of described current scene with described second scene image;
S207 receives the Weather information of the residing current geographic position of described portable terminal;
S208 according to described Weather information, generates the weather sign corresponding with described Weather information;
In the specific implementation, described S208 can extract the key element of Weather information, generates corresponding weather sign; Wherein, described weather sign comprises any one or more in the following file: have the static images of transparency, have dynamic image or the video file of transparency; Such as: current weather is light rain, then can generate the icon (dynamic or static) that raindrop drips downwards, and is furnished with the information of corresponding " please noting the band umbrella ", or generate the downward icon that drips of raindrop and with the sound that drips, be furnished with the information of voice prompt (being video file) of corresponding " please note and be with umbrella " simultaneously downwards; Particularly, described S208 can adopt the device of function such as translucent filtrator, generates static images, dynamic image or video file with certain transparency (0%-100%) and identifies as weather.
S209 is superimposed to described weather sign on the described scene image, synthesizes weather forecast information.
Be understandable that, described S209 adopts the synthetic processing mode of weather sign stack scene image, and the scene image that the scene image that first scene image that above-mentioned S204 is directly extracted is determined or handle through above-mentioned S205 and S206 obtains is as the background of weather forecast information; Wherein, the synthetic processing mode of described S209 is not limited to aforesaid way, and it is similar with the synthetic processing mode of existing video or image, does not give unnecessary details at this.
Need to prove that in the present embodiment: S201-S203 is the concrete refinement step of the S101 of a last embodiment; S204-S206 is the concrete refinement step of the S102 of a last embodiment; S207 is identical with the S103 step of a last embodiment; S208-S209 is the concrete refinement step of the S104 of a last embodiment.
Description by the various embodiments described above, the embodiment of the invention is determined corresponding scene image by obtaining the residing current scene of portable terminal, the Weather information of current geographic position and the scene image of current scene are synthesized, form weather forecast information, make weather forecast information can reflect current weather and portable terminal present located scene in real time, intuitively, promoted user's experience; Further, the residing current scene of the portable terminal that the embodiment of the invention is obtained is dynamic change, and its corresponding scene image also is dynamic change, and this image has the multiple form of expression; In addition, the form of expression of the weather sign of the Weather information correspondence under the current scene also is diversified, also there are the multiple form of expression in weather sign and the synthetic weather forecast information of scene image, thereby make the form of expression of weather forecast more vivid, lively, colorful various; Further, the corresponding weather of the Weather information of embodiment of the invention sign comprises and also comprises the information under the different weather by icon that the demand that weather forecast more is close to the users has further promoted user's experience.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosed only is preferred embodiment of the present invention, certainly can not limit the present invention's interest field with this, one of ordinary skill in the art will appreciate that all or part of flow process that realizes above-described embodiment, and according to the equivalent variations that claim of the present invention is done, still belong to the scope that invention is contained.