CN105975183A - Screen locking picture processing method and device - Google Patents

Screen locking picture processing method and device Download PDF

Info

Publication number
CN105975183A
CN105975183A CN201610361954.4A CN201610361954A CN105975183A CN 105975183 A CN105975183 A CN 105975183A CN 201610361954 A CN201610361954 A CN 201610361954A CN 105975183 A CN105975183 A CN 105975183A
Authority
CN
China
Prior art keywords
picture
screen locking
candidate
angle
locking picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610361954.4A
Other languages
Chinese (zh)
Inventor
张涛
汪平仄
张旭华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610361954.4A priority Critical patent/CN105975183A/en
Publication of CN105975183A publication Critical patent/CN105975183A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour

Abstract

The invention discloses a screen locking picture processing method and device, and relates to the technical field of communication. The method comprises the steps that a candidate screen locking picture is obtained; the picture angle of the candidate screen locking picture is determined, and the picture angle is the included angle between the direction of the candidate screen locking picture and the direction of a screen; when the picture angle of the candidate screen locking picture exceeds the set range, the angle of the candidate screen locking picture is corrected according to the picture angle of the candidate screen locking picture; the candidate screen locking picture obtained after angle correction is adopted as a screen locking picture. According to the screen locking picture processing method and device, the candidate screen locking picture is firstly obtained, the picture angle of the candidate screen locking picture is determined, then the candidate screen locking picture is corrected according to the picture angle, the picture direction of the candidate screen locking picture is corrected to be consistent with the direction of the screen, then the candidate screen locking picture is adopted as the screen locking screen, therefore, it is avoided that a reverse picture or transverse picture appears on a screen locking interface, and the attractiveness of the screen locking interface is improved.

Description

