Summary of the invention
Main purpose of the present invention is to provide a kind of desktop background display packing based on Rimless mobile phone and device, is intended to the picture display effect improving mobile phone display screen, reduces the operation easier that desktop background is changed.
For achieving the above object, a kind of desktop background display packing based on Rimless mobile phone provided by the invention comprises the following steps:
When mobile phone enters transparent background display mode, obtain ambient image by camera;
Screen size according to the Distance geometry mobile phone of mobile phone and subject carries out cutting to the image obtained;
Image after cutting is carried out amplification process, to make the picture size after described cutting consistent with the screen size of described mobile phone;
The image amplified after process is shown on a display screen as desktop background.
Preferably, described display as desktop background by image after amplification process also comprises on a display screen afterwards:
When the distance detecting mobile phone movement is greater than the first preset value, perform the described step being obtained ambient image by camera.
Preferably, the screen size of the described Distance geometry mobile phone according to mobile phone and subject also comprises before carrying out cutting to the image obtained:
Obtain eyes of user departs from display screen center angle relative to the Distance geometry eyes of user at mobile phone display screen center;
The screen size of the described Distance geometry mobile phone according to mobile phone and subject carries out cutting to the image obtained and is specially:
The screen size departing from the Distance geometry mobile phone of the angle at display screen center, mobile phone and subject according to eyes of user relative to the distance at mobile phone display screen center, eyes of user carries out cutting to the image obtained.
Preferably, described display as desktop background by image after amplification process also comprises on a display screen afterwards:
The electricity of detecting real-time mobile phone;
When the electricity of mobile phone is less than the second preset value, closes camera, and control mobile phone and exit described transparent background display mode.
Preferably, described when mobile phone enters transparent background display mode, also comprise before obtaining ambient image by camera:
Export preset operation interface and select whether enter transparent background display mode for user.
In addition, for achieving the above object, the present invention also provides a kind of desktop background display unit based on Rimless mobile phone to comprise:
First acquisition module, for entering transparent background display mode at mobile phone, obtains ambient image by camera;
Cutting module, the screen size for the Distance geometry mobile phone according to mobile phone and subject carries out cutting to the image obtained;
Adjusting module, for the image after cutting being carried out amplification process, to make the picture size after described cutting consistent with the screen size of described mobile phone;
Module is set, shows on a display screen as desktop background for the image after process will be amplified.
Preferably, the described desktop background display unit based on Rimless mobile phone also comprises:
Whether the first detecting module, be greater than the first preset value for the distance detecting mobile phone movement;
When whether described first acquisition module is specifically for being greater than the first preset value when the distance surveying mobile phone movement, when mobile phone enters transparent background display mode, obtain ambient image by camera.
Preferably, the described desktop background display unit based on Rimless mobile phone also comprises:
Second acquisition module, to depart from the angle at display screen center relative to the Distance geometry eyes of user at mobile phone display screen center for obtaining eyes of user;
Described cutting module, the screen size specifically for the Distance geometry mobile phone departing from the angle at display screen center, mobile phone and subject according to eyes of user relative to the distance at mobile phone display screen center, eyes of user carries out cutting to the image obtained.
Preferably, the described desktop background display unit based on Rimless mobile phone also comprises:
Second detecting module, for the electricity of detecting real-time mobile phone;
Control module, for when the electricity of mobile phone is less than the second preset value, closes camera, and controls mobile phone and exit described transparent background display mode.
Preferably, the described desktop background display unit based on Rimless mobile phone also comprises:
Output module, selects whether enter transparent background display mode for exporting preset operation interface for user.
The embodiment of the present invention, when mobile phone enters transparent background display mode, obtains ambient image by camera, and the screen size according to the Distance geometry mobile phone of mobile phone and subject carries out cutting to the image obtained; Image after cutting is carried out amplification process, to make the picture size after described cutting consistent with the screen size of described mobile phone; The image amplified after process is shown on a display screen as desktop background.Thus achieve the effect utilizing environment picture as desktop background, make mobile phone display screen be equivalent to the effect of clear glass, therefore can improve the picture display effect of mobile phone display screen, reduce the operation easier that desktop background is changed simultaneously.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The invention provides a kind of desktop background display packing based on Rimless mobile phone, with reference to Fig. 1, in one embodiment, should comprise based on the desktop background display packing of Rimless mobile phone:
Step S10, when mobile phone enters transparent background display mode, obtains ambient image by camera;
The desktop background display packing based on Rimless mobile phone that the present embodiment provides is mainly used in mobile phone and carries out display and control to the background picture of main display display interface.The side of above-mentioned Rimless mobile phone is a part for display screen (touch-screen), for receiving the touch operation of user's input, particularly, the both sides of Rimless mobile phone are the both sides of mobile phone Width, the side of mobile phone is Qu Ping, thus makes the front of mobile phone be display screen.The display mode of mobile phone can comprise general display mode and transparent background display mode, particularly, general display mode is shown as desktop background for user is arranged desktop picture, and Transparence Display pattern is catch current ambient image, and the ambient image of seizure is set to desktop background.
It should be noted that the mode that general display mode and Transparence Display pattern switch can be arranged according to actual needs, such as, can input gesture of specifically sliding on a display screen, switch with start-up mode; Also can export preset operation interface by mobile phone and select whether enter transparent background display mode for user, with the effect switched to expression patterns.After mobile phone switches to transparent background display mode, first control camera at running background, and obtain ambient image by camera.
Step S20, the screen size according to the Distance geometry mobile phone of mobile phone and subject carries out cutting to the image obtained;
Step S30, carries out amplification process, to make the picture size after described cutting consistent with the screen size of described mobile phone by the image after cutting;
Step S40, shows the image amplified after process on a display screen as desktop background.
In the present embodiment, according to the image-region that the Size calculation mobile phone of the display screen of the Distance geometry mobile phone of mobile phone and subject blocks, according to calculating the image-region obtained, cutting being carried out to the image obtained, only retaining mobile phone to make the image taken by camera and blocking corresponding image-region.Then the image after cutting is carried out pixel and amplify process, ensure that the picture size after cutting is consistent with the screen size of mobile phone; On a display screen using the image after amplification as desktop background display finally.
Should be noted that, the mode measuring the distance of mobile phone and subject can be arranged according to actual needs, do not do at this and limit further, such as, ultrasonic wave is set and occurs and receiving system carries out ultrasonic ranging, or carry out measuring and calculating distance by the focal length of the image of camera preview.
The embodiment of the present invention, when mobile phone enters transparent background display mode, obtains ambient image by camera, and the screen size according to the Distance geometry mobile phone of mobile phone and subject carries out cutting to the image obtained; Image after cutting is carried out amplification process, to make the picture size after described cutting consistent with the screen size of described mobile phone; The image amplified after process is shown on a display screen as desktop background.Thus achieve the effect utilizing environment picture as desktop background, make mobile phone display screen be equivalent to the effect of clear glass, therefore can improve the picture display effect of mobile phone display screen, reduce the operation easier that desktop background is changed simultaneously.
Further, with reference to Fig. 2, based on above-described embodiment, in the present embodiment, also comprise after above-mentioned steps S40:
Step S50, whether the distance of detecting mobile phone movement is greater than the first preset value; Perform step S10 if then return, if not, then continue to perform step S50.
In the present embodiment, whether be greater than the first preset value by the distance of detecting mobile phone movement, only when the distance of mobile phone movement is greater than the first preset value, just again upgrade mobile phone desktop background, thus prevent due to mobile phone shake, cause needing the ambient image to camera obtains to process in real time.Therefore this embodiment reduces the treating capacity of view data, improve the speed that mobile phone runs.It should be noted that the size of above-mentioned first preset value can be arranged according to actual needs, do not do limiting further at this.
Further, with reference to Fig. 3, based on above-described embodiment, in the present embodiment, also comprise before above-mentioned steps S20:
Step S60, obtains eyes of user departs from display screen center angle relative to the Distance geometry eyes of user at mobile phone display screen center;
Above-mentioned steps S20 is specially:
The screen size departing from the Distance geometry mobile phone of the angle at display screen center, mobile phone and subject according to eyes of user relative to the distance at mobile phone display screen center, eyes of user carries out cutting to the image obtained.
In the present embodiment, obtain and comprise the image of human eye, obtained the position of human eye by Eye Recognition by front-facing camera, the positional information determination eyes of user in the image taken at front-facing camera according to human eye departs from the angle at display screen center.Obtain human eye can arrange according to actual needs to the mode of mobile phone display screen centre distance, do not do limiting further at this, such as, can first at different distance photographic images masterplate, then by the width of human eye in each image masterplate with apart from corresponding.In the image finally taken according to above-mentioned front-facing camera, the width determination human eye of human eye is to the distance of mobile phone display screen.Particularly, in the present embodiment, can determine relative to the screen size of the Distance geometry mobile phone of the distance at mobile phone display screen center, mobile phone and subject the size needing cutting according to eyes of user, depart from the position of the angle determination cutting at display screen center according to eyes of user.
Further, with reference to Fig. 4, based on above-described embodiment, in the present embodiment, also comprise after above-mentioned steps S40:
Step S70, the electricity of detecting real-time mobile phone;
Step S80, when the electricity of mobile phone is less than the second preset value, closes camera, and controls mobile phone and exit described transparent background display mode.
The size of above-mentioned second preset value can be arranged according to actual needs, and an interface for users also can be provided to carry out arranging the size of this second preset value.Preferably, this second preset value is 30 percent.Be understandable that because camera is opened, and to there is a large amount of electric quantity consumptions at running background.In the present embodiment, by the electricity of detecting real-time mobile phone, and when the electricity of mobile phone is less than 30 percent, close camera, and control mobile phone and exit described transparent background display mode.Now to keep current desktop background constant, also desktop background can be set to the picture entering transparent background display mode front desktop background.
The present invention also provides a kind of desktop background display unit based on Rimless mobile phone, and with reference to Fig. 5, in one embodiment, the desktop background display unit based on Rimless mobile phone provided by the invention comprises:
First acquisition module 100, for entering transparent background display mode at mobile phone, obtains ambient image by camera;
The desktop background display unit based on Rimless mobile phone that the present embodiment provides is mainly used in mobile phone and carries out display and control to the background picture of main display display interface.The side of above-mentioned Rimless mobile phone is a part for display screen (touch-screen), for receiving the touch operation of user's input, particularly, the both sides of Rimless mobile phone are the both sides of mobile phone Width, the side of mobile phone is Qu Ping, thus makes the front of mobile phone be display screen.The display mode of mobile phone can comprise general display mode and transparent background display mode, particularly, general display mode is shown as desktop background for user is arranged desktop picture, and Transparence Display pattern is catch current ambient image, and the ambient image of seizure is set to desktop background.
It should be noted that the mode that general display mode and Transparence Display pattern switch can be arranged according to actual needs, such as, can input gesture of specifically sliding on a display screen, switch with start-up mode; Also can export preset operation interface by mobile phone and select whether enter transparent background display mode for user, with the effect switched to expression patterns.After mobile phone switches to transparent background display mode, first control camera at running background, and obtain ambient image by camera.
Cutting module 200, the screen size for the Distance geometry mobile phone according to mobile phone and subject carries out cutting to the image obtained;
Adjusting module 300, for the image after cutting being carried out amplification process, to make the picture size after described cutting consistent with the screen size of described mobile phone;
Module 400 is set, shows on a display screen as desktop background for the image after process will be amplified.
In the present embodiment, according to the image-region that the Size calculation mobile phone of the display screen of the Distance geometry mobile phone of mobile phone and subject blocks, according to calculating the image-region obtained, cutting being carried out to the image obtained, only retaining mobile phone to make the image taken by camera and blocking corresponding image-region.Then the image after cutting is carried out pixel and amplify process, ensure that the picture size after cutting is consistent with the screen size of mobile phone; On a display screen using the image after amplification as desktop background display finally.
Should be noted that, the mode measuring the distance of mobile phone and subject can be arranged according to actual needs, do not do at this and limit further, such as, ultrasonic wave is set and occurs and receiving system carries out ultrasonic ranging, or carry out measuring and calculating distance by the focal length of the image of camera preview.
The embodiment of the present invention, when mobile phone enters transparent background display mode, obtains ambient image by camera, and the screen size according to the Distance geometry mobile phone of mobile phone and subject carries out cutting to the image obtained; Image after cutting is carried out amplification process, to make the picture size after described cutting consistent with the screen size of described mobile phone; The image amplified after process is shown on a display screen as desktop background.Thus achieve the effect utilizing environment picture as desktop background, make mobile phone display screen be equivalent to the effect of clear glass, therefore can improve the picture display effect of mobile phone display screen, reduce the operation easier that desktop background is changed simultaneously.
Further, with reference to Fig. 6, based on above-described embodiment, in the present embodiment, the above-mentioned desktop background display unit based on Rimless mobile phone also comprises:
Whether the first detecting module 500, be greater than the first preset value for the distance detecting mobile phone movement;
When whether described first acquisition module 100 is specifically for being greater than the first preset value when the distance surveying mobile phone movement, when mobile phone enters transparent background display mode, obtain ambient image by camera.
In the present embodiment, whether be greater than the first preset value by the distance of detecting mobile phone movement, only when the distance of mobile phone movement is greater than the first preset value, just again upgrade mobile phone desktop background, thus prevent due to mobile phone shake, cause needing the ambient image to camera obtains to process in real time.Therefore this embodiment reduces the treating capacity of view data, improve the speed that mobile phone runs.It should be noted that the size of above-mentioned first preset value can be arranged according to actual needs, do not do limiting further at this.
Further, with reference to Fig. 7, based on above-described embodiment, in the present embodiment, the above-mentioned desktop background display unit based on Rimless mobile phone also comprises:
Second acquisition module 600, to depart from the angle at display screen center relative to the Distance geometry eyes of user at mobile phone display screen center for obtaining eyes of user;
Described cutting module 200, the screen size specifically for the Distance geometry mobile phone departing from the angle at display screen center, mobile phone and subject according to eyes of user relative to the distance at mobile phone display screen center, eyes of user carries out cutting to the image obtained.
In the present embodiment, obtain and comprise the image of human eye, obtained the position of human eye by Eye Recognition by front-facing camera, the positional information determination eyes of user in the image taken at front-facing camera according to human eye departs from the angle at display screen center.Obtain human eye can arrange according to actual needs to the mode of mobile phone display screen centre distance, do not do limiting further at this, such as, can first at different distance photographic images masterplate, then by the width of human eye in each image masterplate with apart from corresponding.In the image finally taken according to above-mentioned front-facing camera, the width determination human eye of human eye is to the distance of mobile phone display screen.Particularly, in the present embodiment, can determine relative to the screen size of the Distance geometry mobile phone of the distance at mobile phone display screen center, mobile phone and subject the size needing cutting according to eyes of user, depart from the position of the angle determination cutting at display screen center according to eyes of user.
Further, with reference to Fig. 8, based on above-described embodiment, in the present embodiment, the above-mentioned desktop background display unit based on Rimless mobile phone also comprises:
Second detecting module 700, for the electricity of detecting real-time mobile phone;
Control module 800, for when the electricity of mobile phone is less than the second preset value, closes camera, and controls mobile phone and exit described transparent background display mode.
The size of above-mentioned second preset value can be arranged according to actual needs, and an interface for users also can be provided to carry out arranging the size of this second preset value.Preferably, this second preset value is 30 percent.Be understandable that because camera is opened, and to there is a large amount of electric quantity consumptions at running background.In the present embodiment, by the electricity of detecting real-time mobile phone, and when the electricity of mobile phone is less than 30 percent, close camera, and control mobile phone and exit described transparent background display mode.Now to keep current desktop background constant, also desktop background can be set to the picture entering transparent background display mode front desktop background.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.