CN104978414A - Content search method and terminal - Google Patents

Content search method and terminal Download PDF

Info

Publication number
CN104978414A
CN104978414A CN201510355330.7A CN201510355330A CN104978414A CN 104978414 A CN104978414 A CN 104978414A CN 201510355330 A CN201510355330 A CN 201510355330A CN 104978414 A CN104978414 A CN 104978414A
Authority
CN
China
Prior art keywords
content
color
color value
value
user
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
CN201510355330.7A
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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510355330.7A priority Critical patent/CN104978414A/en
Publication of CN104978414A publication Critical patent/CN104978414A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/5838Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using colour

Abstract

An embodiment of the invention provides a content search method and terminal. The method comprises the steps of: capturing an image through a camera; detecting selection operation of a user, and determining a color value selected by the user in the image; and obtaining the content corresponding to the color value, and displaying the content. According to the embodiment of the invention, the operation is convenient, the interestingness of search can be enhanced, and the user experience is improved.

Description

A kind of content search method and terminal
Technical field
The present invention relates to human-computer interaction technique field, particularly relate to a kind of content search method and terminal.
Background technology
For the terminal such as mobile phone or computer, usually carry out content search by character fuzzy matching or the mode such as to shake.When searching for relevant to color content (such as theme), user cannot the Color pair liked to oneself of the quick obtaining content of answering.Such as, during the theme of user search redness, need to screen in the theme storehouse comprising ten hundreds of themes, complex operation, search interest is lower, is difficult to meet consumers' demand.
Summary of the invention
The embodiment of the present invention provides a kind of content search method and terminal, simple operation, can strengthen search interesting, promotes Consumer's Experience.
Embodiments provide a kind of content search method, comprising:
Image is caught by camera;
Detect the selection operation of user, in described image, determine the color value that user selects;
Obtain the content that described color value is corresponding, and show described content.
Correspondingly, the embodiment of the present invention additionally provides a kind of terminal, comprising:
Image acquisition unit, for catching image by camera;
Color value determining unit, for detecting the selection operation of user, determines the color value that user selects in described image;
Content display unit, for obtaining content corresponding to described color value, and shows described content.
In the embodiment of the present invention, catch image by camera, detect the selection operation of user, determine the color value that user selects in the picture, obtain the content that color value is corresponding, and show the content got, simple operation, can strengthen search interesting, promotes Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of content search method provided in first embodiment of the invention;
Fig. 2 is the schematic flow sheet of a kind of content search method provided in second embodiment of the invention;
Fig. 3 is the structural representation of a kind of terminal provided in first embodiment of the invention;
Fig. 4 is the structural representation of the color value determining unit of Fig. 3 in the embodiment of the present invention;
Fig. 5 is the structural representation of the color value acquiring unit of Fig. 4 in the embodiment of the present invention;
Fig. 6 is the structural representation of first acquiring unit of Fig. 5 in the embodiment of the present invention;
Fig. 7 is the structural representation of the content display unit of Fig. 3 in the embodiment of the present invention;
Fig. 8 is the structural representation of a kind of terminal provided in second embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of content search method, image is caught by camera, detect the selection operation of user, determine the color value that user selects in the picture, obtain the content that color value is corresponding, and show the content got, simple operation, search can be strengthened interesting, promote Consumer's Experience.
The selection operation of the user that the embodiment of the present invention is mentioned to can comprise user and click image.Optionally, the selection operation of user can comprise user and to slide in the picture or user confines subregion etc. in image.
The color value that the embodiment of the present invention is mentioned to can be the color value that Color pair corresponding to touch area that user operates in the picture is answered.Optionally, the quantity of the color that touch area is corresponding can comprise at least one, such as, in red, blue or green etc. one or more.Concrete not by the restriction of the embodiment of the present invention.
The content that the embodiment of the present invention is mentioned to can comprise theme, icon, pointer or picture etc.Theme can comprise the visual elements such as wallpaper, standby wall paper, menu background, title block.Icon can comprise application icon, search button or suspended window etc.Pointer can comprise mouse pointer.Picture can comprise background picture or product picture etc.Concrete not by restriction of the invention process.
In the embodiment of the present invention, content and color value are associated, and such as red corresponding content is first content, and red and blue corresponding content is the second content, and blue corresponding content is the 3rd content.
Foregoing searching method may operate in the terminals such as smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer or wearable intelligent equipment.
Fig. 1 is the schematic flow sheet of a kind of content search method provided in first embodiment of the invention, and as shown in the figure, the content search method in the embodiment of the present invention at least can comprise:
S101, catches image by camera.
Terminal can catch image by camera.Such as, user finds the color liked around in environment, can start camera by control terminal, catch image by camera.
In an alternative embodiment, terminal can receive the content search command of user's input before catching image by camera.Wherein, content search command can have the physical button of content search function or virtual key etc. for clicking, and optionally, content search command can for presetting gesture information or finger print information etc.Such as, after terminal receives the content search command of user's input, according to content search command, camera can be started, and catches image by camera.
In the embodiment of the present invention, terminal receives content search command, triggers and catches image by camera, can avoid terminal real-time image acquisition, and improve Image Acquisition efficiency, resource utilization ratio is higher.
S102, detects the selection operation of user, determines the color value that user selects in the picture.
After terminal gets image, this image can be shown, detect the selection operation of user, determine the color value that user selects in the picture.The selection operation of user can comprise that user clicks image, slides in the picture, the subregion etc. confined in image.
In an alternative embodiment, terminal can detect the selection operation of user, determines the color region that user selects in the picture, obtains the color value in color region.Concrete, user can click, slide or confine the subregion in image in the image of terminal demonstration, after terminal detects the touch area of user operation, touch area can be defined as the color region that user selects, and obtain color value corresponding to color region.Such as, user clicks the green in image, after terminal detects the touch area of user operation, touch area is defined as the color region that user selects, and obtains color value corresponding to color region, the color value that its Green is corresponding is (0,255,0).
Further alternative, terminal can obtain the ratio value of shades of colour in color region, obtains the color value that the maximum at least one Color pair of ratio value is answered.Such as, the color that terminal can get in color region comprises redness, aubergine, pansy and livid purple look, the ratio value that terminal can obtain above-mentioned color in color region is respectively: 1/2, 1/5, 1/5 and 1/10, terminal can choose maximum three kinds of ratio value in above-mentioned color, namely ratio value is the redness of 1/2, ratio value be 1/5 aubergine and ratio value be the pansy of 1/5, wherein red corresponding color value is (255, 0, 0), color value corresponding to aubergine is (225, 152, 192), color value corresponding to pansy is (197, 175, 192).
Further alternative, terminal can obtain the pixel of color region, obtains the ratio value of shades of colour in color region according to pixel.Such as, terminal can obtain each pixel of color region, using pixel as OpenCV (Open Source Computer Vision Library, computer vision of increasing income storehouse) input parameter, by the default vision processing algorithm in OpenCV, obtain the ratio value of color separately in color region.Concrete, terminal can obtain each pixel of color region, and then obtain color corresponding to each pixel, such as color region comprises 10 pixels, pixel 1,2,5,8,9 is got corresponding red by OpenCV, the corresponding aubergine of pixel 3,7, the corresponding pansy of pixel 4,6, the corresponding livid purple look of pixel 10, then terminal can get red ratio value by OpenCV is 1/2, mauve ratio value is 1/5, and violaceous ratio value is 1/5, and violaceous ratio value is 1/10.The vision processing algorithm that OpenCV provides is very abundant, and its part is write with C language, adds its characteristic of increasing income, and does not need to add new outside and supports that compiling link that also can be complete generates executive routine.
Further alternative, terminal can detect the operational order of user, in color value, determine target color values.Such as, after terminal gets the color value in color region, each color value or color corresponding to each color value can be shown on a display screen, user clicks the color value or color liked on a display screen, terminal detects the operational order of user, and determines the target color values that user selects.
S103, obtains the content that color value is corresponding, and displaying contents.
Terminal can obtain the content that color value is corresponding after determining the color value that user selects, and shows the content got.The content that color value is corresponding can comprise theme, icon, pointer or picture etc., and theme can comprise the visual elements such as wallpaper, standby wall paper, menu background, title block.Icon can comprise application icon, search button or suspended window etc.Pointer can comprise mouse pointer.Picture can comprise background picture or product picture etc.Further, background picture can be PPT background picture, document background picture or mail background picture etc.Product picture can comprise advertising pictures or trade mark picture etc.Such as, the color value that user selects is red corresponding color value and blue corresponding color value, then, in the content that the color value that gets of terminal is corresponding, ratio shared in all colours that red and blueness contains in content is maximum.
In an alternative embodiment, after terminal determination target color values, the content that target color values is corresponding can be obtained.Such as, the target color values that user selects is red corresponding color value, then, in the content that the target color values that gets of terminal is corresponding, ratio shared in the red all colours contained in content is maximum.
In an alternative embodiment, terminal can be analyzed content before obtaining content corresponding to color value, obtains the color value that content is corresponding, stores the color value of content and correspondence thereof.Concrete, terminal can obtain the shades of colour that content contains, and obtains the ratio value of shades of colour, the color value that Color pair maximum for ratio value is answered is defined as color value corresponding to this content, and stores the color value of this content and correspondence thereof.Such as, terminal gets the color that content contains and comprises redness, aubergine, pansy and livid purple look, wherein red ratio value shared in all colours is 1/2, the ratio value of aubergine shared by all colours is 1/5, the ratio value of pansy shared by all colours is 1/5, the ratio value of livid purple look shared by all colours is 1/10, terminal can determine that the maximum color of ratio value is for red, aubergine and pansy, and then by redness, aubergine and color value corresponding to pansy are defined as color value corresponding to this content, and store the color value of this content and correspondence thereof.
In an alternative embodiment, terminal can send content acquisition request to server, and wherein content acquisition request carries color value, to make the content that whois lookup color value is corresponding, and then the content that the color value of terminal reception server transmission is corresponding.
In the content search method shown in Fig. 1, catch image by camera, detect the selection operation of user, determine the color value that user selects in the picture, obtain the content that color value is corresponding, and show the content got, simple operation, can strengthen search interesting, promotes Consumer's Experience.
Fig. 2 is the schematic flow sheet of a kind of content search method provided in second embodiment of the invention, and as shown in the figure, the content search method in the embodiment of the present invention can comprise:
S201, catches image by camera.
Terminal can catch image by camera.Such as, user finds the color liked around in environment, can start camera by control terminal, catch image by camera.
In an alternative embodiment, terminal can receive the content search command of user's input before catching image by camera.Wherein, content search command can have the physical button of content search function or virtual key etc. for clicking, and optionally, content search command can for presetting gesture information or finger print information etc.Such as, after terminal receives the content search command of user's input, according to content search command, camera can be started, and catches image by camera.
In the embodiment of the present invention, terminal receives content search command, triggers and catches image by camera, can avoid terminal real-time image acquisition, and improve Image Acquisition efficiency, resource utilization ratio is higher.
S202, detects the selection operation of user, determines the color region that user selects in the picture.
After terminal catches image by camera, the selection operation of user can be detected, determine the color region that user selects in the picture.The selection operation of user can comprise that user clicks image, slides in the picture, the subregion etc. confined in image.
Concrete, user can click, slide or confine the subregion in image in the image of terminal demonstration, after terminal detects the touch area of user operation, touch area can be defined as the color region that user selects.
S203, obtains the color value in color region.
Terminal can obtain the color value in color region after determining the color region that user selects.Such as, user clicks the green in image, after terminal detects the touch area of user operation, touch area is defined as the color region that user selects, and obtains color value corresponding to color region, the color value that its Green is corresponding is (0,255,0).
In an alternative embodiment, terminal can obtain the ratio value of shades of colour in color region, obtains the color value that the maximum at least one Color pair of ratio value is answered.Such as, the color that terminal can get in color region comprises redness, aubergine, pansy and livid purple look, the ratio value that terminal can obtain above-mentioned color in color region is respectively: 1/2, 1/5, 1/5 and 1/10, terminal can choose maximum three kinds of ratio value in above-mentioned color, namely ratio value is the redness of 1/2, ratio value be 1/5 aubergine and ratio value be the pansy of 1/5, wherein red corresponding color value is (255, 0, 0), color value corresponding to aubergine is (225, 152, 192), color value corresponding to pansy is (197, 175, 192).
In an alternative embodiment, terminal can obtain the pixel of color region, obtains the ratio value of shades of colour in color region according to pixel.Such as, terminal can obtain each pixel of color region, using pixel as OpenCV (Open Source Computer Vision Library, computer vision of increasing income storehouse) input parameter, by the default vision processing algorithm in OpenCV, obtain the ratio value of color separately in color region.Concrete, terminal can obtain each pixel of color region, and then obtain color corresponding to each pixel, such as color region comprises 10 pixels, pixel 1,2,5,8,9 is got corresponding red by OpenCV, the corresponding aubergine of pixel 3,7, the corresponding pansy of pixel 4,6, the corresponding livid purple look of pixel 10, then terminal can get red ratio value by OpenCV is 1/2, mauve ratio value is 1/5, and violaceous ratio value is 1/5, and violaceous ratio value is 1/10.The vision processing algorithm that OpenCV provides is very abundant, and its part is write with C language, adds its characteristic of increasing income, and does not need to add new outside and supports that compiling link that also can be complete generates executive routine.
In an alternative embodiment, terminal can detect the operational order of user, in color value, determine target color values.Such as, after terminal gets the color value in color region, each color value or color corresponding to each color value can be shown on a display screen, user clicks the color value or color liked on a display screen, terminal detects the operational order of user, and determines the target color values that user selects.
S204, obtains the content that color value is corresponding, and displaying contents.
Terminal can obtain the content that color value is corresponding after determining the color value that user selects, and shows the content got.The content that color value is corresponding can comprise theme, icon, pointer or picture etc., and theme can comprise the visual elements such as wallpaper, standby wall paper, menu background, title block.Icon can comprise application icon, search button or suspended window etc.Pointer can comprise mouse pointer.Picture can comprise background picture or product picture etc.Such as, the color value that user selects is red corresponding color value and blue corresponding color value, then, in the content that the color value that gets of terminal is corresponding, ratio shared in all colours that red and blueness contains in content is maximum.
In an alternative embodiment, after terminal determination target color values, the content that target color values is corresponding can be obtained.Such as, the target color values that user selects is red corresponding color value, then, in the content that the target color values that gets of terminal is corresponding, ratio shared in the red all colours contained in content is maximum.
In an alternative embodiment, terminal can be analyzed content before obtaining content corresponding to color value, obtains the color value that content is corresponding, stores the color value of content and correspondence thereof.Concrete, terminal can obtain the shades of colour that content contains, and obtains the ratio value of shades of colour, the color value that Color pair maximum for ratio value is answered is defined as color value corresponding to this content, and stores the color value of this content and correspondence thereof.Such as, terminal gets the color that content contains and comprises redness, aubergine, pansy and livid purple look, wherein red ratio value shared in all colours is 1/2, the ratio value of aubergine shared by all colours is 1/5, the ratio value of pansy shared by all colours is 1/5, the ratio value of livid purple look shared by all colours is 1/10, terminal can determine that the maximum color of ratio value is for red, aubergine and pansy, and then by redness, aubergine and color value corresponding to pansy are defined as color value corresponding to this content, and store the color value of this content and correspondence thereof.
In an alternative embodiment, terminal can send content acquisition request to server, and wherein content acquisition request carries color value, to make the content that whois lookup color value is corresponding, and then the content that the color value of terminal reception server transmission is corresponding.
In the content search method shown in Fig. 2, catch image by camera, detect the selection operation of user, determine the color value that user selects in the picture, obtain the content that color value is corresponding, and show the content got, simple operation, can strengthen search interesting, promotes Consumer's Experience.
Fig. 3 is the structural representation of a kind of terminal provided in first embodiment of the invention, and the terminal as shown in the figure in the embodiment of the present invention at least can comprise: image acquisition unit 301, color value determining unit 302 and content display unit 303, wherein:
Image acquisition unit 301, for catching image by camera.
Such as, user finds the color liked around in environment, can control image acquisition unit 301 and start camera, catch image by camera.
Color value determining unit 302, for detecting the selection operation of user, determines the color value that user selects in the picture.The selection operation of user can comprise that user clicks image, slides in the picture, the subregion etc. confined in image.
Content display unit 303, for obtaining content corresponding to color value, and displaying contents.
The content that color value is corresponding can comprise theme, icon, pointer or picture etc., and theme can comprise the visual elements such as wallpaper, standby wall paper, menu background, title block.Icon can comprise application icon, search button or suspended window etc.Pointer can comprise mouse pointer.Picture can comprise background picture or product picture etc.Further, background picture can be PPT background picture, document background picture or mail background picture etc.Product picture can comprise advertising pictures or trade mark picture etc.Such as, the color value that user selects is red corresponding color value and blue corresponding color value, then, in the content that the color value that gets of content display unit 303 is corresponding, ratio shared in all colours that red and blueness contains in content is maximum.
Further alternative, the color value determining unit 302 in the embodiment of the present invention can as shown in Figure 4, comprise further:
Color region determining unit 401, for detecting the selection operation of user, determines the color region that user selects in the picture.
Color value acquiring unit 402, for obtaining the color value in color region.
Concrete, user can click, slide or confine the subregion in image in the image of terminal demonstration, after color region determining unit 401 detects the touch area of user operation, touch area can be defined as the color region that user selects, color value acquiring unit 402 obtains color value corresponding to color region.Such as, user clicks the green in image, after color region determining unit 401 detects the touch area of user operation, touch area is defined as the color region that user selects, color value acquiring unit 402 obtains color value corresponding to color region, the color value that its Green is corresponding is (0,255,0).
Further alternative, the color value acquiring unit 402 in the embodiment of the present invention can as shown in Figure 5, comprise further:
First acquiring unit 501, for obtaining the ratio value of shades of colour in color region.
Second acquisition unit 502, for obtaining the color value that the maximum at least one Color pair of ratio value is answered.
Such as, the color that first acquiring unit 501 can get in color region comprises redness, aubergine, pansy and livid purple look, in color region, the ratio value of above-mentioned color is respectively: 1/2, 1/5, 1/5 and 1/10, second acquisition unit 502 can choose maximum three kinds of ratio value in above-mentioned color, namely ratio value is the redness of 1/2, ratio value be 1/5 aubergine and ratio value be the pansy of 1/5, wherein red corresponding color value is (255, 0, 0), color value corresponding to aubergine is (225, 152, 192), color value corresponding to pansy is (197, 175, 192).
Further alternative, the first acquiring unit 501 in the embodiment of the present invention can as shown in Figure 6, comprise further:
Pixel acquiring unit 601, for obtaining the pixel of color region.
Ratio value acquiring unit 602, for according to pixel, obtains the ratio value of shades of colour in color region.
Such as, pixel acquiring unit 601 can obtain each pixel of color region, ratio value acquiring unit 602, using the input parameter of pixel as OpenCV, by the default vision processing algorithm in OpenCV, obtains the ratio value of color separately in color region.Concrete, pixel acquiring unit 601 can obtain each pixel of color region, ratio value acquiring unit 602 obtains color corresponding to each pixel, such as color region comprises 10 pixels, pixel 1 is got by OpenCV, 2, 5, 8, 9 is corresponding red, pixel 3, 7 corresponding aubergines, pixel 4, 6 corresponding pansys, the corresponding livid purple look of pixel 10, then ratio value acquiring unit 602 can get red ratio value by OpenCV is 1/2, mauve ratio value is 1/5, violaceous ratio value is 1/5, violaceous ratio value is 1/10.
Further alternative, the color value determining unit 302 in the embodiment of the present invention can also comprise:
Color value screening unit 403, after obtaining the color value in color region, detects the operational order of user, in color value, determines target color values for color value acquiring unit 402.
Content display unit 303, for obtaining content corresponding to target color values.
Such as, after color value acquiring unit 402 gets the color value in color region, each color value or color corresponding to each color value can be shown on a display screen, user clicks the color value or color liked on a display screen, color value screening unit 403 detects the operational order of user, and determines the target color values that user selects.The target color values that user selects is red corresponding color value, then, in the content that the target color values that gets of content display unit 303 is corresponding, ratio shared in the red all colours contained in content is maximum.
In an alternative embodiment, the terminal in the embodiment of the present invention can also comprise:
Content analysis unit 304, before obtaining content corresponding to color value, analyzes content for content display unit 303, obtains the color value that content is corresponding.
Storage unit 305, for storing the color value of content and correspondence thereof.
Concrete, content analysis unit 304 can obtain the shades of colour that content contains, and obtaining the ratio value of shades of colour, the color value that Color pair maximum for ratio value is answered is defined as color value corresponding to this content, storage unit 305 stores the color value of this content and correspondence thereof.Such as, content analysis unit 304 gets the color that content contains and comprises redness, aubergine, pansy and livid purple look, wherein red ratio value shared in all colours is 1/2, the ratio value of aubergine shared by all colours is 1/5, the ratio value of pansy shared by all colours is 1/5, the ratio value of livid purple look shared by all colours is 1/10, content analysis unit 304 can determine that the maximum color of ratio value is for red, aubergine and pansy, and then by redness, aubergine and color value corresponding to pansy are defined as color value corresponding to this content, storage unit 305 stores the color value of this content and correspondence thereof.
In an alternative embodiment, the content display unit 303 in the embodiment of the present invention can as shown in Figure 7, comprise further:
Obtain request transmitting unit 701, for sending content acquisition request to server, content acquisition request carries described color value, to make the content that whois lookup color value is corresponding.
Content receipt unit 702, the content that the color value for reception server transmission is corresponding.
In an alternative embodiment, the terminal in the embodiment of the present invention can also comprise:
Instruction reception unit 306, for image acquisition unit 301 by before camera seizure image, receives the content search command of user's input.
Wherein, content search command can have the physical button of content search function or virtual key etc. for clicking, and optionally, content search command can for presetting gesture information or finger print information etc.Such as, after instruction reception unit 306 receives the content search command of user's input, image acquisition unit 301 according to content search command, can start camera, catches image by camera.
In the embodiment of the present invention, instruction reception unit 306 receives content search command, and trigger image acquiring unit 301 catches image by camera, can avoid image acquisition unit 301 real-time image acquisition, and improve Image Acquisition efficiency, resource utilization ratio is higher.
In the terminal shown in Fig. 3, image acquisition unit 301 catches image by camera, color value determining unit 302 detects the selection operation of user, determine the color value that user selects in the picture, content display unit 303 obtains content corresponding to color value, and displaying contents, simple operation, search can be strengthened interesting, promote Consumer's Experience.
Fig. 8 is the structural representation of a kind of terminal provided in second embodiment of the invention, and as shown in the figure, described terminal can comprise: at least one input media 830, at least one output unit 840, at least one processor 810, such as CPU, storer 850 and at least one bus 820.
Wherein, above-mentioned bus 820 is for connecting above-mentioned input media 830, output unit 840, processor 810 and storer 850.
Wherein, above-mentioned input media 830 specifically can be the contact panel of terminal, for detecting the content search command that the selection operation of user, the operational order detecting user or reception user input; Above-mentioned input media 830 specifically can be the camera of terminal, for captured target image.
Above-mentioned output unit 840 specifically can be the display screen of terminal, for the content that Show Color value is corresponding.
Above-mentioned storer 850 can be high-speed RAM storer, and also can be non-labile storer (non-volatile memory), such as magnetic disk memory, for the image of storage terminal.Above-mentioned storer 850 is also for storing batch processing code, and above-mentioned input media 830, output unit 840 and processor 810, for calling the program code stored in storer 850, perform and operate as follows:
Processor 810, for catching image by input media 830.Wherein, the image of terminal is prestored in storer 850.
Processor 810, for detecting the selection operation of user, determines the color value that user selects in the picture.
Output unit 840, for obtaining content corresponding to color value, and displaying contents.
Further alternative, processor 810 detects the selection operation of user, determines in the picture to be specifically as follows the color value that user selects:
Processor 810 detects the selection operation of user, determines the color region that user selects in the picture.
Processor 810 obtains the color value in color region.
Further alternative, processor 810 obtains the color value in color region, is specifically as follows:
Processor 810 obtains the ratio value of shades of colour in color region.
Processor 810 obtains the color value that the maximum at least one Color pair of ratio value is answered.
Further alternative, processor 810 obtains the ratio value of shades of colour in color region, is specifically as follows:
Processor 810 obtains the pixel of color region.
Processor 810, according to pixel, obtains the ratio value of shades of colour in color region.
Further alternative, after processor 810 obtains the color value in color region, following operation can also be performed:
Processor 810 detects the operational order of user, in color value, determine target color values.
Processor 810 obtains content corresponding to color value, is specifically as follows:
Obtain the content that target color values is corresponding.
In an alternative embodiment, processor 810 can also perform following operation before obtaining content corresponding to color value:
Content is analyzed, obtains the color value that content is corresponding.
Store the color value of content and correspondence thereof.
In an alternative embodiment, processor 810 obtains content corresponding to color value, is specifically as follows:
Send content acquisition request to server, content acquisition request carries described color value, to make the content that whois lookup color value is corresponding.
The content that the color value that reception server sends is corresponding.
In an alternative embodiment, processor 810 can also perform following operation before catching image by camera:
Receive the content search command of user's input.
Concrete, the terminal introduced in the embodiment of the present invention can in order to implement the part or all of flow process in the content search method embodiment of composition graphs 1 of the present invention or Fig. 2 introduction.
Unit in all embodiments of the present invention, universal integrated circuit can be passed through, such as CPU (CentralProcessing Unit, central processing unit), or realized by ASIC (Application Specific IntegratedCircuit, special IC).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention device can carry out merging, divide and deleting according to actual needs.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a content search method, is characterized in that, comprising:
Image is caught by camera;
Detect the selection operation of user, in described image, determine the color value that user selects;
Obtain the content that described color value is corresponding, and show described content.
2. method according to claim 1, is characterized in that, the selection operation of described detection user, determines that the color value that user selects comprises in described image:
Detect the selection operation of user, in described image, determine the color region that user selects;
Obtain the color value in described color region.
3. method according to claim 2, it is characterized in that, the color value in the described color region of described acquisition comprises:
Obtain the ratio value of shades of colour in described color region;
Obtain the color value that the maximum at least one Color pair of ratio value is answered.
4. method according to claim 1, it is characterized in that, the content that the described color value of described acquisition is corresponding comprises:
Send content acquisition request to server, described content acquisition request carries described color value, to make the content that described in described whois lookup, color value is corresponding;
Receive the content that the described color value of described server transmission is corresponding.
5. method according to claim 1, it is characterized in that, described content comprises theme, icon, pointer or picture.
6. a terminal, is characterized in that, comprising:
Image acquisition unit, for catching image by camera;
Color value determining unit, for detecting the selection operation of user, determines the color value that user selects in described image;
Content display unit, for obtaining content corresponding to described color value, and shows described content.
7. terminal according to claim 6, it is characterized in that, described color value determining unit comprises:
Color region determining unit, for detecting the selection operation of user, determines the color region that user selects in described image;
Color value acquiring unit, for obtaining the color value in described color region.
8. terminal according to claim 7, it is characterized in that, described color value acquiring unit comprises:
First acquiring unit, for obtaining the ratio value of shades of colour in described color region;
Second acquisition unit, for obtaining the color value that the maximum at least one Color pair of ratio value is answered.
9. terminal according to claim 6, it is characterized in that, described content display unit comprises:
Obtain request transmitting unit, for sending content acquisition request to server, described content acquisition request carries described color value, to make the content that described in described whois lookup, color value is corresponding;
Content receipt unit, the content that the described color value for receiving the transmission of described server is corresponding.
10. terminal according to claim 6, it is characterized in that, described content comprises theme, icon, pointer or picture.
CN201510355330.7A 2015-06-25 2015-06-25 Content search method and terminal Pending CN104978414A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510355330.7A CN104978414A (en) 2015-06-25 2015-06-25 Content search method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510355330.7A CN104978414A (en) 2015-06-25 2015-06-25 Content search method and terminal