A kind of screen locking image processing method and device
Technical field
It relates to communication technical field, particularly relate to a kind of screen locking image processing method and device.
Background technology
People are daily during using mobile terminal, all can use the screen locking function of mobile terminal.In order to beautify locking screen interface, people would generally arrange a screen locking picture.
In a kind of screen locking mode, plurality of pictures as the candidate of screen locking picture, is occurred at random by people at locking screen interface, thus reaches landscaping effect.
But, owing to upside down or picture sidewards as the plurality of pictures of candidate's screen locking picture there may be, if upside down or picture sidewards occurs on locking screen interface, the attractive in appearance of locking screen interface can be affected.
Summary of the invention
For overcoming problem present in correlation technique, the disclosure provides a kind of screen locking image processing method and device.
First aspect according to disclosure embodiment, it is provided that a kind of screen locking image processing method, described method includes:
Obtain candidate's screen locking picture;
Determining the picture angle of described candidate's screen locking picture, described picture angle is the angle between direction and the direction of screen of described candidate's screen locking picture;
When the picture angle of described candidate's screen locking picture is beyond set point, according to the picture angle of described candidate's screen locking picture, described candidate's screen locking picture is carried out angle correct;
Use the described candidate's screen locking picture after angle correct as screen locking picture.
In the disclosure, first obtain candidate's screen locking picture, determine the picture angle of candidate's screen locking picture, if the picture angle of candidate's screen locking picture exceeds set point, then explanation candidate's screen locking picture needs to carry out angle adjustment, now according to picture angle, candidate's screen locking picture is corrected, so that the picture correction for direction of candidate's screen locking picture is consistent to the direction with screen, then screen locking picture it is re-used as, thus avoid upside down or picture sidewards occurs on locking screen interface, improve the aesthetics of locking screen interface.
In a kind of implementation of the disclosure, the described picture angle determining described candidate's screen locking picture, including:
Described candidate's screen locking picture is normalized, obtains candidate's screen locking picture of pre-set dimension;
Candidate's screen locking picture of described pre-set dimension is classified, to determine the picture angle of described candidate's screen locking picture by the grader using training in advance.
In this implementation, being determined the picture angle of candidate's screen locking picture by grader, processing speed is fast.
In the another kind of implementation of the disclosure, described grader is four graders, and described four graders are for being divided into 0 °, 90 °, 180 ° and 270 ° of four class by described candidate's locking screen interface by picture angle.
Carry out picture angle classification in the manner described above, be possible not only to the picture detecting sidewards or upside down, and classification is less, classify relatively simple.
In the another kind of implementation of the disclosure, described set point is:
[0 °, 90 °) ∪ (270 °, 360 °].
In this implementation, set point is less than 90 ° or more than 270 °, during beyond this scope, then needs to be corrected, and this range set can realize sidewards or the correction of picture that upside down.
In the another kind of implementation of the disclosure, the described picture angle according to described candidate's screen locking picture carries out angle correct to described candidate's screen locking picture, including:
Being rotated counterclockwise by described candidate's screen locking picture, the anglec of rotation is A;Or,
Being turned clockwise by described candidate's screen locking picture, the anglec of rotation is 360-A;
Wherein, A is the picture angle of described candidate's screen locking picture, 360 ° of > A > 0 °.
In this implementation, when candidate's screen locking picture needs timing, can realize by turning clockwise and rotating two ways counterclockwise.
In the another kind of implementation of the disclosure, described acquisition candidate's screen locking picture, including:
When reaching to set time point or the screen locking through set point number, obtain described candidate's screen locking picture.
In the another kind of implementation of the disclosure, described method also includes:
When the picture angle of described candidate's screen locking picture is in described set point, use described candidate's screen locking picture as screen locking picture.
In the another kind of implementation of the disclosure, described candidate's screen locking picture is the photo in baby's photograph album.
In this reality mode, use the photo in baby's photograph album as candidate's screen locking picture so that screen locking picture is more meaningful.
Second aspect according to disclosure embodiment, it is provided that a kind of screen locking picture processing device, described device includes:
Acquisition module, is used for obtaining candidate's screen locking picture;
Determining module, for determining the picture angle of described candidate's screen locking picture, described picture angle is the angle between direction and the direction of screen of described candidate's screen locking picture;
Correction module, for when the picture angle of described candidate's screen locking picture is beyond set point, carrying out angle correct according to the picture angle of described candidate's screen locking picture to described candidate's screen locking picture;
Screen lock module, the described candidate's screen locking picture after using angle correct is as screen locking picture.
In a kind of implementation of the disclosure, described determine module, be used for:
Described candidate's screen locking picture is normalized, obtains candidate's screen locking picture of pre-set dimension;
Candidate's screen locking picture of described pre-set dimension is classified, to determine the picture angle of described candidate's screen locking picture by the grader using training in advance.
In the another kind of implementation of the disclosure, described grader is four graders, and described four graders are for being divided into 0 °, 90 °, 180 ° and 270 ° of four class by described candidate's locking screen interface by picture angle.
In the another kind of implementation of the disclosure, described set point is:
[0 °, 90 °) ∪ (270 °, 360 °].
In the another kind of implementation of the disclosure, described correction module, it is used for:
Being rotated counterclockwise by described candidate's screen locking picture, the anglec of rotation is A;Or,
Being turned clockwise by described candidate's screen locking picture, the anglec of rotation is 360-A;
Wherein, A is the picture angle of described candidate's screen locking picture, 360 ° of > A > 0 °.
In the another kind of implementation of the disclosure, described acquisition module, it is used for:
When reaching to set time point or the screen locking through set point number, obtain described candidate's screen locking picture.
In the another kind of implementation of the disclosure, described screen lock module, it is used for:
When the picture angle of described candidate's screen locking picture is in described set point, use described candidate's screen locking picture as screen locking picture.
In the another kind of implementation of the disclosure, described candidate's screen locking picture is the photo in baby's photograph album.
The third aspect according to disclosure embodiment, it is provided that a kind of screen locking picture processing device, described device includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Obtain candidate's screen locking picture;
Determining the picture angle of described candidate's screen locking picture, described picture angle is the angle between direction and the direction of screen of described candidate's screen locking picture;
When the picture angle of described candidate's screen locking picture is beyond set point, according to the picture angle of described candidate's screen locking picture, described candidate's screen locking picture is carried out angle correct;
Use the described candidate's screen locking picture after angle correct as screen locking picture.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect:
In the disclosure, first obtain candidate's screen locking picture, determine the picture angle of candidate's screen locking picture, then according to picture angle, candidate's screen locking picture is corrected, so that the picture correction for direction of candidate's screen locking picture is consistent to the direction with screen, then it is re-used as screen locking picture, thus avoids upside down or picture sidewards occurs on locking screen interface, improve the aesthetics of locking screen interface.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, the disclosure can not be limited.
Accompanying drawing explanation
HereinAccompanying drawingIt is merged in description and constitutes the part of this specification, it is shown that meet embodiments of the invention, and for explaining the principle of the present invention together with description.
Figure 1It is according to the application scenarios shown in an exemplary embodimentFigure
Figure 2It it is the flow process according to a kind of screen locking image processing method shown in an exemplary embodimentFigure
Figure 3It it is the flow process according to a kind of screen locking image processing method shown in an exemplary embodimentFigure
Figure 3aIt it is the signal before correcting according to the candidate's screen locking picture shown in an exemplary embodimentFigure
Figure 3bIt it is the signal after correcting according to the candidate's screen locking picture shown in an exemplary embodimentFigure
Figure 4It it is the flow process according to a kind of screen locking image processing method shown in an exemplary embodimentFigure
Figure 5It it is the frame according to a kind of screen locking picture processing device shown in an exemplary embodimentFigure
Figure 6It it is the frame according to a kind of screen locking picture processing device shown in an exemplary embodimentFigure
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example representsIn accompanying drawing.Explained below relates toAccompanying drawingTime, unless otherwise indicated, differentIn accompanying drawingSame numbers represent same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they are only with the most appendedClaimThe example of the apparatus and method that some aspects that described in detail in book, the present invention are consistent.
For the ease of the description of embodiment, below first simply introduce the application scenarios of embodiment in the disclosure.Figure 1It is according to the application scenarios shown in an exemplary embodimentFigure, seeFigure 1, it is smart phone, intelligent watch, panel computer etc. that this scene includes that terminal unit 100, terminal unit 100 include but not limited to.
It should be noted that the apparatus described above kind is only for example, this is not restricted by the disclosure.
Figure 2It it is the flow process according to a kind of screen locking image processing method shown in an exemplary embodimentFigure,Such as figure 2Shown in, this screen locking image processing method terminal unit be applicable to aforementioned scene, comprise the following steps:
In step slo, candidate's screen locking picture is obtained.
Wherein, candidate's screen locking picture refers to, the picture that can serve as screen locking picture that user sets.
Alternatively, the method can also include:
Set candidate's screen locking picture.The mode setting candidate's screen locking picture includes but not limited to that user passes through the screen locking setting options in the setting options of terminal unit, specify the acquisition photograph album as candidate's screen locking picture in a photograph album, or specifying plurality of pictures as candidate's screen locking picture, this plurality of pictures can be in one or more photograph albums.
Correspondingly, obtain candidate's screen locking picture, may include that the picture or file set from user and select candidate's screen locking picture.
In the present embodiment, obtaining candidate's screen locking picture both can be to obtain candidate's screen locking picture, it is also possible to be to obtain multiple candidate's screen locking pictures, even all candidate's screen locking pictures.
In step s 11, determining the picture angle of candidate's screen locking picture, picture angle is the angle between direction and the direction of screen of candidate's screen locking picture.
Wherein, the direction of candidate's screen locking picture can be the direction of top court of institute of the head of personage, animal etc. in picture or building.In the present embodiment, the direction of screen is the direction from screen bottom to top, screen bottom is that near the bottom of terminal unit, (terminal unit is provided with microphone, one end of HOME key to screen, namely hand-held one end) one end, screen top is screen near the one end on the top one end of photographic head, receiver (terminal unit be provided with) of terminal unit.
In the present embodiment, can use grader that the picture angle of candidate's screen locking picture is classified, thus obtain the picture angle of candidate's screen locking picture.
In a kind of possible implementation, picture angle can be divided into 0 °, 90 °, 180 ° and 270 ° of four class, so carries out the picture that picture angle classification is possible not only to detect sidewards or upside down, and classification is less, classifies relatively simple.Wherein, the picture of 0 ° of direction equidirectional typically referred to screen, and sequentially pass through 90 °, 180 ° and 270 ° along rotating clockwise.Certainly in the implementation that other are possible, it is also possible to according to setting gradually 90 °, 180 ° and 270 ° counterclockwise, the disclosure is without limitation.
In the implementation that other are possible, picture angle is further divided into more or less type, and in every kind of mode classification, picture angle can be arranged according to equispaced, it is also possible to being configured according to irregular mode, the disclosure is without limitation.
In step s 12, when the picture angle of candidate's screen locking picture is beyond set point, according to the picture angle of candidate's screen locking picture, candidate's screen locking picture being carried out angle correct, the direction making candidate's screen locking picture is consistent with the direction of screen.
Such as, set point regulation includes less than 90 °, then for candidate's screen locking picture that picture angle is 90 °, needs it according to the direction half-twist (or 270 °) of (or clockwise) counterclockwise, return to 0 °, be correction.
It should be noted that in the disclosure, when the picture angle of candidate's screen locking picture is 0 °, it is not necessary to be corrected.
In the present embodiment, when step S10 obtaining candidate's screen locking picture and being to obtain candidate's screen locking picture, determined the picture angle of this candidate's screen locking picture by step S11, if its picture angle exceedes set point, directly this pictures is corrected in step s 12.
When the whole picture obtained in step S10 in the photograph album or plurality of pictures that candidate's screen locking picture is acquisition multiple candidate screen locking picture even users setting, the picture angle of the candidate's screen locking picture got is determined by step S11, wherein picture angle can be corrected beyond whole pictures of set point, select as screen locking picture for follow-up;Only picture angle can also be corrected beyond of set point in step s 12, using as screen locking picture, after i.e. comprising determining that out that picture angle is beyond candidate's screen locking picture of set point, from determining that picture angle selects a correction carrying out picture angle exceeding candidate's screen locking picture of set point, selection mode can be random.
In step s 13, use the candidate's screen locking picture after angle correct as screen locking picture.
When a pictures is only corrected by step S12, step S13 directly uses picture that step S12 corrects as screen locking picture.
When plurality of pictures is corrected by step S12, the candidate's screen locking picture after angle correct is used to may include that random from the plurality of pictures after correction or order selects candidate's screen locking picture as screen locking picture as screen locking picture.
In the disclosure, first obtain candidate's screen locking picture, determine the picture angle of candidate's screen locking picture, then according to picture angle, candidate's screen locking picture is corrected, so that the picture correction for direction of candidate's screen locking picture is consistent to the direction with screen, then it is re-used as screen locking picture, thus avoids upside down or picture sidewards occurs on locking screen interface, improve the aesthetics of locking screen interface.
Figure 3It it is the flow process according to a kind of screen locking image processing method shown in an exemplary embodimentFigure,Such as figure 3Shown in, this screen locking image processing method terminal unit be applicable to aforementioned scene, comprise the following steps:
In step S20, obtain candidate's screen locking picture.
Wherein, step S20 may include that
When reaching to set time point or the screen locking through set point number, obtain candidate's screen locking picture.
The most in one implementation, when reaching the time point that user sets, then mobile terminal changes screen locking picture, changes such as integral point or every day is changed, now acquisition for mobile terminal candidate screen locking picture, obtain screen locking picture to process.In another kind of implementation, changing screen locking picture can also be arranged according to screen locking number of times, such as, changes after each screen locking or unlocking screen, obtains candidate's screen locking picture after each screen locking or unlocking screen, obtains screen locking picture to process.
Wherein, candidate's screen locking picture refers to, the picture that can serve as screen locking picture that user sets.
Alternatively, the method can also include:
Set candidate's screen locking picture.The mode setting candidate's screen locking picture includes but not limited to that user passes through the screen locking setting options in the setting options of terminal unit, specify the acquisition photograph album as candidate's screen locking picture in a photograph album, or specifying plurality of pictures as candidate's screen locking picture, this plurality of pictures can be in one or more photograph albums.
Correspondingly, obtain candidate's screen locking picture, may include that the picture or file set from user and select candidate's screen locking picture.
In the present embodiment, obtain candidate's screen locking picture both can be obtain candidate's screen locking picture, it is also possible to be obtain multiple candidate screen locking picture even users set photograph album or plurality of pictures in wholeFigureSheet.
In the step s 21, determining the picture angle of candidate's screen locking picture, picture angle is the angle between direction and the direction of screen of candidate's screen locking picture.
Wherein, the direction of candidate's screen locking picture can be the direction of top court of institute of the head of personage, animal etc. in picture or building.In the present embodiment, the direction of screen is the direction from screen bottom to top, screen bottom is that near the bottom of terminal unit, (terminal unit is provided with microphone, one end of HOME key to screen, namely hand-held one end) one end, screen top is screen near the one end on the top one end of photographic head, receiver (terminal unit be provided with) of terminal unit.
As Figure 3aShown in, the direction of candidate's screen locking picture is direction A, and the direction of screen is direction B, thenFigure 3aThe picture angle of middle candidate's screen locking picture is 90 °.AgainSuch as figure 3bShown in, the direction of candidate's screen locking picture and the direction of screen are direction B, thenFigure 3bThe picture angle of middle candidate's screen locking picture is 0 °.
In the present embodiment, determine the picture angle of candidate's screen locking picture, including:
Candidate's screen locking picture is normalized, obtains candidate's screen locking picture of pre-set dimension, such as, be normalized to 224*224 size;
Candidate's screen locking picture of pre-set dimension is classified, to determine the picture angle of candidate's screen locking picture by the grader using training in advance.
In a kind of possible implementation, grader is four graders, and four graders are for being divided into 0 °, 90 °, 180 ° and 270 ° of four class by candidate's locking screen interface by picture angle.So carry out the picture that picture angle classification is possible not only to detect sidewards or upside down, and classification is less, classifies relatively simple.Wherein, the picture of 0 ° of direction equidirectional typically referred to screen, and sequentially pass through 90 °, 180 ° and 270 ° along rotating clockwise.Certainly in the implementation that other are possible, it is also possible to according to setting gradually 90 °, 180 ° and 270 ° counterclockwise, the disclosure is without limitation.
In the implementation that other are possible, picture can also be divided into more or less type by grader, and in every kind of mode classification, the picture angle of each classification of grader can be arranged according to equispaced, can also be configured according to irregular mode, the disclosure is without limitation.
Further, before step S21, the method can also include: training grader, and this grader is for classifying to candidate's screen locking picture of different picture angle.
Wherein, train grader, including:
The first step, obtaining picture angle respectively is 0 °, 90 °, 180 ° and the samples pictures of 270 °.
Such as, collect 0 °, 90 °, the photo of 180 ° and 270 ° each 100,000 as samples pictures.
Second step, carries out size normalization, such as, is normalized to 224*224 size samples pictures.
3rd step, uses convolutional neural networks to be trained samples pictures, obtains grader based on neural network model.
Training can use the samples pictures of tape label to realize, and such as, is marked angle, and 0 ° is labeled as 1, and 90 ° are labeled as 2, and 180 ° are labeled as 3, and 270 ° are labeled as 4.
Then we recycle convolutional neural networks (Convolutional Neural Network, be called for short CNN) and are trained, and network design is referred to the network structure of ImageNet and realizes, and wherein partial parameters has amendment.The weighted value of parameter in network is obtained by above-mentioned sample training.
In the present embodiment, classifier training generally uses graphic process unit (Graphics Processing Unit is called for short GPU) to complete.
In step S22, when the picture angle of candidate's screen locking picture is beyond set point, candidate's screen locking picture is carried out angle correct.
Wherein, set point is: [0 °, 90 °) ∪ (270 °, 360 °].
Wherein, step S22 may include that and rotated counterclockwise by candidate's screen locking picture, and the anglec of rotation is A;Or,
Being turned clockwise by candidate's screen locking picture, the anglec of rotation is 360-A;
Wherein, A is the picture angle of candidate's screen locking picture, 360 ° of > A > 0 °.
Such as, a is 90 °, as shown in Figure 3 a, for a candidate's screen locking picture being categorized as 90 °.By it according to direction half-twist counterclockwise, return to 0 °;Or, by its half-twist in clockwise direction, return to 0 °, obtain picture as shown in Figure 3 b.Said process is correction.
In the present embodiment, when step S20 obtaining candidate's screen locking picture and being to obtain candidate's screen locking picture, determined the picture angle of this candidate's screen locking picture by step S21, if its picture angle exceedes set point, directly this pictures is corrected in step S22.
When the whole picture obtained in step S20 in the photograph album or plurality of pictures that candidate's screen locking picture is acquisition multiple candidate screen locking picture even users setting, the picture angle of the candidate's screen locking picture got is determined by step S21, wherein picture angle both can be corrected beyond whole pictures of set point by step S22, select as screen locking picture for follow-up;Picture angle can also be only corrected by step S22 beyond of set point, using as screen locking picture, after i.e. comprising determining that out that picture angle is beyond candidate's screen locking picture of set point, from determining that picture angle selects a correction carrying out picture angle exceeding candidate's screen locking picture of set point, selection mode can be random.
In step S23, use the candidate's screen locking picture after angle correct as screen locking picture.
When a pictures is only corrected by step S22, step S23 directly uses picture that step S22 corrects as screen locking picture.
When plurality of pictures is corrected by step S22, the candidate's screen locking picture after angle correct is used to may include that random from the plurality of pictures after correction or order selects candidate's screen locking picture as screen locking picture as screen locking picture.
In step s 24, when the picture angle of candidate's screen locking picture is in set point, use candidate's screen locking picture as screen locking picture.
In the present embodiment, when step S20 obtaining candidate's screen locking picture and being to obtain candidate's screen locking picture, the picture angle of this candidate's screen locking picture is determined by step S21, and the picture angle of this pictures is when being in set point, directly use this pictures as screen locking picture in step S22.
When the whole picture obtained in step S20 in the photograph album or plurality of pictures that candidate's screen locking picture is acquisition multiple candidate screen locking picture even users setting, the picture angle of the candidate's screen locking picture got is determined by step S21, the picture that picture angle is in set point, can by these pictures and other alternative together as screen locking picture of pictures after step S22 corrects, from screen locking picture alternative random or order select picture as screen locking picture.Or, the picture that the picture angle only determined from step S21 is in set point selects screen locking picture.
In the disclosure, first obtain candidate's screen locking picture, determine the picture angle of candidate's screen locking picture, then according to picture angle, candidate's screen locking picture is corrected, so that the picture correction for direction of candidate's screen locking picture is consistent to the direction with screen, then it is re-used as screen locking picture, thus avoids upside down or picture sidewards occurs on locking screen interface, improve the aesthetics of locking screen interface.
Figure 4It it is the flow process according to a kind of screen locking image processing method shown in an exemplary embodimentFigure,Such as figure 4Shown in, this screen locking image processing method terminal unit be applicable to aforementioned scene, the method withFigure 3The difference of the screen locking image processing method provided is, in the method, candidate's screen locking picture is the photo in baby's photograph album, comprises the following steps:
In step s 30, when reaching to set time point or the screen locking through set point number, a photo is selected from baby's photograph album.
Baby's photograph album is arranged to candidate's screen locking picture and chooses photograph album the most in the present embodiment, setting up procedure may include that when terminal unit receive user open baby's photograph album screen locking function time, baby's photograph album is set to candidate's screen locking picture and chooses photograph album.
Further, the method can also include: sets up baby's photograph album.Set up baby's photograph album and may include that photo upload user shot is to server;The photo that user is uploaded by server is classified, thus photo user uploaded is divided into different photograph album by personage, including baby's photograph album;Terminal unit is by synchronizing acquisition baby's photograph album.
In step S31, determining the picture angle of this photo, picture angle includes 0 °, 90 °, 180 ° and 270 °.
Angle between direction and the direction of screen of photo during the picture angle of photo is baby's photograph album in baby's photograph album.
Wherein, in baby's photograph album, the direction of photo can be the direction of court of baby's head institute in photo.In the present embodiment, the direction of screen is the direction from screen bottom to top, screen bottom is that near the bottom of terminal unit, (terminal unit is provided with microphone, one end of HOME key to screen, namely hand-held one end) one end, screen top is screen near the one end on the top one end of photographic head, receiver (terminal unit be provided with) of terminal unit.
Wherein, the determination mode of the picture angle of photo in step S31, identical with the determination mode of the picture angle of candidate's screen locking picture in step S21, omit at this and describe in detail.
In step s 32, when the picture angle of this photo is not 0 °, this photo is carried out angle correct.
Wherein, step S32 carries out to this photo the mode of angle correct, identical with the mode that in step S22, candidate's screen locking picture is carried out angle correct, omit at this and describe in detail.
In step S33, use the photo after angle correct as screen locking picture.
In step S34, when the picture angle of this photo is 0 °, directly use this photo as screen locking picture.
In the disclosure, first obtain a photo in baby's photograph album, determine the picture angle of this photo, when the picture angle of this photo is not 0 °, this photo is carried out angle correct, use the photo after angle correct as screen locking picture;When the picture angle of this photo is 0 °, directly uses this photo as screen locking picture, thus avoid upside down or baby's photo sidewards occurs on locking screen interface, improve the aesthetics of locking screen interface.
Figure 5It it is the frame according to a kind of screen locking picture processing device shown in an exemplary embodimentFigure, this screen locking picture processing device can be a part for terminal unit or terminal unit, is used for realizingFigure 2~Figure 4Shown method,Such as figure 5Shown in, device includes:
Acquisition module 401, is used for obtaining candidate's screen locking picture;
Determining module 402, for determining the picture angle of candidate's screen locking picture, picture angle is the angle between direction and the direction of screen of candidate's screen locking picture;
Correction module 403, for when the picture angle of candidate's screen locking picture is beyond set point, candidate's screen locking picture being carried out angle correct according to the picture angle of candidate's screen locking picture, the direction making candidate's screen locking picture is consistent with the direction of screen;
Screen lock module 404, the candidate's screen locking picture after using angle correct is as screen locking picture.
In the disclosure, first obtain candidate's screen locking picture, determine the picture angle of candidate's screen locking picture, then according to picture angle, candidate's screen locking picture is corrected, so that the picture correction for direction of candidate's screen locking picture is consistent to the direction with screen, then it is re-used as screen locking picture, thus avoids upside down or picture sidewards occurs on locking screen interface, improve the aesthetics of locking screen interface.
Optionally it is determined that module 402, it is used for:
Candidate's screen locking picture is normalized, obtains candidate's screen locking picture of pre-set dimension;
Candidate's screen locking picture of pre-set dimension is classified, to determine the picture angle of candidate's screen locking picture by the grader using training in advance.
Alternatively, grader is four graders, and four graders are for being divided into 0 °, 90 °, 180 ° and 270 ° of four class by candidate's locking screen interface by picture angle.
Alternatively, set point is:
[0 °, 90 °) U (270 °, 360 °].
Alternatively, correction module 403, it is used for:
Being rotated counterclockwise by candidate's screen locking picture, the anglec of rotation is A;Or,
Being turned clockwise by candidate's screen locking picture, the anglec of rotation is 360-A;
Wherein, A is the picture angle of candidate's screen locking picture, 360 ° of > A > 0 °.
Alternatively, acquisition module 401, it is used for:
When reaching to set time point or the screen locking through set point number, obtain candidate's screen locking picture.
Alternatively, screen lock module 404, it is used for:
When the picture angle of candidate's screen locking picture is in set point, use candidate's screen locking picture as screen locking picture.
Alternatively, the photo during candidate's screen locking picture is baby's photograph album.
About the device in above-described embodiment, the concrete mode that wherein modules performs to operate has been described in detail in about the embodiment of the method, and explanation will be not set forth in detail herein.
Figure 6It it is the frame according to a kind of screen locking picture processing device 900 shown in an exemplary embodimentFigure.Such as, screen locking picture processing device 900 can be mobile terminal.
ReferenceFigure 6, screen locking picture processing device 900 can include following one or more assembly: processes assembly 902, memorizer 904, electric power assembly 906, multimedia groupware 908, audio-frequency assembly 910, the interface 912 of input/output (I/O), sensor cluster 914, and communications component 916.
Process assembly 902 and generally control the operation that the integrated operation of screen locking picture processing device 900, such as with display, call, data communication, camera operation and record operation are associated.Process assembly 902 and can include that one or more processor 920 performs instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 902 can include one or more module, it is simple to process between assembly 902 and other assemblies is mutual.Such as, process assembly 902 and can include multi-media module, with facilitate multimedia groupware 908 and process between assembly 902 mutual.
Memorizer 904 is configured to store various types of data to support the operation at equipment 900.The example of these data includes any application program for operation on screen locking picture processing device 900 or the instruction of method, contact data, telephone book data, message, picture, video etc..Memorizer 904 can be realized by any kind of volatibility or non-volatile memory device or combinations thereof, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that electric power assembly 906 is screen locking picture processing device 900 provide electric power.Electric power assembly 906 can include power-supply management system, one or more power supplys, and other generate, manage and distribute, with for screen locking picture processing device 900, the assembly that electric power is associated.
Multimedia groupware 908 is included in the screen of one output interface of offer between described screen locking picture processing device 900 and user.In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes that touch panel, screen may be implemented as touch screen, to receive the input signal from user.Touch panel includes that one or more touch sensor is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sense touch or the border of sliding action, but also detects the persistent period relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 908 includes a front-facing camera and/or post-positioned pick-up head.When screen locking picture processing device 900 is in operator scheme, during such as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each front-facing camera and post-positioned pick-up head can be a fixing optical lens system or have focal length and optical zoom ability.
Audio-frequency assembly 910 is configured to output and/or input audio signal.Such as, audio-frequency assembly 910 includes a mike (MIC), and when screen locking picture processing device 900 is in operator scheme, during such as call model, logging mode and speech recognition mode, mike is configured to receive external audio signal.The audio signal received can be further stored at memorizer 904 or send via communications component 916.In certain embodiments, audio-frequency assembly 910 also includes a speaker, is used for exporting audio signal.
I/O interface 912 provides interface for processing between assembly 902 and peripheral interface module, above-mentioned peripheral interface module can be keyboard, puts striking wheel, button etc..These buttons may include but be not limited to: home button, volume button, start button and locking press button.
Sensor cluster 914 includes one or more sensor, for providing the state estimation of various aspects for screen locking picture processing device 900.Such as, what sensor cluster 914 can detect screen locking picture processing device 900 opens/closed mode, the relative localization of assembly, the most described assembly is display and the keypad of screen locking picture processing device 900, sensor cluster 914 can also detect screen locking picture processing device 900 or the position change of screen locking 900 1 assemblies of picture processing device, the presence or absence that user contacts with screen locking picture processing device 900, screen locking picture processing device 900 orientation or acceleration/deceleration and the variations in temperature of screen locking picture processing device 900.Sensor cluster 914 can include proximity transducer, is configured to when not having any physical contact object near detecting.Sensor cluster 914 can also include optical sensor, such as CMOS or ccd image sensor, is used for using in imaging applications.In certain embodiments, this sensor cluster 914 can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 916 is configured to facilitate the communication of wired or wireless mode between screen locking picture processing device 900 and other equipment.Screen locking picture processing device 900 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In one exemplary embodiment, communications component 916 receives the broadcast singal from external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 916 also includes near-field communication (NFC) module, to promote junction service.Such as, can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, screen locking picture processing device 900 can be realized by one or more application specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components, is used for performing said method.
In the exemplary embodiment, additionally providing a kind of non-transitory computer-readable recording medium including instruction, such as, include the memorizer 904 of instruction, above-mentioned instruction can have been performed said method by the processor 920 of screen locking picture processing device 900.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of device so that device enough performs a kind of screen locking image processing method, and described method includes:
Obtain candidate's screen locking picture;
Determining the picture angle of candidate's screen locking picture, picture angle is the angle between direction and the direction of screen of candidate's screen locking picture;
When the picture angle of candidate's screen locking picture is beyond set point, according to the picture angle of candidate's screen locking picture, candidate's screen locking picture being carried out angle correct, the direction making candidate's screen locking picture is consistent with the direction of screen;
Use the candidate's screen locking picture after angle correct as screen locking picture.
In a kind of implementation of the disclosure, determine the picture angle of candidate's screen locking picture, including:
Candidate's screen locking picture is normalized, obtains candidate's screen locking picture of pre-set dimension;
Candidate's screen locking picture of pre-set dimension is classified, to determine the picture angle of candidate's screen locking picture by the grader using training in advance.
In the another kind of implementation of the disclosure, grader is four graders, and four graders are for being divided into 0 °, 90 °, 180 ° and 270 ° of four class by candidate's locking screen interface by picture angle.
In the another kind of implementation of the disclosure, set point is:
[0 °, 90 °) ∪ (270 °, 360 °].
In the another kind of implementation of the disclosure, according to the picture angle of candidate's screen locking picture, candidate's screen locking picture is carried out angle correct, including:
Being rotated counterclockwise by candidate's screen locking picture, the anglec of rotation is A;Or,
Being turned clockwise by candidate's screen locking picture, the anglec of rotation is 360-A;
Wherein, A is the picture angle of candidate's screen locking picture, 360 ° of > A > 0 °.
In the another kind of implementation of the disclosure, obtain candidate's screen locking picture, including:
When reaching to set time point or the screen locking through set point number, obtain candidate's screen locking picture.
In the another kind of implementation of the disclosure, method also includes:
When the picture angle of candidate's screen locking picture is in set point, use candidate's screen locking picture as screen locking picture.
In the another kind of implementation of the disclosure, candidate's screen locking picture is the photo in baby's photograph album.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to other embodiments of the present invention.The application is intended to any modification, purposes or the adaptations of the present invention, and these modification, purposes or adaptations are followed the general principle of the present invention and include the undocumented common knowledge in the art of the disclosure or conventional techniques means.Description and embodiments is considered only as exemplary, and true scope and spirit of the invention are by followingClaimPoint out.
It should be appreciated that the invention is not limited in described above andIn accompanying drawingThe precision architecture illustrated, and various modifications and changes can carried out without departing from the scope.The scope of the present invention is only by appendedClaimLimit.

