CN113553521A - Content searching method and device - Google Patents

Content searching method and device Download PDF

Info

Publication number
CN113553521A
CN113553521A CN202110871646.7A CN202110871646A CN113553521A CN 113553521 A CN113553521 A CN 113553521A CN 202110871646 A CN202110871646 A CN 202110871646A CN 113553521 A CN113553521 A CN 113553521A
Authority
CN
China
Prior art keywords
content
target
client
tag
server
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.)
Granted
Application number
CN202110871646.7A
Other languages
Chinese (zh)
Other versions
CN113553521B (en
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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110871646.7A priority Critical patent/CN113553521B/en
Publication of CN113553521A publication Critical patent/CN113553521A/en
Application granted granted Critical
Publication of CN113553521B publication Critical patent/CN113553521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9554Retrieval from the web using information identifiers, e.g. uniform resource locators [URL] by using bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1452Methods for optical code recognition including a method step for retrieval of the optical code detecting bar code edges

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a content search method and a content search device, wherein the method comprises the following steps: acquiring a function identifier and a content label sent by a client, wherein the function identifier and the content label are obtained by scanning and analyzing a target graphic code by the client; if the function identification indicates a search function for the specified type of content, searching for target content matched with the content tag based on the specified type of content; and returning the target content to the client. By applying the scheme, the accuracy and timeliness of the information searched by the user through scanning the graphic code can be improved, and the difficulty of information updating and maintenance is reduced.

Description

Content searching method and device
Technical Field
The present disclosure relates to the field of computer applications, and in particular, to a content search method and apparatus.
Background
The graphic Code generally refers to a graphic Code for recording data information by arranging geometric figures, wherein a common one-dimensional graphic Code comprises a bar Code, and a two-dimensional graphic Code comprises a PDF417 Code, a Quick Response Code (QR Code), and the like; in the related art, the URL may be carried in the graphic code, so that a user may quickly obtain and access the URL by scanning the graphic code.
For example, some movie producers may carry the URL of a multimedia publicity page of a movie in a QR Code, and present the QR Code to the public by way of a poster or the like, so that the public can quickly access the multimedia publicity page of the movie.
However, under the situation of adopting the above scheme, if the URL of the multimedia publicity page is changed, the user scans the old QR Code to obtain the old URL only, and the problem that the multimedia publicity page corresponding to the new URL cannot be accessed is encountered; if a user needs to search the latest information, the generated poster printed with the QR Code and other publicity materials need to be updated and replaced, and therefore the problem that information updating and maintenance are difficult exists in the scheme.
Disclosure of Invention
In view of the above, the present disclosure provides a content search method and device, so as to at least solve the technical problems that the information acquired in the related art does not meet the requirement and the information is difficult to update and maintain. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a content obtaining method is provided, which is applied to a server and includes:
acquiring a function identifier and a content label sent by a client, wherein the function identifier and the content label are obtained by scanning and analyzing a target graphic code by the client;
if the function identification indicates a search function for the specified type of content, searching for target content matched with the content tag based on the specified type of content;
and returning the target content to the client.
Optionally, the content tag includes at least one group of content sub-tags, and each group of content sub-tags includes a content category tag.
Optionally, each set of the content sub-tags further includes a content keyword tag.
Optionally, in a case that the content tag includes multiple groups of content sub-tags, the searching for the target content matching the content tag includes:
and searching the target content matched with the plurality of groups of content sub-labels.
Optionally, in a case that the number of the searched target contents is less than a preset threshold, the method further includes:
determining an extended keyword label having a mapping relation with the content keyword label included in the at least one group of content sub-labels based on a preset keyword mapping table;
and searching corresponding target content based on the content keyword tag and the expanded keyword tag.
Optionally, the searching for the target content matched with the content tag includes:
and searching the target content matched with the content keyword tag from the content set corresponding to the content category tag.
Optionally, before returning the target content to the client, the method further includes:
acquiring a user identifier corresponding to a client, and searching a user portrait corresponding to the user identifier;
and sequencing the target content according to the correlation degree of the target content and the user portrait.
Optionally, the method further includes:
and under the condition that the target content matched with the content label cannot be searched, sending search failure information to the client, and sending recommended content related to the function identifier or the content label to the client.
Optionally, the search function indicated by the function identifier includes any one or a combination of multiple types of the following functions:
the search function for audio type content, the search function for video type content, the search function for image type content, the search function for text type content, the search function for hypertext type content, the search function for user homepage and the search for same-good user function.
Optionally, in a case that the function identifier indicates to search for a good-as-good user function, the searching for the target content matched with the content tag based on the content of the specified type includes:
searching friend adding information corresponding to the preference user and corresponding to the preference information and the content label;
the returning the target content to the client comprises:
and returning the friend adding information corresponding to the preference user to the client.
According to a second aspect of the embodiments of the present disclosure, a content obtaining method is provided, which is applied to a client, and includes:
acquiring a target graphic code;
analyzing the target graphic code to obtain a function identifier and a content tag carried in the target graphic code;
sending the function identifier and the content tag to a server, so that the server searches and returns target content matched with the content tag based on a search function which is indicated by the function identifier and aims at the specified type of content;
and acquiring the target content returned by the server.
According to a third aspect of the embodiments of the present disclosure, a content search apparatus is provided, which is applied to a server, and includes:
the acquisition module is configured to acquire a function identifier and a content tag sent by a client, wherein the function identifier and the content tag are obtained by analyzing a target graphic code by the client;
the searching module is configured to search target content matched with the content label based on the specified type of content if the function identification indicates a searching function for the specified type of content;
a return module configured to return the target content to the client.
According to a fourth aspect of the embodiments of the present disclosure, a content obtaining apparatus is provided, which is applied to a client, and includes:
a first obtaining module configured to obtain a target graphics code;
the analysis module is configured to analyze the target graphic code to obtain a function identifier and a content tag carried in the target graphic code;
the first sending module is configured to send the function identifier and the content tag to a server, so that the server searches and returns target content matched with the content tag based on a search function indicated by the function identifier and aiming at specified types of content;
and the second acquisition module is configured to acquire the target content returned by the server.
According to a fifth aspect of the embodiments of the present disclosure, a server is provided, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the content search method according to any of the above embodiments.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a client, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the content obtaining method according to any of the above embodiments.
According to a seventh aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, where instructions of the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the content acquisition method or the content search method according to any of the embodiments described above.
According to an eighth aspect of the embodiments of the present disclosure, a computer program product is provided, which includes a computer program, and when being executed by a processor, the computer program implements the content obtaining method or the content searching method according to any of the embodiments.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
in the above technical solution, on one hand, the function identifier and the content tag sent by the client are obtained by scanning and analyzing the target graphic code by the client, and the server can search the target content matched with the content tag and return the target content to the client based on the instruction type under the condition that the function identifier indicates the function of searching the specified type of content, so that the accuracy and timeliness of the information searched by the user through scanning the graphic code can be improved.
On the other hand, because the content tag and the function identifier are obtained by analyzing the target graphic code instead of the complete URL, after the server is updated or maintained, the target graphic code does not need to be synchronously changed with the domain name of the server, and the generated graphic code can still be continuously used, so that the difficulty of information updating or maintenance can be reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and, together with the description, serve to explain the principles and are not to be construed as limiting the disclosure.
Fig. 1 is a schematic diagram illustrating a scenario of scanning a graphic code to obtain content according to an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method of content retrieval in accordance with an illustrative embodiment;
FIG. 3 is a flow diagram illustrating a method for content lookup in an exemplary embodiment;
FIG. 4 is an interaction flow diagram illustrating content retrieval in accordance with an illustrative embodiment;
FIG. 5 is a schematic block diagram illustrating a content lookup apparatus in accordance with an illustrative embodiment;
FIG. 6 is a schematic block diagram illustrating a content lookup apparatus in accordance with an illustrative embodiment;
FIG. 7 is a block diagram of an electronic device in accordance with an exemplary embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of the present disclosure, the technical solutions in one or more embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in one or more embodiments of the present disclosure. It is to be understood that the described embodiments are only a few, and not all embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the disclosure without making any creative effort shall fall within the scope of protection of the disclosure.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of systems and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The graphic Code generally refers to a graphic Code for recording data information by arranging geometric figures, wherein a common one-dimensional graphic Code comprises a bar Code, and a two-dimensional graphic Code comprises a PDF417 Code, a Quick Response Code (QR Code), and the like; in the related technology, the graphic code can carry data information such as a commodity serial number, book publishing information and the like, and can also carry data information pointing to other contents; for example, the URL may be carried in the graphic code, so that the user may quickly obtain and access the URL by scanning the graphic code.
Referring to fig. 1, fig. 1 is a schematic view illustrating a scene of obtaining content by scanning a graphic code according to the present disclosure. In the situation, the client can obtain the information carried in the graphic code by scanning the graphic code, and further obtain the content corresponding to the information from the server according to the obtained information.
If the above-mentioned related technology that uses the graphic Code to carry the URL is applied in the above-mentioned example, it may be assumed that the graphic Code displayed on the left poster is specifically a two-dimensional QR Code, where the content of the carried URL is "https:// www.helloworld.test", and after the user scans the QR Code using the "two-dimensional Code scanning" function of the mobile browser client, the mobile browser client may parse the scanned QR Code and obtain the URL "https:// www.helloworld.test"; generally, the mobile browser will automatically access the URL and display the web page content corresponding to the URL to the user.
Under the condition of adopting the scheme, if the URL of the webpage content is changed, the user scans the QR Code of the old version to only obtain the URL of the old version, cannot access the webpage content corresponding to the new URL, and has the problem that the required information cannot be obtained; in order to enable a user to obtain the latest webpage content, a propaganda party needs to update and replace generated propaganda materials such as posters printed with QR codes, and therefore the scheme also has the problem of high updating and maintaining cost.
Based on the above, the present disclosure provides a technical solution that the client sends the function identifier and the content tag obtained by parsing the graphic code to the server, so that the server searches for and returns the corresponding target content.
When the method is realized, the information carried in the graphic code is not a URL which can be opened by a client, but is used for inquiring a function identifier and a content label of corresponding target content by a server; specifically, the content tags in the present disclosure may include any tags for searching for corresponding target content, which may include direct access tags such as numbers, addresses, catalogs, etc. that may directly point to specific content, or feature tags for narrowing down and refining categories such as story type, movie genre, starring actors, and showing date.
For example, suppose in the related art that the URL carried in the target graphic code in the promotional material is "http:// www.video.test/vid 123456", and the corresponding content is a video provided by the website "video. test", and once the website changes, for example, the domain name "video. test" fails, the website is changed with a new domain name "vd. test", and the URL of the video may be changed to "http:// www.vd.test/vid 123456", and the original URL may not point to the correct content; by applying the scheme, the content label 'vid 123456' corresponding to the video can be carried in the graphic code, after the graphic code is scanned by a specific video client, the carried label is sent to a corresponding video server, and the video server searches the corresponding video according to the content label and returns the corresponding video to the video client without being influenced by the change of the website domain name.
And the function identifier is used for indicating the search function which needs to be called actually under the condition that the server supports various search functions. For example, the server side supports both the search function for the video-type content and the search function for the novel-type content, and encodes the two into the function identifier F01 and the function identifier F02; if the function id sent by the client is F01 in a query, the server determines that the search function for the video-type content needs to be invoked, and does not need to invoke the search function for the novel-type content.
In one embodiment, the search function indicated by the function identifier may include any one or a combination of multiple types of the following functions: the search function for audio type content, the search function for video type content, the search function for image type content, the search function for text type content, the search function for hypertext type content, the search function for user homepage and the search for same-good user function.
It is to be understood that the above functions are only examples for convenience of enumeration, and those skilled in the art can flexibly set the above function identifier to adapt to various lookup functions that the server needs to support; and an identification logic can be designed, so that the server shields the query request carrying the unknown function identifier, and the safety of the system is improved.
In the above technical solution, on one hand, the function identifier and the content tag sent by the client are obtained by scanning and analyzing the target graphic code by the client, and the server can search the target content matched with the content tag based on the instruction type and return the target content to the client under the condition that the function identifier indicates the function of searching the specified type of content, so that the accuracy and timeliness of the content obtained by scanning the code by the client can be improved;
on the other hand, because the content tag and the function identifier are obtained by analyzing the target graphic code instead of the complete URL, after the server is updated or maintained, the target graphic code does not need to be synchronously changed with the domain name of the server, and the generated graphic code can still be continuously used, so that the difficulty of information updating or maintenance can be reduced.
The following describes the technical solution by using a specific embodiment and combining a specific application scenario.
Referring to fig. 2, fig. 2 is a flow chart illustrating a content acquisition method according to an exemplary embodiment, which may be applied to a client in the interaction scenario shown in fig. 1; the method may include the following steps S201 to S204:
s201, obtaining the target graphic code.
In this example, the client may first obtain the target graphic code; generally, a client can obtain corresponding content from a displayed graphic code by calling a camera on equipment; taking a short video application App installed on a smart phone as an example, the short video application App can acquire a target graphic Code in a QR Code form displayed on carriers such as a poster, a leaflet, a propaganda screen and the like through a shooting function by calling a camera assembly carried on the smart phone. It will be appreciated that in addition to the above-described use of a smartphone to scan QR codes, other types of graphic codes may be identified in practical applications using other devices, for example, a dedicated bar Code scanning device to identify PDF147 codes on books, a personal computer PC to identify Data Matrix codes carried in emails, and so on. Therefore, a person skilled in the art can perform scene migration according to specific requirements, and select a graphic code specification meeting the requirements and a corresponding device type; the above exemplary application scenarios do not constitute an undue limitation of the present disclosure.
In one embodiment, the client can obtain the target graphic code through a built-in instant messaging function; for example, the client is a short video application App with a built-in instant messaging function, and a friend lee four of the current user zhang san sends a piece of information to zhang san through the instant messaging function in the client, where the information includes a picture of the target graphic code, and the process can also be regarded as that the target graphic code is acquired by the short video application App of zhang san.
By applying the scheme, the instant messaging function of the client can be fully utilized, the circulation of the content among user groups is enhanced, and the convenience of content sharing is improved; meanwhile, because the target graphic code in the scheme carries the content label, the failure caused by the updating and iteration of the server side can be avoided, and the long-term effectiveness of the graphic code stored in the historical message record can be ensured.
S202, analyzing the target graphic code to obtain a function identifier and a content tag carried in the target graphic code.
In this example, after acquiring the target graphics code, the client may analyze the acquired target graphics code to acquire the function identifier and the content tag carried in the target graphics code. Specifically, the types of the graphic codes can be various, so that the client can analyze the graphic codes by adopting a corresponding analysis algorithm; for example, assuming that the client is only agreed to use the QR Code in the function, a resolution algorithm of the QR Code may be called to resolve the acquired target graphics Code.
In one embodiment, the client can support graphic codes in various formats, and is internally provided with an analysis algorithm which respectively supports various graphic code formats; before analyzing the obtained target graphic code, firstly, determining a graphic code format adopted by the target graphic code through an image recognition algorithm, such as a contour detection algorithm, and then calling a corresponding analysis algorithm to analyze the target graphic code; the target graphic code can be directly analyzed by directly calling the multiple analysis algorithms, and the result of successful analysis is reserved.
For example, if the shape of a certain target graphic Code is detected to be a rectangle by a contour detection algorithm, a QR Code format which is necessarily a square can be excluded; and by the characteristics of the profile subarea, PDF417 codes of the bar subarea and Data Matrix codes of the square subarea and the like can be further distinguished. A person skilled in the art can select an algorithm supporting multiple graphic code specifications by himself or herself according to specific needs, or design a private graphic code specification protocol by himself, and the disclosure need not be limited in detail.
Graphic codes with different formats generally have advantages, such as higher identification speed of QR Code, higher information density of Data Matrix, and the like; therefore, by adopting the scheme, the client supports the target graphic codes in various formats, the respective advantages of the graphic codes in various formats can be fully utilized, and the adaptability of the target graphic code to different carriers and scenes is improved.
Generally, after the target graphic code is analyzed, the data information carried by the target graphic code can be obtained; in the present disclosure, the data information carried by the target graphic code is a function identifier and a content tag; it is understood that the function identifier and the content tag may be directly stored in the target graphic code, or may be packaged in a specific data format and stored in the target graphic code. For example, the target graphic code may carry a structure, and the function identifier and the content tag may be stored in a designated location of the structure. For example, the information carried in the target pattern code can be agreed in advance using the JSON format as follows:
{ "tag": function identifier, and "data": content tag ] }
That is, the function identifier may be stored in tag one item of JSON format, and the content tag may be stored in data one item. It is to be understood that the JSON format described above is only a viable example and does not constitute an undue limitation on the present disclosure; besides JSON format, those skilled in the art can select other available data formats such as various linked lists, trees, key-value pairs, etc. on their own based on the above concept, and the disclosure need not be fully enumerated.
In an embodiment, after the client parses the target graphic code, whether the parsing result includes a preset function identifier may be checked, so as to determine whether the target graphic code is a graphic code carrying a content tag in the present disclosure. Continuing with the above-mentioned scheme of storing function identifiers and content tags in JSON format as an example, the logic in the client may be configured to determine that the target graphics code is the graphics code carrying the content tag only when it is recognized that the information corresponding to the tag is the function identifier indicating the function of searching for the specified type of content, and then may process the information corresponding to the subsequent data as the content tag, that is, perform the subsequent operation. For example, assuming that the function identifier of the search function corresponding to the video stream type content is "videos", the function identifier of the search function corresponding to the music stream type content is "musicscenes", the function identifier of the search function corresponding to the novel list type content is "novellists", and the function identifier of the search function corresponding to the user homepage is "useerhomepg", the subsequent steps will be continued only when the information corresponding to the tag is identified as "videos" or "musicscenes" or "novellists" or "useerhomepg" in the analysis result of the target graphic code.
In practical applications, developers can set specific contents of the function identifier and corresponding relationships between different function identifiers and various search functions according to specific service requirements, and the disclosure does not need to be limited specifically.
It can be understood that, under the condition that the information corresponding to tag is not the preset function identifier, an error prompt may be presented according to specific service requirements, for example, a prompt message including "this two-dimensional code is not our two-dimensional code" is popped up, and so on. The present disclosure need not be limited to subsequent error handling schemes. It is also understood that the above step of identifying the function identifier is not performed only on the client; that is to say, the client may send the function identifier and the content tag to the server after identifying the function identifier, or may directly send the function identifier and the content tag to the server, and the server then identifies whether the function identifier meets the predetermined condition.
By applying the scheme, whether the target graphic code is the graphic code carrying the content tag can be determined before the content tag is sent, so that the situation that the client mistakenly considers the irrelevant content which is not the content tag as the content tag and sends the content tag to the server can be avoided, and the efficiency and the safety of the business process can be improved.
In an embodiment, the content tag may include at least one group of content sub-tags, and each group of content sub-tags includes at least a content category tag. The following JSON data structure is taken as an example:
{"tag":"videofeeds",
"data":[{"key":"calendar","params":"2010.10.1"},{"key":"calendar","params":"2010.12.26"}]}
in this example, the video fields corresponding to tag is a function identifier indicating a query function for querying a video stream, and the portion corresponding to data is a content tag; it can be seen that two groups of content sub-tags are included under the data, and each group of sub-tags includes a key, that is, a content category tag, specifically, the calendar in this example refers to a date, and then, in combination with a corresponding parameter params value of "2010.10.1", it indicates that the server needs to filter content whose date is 2010.10.1. By adopting the scheme, the content label can contain one or more groups of content sub-labels, so that more information for describing the target content to be inquired can be contained, the requirement of more accurately recording content inquiry is facilitated, and the adaptability of the target graphic code to complex services is improved.
In an embodiment, the content sub-tags may further include content keyword tags, where the content keyword tags are used to define search conditions of the content together with corresponding content category tags. For example, if the search condition desired to be carried in a two-dimensional code includes both the category condition of "news" and the date keyword condition of "2010.10.1", the content sub-tag may carry a content category tag indicating the category condition of "news" and a content keyword tag indicating the date keyword condition of "2010.10.1". By applying the scheme, the searching accuracy can be further improved.
In an embodiment, when the content sub-tag includes both a content keyword tag and a content category tag, the returned target content may be target content that is searched by the server from a content set corresponding to the content category tag and matches the content keyword tag. Assuming that a content sub-tag obtained by scanning and analyzing a certain two-dimensional code is { "key": News "," params ": 2010.10.1" }, the content sub-tag means that the returned target content is the content retrieved according to the keyword 2010.10.1 in the News classification set.
It is also understood that, in the present disclosure, the above-mentioned content keyword tag is not necessarily designed; in some cases, when the client only needs to filter the content category and does not need to be further limited by the content keyword, the client can only carry the content category tag in the content sub-tag and leave the content keyword tag empty, or fill in a preset empty placeholder, and the server can preset a default value of the content keyword tag, so that when the content keyword tag is empty, the server searches by using the default value. For example, assuming that the target graphic code is used to obtain Movie content on a Movie _ ABC Movie website, the corresponding content category tag is agreed to be Movie _ ABC, and thus scanning and analyzing to obtain one set of content sub-tags may be { "key": Movie _ ABC "," params ": and" } and the parameter params (content keyword tag) is empty.
S203, the function identifier and the content tag are sent to a server, so that the server searches and returns the target content matched with the content tag based on the search function indicated by the function identifier and aiming at the specified type of content.
In this example, after obtaining the function identifier and the content tag carried in the target graphic code, the client may send the function identifier and the content tag to the server, so that the server searches for and returns corresponding target content according to the function identifier and the content tag. Taking the play scene of the short video App as an example, assuming that the function identifier acquired by the short video App through analyzing the scanned graphic code is a "short video" and the content label is a "nostalgic music", after receiving the content label, the corresponding short video server may search for the "nostalgic music" as a keyword, and return the searched short video to the short video App client.
S204, the target content returned by the server is obtained.
In this example, the client may obtain the target content corresponding to the content tag returned by the server. It can be understood that, taking the short video acquisition scene as an example, the server may return a video list formed by multiple videos with the highest playing amount or the highest approval amount among the multiple searched short videos, may also return a video stream link of the most authoritative short video, and the like. Therefore, the specific way for the client to obtain the target content may be to obtain complete data of the target content, obtain a pointing link of the target content, obtain a list containing the target content, and the like, and the disclosure need not be further limited.
It can be understood that the obtained target content may be content such as video, document, picture, music, and the like which are further used for display, or content such as check-in confirmation message, identity confirmation message, and the like which need not be displayed, so that the scheme focuses more on the manner in which the client obtains the content, and does not need to limit whether the content needs to be displayed or how the content needs to be displayed.
It can also be understood that, if the server does not find the target content meeting the requirement, the client may display the preset acquisition failure prompt information and provide further search suggestions or content recommendations; for example, when a user scans the graphic code to request the server to return the related information of the "XX movie" but the movie cannot be played after being placed on shelves, the client may notify the user that the "XX movie" has been placed on shelves through a message prompt, and provide the related movies related to the "XX movie" with the lead actor or the director for the user to select. Those skilled in the art can design the compensation scheme after the search fails according to specific requirements, and the disclosure does not need to be fully enumerated.
In the process, desensitization technology can be used for reducing privacy disclosure of the user, and the security and the privacy of each step can be improved by using technical means such as encryption, signature and the like; for example, when the client sends the content tag to the server, the client may carry its own identity so that the server knows the preference of the user, but when the server requests the content from the third-party content source, the identity may be removed or desensitized so that the preference information of the user is not leaked to the third-party content source.
In an embodiment, the client may further send a user identifier corresponding to the client to the server, so that the server searches for the user portrait corresponding to the user identifier before returning the target content, and sorts the target content according to a correlation between the target content and the user portrait. The user portrait can be understood as an evaluation result of user behavior habits and preferences through a plurality of dimensions, if a user portrait is performed on a user who is served by the server in advance in the server, the client only needs to send a user identifier corresponding to the client to the server, and the server can find the corresponding user portrait, so that the target content is sequenced according to the correlation degree of the target content and the user portrait.
For example, if the user portrait of user page three indicates that the person likes content related to digital codes and dislikes content related to makeup, when searching for related shooting content, the content such as camera brand, parameters and the like in the target content which are strongly related to the preference of digital codes can be arranged in front of the target content, and the content such as model makeup and the like which are related to the theme which is disliked by the user is arranged in back of the target content, so that the target content which is sequenced according to the user portrait can be obtained.
By adopting the scheme, the advantages of big data can be fully utilized, the search result of the user is further optimized based on the habit preference of the user, and the recognition degree of the user for the content acquisition result is improved.
Based on the above embodiments, it can be known that the content acquisition method provided by the present disclosure not only can extend the operation habit of the user for acquiring content by scanning the graphic code, and reduce the learning cost of the user, but also can continue to use the generated graphic code under the condition of server update or maintenance, and reduce the cost of system update or maintenance.
The above contents are all embodiments of the content obtaining method applied to the client side provided by the present disclosure; the disclosure also correspondingly provides a content searching method applied to the server.
Referring to fig. 3, fig. 3 is a flow chart illustrating another content lookup method according to an exemplary embodiment; the method can be applied to a server in an interaction scenario as shown in fig. 1, and includes the following steps:
s301, acquiring a function identifier and a content tag sent by a client, wherein the function identifier and the content tag are obtained by scanning and analyzing a target graphic code by the client.
In this example, after the client scans and parses the target graphics code to obtain the function identifier and the content tag, the server may obtain the function identifier and the content tag sent by the client. As mentioned above, the client can either scan the target graphic code instantly by means of camera shooting, or scan the target graphic code from sources such as instant messaging software chat records, etc. stored in the device in file form through the picture reading interface; moreover, the types of the graphic codes can be various, so that the client can analyze the graphic codes by adopting a corresponding analysis algorithm; therefore, the present disclosure does not limit the specific way in which the client scans the target graphic code, nor the specific way in which the client parses the target graphic code. In addition, the present disclosure does not need to limit the specific communication method between the client and the server, and a person skilled in the art can select the communication method according to the specific service requirement.
In one embodiment, the content tag may include at least one set of content sub-tags, and each set of the content sub-tags may include a content category tag. The following JSON data structure is taken as an example:
{"tag":"videofeeds",
"data":[{"key":"calendar","params":"2010.10.1"},{"key":"calendar","params":"2010.12.26"}]}
in this example, the portion corresponding to the data is a content tag; two groups of content sub-tags are included, and each group of sub-tags includes a key, that is, a content category tag, specifically, the calendar in this example refers to a date, and the corresponding parameter params value is "2010.10.1", which indicates that the server needs to filter the content with a date of 2010.10.1. By adopting the scheme, the content label can contain one or more groups of content sub-labels, so that more information for describing the target content to be inquired can be contained, the requirement of more accurately recording content inquiry is facilitated, and the adaptability of the target graphic code to complex services is improved.
In an embodiment, the content sub-tags may further include content keyword tags, where the content keyword tags are used to define search conditions of the content together with corresponding content category tags. In the case that the content sub-tag includes both a content keyword tag and a content category tag, the target content to be queried may be indicated as: and the target content belongs to the content set matched with the content category label and is matched with the content keyword label. Assuming that a content sub-tag obtained by scanning and analyzing a certain two-dimensional code is { "key": News "," params ": 2010.10.1" }, the content sub-tag means that the target content is the content retrieved according to the keyword 2010.10.1 from the News classification set.
It is also understood that, in the present disclosure, the above-mentioned content keyword tag is not necessarily designed; in some cases, when the client only needs to filter the content category and does not need to be further limited by the content keyword, the client can only carry the content category tag in the content sub-tag and leave the content keyword tag empty, or fill in a preset empty placeholder, and the server can preset a default value of the content keyword tag, so that when the content keyword tag is empty, the server searches by using the default value. For example, assuming that the target graphic code is used to obtain the movie content on the double movie website, the corresponding content category label is agreed to be movie _ double, so that scanning and parsing to obtain one set of content sub-labels may be { "key": movie _ double "," params ": and" } and the parameter params (content keyword label) is empty.
S302, if the function identification indicates a search function for the content of the specified type, searching the target content matched with the content label based on the content of the specified type;
in this example, where the function identifier received from the client indicates a search function for a specified type of content, the server may search for target content that matches the content tag received from the client based on the specified type of content. Taking the play scenario of the short video App as an example, assuming that the function identifier acquired by the short video App through analyzing the scanned graphic code is "short video" and the content label is "nostalgic music", after receiving the content label, the corresponding short video server may search for the "nostalgic music" as a keyword. It can be understood that, the judgment whether the function identifier indicates the function of searching the specified type of content may be completed at the server, or the server may obtain the judgment result from the client after the completion of the function identifier is completed at the client; the present disclosure does not limit the execution subject of the step of determining whether or not the above function identification indicates a search function for a specified type of content.
As mentioned above, the content tag may include one or more groups of content sub-tags. In an embodiment, when the content tag includes a plurality of groups of content sub-tags, the server may search for the target content matched with the plurality of groups of content sub-tags when searching for the target content matched with the content tag. That is, the logical relationship between the above-described sets of content sub-tags may be a "and" relationship. For example, in two sets of content sub-tags in a query, content sub-tag a covers content a01, a02, and content sub-tag b covers content a02, a03, and then, using the logical relationship of "and", the finally determined target content may be content a02 matching both content sub-tags a and b.
However, it is understood that in practical applications, since the logical relationship adopted among the content sub-tags may result in the number of the searched target contents being too small, other logical relationships or extended search may be adopted.
In an embodiment, when the number of the searched target contents is less than a preset threshold, the server may determine, based on a preset keyword mapping table, an extended keyword tag having a mapping relationship with the content keyword tag included in the at least one group of content sub-tags; and searching corresponding target content based on the content keyword tag and the expanded keyword tag. The above process may be regarded as performing synonym expansion processing on the content keywords contained in the content sub-tags, and then searching by using the keywords obtained after expansion.
For example, if an existing content keyword label is "sweet potato", the server can find out similar words such as "sweet potato", "sweet potato" and the like associated with the "sweet potato" based on a preset keyword mapping table, and then search for corresponding target content based on the "sweet potato", "sweet potato" and the "sweet potato", so that the number of the searched target content is increased, and the problem that the number of the searched results is too small due to the fact that the content keyword label is too rare is avoided.
It is understood that, the specific way of completing the expansion process of the near Word may be Word Embedding (Word Embedding) in addition to the above-mentioned use of the keyword mapping table, and the disclosure need not list all of them.
In an embodiment, the content sub-tags include both content category tags and content keyword tags; in this case, when searching for the target content, the server may search for the target content matching the content keyword tag from the content set corresponding to the content category tag. Assuming that a certain content sub-label is { "key": News "," params ": 2010.10.1" }, the content sub-label means that the target content will be the content searched by the keyword 2010.10.1 in the News classification set.
It is also understood that, in the present disclosure, the above-mentioned content keyword tag is not necessarily designed; in some cases, when the client only needs to filter the content category and does not need to be further limited by the content keyword, the client can only carry the content category tag in the content sub-tag and leave the content keyword tag empty, or fill in a preset empty placeholder, and the server can preset a default value of the content keyword tag, so that when the content keyword tag is empty, the server searches by using the default value. For example, assuming that the target graphic code is used to obtain Movie content on a Movie _ ABC Movie website, the corresponding content category tag is agreed to be Movie _ ABC, and thus scanning and analyzing to obtain one set of content sub-tags may be { "key": Movie _ ABC "," params ": and" } and the parameter params (content keyword tag) is empty.
S403, returning the target content to the client.
In this example, the server may return the searched target content to the client. It can be understood that, taking the short video acquisition scene as an example, the server may return a video list formed by multiple videos with the highest playing amount or the highest approval amount among the multiple searched short videos, may also return a video stream link of the most authoritative short video, and the like. Therefore, the specific way for the client to obtain the target content may be to obtain complete data of the target content, obtain a pointing link of the target content, obtain a list containing the target content, and the like, and the disclosure need not be further limited.
In an embodiment, the client may further send a user identifier corresponding to the client to the server, and the server may search for the user portrait corresponding to the user identifier before returning the target content, and sort the target content according to a correlation between the target content and the user portrait. The user portrait can be understood as an evaluation result of user behavior habits and preferences through a plurality of dimensions, if a user portrait is performed on a user who is served by the server in advance in the server, the client only needs to send a user identifier corresponding to the client to the server, and the server can find the corresponding user portrait, so that the target content is sequenced according to the correlation degree of the target content and the user portrait.
For example, if the user portrait of user page three indicates that the person likes content related to digital codes and dislikes content related to makeup, when searching for related shooting content, the content such as camera brand, parameters and the like in the target content which are strongly related to the preference of digital codes can be arranged in front of the target content, and the content such as model makeup and the like which are related to the theme which is disliked by the user is arranged in back of the target content, so that the target content which is sequenced according to the user portrait can be obtained.
By adopting the scheme, the advantages of big data can be fully utilized, the search result of the user is further optimized based on the habit preference of the user, and the recognition degree of the user for the content acquisition result is improved.
In an embodiment, if the target content matched with the content tag is not found, the server may send search failure information to the client, and send recommended content related to the function identifier or the content tag to the client. For example, assuming that the content tag indicates that the server searches for a movie of the director in 2021 year a, however, the director in 2021 year a does not produce the movie, and the server does not find the corresponding target content, in this case, the server may send search failure information to the client, and send the movie of the director in 2020 year a, or MV works of the director in 2021 year a, to the client. By applying the scheme, the client can be timely notified and related recommended content can be pushed to the client under the condition that the content tag cannot be matched with the content, so that a blank page is prevented from being returned, and the user experience is guaranteed.
In one embodiment, the target content may include not only content authored by the user in the conventional sense, but also user account information. Specifically, the server may pre-store user preference information of each user account, and when the function identifier indicates that the user function is found, the server may first find a user account whose user preference information matches the content tag, and then return the found user account to the client as the target content. For example, if a client searches for a cracking method of a certain office toy by using a short video server after scanning a target graphic code, but the short video platform does not have the cracking method of the office toy temporarily, the short video platform server can send a query failure notification to the client, can also search for a user account with user preference information matched with the cracking method of the certain office toy, and then returns the searched user account information to the client as target information, so that user recommendation with interest is directly obtained under the condition that the matched content cannot be directly obtained, and the problems that the existing content corresponding to the rarely-used content tag is few and the retention amount of the user is difficult to increase can be remarkably improved.
In an embodiment, when the server searches for content, the server may search from a content set maintained by the server, or may search from a third-party content set interfaced with the server. Specifically, the server may exist as a role of a content publisher or a role of a content forwarder, and for example, the server of the short video App may directly provide a short video, or may cooperate with a third-party content website to acquire content such as a video, a score, a list, and the like provided by the third-party content website.
Assuming that the short video App obtains a content classification label of the AA movie through scanning a graphic code on a propaganda poster of the movie, namely the happy life of the third Zhang, and a keyword label of the happy life of the third Zhang, a server of the short video App can directly return a highlight clip of the movie, namely the happy life of the third Zhang, or interact with a server of a butted 'AA movie evaluation' website to obtain a popular movie evaluation of the movie, namely the happy life of the third Zhang in the 'AA movie evaluation' website, and return the popular movie evaluation to the short video client. For another example, after the client sends the content type tag of "BB movie ticket" and the content keyword tag of "2021.10.1" to the server, the server may request the "BB movie ticket" for a movie list that can be purchased on 10 months and 1 days of 2021 year, and return the movie list to the client.
Obviously, the third-party content set may be a content set maintained by content providers in various forms such as e-commerce platforms, web forums, video websites, and the like, and a person skilled in the art may select various third-party content providers to interface with a server according to specific business requirements.
Referring to fig. 4, fig. 4 is a schematic view illustrating an interaction flow of content acquisition; in this example, the content tag includes a content type tag and a content keyword tag, and the server is docked with the third-party content source, so that the process of the client obtaining the target content by scanning the graphics code may include the following steps: firstly, a client acquires and analyzes a target graphic code, acquires a content source label and a content keyword label from the target graphic code, and sends the two labels to a server; secondly, the server side can determine that interaction with a third-party content source is needed through the content source label, and sends the content keyword label to the third-party content source corresponding to the content source label; then, the third-party content source finds out corresponding target content according to the received content keyword tag and returns the target content to the server; and finally, the server further returns the target content provided by the third-party content source to the client.
By applying the scheme, the content source for providing the content can be a content source maintained by the server or a third-party content source connected with the server, so that the characteristics of different content sources can be fully utilized, and the client can obtain more accurate and rich content.
Based on the above scheme, in the content search method applied to the server side provided by the present disclosure, since the content tag and the function identifier are obtained by analyzing the target graphic code, rather than the complete URL, after the server side is updated or maintained, the target graphic code does not need to be changed synchronously with the domain name of the server side, and the generated graphic code can still be continuously used, so that the cost of system update or maintenance can be reduced.
The present disclosure also provides embodiments of a corresponding content acquisition apparatus as follows:
referring to fig. 5, fig. 5 is a schematic block diagram illustrating a content acquisition device according to an exemplary embodiment, which may be applied to a client in the interaction scenario shown in fig. 1; the apparatus may include a first obtaining module 501, a parsing module 502, a sending module 503, and a second obtaining module 504; wherein:
a first obtaining module 501, which may be configured to obtain a target graphics code;
the parsing module 502 may be configured to parse the target graphics code to obtain a function identifier and a content tag carried in the target graphics code;
a first sending module 503, which may be configured to send the function identifier and the content tag to a server, so that the server searches and returns target content matching with the content tag based on a search function indicated by the function identifier and specific to a specified type of content;
the second obtaining module 504 may be configured to obtain the target content returned by the server.
In one embodiment, the search function indicated by the function identifier may include any one or a combination of multiple types of the following functions: the search function for audio type content, the search function for video type content, the search function for image type content, the search function for text type content, the search function for hypertext type content, the search function for user homepage and the search for same-good user function.
In an embodiment, the content tag may include at least one group of content sub-tags, and each group of content sub-tags includes at least a content category tag. By adopting the scheme, the content label can contain one or more groups of content sub-labels, so that more information for describing the target content to be inquired can be contained, the requirement of more accurately recording content inquiry is facilitated, and the adaptability of the target graphic code to complex services is improved.
In an embodiment, the content sub-tags may further include content keyword tags, where the content keyword tags are used to define search conditions of the content together with corresponding content category tags. For example, if the search condition desired to be carried in a two-dimensional code includes both the category condition of "news" and the date keyword condition of "2010.10.1", the content sub-tag may carry a content category tag indicating the category condition of "news" and a content keyword tag indicating the date keyword condition of "2010.10.1". By applying the scheme, the searching accuracy can be further improved.
In an embodiment, when the content sub-tag includes both a content keyword tag and a content category tag, the returned target content may be target content that is searched by the server from a content set corresponding to the content category tag and matches the content keyword tag. Assuming that a content sub-tag obtained by scanning and analyzing a certain two-dimensional code is { "key": News "," params ": 2010.10.1" }, the content sub-tag means that the returned target content is the content retrieved according to the keyword 2010.10.1 in the News classification set.
In an embodiment, the apparatus may further include a second sending module, where the second sending module may be configured to send the user identifier corresponding to the client to the server, so that the server searches for the user representation corresponding to the user identifier before returning the target content, and sorts the target content according to a correlation between the target content and the user representation. The user portrait can be understood as an evaluation result of user behavior habits and preferences through a plurality of dimensions, if a user portrait is performed on a user who is served by the server in advance in the server, the client only needs to send a user identifier corresponding to the client to the server, and the server can find the corresponding user portrait, so that the target content is sequenced according to the correlation degree of the target content and the user portrait.
By adopting the scheme, the advantages of big data can be fully utilized, the search result of the user is further optimized based on the habit preference of the user, and the recognition degree of the user for the content acquisition result is improved.
Referring to fig. 6, fig. 6 is a schematic block diagram illustrating a content search apparatus according to an exemplary embodiment, which may be applied to a server in the interaction scenario shown in fig. 1; the apparatus may include the following modules:
an obtaining module 601, which may be configured to obtain a function identifier and a content tag sent by a client, where the function identifier and the content tag are obtained by the client analyzing a target graphics code;
a search module 602, configured to search for target content matching the content tag based on the specified type of content if the function identifier indicates a search function for the specified type of content;
a returning module 603, which may be configured to return the target content to the client.
In one embodiment, the content tag may include at least one set of content sub-tags, and each set of the content sub-tags may include a content category tag. By adopting the scheme, the content label can contain one or more groups of content sub-labels, so that more information for describing the target content to be inquired can be contained, the requirement of more accurately recording content inquiry is facilitated, and the adaptability of the target graphic code to complex services is improved.
In an embodiment, the content sub-tags may further include content keyword tags, where the content keyword tags are used to define search conditions of the content together with corresponding content category tags. In the case that the content sub-tag includes both a content keyword tag and a content category tag, the target content to be queried may be indicated as: and the target content belongs to the content set matched with the content category label and is matched with the content keyword label.
It is also understood that, in the present disclosure, the above-mentioned content keyword tag is not necessarily designed; in some cases, when the client only needs to filter the content category and does not need to be further limited by the content keyword, the client can only carry the content category tag in the content sub-tag and leave the content keyword tag empty, or fill in a preset empty placeholder, and the server can preset a default value of the content keyword tag, so that when the content keyword tag is empty, the server searches by using the default value.
In an embodiment, in a case that the content tag includes a plurality of sets of content sub-tags, the search module 602, when searching for the target content matching the content tag, may be configured to search for the target content matching the plurality of sets of content sub-tags. That is, the logical relationship between the above-described sets of content sub-tags may be a "and" relationship. However, it is understood that in practical applications, since the logical relationship adopted among the content sub-tags may result in that the number of the searched target contents is too small, other logical relationships may also be adopted.
In an embodiment, the search module in the apparatus may be further configured to determine, based on a preset keyword mapping table, an extended keyword tag having a mapping relationship with the content keyword tag included in the at least one group of content sub-tags, when the number of the searched target contents is less than a preset threshold; and searching corresponding target content based on the content keyword tag and the expanded keyword tag. The above process may be regarded as performing synonym expansion processing on the content keywords contained in the content sub-tags, and then searching by using the keywords obtained after expansion. The scheme can increase the number of the searched target contents and avoid the problem of too small number of the searched results caused by that the content keyword labels are too rare.
In an embodiment, the content sub-tags include both content category tags and content keyword tags; in this case, when searching for the target content, the server may search for the target content matching the content keyword tag from the content set corresponding to the content category tag.
In an embodiment, the apparatus may further include a sorting module, where the sorting module may be configured to, before the target content is returned to the client, obtain a user identifier corresponding to the client, search for a user portrait corresponding to the user identifier, and sort the target content according to a correlation between the target content and the user portrait. The user portrait can be understood as an evaluation result of user behavior habits and preferences through a plurality of dimensions, if a user portrait is performed on a user who is served by the server in advance in the server, the client only needs to send a user identifier corresponding to the client to the server, and the server can find the corresponding user portrait, so that the target content is sequenced according to the correlation degree of the target content and the user portrait.
In an embodiment, the apparatus may further include a recommendation module, and the recommendation module may be configured to send search failure information to the client and send recommended content related to the function identifier or the content tag to the client if target content matching the content tag is not found. By applying the scheme, the client can be timely notified and related recommended content can be pushed to the client under the condition that the content tag cannot be matched with the content, so that a blank page is prevented from being returned, and the user experience is guaranteed.
In one embodiment, the target content may include not only content authored by a user in a conventional sense, but also user account information. Specifically, in the case that the function identifier indicates to search for the same user function, the search module 602 may be further configured to search for a user account matching the content tag based on user preference information, and use the user account as the target content, where the user preference information is information of each user account pre-stored on the server. By applying the scheme, the client can directly obtain the like-good user recommendation of interest investment under the condition that the client cannot directly obtain the matched content, and the problems that the existing content corresponding to the rarely-used content label is few and the user retention amount is difficult to improve can be remarkably improved.
The specific implementation of the apparatus in the above embodiments, in which each module is described in detail in the embodiments describing the corresponding method, will not be elaborated herein.
An embodiment of the present disclosure further provides a client, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the content obtaining method according to any of the above embodiments.
An embodiment of the present disclosure further provides a server, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the content search method according to any of the above embodiments.
An embodiment of the present disclosure further provides a content obtaining system, including the client and the server described in any of the above embodiments.
Embodiments of the present disclosure also provide a computer-readable storage medium, where instructions of the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform a content acquisition method or a content search method according to any of the above embodiments.
An embodiment of the present disclosure further provides a computer program product, including a computer program, where the computer program is executed by a processor to implement the content obtaining method or the content searching method according to any of the above embodiments.
Fig. 7 is a schematic block diagram illustrating an electronic device in accordance with an embodiment of the present disclosure. Referring to fig. 7, electronic device 700 may include one or more of the following components: processing component 702, memory 704, power component 706, multimedia component 708, audio component 710, input/output (I/O) interface 712, sensor component 714, and communication component 718. The client or the server can adopt a similar hardware architecture.
The processing component 702 generally controls overall operation of the electronic device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the content retrieval method described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the electronic device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 706 provides power to the various components of the electronic device 700. The power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 700.
The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 700 is in an operation mode, such as a photographing mode or a video mode. Each of the front camera and the rear camera may be a fixed or optical lens system with a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 704 or transmitted via the communication component 718. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 may detect an open/closed state of the electronic device 700, the relative positioning of components, such as a display and keypad of the electronic device 700, the sensor assembly 714 may also detect a change in the position of the electronic device 700 or a component of the electronic device 700, the presence or absence of user contact with the electronic device 700, orientation or acceleration/deceleration of the electronic device 700, and a change in the temperature of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 718 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 7G), or a combination thereof. In an exemplary embodiment, the communication component 718 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 718 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an embodiment of the present disclosure, the electronic device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-mentioned content acquisition method.
In an embodiment of the present disclosure, a computer-readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the electronic device 700 to perform the above-described content acquisition method is also provided. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
It is noted that, in the present disclosure, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The method and apparatus provided by the embodiments of the present disclosure are described in detail above, and the principles and embodiments of the present disclosure are explained herein by applying specific examples, and the above description of the embodiments is only used to help understanding the method and core ideas of the present disclosure; meanwhile, for a person skilled in the art, based on the idea of the present disclosure, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present disclosure should not be construed as a limitation to the present disclosure.