Publications (1)

Publication Number Publication Date
CN104978414A true CN104978414A (en) 2015-10-14

Family

ID=54274918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510355330.7A Pending CN104978414A (en) 2015-06-25 2015-06-25 Content search method and terminal

Country Status (1)

Country Link
CN (1) CN104978414A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354275A (en) * 2015-10-29 2016-02-24 努比亚技术有限公司 Information processing method and apparatus, and terminal
CN107071299A (en) * 2017-04-28 2017-08-18 珠海市魅族科技有限公司 Information processing method and device, computer installation and storage medium
CN107369016A (en) * 2017-06-14 2017-11-21 维沃移动通信有限公司 Method of payment and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150039594A1 (en) * 2004-02-12 2015-02-05 Intellectual Ventures I Llc Method and apparatus for photograph finding
CN104657037A (en) * 2015-01-29 2015-05-27 深圳市金立通信设备有限公司 Terminal interface processing method
CN104679405A (en) * 2015-02-06 2015-06-03 深圳市金立通信设备有限公司 Terminal
CN104699222A (en) * 2015-02-26 2015-06-10 深圳市金立通信设备有限公司 Terminal
US20150169680A1 (en) * 2010-11-19 2015-06-18 International Business Machines Corporation Webpage content search

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150039594A1 (en) * 2004-02-12 2015-02-05 Intellectual Ventures I Llc Method and apparatus for photograph finding
US20150169680A1 (en) * 2010-11-19 2015-06-18 International Business Machines Corporation Webpage content search
CN104657037A (en) * 2015-01-29 2015-05-27 深圳市金立通信设备有限公司 Terminal interface processing method
CN104679405A (en) * 2015-02-06 2015-06-03 深圳市金立通信设备有限公司 Terminal
CN104699222A (en) * 2015-02-26 2015-06-10 深圳市金立通信设备有限公司 Terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354275A (en) * 2015-10-29 2016-02-24 努比亚技术有限公司 Information processing method and apparatus, and terminal
CN107071299A (en) * 2017-04-28 2017-08-18 珠海市魅族科技有限公司 Information processing method and device, computer installation and storage medium
CN107369016A (en) * 2017-06-14 2017-11-21 维沃移动通信有限公司 Method of payment and device
CN107369016B (en) * 2017-06-14 2021-02-02 维沃移动通信有限公司 Payment method and device