Claims (17)

1. a screen locking image processing method, it is characterised in that described method includes:
Obtain candidate's screen locking picture;
Determining the picture angle of described candidate's screen locking picture, described picture angle is described candidate's screen locking picture Angle between direction and the direction of screen;
When the picture angle of described candidate's screen locking picture is beyond set point, according to described candidate's screen locking picture Picture angle described candidate's screen locking picture is carried out angle correct;
Use the described candidate's screen locking picture after angle correct as screen locking picture.
Method the most according to claim 1, it is characterised in that described determine described candidate's screen locking picture Picture angle, including:
Described candidate's screen locking picture is normalized, obtains candidate's screen locking picture of pre-set dimension;
Candidate's screen locking picture of described pre-set dimension is classified, to determine by the grader using training in advance Go out the picture angle of described candidate's screen locking picture.
Method the most according to claim 2, it is characterised in that described grader is four graders, institute State four graders for described candidate's locking screen interface is divided into 0 °, 90 °, 180 ° and 270 ° by picture angle Four classes.
Method the most according to claim 1, it is characterised in that described set point is:
[0 °, 90 °) ∪ (270 °, 360 °].
Method the most according to claim 1, it is characterised in that described according to described candidate's screen locking picture Picture angle described candidate's screen locking picture is carried out angle correct, including:
Being rotated counterclockwise by described candidate's screen locking picture, the anglec of rotation is A;Or,
Being turned clockwise by described candidate's screen locking picture, the anglec of rotation is 360-A;
Wherein, A is the picture angle of described candidate's screen locking picture, 360 ° of > A > 0 °.
Method the most according to claim 1, it is characterised in that described acquisition candidate's screen locking picture, bag Include:
When reaching to set time point or the screen locking through set point number, obtain described candidate's screen locking picture.
7. according to the method described in any one of claim 1 to 6, it is characterised in that described method also includes:
When the picture angle of described candidate's screen locking picture is in described set point, described candidate is used to lock Screen picture is as screen locking picture.
8. according to the method described in any one of claim 1 to 6, it is characterised in that described candidate's screen locking figure Sheet is the photo in baby's photograph album.
9. a screen locking picture processing device, it is characterised in that described device includes:
Acquisition module, is used for obtaining candidate's screen locking picture;
Determining module, for determining the picture angle of described candidate's screen locking picture, described picture angle is described Angle between direction and the direction of screen of candidate's screen locking picture;
Correction module, for when the picture angle of described candidate's screen locking picture is beyond set point, according to institute The picture angle stating candidate's screen locking picture carries out angle correct to described candidate's screen locking picture;
Screen lock module, the described candidate's screen locking picture after using angle correct is as screen locking picture.
Device the most according to claim 9, it is characterised in that described determine module, is used for:
Described candidate's screen locking picture is normalized, obtains candidate's screen locking picture of pre-set dimension;
Candidate's screen locking picture of described pre-set dimension is classified, to determine by the grader using training in advance Go out the picture angle of described candidate's screen locking picture.
11. devices according to claim 10, it is characterised in that described grader is four graders, Described four graders for by described candidate's locking screen interface by picture angle be divided into 0 °, 90 °, 180 ° and 270 ° of four class.
12. devices according to claim 9, it is characterised in that described set point is:
[0 °, 90 °) ∪ (270 °, 360 °].
13. devices according to claim 9, it is characterised in that described correction module, are used for:
Being rotated counterclockwise by described candidate's screen locking picture, the anglec of rotation is A;Or,
Being turned clockwise by described candidate's screen locking picture, the anglec of rotation is 360-A;
Wherein, A is the picture angle of described candidate's screen locking picture, 360 ° of > A > 0 °.
14. devices according to claim 9, it is characterised in that described acquisition module, are used for:
When reaching to set time point or the screen locking through set point number, obtain described candidate's screen locking picture.
15. according to the device described in any one of claim 9 to 14, it is characterised in that described screen lock module, For:
When the picture angle of described candidate's screen locking picture is in described set point, described candidate is used to lock Screen picture is as screen locking picture.
16. according to the device described in any one of claim 9 to 14, it is characterised in that described candidate's screen locking Picture is the photo in baby's photograph album.
17. 1 kinds of screen locking picture processing devices, it is characterised in that described device includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Obtain candidate's screen locking picture;
Determining the picture angle of described candidate's screen locking picture, described picture angle is described candidate's screen locking picture Angle between direction and the direction of screen;
When the picture angle of described candidate's screen locking picture is beyond set point, according to described candidate's screen locking picture Picture angle described candidate's screen locking picture is carried out angle correct;
Use the described candidate's screen locking picture after angle correct as screen locking picture.
CN201610361954.4A 2016-05-26 2016-05-26 Screen locking picture processing method and device Pending CN105975183A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610361954.4A CN105975183A (en) 2016-05-26 2016-05-26 Screen locking picture processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610361954.4A CN105975183A (en) 2016-05-26 2016-05-26 Screen locking picture processing method and device