Claims (10)

1. A content search method is applied to a server side, and is characterized by comprising the following steps:
acquiring a function identifier and a content label sent by a client, wherein the function identifier and the content label are obtained by scanning and analyzing a target graphic code by the client;
if the function identification indicates a search function for the specified type of content, searching for target content matched with the content tag based on the specified type of content;
and returning the target content to the client.
2. The method according to claim 1, wherein the search function indicated by the function identifier comprises any one or more types of combination of the following functions:
the search function for audio type content, the search function for video type content, the search function for image type content, the search function for text type content, the search function for hypertext type content, the search function for user homepage and the search for same-good user function.
3. A content acquisition method is applied to a client and comprises the following steps:
acquiring a target graphic code;
analyzing the target graphic code to obtain a function identifier and a content tag carried in the target graphic code;
sending the function identifier and the content tag to a server, so that the server searches and returns target content matched with the content tag based on a search function indicated by the function identifier and aiming at the specified type of content;
and acquiring the target content returned by the server.
4. A content search device applied to a server side is characterized by comprising:
the acquisition module is configured to acquire a function identifier and a content tag sent by a client, wherein the function identifier and the content tag are obtained by analyzing a target graphic code by the client;
the searching module is configured to search target content matched with the content label based on the specified type of content if the function identification indicates a searching function for the specified type of content;
a return module configured to return the target content to the client.
5. A content acquisition device applied to a client side is characterized by comprising:
a first obtaining module configured to obtain a target graphics code;
the analysis module is configured to analyze the target graphic code to obtain a function identifier and a content tag carried in the target graphic code;
the first sending module is configured to send the function identifier and the content tag to a server, so that the server searches and returns target content matched with the content tag based on a search function indicated by the function identifier and aiming at specified types of content;
and the second acquisition module is configured to acquire the target content returned by the server.
6. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the content lookup method of any one of claims 1 to 2.
7. A client, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the content acquisition method of claim 3.
8. A content acquisition system, comprising:
the server of claim 6, and the client of claim 7.
9. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the content acquisition method or the content search method of any one of claims 1 to 3.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the content acquisition method or the content lookup method of any one of claims 1 to 3.
CN202110871646.7A 2021-07-30 2021-07-30 Content searching method and device Active CN113553521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110871646.7A CN113553521B (en) 2021-07-30 2021-07-30 Content searching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110871646.7A CN113553521B (en) 2021-07-30 2021-07-30 Content searching method and device

