Summary of the invention
The technical problem to be solved in the present invention lacks picture tag management method defect effectively in the mobile terminal in order to overcome prior art, provides a kind of picture tag management method, realized effective management of picture tag by the mode of operation of touch-screen.
The present invention solves above-mentioned technical matters by following technical proposals:
The invention provides a kind of picture tag management method, for having the mobile terminal of touch-screen, being characterized in that described picture tag management method comprises the following steps:
S
11, from picture database, read a picture and be shown in described touch-screen;
S
12, detect the contact of user and described touch-screen, if detect, user contact position is on the touchscreen the label image in the default label area shown in described touch-screen, then enter step S
13if detect that user contact position is on the touchscreen described picture, then enter step S
15, otherwise repeat step S
12;
S
13, along the mobile route of user on described touch-screen, the movement of label image described in described touch screen display, and detect user and whether also contact with described touch-screen, if not, then enters step S
14, otherwise repeat step S
13;
S
14, detect the position of described label image in the display of described touch-screen, if when the position of described display to be arranged on described touch-screen a shown territory, label bearing area, to be shown in by described label image in territory, described label bearing area, to enter step S
16, otherwise return step S
12;
S
15, detect the mobile route of user on described touch-screen, if described mobile route is identical with default gesture, then from picture database, reads an other pictures, and be shown on described display screen, then return step S
12if described mobile route is not identical with default gesture, then return step S
12;
S
16, the label data corresponding to described label image is added in the image data of described picture.
Preferably, multiple label image is shown in described default label area.
Preferably, territory, described label bearing area display label image, the number of the label image in territory, wherein said label bearing area is identical with the number of the label data in the view data of described image.
Preferably, described step S
11for:
S
101, user inputs key word by touch-screen display interface;
S
102, find in described picture database there is the picture with the label data of described keyword match, and be presented on described touch-screen;
S
103, user selects to need to edit the picture of label data, then from picture database, read described picture and be shown in described touch-screen.
Preferably, described step S
102for: find in described picture database and there is the picture with the label data of described keyword match, and all pictures searched out are shown on described touch-screen according to the mode of grid.
Preferably, described step S
11for:
S
111, user inputs keyword string by touch-screen display interface;
S
112, according to the blank character preset described keyword string to be split and obtains at least one key word;
S
113, find in described picture database and comprise the picture of the label data all mated with all key words, and be presented on described touch-screen;
S
114, user selects to need to edit the picture of label data, then from picture database, read described picture and be shown in described touch-screen.
Preferably, described step S
113for: find in described picture database and there is the picture with the label data of described keyword match, and all pictures searched out are shown on described touch-screen according to the mode of grid.
Present invention also offers a kind of picture tag management method, for having the mobile terminal of touch-screen, being characterized in that described picture tag management method comprises the following steps:
S
21, from picture database, read a picture and be shown in described touch-screen;
S
22, detect the contact of user and described touch-screen, if when detecting that user contact position is on the touchscreen a label image in a territory, label bearing area shown by described touch-screen, then enter step S
23if detect that user contact position is on the touchscreen described picture, then enter step S
25, otherwise repeat step S
22;
S
23, along the mobile route of user on described touch-screen, the movement of label image described in described touch screen display, and detect user and whether also contact with described touch-screen, if not, then enters step S
24, otherwise repeat step S
23;
S
24, detect the position of described label image in the display of described touch-screen, if the position of described display to be arranged on described touch-screen shown one preset label area time, from territory, label bearing area, remove described label image, enter step S
26, otherwise return step S
22;
S
25, detect the mobile route of user on described touch-screen, if described mobile route is identical with default gesture, then from picture database, reads an other pictures, and be shown on described display screen, then return step S
22if described mobile route is not identical with default gesture, then return step S
22;
S
26, in the image data of described picture, remove label data corresponding to removed described label image.
Preferably, multiple label image is shown in described default label area.
Preferably, territory, described label bearing area display label image, the number of the label image in territory, wherein said label bearing area is identical with the number of the label data in the view data of described image.
Preferably, described step S
11for:
S
201, user inputs key word by touch-screen display interface;
S
202, find in described picture database there is the picture with the label data of described keyword match, and be presented on described touch-screen;
S
203, user selects to need to edit the picture of label data, then from picture database, read described picture and be shown in described touch-screen.
Preferably, described step S
202for: find in described picture database and there is the picture with the label data of described keyword match, and all pictures searched out are shown on described touch-screen according to the mode of grid.
Preferably, described step S
21for:
S
211, user inputs keyword string by touch-screen display interface;
S
212, according to the blank character preset described keyword string to be split and obtains at least one key word;
S
213, find in described picture database and comprise the picture of the label data all mated with all key words, and be presented on described touch-screen;
S
214, user selects to need to edit the picture of label data, then from picture database, read described picture and be shown in described touch-screen.
Preferably, described step S
213for: find in described picture database and there is the picture with the label data of described keyword match, and all pictures searched out are shown on described touch-screen according to the mode of grid.
Preferably, described label data comprises shooting time data, spot for photography data, people tag data, a weather label data, a diet label data, an amusement label data and a life label data.
Positive progressive effect of the present invention is:
Picture tag management method of the present invention is mutual by user interface in user and touch-screen, can allow user is faster, search pictures exactly, but also by the management realizing picture tag alternately of user interface in user and touch-screen.
Embodiment
Present pre-ferred embodiments is provided, to describe technical scheme of the present invention in detail below in conjunction with accompanying drawing.
First embodiment:
The display interface of the tag control of the touch-screen of mobile terminal described in the present embodiment as shown in Figure 1, wherein said display interface comprises an image display area 1, one label area 2 preset and a territory, label bearing area 3, in wherein said image display area 1, display is used for picture selected from picture database, the label image corresponding to label data that the user that pre-sets may adopt is comprised in described default label area 2, such as shooting time data, spot for photography data, people tag data, weather label data, diet label data, amusement label data and life label data etc. label data.Territory, described label bearing area 3 is for the label image corresponding to the label data that receives user and increase in image data.
As shown in Figure 2, wherein said display interface comprises retrieval input area 4 and a figure chip arrays viewing area 5 to the display interface of the label search of the touch-screen of mobile terminal described in the present embodiment.Wherein said retrieval input area 4 receives key word or the keyword string of user's input, thus find with described key word in the label data of described picture or keyword string is identical or the label data that mates, in picture database, thus determine the picture of user search.All pictures that user search obtains are shown with thumbnail in described picture viewing area 5.
As shown in Figure 3, the picture tag management method by the display interface shown in Fig. 1 and Fig. 2 in the present embodiment comprises the following steps:
Step 101, user is by the display interface input keyword string of touch-screen.Namely user inputs keyword string in the retrieval input area 4 shown in Fig. 2.
Step 102, obtains at least one key word according to the blank character preset by described keyword string fractionation.If when user only inputs single key word in addition, remain the single key word of user's input owing to splitting the key word obtained, so now can no longer split described key word.
Step 103, finds the picture comprising the label data all mated with all key words, and is presented on described touch-screen in described picture database.Wherein as shown in Figure 2, the thumbnail of all pictures searched out is shown in the figure chip arrays viewing area 5 of described touch-screen according to the mode of grid.
Step 104, user selects to need to edit the picture of label data, then from picture database, read described picture and be shown in described touch-screen.Now one need the picture carrying out tag processes for selecting from all pictures retrieved, after this user interface switches to user interface as shown in Figure 1 from the user interface shown in Fig. 2.
Step 105, detect the contact of user and described touch-screen, if detect, user contact position is on the touchscreen the label image in the label area preset shown in described touch-screen, then enter step 106, if detect, user contact position is on the touchscreen described picture, then enter step 108, otherwise repeat step 105; Multiple label image is shown in wherein said default label area.
Step 106, along the mobile route of user on described touch-screen, the movement of label image described in described touch screen display, and detect user and whether also contact with described touch-screen, if not, then enter step 107, otherwise repeat step 106.
Step 107, detect the position of described label image in the display of described touch-screen, if when the position of described display is arranged in a territory, label bearing area shown on described touch-screen, be shown in by described label image in territory, described label bearing area, enter step 109, otherwise return step 105.Territory, wherein said label bearing area display label image, the number of the label image in territory, wherein said label bearing area is identical with the number of the label data in the view data of described image.Namely as shown in Figure 4, label image in described default label area 2 moves in territory, described label bearing area 3 by user, now, show described label image in territory, described label bearing area 3 while, also the label data corresponding to described label image is added in the image data of picture, thus complete increase tagged process in picture.
Step 108, detect the mobile route of user on described touch-screen, if described mobile route is identical with default gesture, from picture database, then read an other pictures, and be shown on described display screen, such as, as shown in figure 5 a and 5b, when the gesture of user preset is for being moved to the left, read the picture of upper according to the index sequence of picture database from image data database, or, when the gesture of user preset is for moving right, from image data database, read the picture etc. of next according to the index sequence of picture database; Then return step 105, if described mobile route is not identical with default gesture, then return step 105.
Step 109, adds the label data corresponding to described label image in the image data of described picture.
Label data described in the present embodiment comprises shooting time data, spot for photography data, people tag data, weather label data, diet label data, amusement label data and life label data etc., and user can need to adopt the kind of the label data of other kinds or self-defining label data kind according to actual design.
In addition the method for operating when user adopts the method for the present embodiment to carry out the tag control of picture by the display interface shown in Fig. 1 and Fig. 2 is as follows:
First, as shown in Figure 2, the comma of half-angle, when retrieving input area 4 and inputting the character string of multiple key word formation, is separated each key word as blank character, and forms character string by user.Then all pictures comprising all key words of image data library searching, and be shown in figure chip arrays viewing area 5.
Then user chooses the label image needing to be added in picture in the label area 2 preset, when finger pins screen, by detecting the coordinate of contact, if when coordinate figure drops in the scope of any one label image, now described label image is in selected state, wherein can adopt the random background colour changing described label image, to highlight the selected state of label image.
After this in the process of the movement of label image, do not lift (namely finger remains the state pinning touch-screen all the time) at finger, and when sliding on the touchscreen, by the calculating of touch-screen driving etc., the centre coordinate moving to any position on touch-screen can be got, if described centre coordinate falls into target zone not yet, i.e. territory, label bearing area 3, then can pass through redraw, the movement of display label image.
If after this user is in the process of mobile tag image, after finger lifts, if when the centre coordinate pointing last contact does not on the touchscreen fall into the effective range in territory, label bearing area 3, then the operation of user is invalid, pass through redraw, the refreshing of the movement of label image is shielded, thus recovers original label image and do not move and be also in the state in described default label area 2.
If user is in the process of mobile tag image, after finger lifts, if when the centre coordinate pointing last contact on the touchscreen falls into the effective range in territory, label bearing area 3, then in the white space in territory, label bearing area 3, add described label image, and by redraw, in territory, described label bearing area 3, show described label image.In background program, in the image data of described picture, now add the label data corresponding to label image.
If after this user needs to switch picture, then user needs to carry out touch operation according to the gesture preset in image display area 1, such as shown in figure 5 a and 5b, in image display area 1, when the gesture of user preset is for being moved to the left, read the picture of upper according to the index sequence of picture database from image data database, or, when the gesture of user preset is for moving right, from image data database, read the picture of next according to the index sequence of picture database.After this user can carry out the operation of tag control again to the picture after switching.
Second embodiment:
The display interface of the tag control of the touch-screen of mobile terminal described in the present embodiment and the display interface of label search are also as depicted in figs. 1 and 2, and the function of described display interface has carried out setting forth in detail, so repeat no more herein in a first embodiment.
The difference of first embodiment of the present embodiment is, by realizing the deletion of label in picture in the display interface of tag control to the label area 2 preset and the operation in territory, label bearing area 3 in the present embodiment.
As shown in Figure 6, the picture tag management method by the display interface shown in Fig. 1 and Fig. 2 in the present embodiment comprises the following steps:
Step 201, user is by the display interface input keyword string of touch-screen.Namely user inputs keyword string in the retrieval input area 4 shown in Fig. 2.
Step 202, obtains at least one key word according to the blank character preset by described keyword string fractionation.If when user only inputs single key word in addition, remain the single key word of user's input owing to splitting the key word obtained, so now can no longer split described key word.
Step 203, finds the picture comprising the label data all mated with all key words, and is presented on described touch-screen in described picture database.Wherein as shown in Figure 2, the thumbnail of all pictures searched out is shown in the figure chip arrays viewing area 5 of described touch-screen according to the mode of grid.
Step 204, user selects to need to edit the picture of label data, then from picture database, read described picture and be shown in described touch-screen.Now one need the picture carrying out tag processes for selecting from all pictures retrieved, after this user interface switches to user interface as shown in Figure 1 from the user interface shown in Fig. 2.
Step 205, detect the contact of user and described touch-screen, if detect, user contact position is on the touchscreen the label image in the territory, label bearing area shown in described touch-screen, then enter step 206, if detect, user contact position is on the touchscreen described picture, then enter step 208, otherwise repeat step 205; Territory, wherein said label bearing area display label image, the number of the label image in territory, wherein said label bearing area is identical with the number of the label data in the view data of described image.The label image corresponding to label data being about to comprise in the picture of pre-treatment is shown in territory, described label bearing area.
Step 206, along the mobile route of user on described touch-screen, the movement of label image described in described touch screen display, and detect user and whether also contact with described touch-screen, if not, then enter step 207, otherwise repeat step 206.
Step 207, detect the position of described label image in the display of described touch-screen, if the position of described display to be arranged on described touch-screen shown one preset label area time, from territory, label bearing area, remove described label image, enter step 209, otherwise return step 205.Multiple label image is shown in wherein said default label area.Namely as shown in Figure 7, label image in described default label area 2 moves in territory, described label bearing area 3 by user, now, shield described label image in territory, described label bearing area 3 while, also the label data corresponding to described label image is deleted from the image data of picture, thus complete the process of deleting label in picture.
Step 208, detect the mobile route of user on described touch-screen, if described mobile route is identical with default gesture, from picture database, then read an other pictures, and be shown on described display screen, such as, as shown in figure 5 a and 5b, when the gesture of user preset is for being moved to the left, read the picture of upper according to the index sequence of picture database from image data database, or, when the gesture of user preset is for moving right, from image data database, read the picture etc. of next according to the index sequence of picture database; Then return step 205, if described mobile route is not identical with default gesture, then return step 205.
Step 209, removes the label data corresponding to removed described label image in the image data of described picture.
In addition the method for operating when user adopts the method for the present embodiment to carry out the tag control of picture by the display interface shown in Fig. 1 and Fig. 2 is as follows:
First, as shown in Figure 2, the comma of half-angle, when retrieving input area 4 and inputting the character string of multiple key word formation, is separated each key word as blank character, and forms character string by user.Then all pictures comprising all key words of image data library searching, and be shown in figure chip arrays viewing area 5.
Then user chooses the label image needing to delete from picture in territory, label bearing area 3, when finger pins screen, by detecting the coordinate of contact, if when coordinate figure drops in the scope of any one label image, now described label image is in selected state, wherein can adopt the random background colour changing described label image, to highlight the selected state of label image.
After this in the process of the movement of label image, do not lift (namely finger remains the state pinning touch-screen all the time) at finger, and when sliding on the touchscreen, by the calculating of touch-screen driving etc., the centre coordinate moving to any position on touch-screen can be got, if described centre coordinate falls into target zone not yet, the label area 2 namely preset, then can pass through redraw, the movement of display label image.
If after this user is in the process of mobile tag image, after finger lifts, if when the centre coordinate pointing last contact does not on the touchscreen fall into the effective range of default label area 2, then the operation of user is invalid, pass through redraw, the refreshing of the movement of label image is shielded, thus recovers original label image and do not move and be also in the state in territory, described label bearing area 3.
If user is in the process of mobile tag image, after finger lifts, if when the centre coordinate pointing last contact on the touchscreen falls into the effective range of default label area 2, then in territory, label bearing area 3, delete described label image, and by redraw, in territory, described label bearing area 3, shield described label image.In background program, in the image data of described picture, now delete the label data corresponding to described label image.
If after this user needs to switch picture, then user needs to carry out touch operation according to the gesture preset in image display area 1, such as shown in figure 5 a and 5b, in image display area 1, when the gesture of user preset is for being moved to the left, read the picture of upper according to the index sequence of picture database from image data database, or, when the gesture of user preset is for moving right, from image data database, read the picture of next according to the index sequence of picture database.After this user can carry out the operation of tag control again to the picture after switching.
Although the foregoing describe the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is defined by the appended claims.Those skilled in the art, under the prerequisite not deviating from principle of the present invention and essence, can make various changes or modifications to these embodiments, but these change and amendment all falls into protection scope of the present invention.