Publications (1)

Publication Number Publication Date
CN105975183A true CN105975183A (en) 2016-09-28

Family

ID=56956637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610361954.4A Pending CN105975183A (en) 2016-05-26 2016-05-26 Screen locking picture processing method and device

Country Status (1)

Country Link
CN (1) CN105975183A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106959856A (en) * 2017-03-28 2017-07-18 联想(北京)有限公司 A kind of switching method and apparatus of screen lock mode

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100039523A1 (en) * 2008-08-14 2010-02-18 Hon Hai Precision Industry Co., Ltd. Image capture device and control method thereof
CN101853131A (en) * 2010-05-27 2010-10-06 中兴通讯股份有限公司 Method and device for realizing screen lock
CN103793166A (en) * 2012-11-05 2014-05-14 阿里巴巴集团控股有限公司 Method for rotational displaying of content and terminal
CN103885611A (en) * 2014-04-22 2014-06-25 锤子科技(北京)有限公司 Method and device for adjusting image
CN104732225A (en) * 2013-12-24 2015-06-24 中国科学院深圳先进技术研究院 Image rotation processing method
CN104885049A (en) * 2014-03-12 2015-09-02 华为终端有限公司 A lock screen method and mobile terminal
CN105607835A (en) * 2015-12-21 2016-05-25 惠州Tcl移动通信有限公司 Mobile terminal with automatic picture direction adjusting function and display method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100039523A1 (en) * 2008-08-14 2010-02-18 Hon Hai Precision Industry Co., Ltd. Image capture device and control method thereof
CN101853131A (en) * 2010-05-27 2010-10-06 中兴通讯股份有限公司 Method and device for realizing screen lock
CN103793166A (en) * 2012-11-05 2014-05-14 阿里巴巴集团控股有限公司 Method for rotational displaying of content and terminal
CN104732225A (en) * 2013-12-24 2015-06-24 中国科学院深圳先进技术研究院 Image rotation processing method
CN104885049A (en) * 2014-03-12 2015-09-02 华为终端有限公司 A lock screen method and mobile terminal
CN103885611A (en) * 2014-04-22 2014-06-25 锤子科技(北京)有限公司 Method and device for adjusting image
CN105607835A (en) * 2015-12-21 2016-05-25 惠州Tcl移动通信有限公司 Mobile terminal with automatic picture direction adjusting function and display method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106959856A (en) * 2017-03-28 2017-07-18 联想(北京)有限公司 A kind of switching method and apparatus of screen lock mode