Publications (2)

Publication Number Publication Date
CN113553521A true CN113553521A (en) 2021-10-26
CN113553521B CN113553521B (en) 2024-03-12

Family

ID=78105005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110871646.7A Active CN113553521B (en) 2021-07-30 2021-07-30 Content searching method and device

Country Status (1)

Country Link
CN (1) CN113553521B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115600556A (en) * 2022-12-15 2023-01-13 京华信息科技股份有限公司(Cn) Method and system for recommending directory information of document
CN116450919A (en) * 2022-01-06 2023-07-18 腾讯科技(深圳)有限公司 Information acquisition method, graphic code generation method, device, terminal and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594515A (en) * 2008-05-29 2009-12-02 深圳华为通信技术有限公司 Electronic programming search acquisition methods, equipment, server and system
US20120214443A1 (en) * 2010-08-27 2012-08-23 Wherepro, Llc Operation of a computing device involving wireless tokens
CN103065116A (en) * 2012-12-31 2013-04-24 王石磊 Method and system capable of enabling client to recognize two-dimension code
CN108021672A (en) * 2017-12-06 2018-05-11 北京奇虎科技有限公司 Social recommendation method, apparatus and computing device based on photograph album
CN111062704A (en) * 2019-12-10 2020-04-24 支付宝(杭州)信息技术有限公司 Method and device for identifying graphic code
CN111814077A (en) * 2020-06-30 2020-10-23 北京百度网讯科技有限公司 Information point query method, device, equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594515A (en) * 2008-05-29 2009-12-02 深圳华为通信技术有限公司 Electronic programming search acquisition methods, equipment, server and system
US20120214443A1 (en) * 2010-08-27 2012-08-23 Wherepro, Llc Operation of a computing device involving wireless tokens
CN103065116A (en) * 2012-12-31 2013-04-24 王石磊 Method and system capable of enabling client to recognize two-dimension code
CN108021672A (en) * 2017-12-06 2018-05-11 北京奇虎科技有限公司 Social recommendation method, apparatus and computing device based on photograph album
CN111062704A (en) * 2019-12-10 2020-04-24 支付宝(杭州)信息技术有限公司 Method and device for identifying graphic code
CN111814077A (en) * 2020-06-30 2020-10-23 北京百度网讯科技有限公司 Information point query method, device, equipment and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116450919A (en) * 2022-01-06 2023-07-18 腾讯科技(深圳)有限公司 Information acquisition method, graphic code generation method, device, terminal and medium
CN115600556A (en) * 2022-12-15 2023-01-13 京华信息科技股份有限公司(Cn) Method and system for recommending directory information of document
CN115600556B (en) * 2022-12-15 2023-03-03 京华信息科技股份有限公司 Method and system for recommending directory information of document

