Specific implementation mode
For the ease of the understanding of those skilled in the art, the invention will be further described below in conjunction with the accompanying drawings, notIt can be used for limiting the scope of the invention.It should be noted that in the absence of conflict, the embodiment in the application and realityThe various modes applied in example can be combined with each other.
Referring to Fig. 1, the embodiment of the present invention proposes a kind of terminal control method, the method includes:
Step 200, in the case where terminal is that screen is placed upward, the corresponding image of target placement region is obtained;
In the embodiment of the present invention, to be set as one side for screen, on one side to be carried out for the terminal for non-screen materialIllustrate, face-up place refers to that terminal is placed upward for screen.There is the end of display screen in addition, terminal can also be two sidesEnd, or the terminal with other display screen set-up modes.
Step 400, the image obtained by screen display.
Wherein, in step 200, the relevant image of the acquisition target placement region includes:
Initial background image is obtained by camera;The coverage of the initial background image includes that the target is placedRegion;
Obtain the height h and angle of terminal distance objective placement region;
According to the height h and angle, θ of acquisition, determine that the image of the subregion in initial background image is that the target is putSet the corresponding image in region.
For example, a kind of preferably calculation is:
Determine that the image of the subregion in initial background image includes:
Obtain the length a, a=2*h*tan (θ/2) of the initial background image that background image takes;
Obtain the image length range b of target placement region;Wherein, in initial background image target rest area is taken from centreThe image length range in domain, ratio are b/ (a/2);
Computational methods are similar with length b methods on width;It specifically includes:
Obtain the length c, c=2*h*tan (θ/2) of the initial background image that background image takes;
Obtain the image length range d of target placement region;Wherein, in initial background image target rest area is taken from centreThe image length range in domain, ratio are d/ (c/2);
Wherein, it is the corresponding image-region of target placement region that length, which is the region that b width is d, that is, in Fig. 3The occupied regions M of terminal.
Wherein, in step 200, after obtaining the corresponding image of target placement region, to the target placement region pairThe boundary for the image answered executes Fuzzy Processing.
Wherein, the method further includes:
Step 300, the corresponding color value of target placement region is obtained;
Step 500, the color value obtained by chromic material display in frame region.
Wherein, the method further includes:
In the case where terminal is that the back side is placed upward,
Obtain the corresponding color value of target placement region;
In the color value that the back side of terminal is obtained by chromic material display.
Wherein, the corresponding color value of any acquisition target placement region in the following way:
Initial background image is obtained by camera;The coverage of the initial background image includes that the target is placedRegion;
According to the height h and angle of acquisition, determine that the image of the subregion in initial background image is that the target is putSet the corresponding image in region;
Wherein, angle is determined by the visual angle of camera;
The corresponding color value of target placement region is obtained according to the corresponding image of target placement region.
Wherein, a kind of mode obtaining color value is:Calculate each pixel color value in the corresponding image of target placement regionAverage value, using the average value as the corresponding color value of target placement region.
Mobile phone camouflaging mode provided by the invention is suitable for all end products.In the embodiment of the present invention, in end productWhen starting spoofing mode, current carrier surface picture is absorbed, according to position, camera shooting when the background picture of intake, terminal takingHead visual angle, the parameters such as terminal screen size, are calculated, image procossing, and treated image and color value are presented in an optimized wayOn at least one of screen, frame, rear cover.Wherein optimization includes parts several in this way:First, according to the fitness of environment of surroundingLCD brightness is reduced, guarantee is consistent with ambient enviroment, not only makes terminal and carrier one integrated mass in this way, but also reached economize on electricityEffect, while in order to economize on electricity, it can also be by suitably reducing the schemes such as dominant frequency;Second, for having the terminal of frame, frame and endRear cover when end rear cover is placed upward is equally handled, i.e., if they are LCD or the material of other displayable colours, basisThe environment of the above-mentioned color value handled out and surrounding, suitably adjusts color value, and display is covered after frame and terminal;Third, due toThe material of displayable colour is generally all more expensive, so the terminal enclosure of heat discoloration can also be selected, utilizes terminal backstageSome are run using so that mobile phone rises to corresponding temperature, the difference for passing through temperature controls the change of color.Through the invention bothThe risk that terminal exposure is lost can be reduced, can also meet the needs of current user individual setting terminal.
It is illustrated with reference to specific implement scene.
Referring to Fig. 2, an embodiment of the present invention provides a kind of terminal control methods, including:
S101, the request that user starts spoofing mode is received, it can be through but not limited to the side such as menu, gesture, shortcut keyFormula.
S102, obtain the image that user takes pictures above the expected position for placing terminal, can through but not limited to button,The modes such as gesture, shortcut key.If terminal is face-up, taken pictures using rear camera;If terminal be reverse side upward,Then taken pictures using front camera.
S103, carrying object image is stored in specific region.
S104, detection simultaneously record take pictures the distance between moment terminal and carrier.
S105, the visual angle according to camera, terminal calculate at a distance from carrier surface, the parameters such as terminal screen sizeTerminal position shared in the carrier surface image of shooting.About calculating, referring to method as indicated at 3:
Wherein, h is distance of the terminal according to carrier surface;
As shown in figure 3, according to the camera visual angle FOE and distance h on terminal carrier surface, carrier table can be calculatedFace image-region can calculate the band of position that terminal projects carrier surface image further according to terminal screen size,It is exactly that terminal is placed into after carrier by the image-region of covering, such as the region that M illustrates in figure.
S106, according to the output of computing system in S105, the extraction terminal institute from the carrier surface image that S103 is storedOccupy the image of region M, and does Gaussian Blur or other Fuzzy Processings to image boundary.
S107, according to carrier surface image, calculate optimal color value, the color value as frame or rear cover.Here mostExcellent color value can directly take most color values, can also use other optimal color value methods of calculating.
If S108, terminal are face-up, the image in the regions M of S106 outputs is shown on a terminal screen, on sideFrame shows the calculated optimal color values of S107;If terminal be reverse side upward, in rear shell show S107 it is calculated optimalColor value.
In S108, displaying uses following optimal way:First, according to the fitness of environment of surrounding reduce LCD brightness, ensure andAmbient enviroment is consistent, not only makes terminal and carrier one integrated mass in this way, but also has achieved the effect that economize on electricity, while in order to economize on electricity,It can also be by suitably reducing the schemes such as dominant frequency;Second, for there is the terminal of frame, when frame and terminal rear cover are placed upwardRear cover is equally handled, i.e., if they are LCD or the material of other displayable colours, according to the above-mentioned color value handled out withAnd the environment of surrounding, color value is suitably adjusted, display is covered after frame and terminal;Third, due to the material one of displayable colourAs it is all more expensive, so the terminal enclosure of heat discoloration can also be selected, using terminal running background, some applications make to go smoothlyMachine rises to corresponding temperature, and the change of color is controlled by the difference of temperature.
Can also exothermic material or heating element be set close to the position of shell, to make by exothermic materialThe variation of color occurs for the terminal enclosure of heat discoloration.
Certainly, other subsystems except display systems could not successfully obtain screen picture or side if there is problemWhen frame rear cover color value, we image appropriate can also be chosen from preset image library or color value is shown, this can alsoA kind of optional mode of terminal is set as user individual.
By above-mentioned processing, make terminal screen, frame, rear cover and carrier one integrated mass, reduces the wind that exposure is lostDanger can also meet the needs of current user individual setting terminal.
Referring to Fig. 4, terminal control mechanism provided in an embodiment of the present invention may include four submodules:
Camera system, user for spoofing mode when taking pictures, recording carrying object surface image.When mobile phone is face-up,Using postposition camera system, when mobile phone reverse side upward when, use preposition camera system.
Distance measurement system, user when taking pictures for spoofing mode, detection record terminal and carrier surface between away fromFrom.
Computing system, according to the visual angle of camera, terminal at a distance from carrier surface, the parameters such as terminal screen size,Computing terminal position shared in the carrier surface image of shooting.
Image processing system, including two parts,
First, screen picture is handled, i.e., according to the output of computing system, extracted shared by terminal from carrier surface imageThe image of position, and Gaussian Blur or other Fuzzy Processings are done to image boundary;
Second is that frame/rear cover color value processing, if there are the frame of changeable colour or rear covers for terminal, according to carrier tableFace image calculates optimal color value, the color value as frame or rear cover.Here optimal color value can directly take most color values,Other optimal color value methods of calculating can also be used.
Display systems show the image of image processing system first part output, frame or rear cover are set as on the screenThe calculated optimal color value of image processing system second part.
Certainly, other subsystems except display systems could not successfully obtain screen picture or side if there is problemWhen frame rear cover color value, we image appropriate can also be chosen from preset image library or color value is shown, this can alsoA kind of optional mode of terminal is set as user individual.
Based on same as the previously described embodiments or similar design, the embodiment of the present invention also provides a kind of terminal control mechanism,It is arranged in terminal, a kind of terminal control mechanism proposed by the present invention includes:
Camouflaged data acquiring unit, in the case where terminal is that screen is placed upward, obtaining target placement region pairThe image answered;
Pretend output unit, the image for being obtained by the screen display.
In the embodiment of the present invention, described device further includes:
Pretend start unit, for receiving camouflage request input by user;And the Camouflaged data acquiring unit is notified to obtainTake the corresponding image of target placement region;
In the embodiment of the present invention, the Camouflaged data acquiring unit includes initial pictures acquisition module and computing module;
The initial pictures acquisition module is used to obtain initial background image by camera;The initial background imageCoverage includes the target placement region;
The initial pictures acquisition module is additionally operable to obtain the height h and angle of terminal distance objective placement region;
The computing module acquisition module is used for height h and angle according to acquisition, determines the portion in initial background imageSubregional image is the corresponding image of the target placement region.
In the embodiment of the present invention, the computing module acquisition module is additionally operable to the corresponding image of the target placement regionBoundary execute Fuzzy Processing.
In the embodiment of the present invention, described device further includes:
The Camouflaged data acquiring unit is additionally operable to obtain the corresponding color value of target placement region;
The camouflage output unit is additionally operable to the color value obtained by chromic material display in frame region.
In the embodiment of the present invention, described device further includes:
The Camouflaged data acquiring unit is additionally operable to, in the case where terminal is that screen is placed downward, obtain target rest areaThe corresponding color value in domain;
The camouflage output unit is additionally operable to by described in terminal upward the surface chromic material display acquisition of one sideColor value.
Based on same as the previously described embodiments or similar design, the embodiment of the present invention also provides a kind of terminal, the terminalIncluding any terminal control device provided in an embodiment of the present invention.
Based on same as the previously described embodiments or similar design, the embodiment of the present invention also provides a kind of terminal, including storageDevice, processor and it is stored in the computer program that can be run on the memory and on the processor, the processor is heldThe processing for any terminal control method that inventive embodiments provide is realized when the row computer program.
It should be noted that embodiment described above be merely for convenience of it will be understood by those skilled in the art that, andIt is not used in and limits the scope of the invention, under the premise of not departing from the inventive concept of the present invention, those skilled in the art coupleAny obvious replacement and improvement that the present invention is made etc. are within protection scope of the present invention.