Similar Documents

Publication Publication Date Title
CN106484266B (en) Text processing method and device
US20190251623A1 (en) Two-dimensional code identification method and device, and mobile terminal
US10496696B2 (en) Search method and apparatus
CN104090761A (en) Screenshot application device and method
CN112306607A (en) Screenshot method and device, electronic equipment and readable storage medium
CN104571866A (en) Screen capture method
CN111601012B (en) Image processing method and device and electronic equipment
CN104978414A (en) Content search method and terminal
CN106155542A (en) Image processing method and device
CN113794795A (en) Information sharing method and device, electronic equipment and readable storage medium
CN112911147A (en) Display control method, display control device and electronic equipment
CN109697129A (en) A kind of information sharing method, equipment and computer readable storage medium
CN113037925B (en) Information processing method, information processing apparatus, electronic device, and readable storage medium
CN104657056A (en) Theme color adjustment method
CN104571865A (en) Terminal
CN112596643A (en) Application icon management method and device
CN113703634A (en) Interface display method and device
CN113360062A (en) Display control method and device, electronic equipment and readable storage medium
CN112684963A (en) Screenshot method and device and electronic equipment
CN112698775A (en) Image display method and device and electronic equipment
CN112269504A (en) Information display method and device and electronic equipment
CN113783770B (en) Image sharing method, image sharing device and electronic equipment
CN109766530A (en) Generation method, device, storage medium and the electronic equipment of chart frame
CN113010738B (en) Video processing method, device, electronic equipment and readable storage medium
CN112929494B (en) Information processing method, information processing apparatus, information processing medium, and electronic 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20151014