Also Published As

Publication number Publication date
CN113553521B (en) 2024-03-12

Similar Documents

Publication Publication Date Title
US9483475B2 (en) Content recommendation method
CN107660284B (en) Search improvement based on machine learning
US8370358B2 (en) Tagging content with metadata pre-filtered by context
US10372469B2 (en) Method and device for displaying information
US10878044B2 (en) System and method for providing content recommendation service
US20110289015A1 (en) Mobile device recommendations
CN108664303B (en) Webpage content display method and device
US20140188889A1 (en) Predictive Selection and Parallel Execution of Applications and Services
US20190361857A1 (en) Method and system for associating data from different sources to generate a person-centric space
CN105068976B (en) Ticket information display method and device
TW201018298A (en) Data access based on content of image recorded by a mobile device
CN111708943B (en) Search result display method and device for displaying search result
WO2010059309A2 (en) System and method for url based query for retrieving data related to a context
KR20150055689A (en) System and method for sharing profile image card for communication
CN113553521B (en) Content searching method and device
US11558324B2 (en) Method and system for dynamically generating a card
KR20130033721A (en) Clip apparatas and method for based on contents in a portable terminal
CN107967271A (en) A kind of information search method and device
US9767400B2 (en) Method and system for generating a card based on intent
CN107515870B (en) Searching method and device and searching device
CN110309324B (en) Searching method and related device
CN111246255B (en) Video recommendation method and device, storage medium, terminal and server
CN110633391A (en) Information searching method and device
CN110110046B (en) Method and device for recommending entities with same name
CN110147426B (en) Method for determining classification label of query text and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant