A kind of generation method and apparatus of vehicle electronic device display screen dynamic background
Technical field
The present invention relates to vehicle electronic device technical field, particularly relate to a kind of vehicle electronic device and show
The generation method and apparatus of screen dynamic background.
Background technology
Vehicle electronic device refers to be arranged on inside automobile for increasing the electronic system of automobile function
And product, vehicle electronic device people to be capable of and car, car and extraneous (car and car)
Information communication, mainly have vehicle condition to monitor, navigate, broadcast, bluetooth conversation, music, driving
The functions such as record, are generally configured with one and touch display screen.
Popular vehicle electronic device display screen interface background uses by UI (User Interface, use
Interface, family) designer design static background, save as picture format in advance, can realize a pictures show or
The switching display of person's plurality of pictures.Use the vehicle electronic device display interface of static background, have and boundary
The advantage of other element perfect adaptation in face, but also it is thus desirable to the most professional art activities could be made
Make, also to be generated by the software engineer of specialty, for liking personalized user or relatively difficult;
And for drive recorder, use static background during user operation menu, will be unable to see monitoring picture
The effect in face;Static background style is single, has used static background long to user with outmoded, aestheticly tired
Sensation.
Summary of the invention
It is an object of the invention to propose a kind of generation method of vehicle electronic device display screen dynamic background
And device, it is possible to video image is converted to dynamic background, the display of abundant vehicle electronic device display screen
Effect.
For reaching this purpose, the present invention by the following technical solutions:
On the one hand, it is provided that a kind of generation method of vehicle electronic device display screen dynamic background, including:
According to predeterminated frequency getting frame image from video image;
Described two field picture is set to the background image of vehicle electronic device display interface.
Wherein, described also include according to after predeterminated frequency getting frame image from video image:
Described two field picture is carried out special effect processing.
Further, the described background image that described two field picture is set to vehicle electronic device display interface
The most also include:
If receiving the touch operation to vehicle electronic device touch screen, then touch track part is carried out specially good effect
Process.
Wherein, described from video image according to predeterminated frequency getting frame image, the most also include:
Open photographic head, obtain video image in real time.
Wherein, described special effect processing include obscuring, sharpen, discolor, scale, render in one or many
Kind.
On the other hand, it is provided that the generating means of a kind of vehicle electronic device display screen dynamic background, including:
Two field picture acquisition module, is used for from video image according to predeterminated frequency getting frame image;
Background image arranges module, for described two field picture is set to vehicle electronic device display interface
Background image.
Further, described generating means also includes:
Special efficacy processing module, for described from video image according to predeterminated frequency getting frame image it
After, described two field picture is carried out special effect processing.
Further, described generating means also includes:
User interactive module, for being set to vehicle electronic device display interface described by described two field picture
Background image after, if receiving the touch operation to vehicle electronic device touch screen, then notice specially good effect at
Reason module carries out special effect processing to touch track part.
Further, described generating means also includes:
Video acquisition module, described from video image according to predeterminated frequency getting frame image before, open
Photographic head, obtains video image in real time.
Wherein, described special effect processing include obscuring, sharpen, discolor, scale, render in one or many
Kind.
The invention have the benefit that the present invention according to predeterminated frequency getting frame image from video image,
The two field picture with certain continuity is set to the background image of vehicle electronic device display interface, makes car
The background image carrying electronic equipment display interface is dynamic-form, abandons the outmoded and single of static background,
Need not UI designer participate in making, the display effect of abundant vehicle electronic device display screen.
Accompanying drawing explanation
Fig. 1 is the generation of a kind of vehicle electronic device display screen dynamic background that the embodiment of the present invention one provides
The flow chart of method.
Fig. 2 is the generation of a kind of vehicle electronic device display screen dynamic background that the embodiment of the present invention two provides
The flow chart of method.
Fig. 3 is the generation of a kind of vehicle electronic device display screen dynamic background that the embodiment of the present invention three provides
The structural representation of device.
Detailed description of the invention
Technical scheme and the technique effect reached for making to present invention solves the technical problem that, using are more clear
Chu, is described in further detail the technical scheme of the embodiment of the present invention below in conjunction with accompanying drawing, it is clear that
Described embodiment is only a part of embodiment of the present invention rather than whole embodiments.
Embodiment one
Fig. 1 is the generation of a kind of vehicle electronic device display screen dynamic background that the embodiment of the present invention one provides
The flow chart of method.As it is shown in figure 1, the present embodiment provides a kind of vehicle electronic device display screen dynamically to carry on the back
The generation method of scape, is used for realizing dynamic locomotive display screen background, a kind of vehicle electronic device show
The generating means of screen dynamic background performs, and described device is realized by software and/or hardware, is typically integrated in
Inside vehicle electronic device.Described method comprises the steps:
S10, according to predeterminated frequency getting frame image from video image.
The source of video image can have a variety of, the video figure that e.g. vehicle electronic device user likes
Picture.Preferably use the video image obtained in real time.Generally, vehicle electronic device is equipped with at least one and takes the photograph
As head, it is arranged on vehicle front, the scenery in automobile direct of travel front can be photographed.Open photographic head,
Obtain video image in real time, according to predeterminated frequency getting frame image from video image.
Skilled person will appreciate that, video image is that several continuous print pictures per second switching is formed,
Each pictures is a frame.In step S10, according to predeterminated frequency getting frame image from video image,
Described predeterminated frequency the most per second from some frames of video image obtain preset frame number, preset frame number less than or
The frame number per second equal to video image, each frame got is two field picture.
In order to reach different display effect, it is also possible to described two field picture is carried out special effect processing.Described spy
Effect process include but not limited to obscure, sharpen, discolor, scale, render in one or more.
S11, is set to the background image of vehicle electronic device display interface by described two field picture.
According to the predeterminated frequency of getting frame image, it is set to the Background of vehicle electronic device display interface
Picture.Two field picture owing to getting has certain continuity, is set to background image according to predeterminated frequency
Time, described background image just can form dynamic effect.The frequency of getting frame image with background image is set
Frequency identical, guarantee dynamic background is coherent, at the uniform velocity.The smooth degree of dynamic effect depends on obtaining
Taking the predeterminated frequency of two field picture, predeterminated frequency is the highest, and dynamic effect is the most smooth.
In the present embodiment, photographic head is arranged on drive recorder, and described video image derives from driving note
The monitoring image of record instrument.Video image can be the monitoring image obtaining drive recorder in real time, does not repeats
Do not circulate;Can also be that a section intercepted in monitoring image makes dynamic background, such as drive a vehicle through landscape
Graceful section, can make dynamic background by the monitoring video in this section and repeatedly play;It addition, also may be used
To be the video liked of user, such as film, MV etc..
According to predeterminated frequency getting frame image from video image in the present embodiment, will have certain continuity
Two field picture be set to the background image of vehicle electronic device display interface, make vehicle electronic device show boundary
The background image in face is dynamic-form, abandons the outmoded and single of static background, it is not necessary to UI designer
Participate in making, the display effect of abundant vehicle electronic device display screen.
Embodiment two
Fig. 2 is the generation of a kind of vehicle electronic device display screen dynamic background that the embodiment of the present invention two provides
The flow chart of method.As in figure 2 it is shown, the present embodiment improves on the basis of embodiment one, with
The dynamic effect of touch track is realized during the operation vehicle electronic device display screen of family.In the present embodiment, a kind of
The generation method of vehicle electronic device display screen dynamic background, is held by the wallpaper program in android system
OK, comprise the steps:
S20, opens photographic head, obtains video image in real time.
Open the photographic head installed on automobile, such as drive recorder, obtain video image in real time.Driving
The video image of monitor photographic head inputs from the Camera passage of wallpaper program.
S21, according to predeterminated frequency getting frame image from video image.
S22, carries out special effect processing to described two field picture.
The two field picture got from Camera passage is flushed in the SurfaceHolder of wallpaper program,
Painting canvas Canvas object carries out special effect processing.
S23, is set to the background image of vehicle electronic device display interface by described two field picture.
S24, if receiving the touch operation to vehicle electronic device touch screen, then enters touch track part
Row special effect processing.
Monitoring the input of vehicle electronic device touch screen, if receiving touch operation, obtaining the screen of touch point
Coordinate, carries out special effect processing to the image in certain radius around the touch point of two field picture and touch point.Example
As, if two field picture has been carried out fuzzy and process of discoloring by step S22, then in step s 24,
Touch point part is sharpened and color rendition processes.Along with two field picture flushes to car according to predeterminated frequency
Carry on electronic equipment display interface, and the touch point part of each two field picture is carried out special effect processing, just
The dynamic specially good effect effect of touch track can be formed.
Method is generated especially suitable on drive recorder described in the present embodiment.Drive recorder is integrated with to be taken the photograph
As head, possess the ability obtaining video image, when user operation drive recorder menu, driving recording
Instrument still can keep monitor state, and uses the method, and the video image got is made dynamic background,
The most context enriched changeable, moreover it is possible to see road surface monitor video in real time.
The present embodiment is for the touch operation of user, when finger slides on vehicle electronic device touch screen
Time, exporting after screen coordinate corresponding for each two field picture is carried out special effect processing, the dynamic effect of local makes car
The background image carrying electronic equipment display screen is more interesting.
Embodiment three
Fig. 3 is the generation of a kind of vehicle electronic device display screen dynamic background that the embodiment of the present invention three provides
The structural representation of device.As it is shown on figure 3, the present embodiment provides a kind of vehicle electronic device display screen to move
The generating means of state background, dynamically carries on the back for the vehicle electronic device display screen performed described in above-described embodiment
The generation method of scape, it is achieved the effect of vehicle electronic device display screen dynamic background.Described device includes:
Two field picture acquisition module 101 and background image arrange module 104.
Two field picture acquisition module 101, is used for from video image according to predeterminated frequency getting frame image;
Background image arranges module 104, for described two field picture is set to vehicle electronic device display circle
The background image in face.
Further, described generating means also includes:
Video acquisition module 100, described from video image according to predeterminated frequency getting frame image before,
Open photographic head, obtain video image in real time.
Special efficacy processing module 102, for described from video image according to predeterminated frequency getting frame image
Afterwards, described two field picture is carried out special effect processing.
Wherein, described special effect processing include obscuring, sharpen, discolor, scale, render in one or many
Kind.
User interactive module 103, for being set to vehicle electronic device by described two field picture show described
After the background image at interface, if receiving the touch operation to vehicle electronic device touch screen, then notify spy
Effect processing module carries out special effect processing to the touch track part of two field picture.
The generating means of vehicle electronic device display screen dynamic background described in the present embodiment is used for performing above-mentioned
The generation method of the vehicle electronic device display screen dynamic background described in embodiment, solves same technology and asks
Topic, reaches identical technique effect, even if the background image of vehicle electronic device display interface is dynamic shape
Formula, abandons the outmoded and single of static background, the display effect of abundant vehicle electronic device display screen.
The know-why of the present invention is described above in association with specific embodiment.These describe and are intended merely to explain
The principle of the present invention, and limiting the scope of the invention can not be construed to by any way.Based on this
The explanation at place, those skilled in the art need not pay performing creative labour can associate the present invention's
Other detailed description of the invention, within these modes fall within protection scope of the present invention.