Similar Documents

Publication Publication Date Title
CN106454336B (en) The method and device and terminal that detection terminal camera is blocked
CN106688227B (en) More photographic devices, more image capture methods
CN104700353B (en) Image filters generation method and device
CN104243819A (en) Photo acquiring method and device
CN105302315A (en) Image processing method and device
CN105635567A (en) Shooting method and device
CN104902189A (en) Picture processing method and picture processing device
CN104156915A (en) Skin color adjusting method and device
CN105631403A (en) Method and device for human face recognition
CN105138962A (en) Image display method and image display device
CN104219445B (en) Screening-mode method of adjustment and device
CN104484858B (en) Character image processing method and processing device
CN105208284B (en) Shoot based reminding method and device
CN105139033A (en) Classifier construction method and device and image processing method and device
CN106210495A (en) Image capturing method and device
CN104980662A (en) Method for adjusting imaging style in shooting process, device thereof and imaging device
CN105528765A (en) Method and device for processing image
CN107967459A (en) convolution processing method, device and storage medium
CN105094539B (en) Reference information display methods and device
CN104506770A (en) Method and device for photographing image
CN105357449A (en) Shooting method and device, and image processing method and apparatus
CN105203456A (en) Plant species identification method and apparatus thereof
CN105516588A (en) Photographic processing method and device
CN105426904B (en) Photo processing method, device and equipment
CN106817532A (en) Image processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160928