WO2021139711A1 - Processing method and apparatus, and device and machine-readable medium - Google Patents

Processing method and apparatus, and device and machine-readable medium Download PDF

Info

Publication number
WO2021139711A1
WO2021139711A1 PCT/CN2021/070602 CN2021070602W WO2021139711A1 WO 2021139711 A1 WO2021139711 A1 WO 2021139711A1 CN 2021070602 W CN2021070602 W CN 2021070602W WO 2021139711 A1 WO2021139711 A1 WO 2021139711A1
Authority
WO
WIPO (PCT)
Prior art keywords
commodity
image
information
user
location
Prior art date
Application number
PCT/CN2021/070602
Other languages
French (fr)
Chinese (zh)
Inventor
李洁
胡雪梅
方视菁
葛妮瑜
刘欢
朱世艾
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2021139711A1 publication Critical patent/WO2021139711A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0623Item investigation
    • G06Q30/0625Directed, with specific intent or strategy
    • G06Q30/0629Directed, with specific intent or strategy for generating comparisons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/58Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0639Item locations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Shopping interfaces
    • G06Q30/0643Graphical representation of items or shoppers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Definitions

  • This application relates to the field of communication technology, in particular to a method for processing multimedia data, a method for processing voice data, a method for communication processing, a processing device based on multimedia data, a device, and a machine readable medium.
  • the price of commodities is usually an important factor for users to purchase overseas commodities. For example, some users will consider the price difference between overseas commodities and domestic commodities. At present, users often obtain the prices of overseas commodities and the prices of domestic commodities on the spot, and then determine whether to purchase overseas commodities based on the price difference between overseas commodities and domestic commodities.
  • the technical problem to be solved by the embodiments of the present application is to provide a processing method based on multimedia data, which can improve the efficiency of overseas shopping.
  • the embodiments of the present application also provide a voice data processing method, a communication processing method, a multimedia data processing device, a device, and a machine-readable medium to ensure the implementation of the above method And application.
  • an embodiment of the present application discloses a method for processing multimedia data, including:
  • the multimedia data includes: at least one frame of image
  • At least one first commodity corresponding to the at least one frame of image is determined according to the first currency type corresponding to the preset geographic area;
  • the commodity information corresponding to the commodity includes: a link and first price information; the first price information matches the first currency category;
  • a comparison interface is displayed; the comparison interface includes: a translated image corresponding to the at least one frame of image, and product information corresponding to the at least one first product.
  • the embodiment of the application discloses a method for processing voice data, including:
  • At least one first commodity corresponding to the second commodity is determined according to the first currency type corresponding to the preset geographic area; the commodity corresponding to the first commodity
  • the information includes: a link and/or first price information; the first price information matches the first currency category;
  • the product information corresponding to the at least one first product is output.
  • the embodiment of the application discloses a communication processing method, including:
  • At least one first commodity corresponding to the second commodity is determined according to the first currency type corresponding to the preset geographic area; the commodity corresponding to the first commodity
  • the information includes: a link and/or first price information; the first price information matches the first currency category;
  • the embodiment of the present application also discloses a multimedia data processing device, which includes:
  • the receiving module is configured to receive multimedia data input by the user; the multimedia data includes: at least one frame of image;
  • the judging module is used to judge whether the location of the user matches the location of the preset geographic area
  • the commodity determination module is configured to determine at least one first currency corresponding to the at least one frame of image according to the first currency type corresponding to the preset geographic area if the location of the user does not match the location of the preset geographic area.
  • Commodity; the commodity information corresponding to the first commodity includes: a link and first price information; the first price information matches the first currency category; and
  • the display module is configured to display a comparison interface; the comparison interface includes: a translated image corresponding to the at least one frame of image and product information corresponding to the at least one first product.
  • an embodiment of the present application also discloses a device, including:
  • One or more processors are One or more processors.
  • the embodiments of the present application disclose one or more machine-readable media on which instructions are stored, which when executed by one or more processors, cause the device to execute one or more of the aforementioned methods.
  • the embodiment of the application After receiving the multimedia data input by the user, the embodiment of the application will determine whether the location of the user matches the location of the preset geographic area. If not, the user is considered to be outside the preset geographic area, for example, if the preset The geographic area is the country to which the user belongs. If the user is outside the preset geographic area, the user can be considered to be in an overseas scene. In this case, the embodiment of the present application determines at least one first commodity corresponding to at least one frame of image in the multimedia data according to the first currency type corresponding to the above-mentioned preset geographic area, and provides a comparison interface, which may include : The translation image corresponding to the at least one frame of image and the product information corresponding to the at least one first product.
  • the first commodity in the embodiment of this application may originate from the Internet, and the second commodity in at least one frame of the image in the multimedia data may be an offline physical commodity.
  • the comparison interface of the embodiment of this application can help users understand the first commodity on the Internet. Compare with offline physical products.
  • the first price information of the first commodity in the comparison interface of the embodiment of the present application corresponds to the first currency type.
  • the first currency type may be a currency type matching the preset geographic area.
  • the first price information that matches the geographic area can meet the user's price comparison needs in overseas scenarios, that is, meet the user's need for price comparison between the second product in the multimedia data and the first product in the Internet.
  • the above-mentioned first price information can help users quickly determine whether to purchase overseas commodities, so that the efficiency of overseas shopping can be improved, and the user experience can be improved.
  • the above-mentioned first price information can help users quickly determine whether to purchase overseas commodities, so that the efficiency of overseas shopping can be improved, and the user experience can be improved.
  • FIG. 1 is a flowchart of the steps of Embodiment 1 of a method for processing multimedia data according to the present application;
  • FIG. 2 is a flowchart of steps of an embodiment of a method for determining a translation image according to the present application
  • FIG. 3 is a flowchart of steps in Embodiment 2 of a multimedia data processing method according to the present application
  • 4A is a schematic diagram of an interface of an example of an image-based processing method according to an embodiment of the present application.
  • 4B is another interface schematic diagram of an example of an image-based processing method according to an embodiment of the present application.
  • 4C is another interface schematic diagram of an example of an image-based processing method according to an embodiment of the present application.
  • 4D is another interface schematic diagram of an example of an image-based processing method according to an embodiment of the present application.
  • 4E is another interface schematic diagram of an example of an image-based processing method according to an embodiment of the present application.
  • 4F is another interface schematic diagram of an example of an image-based processing method according to an embodiment of the present application.
  • FIG. 5 is a flowchart of steps of an embodiment of a method for processing voice data according to the present application
  • FIG. 6 is a flowchart of steps of an embodiment of a communication processing method of the present application.
  • Fig. 7 is a structural block diagram of an embodiment of an image-based processing device of the present application.
  • Fig. 8 is a schematic structural diagram of a device provided by an embodiment of the present application.
  • one embodiment means that the described embodiment may include specific features, structures, or characteristics, but each embodiment may or may not necessarily include The specific feature, structure, or characteristic. Furthermore, such phrases do not necessarily refer to the same embodiment.
  • a specific feature, structure, or characteristic is described in connection with an embodiment, whether or not it is explicitly described, it can be considered that such a feature, structure, or characteristic is also related to other embodiments within the scope known to those skilled in the art.
  • items in the list included in the form “at least one of A, B and C” may include the following possible items: (A); (B); (C); ( A and B); (A and C); (B and C); or (A, B and C).
  • items listed in the form of "at least one of A, B or C” may mean (A); (B); (C); (A and B); (A and C); (B and C); or (A, B and C).
  • the disclosed embodiments may be implemented as hardware, firmware, software, or any combination thereof.
  • the disclosed embodiments may also be implemented as instructions carried or stored in one or more temporary or non-transitory machine-readable (for example, computer-readable) storage media, and the instructions may be executed by one or more processors.
  • a machine-readable storage medium can be implemented as a storage device, mechanism, or other physical structure (such as volatile or nonvolatile memory, media disk, or other media) for storing or transmitting information in a form that can be read by a machine. Physical structure device).
  • the embodiment of the present application provides an image-based processing solution, which specifically includes: receiving multimedia data input by a user; the above multimedia data includes: at least one frame of image; Whether the location of the location matches the location of the preset geographic area; if the location of the user does not match the location of the preset geographic area, the at least one frame of image is determined according to the first currency type corresponding to the preset geographic area
  • the product information corresponding to the first product may include: link and first price information
  • the first price information matches the first currency category
  • the comparison interface is displayed; in the comparison interface It may include: the translation image corresponding to the at least one frame of image and the product information corresponding to the at least one first product.
  • the embodiment of the application After receiving the multimedia data input by the user, the embodiment of the application will determine whether the location of the user matches the location of the preset geographic area. If not, the user is considered to be outside the preset geographic area, for example, if the preset The geographic area is the country to which the user belongs. If the user is outside the preset geographic area, the user can be considered to be in an overseas scene. In this case, the embodiment of the present application determines at least one first commodity corresponding to at least one frame of image in the multimedia data according to the first currency type corresponding to the above-mentioned preset geographic area, and provides a comparison interface, which may include : The translation image corresponding to the at least one frame of image and the product information corresponding to the at least one first product.
  • the first commodity in the embodiment of this application may originate from the Internet, and the second commodity in at least one frame of the image in the multimedia data may be an offline physical commodity.
  • the comparison interface of the embodiment of this application can help users understand the first commodity on the Internet. Compare with offline physical products.
  • the first price information of the first commodity in the comparison interface of the embodiment of the present application corresponds to the first currency type.
  • the first currency type may be a currency type matching the preset geographic area.
  • the first price information that matches the geographic area can meet the user's price comparison needs in overseas scenarios, that is, meet the user's need for price comparison between the second product in the multimedia data and the first product in the Internet.
  • the above-mentioned first price information can help users quickly determine whether to purchase overseas commodities, so that the efficiency of overseas shopping can be improved, and the user experience can be improved.
  • the method provided in the embodiments of the present application can be applied to the application environment corresponding to the client and the server.
  • the client and the server are located in a wired or wireless network, and the client and the server exchange data through the wired or wireless network.
  • the client can run on a terminal.
  • the above-mentioned terminals include but are not limited to: smartphones, tablets, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) Players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop portable computers, car computers, desktop computers, set-top boxes, smart TVs, wearable devices, etc.
  • the terminal of the embodiment of the present application may have a multimedia collection function, and accordingly, a multimedia collection device such as a camera may be provided in the terminal.
  • the client can correspond to any APP (application, Application).
  • the APP corresponding to the client terminal may include: a payment APP, an image processing APP, an instant messaging APP, or a voice interaction APP, etc.
  • Embodiment 1 of an image-based processing method of the present application.
  • the method may specifically include the following steps:
  • Step 101 Receive multimedia data input by a user; the foregoing multimedia data may include: at least one frame of image;
  • Step 102 Determine whether the location of the user matches the location of the preset geographic area
  • Step 103 If the location of the user does not match the location of the preset geographic area, determine at least one first commodity corresponding to the at least one frame of image according to the first currency type corresponding to the preset geographic area;
  • the commodity information corresponding to the commodity may include: link and first price information; the first price information matches the first currency category;
  • Step 104 Display a comparison interface; the comparison interface may include: the translation image corresponding to the at least one frame of image and the product information corresponding to the at least one first product.
  • At least one step included in the method in the embodiment of the present application may be executed by the client, and it can be understood that the embodiment of the present application does not limit the specific execution subject of the steps included in the method.
  • the multimedia data may include: image or video.
  • multimedia data can be obtained by shooting with a multimedia collection device.
  • a scan interface or a translation interface can be provided, and the collection of multimedia data can be triggered in response to a trigger operation on the scan interface or the translation interface. It can be understood that the embodiment of the present application does not impose restrictions on the specific acquisition method of the multimedia data.
  • the second commodity may be included in at least one frame of the multimedia data.
  • the user can take a picture of the offline second product to obtain an image containing the second product.
  • step 102 it is judged whether the location of the user matches the location of the preset geographic area, and it can be judged whether the user is within or outside the preset geographic area. For example, if the preset geographic area is the country to which the user belongs, if the user is outside the preset geographic area, the user may be considered to be in an overseas scene.
  • the foregoing preset geographic area can be obtained according to user settings.
  • a setting interface for a preset geographic area may be provided to receive a preset geographic area input by the user through the setting interface.
  • the above-mentioned preset geographic area can be obtained according to the location of the user in the historical time period.
  • the historical time period may be the longest time period or the time period in which the time period exceeds the duration threshold, so that the location information of the user during the historical time period can be used to characterize the place of residence.
  • the first currency type may be a currency circulating in a preset geographic area.
  • the currency in circulation in China is Renminbi, etc.
  • the name of the first product is the same as the name of the second product in the image of the multimedia data, or the category of the first product is the same as the category of the second product in the image of the multimedia data.
  • the foregoing determining at least one first commodity corresponding to the at least one frame of image may specifically include: determining information of the second commodity in the image; based on the information of the second commodity and the foregoing For the first currency category, at least one first commodity corresponding to the image is determined from the commodity database.
  • the foregoing determining at least one first commodity corresponding to the image from the commodity database may specifically include: searching the commodity database according to the information of the second commodity to obtain the candidate commodity; Get the first commodity that matches the above-mentioned first currency category.
  • the fields of the commodity database may include: commodity information, and therefore, candidate commodities may be obtained first based on the matching of commodity information.
  • the attributes of the candidate commodities may include: currency type attributes. Therefore, the candidate commodities may be screened based on the matching of the currency type attributes to obtain the first commodity matching the first currency type.
  • the foregoing determining at least one first commodity corresponding to the image from the commodity database may specifically include: searching the commodity database corresponding to the first currency type according to the information of the second commodity to obtain the first commodity database.
  • the commodity database can be classified according to currency types, and when searching, the commodity database corresponding to the first currency type can be used for searching.
  • the commodity database may include: a commodity database corresponding to RMB, or a commodity database corresponding to the US dollar, or a commodity database corresponding to the Euro.
  • the commodity database of the embodiment of the present application may be provided by an e-commerce platform, and it can be understood that the embodiment of the present application does not impose restrictions on a specific e-commerce platform.
  • the foregoing process of determining the second commodity in the image of the multimedia data may include: using image recognition technology to determine the second commodity in the image of the multimedia data.
  • Image recognition refers to the use of machines to process, analyze, and understand images to identify various image targets in different modes.
  • a machine can be used to process, analyze, and understand images of multimedia data to identify various image targets in different modes.
  • an image target may correspond to a certain image area in the image, and the image target may include: an object, a person, a space, etc., and the image target in the embodiment of the present application may be an object.
  • the foregoing process of determining the second commodity in the image of the multimedia data may include: using OCR (Optical Character Recognition) technology to recognize the characters in the image of the multimedia data, and obtain the result according to the recognized characters Information such as the name of the second product.
  • OCR Optical Character Recognition
  • the similarity between the image of the multimedia data and the commodity image of the candidate commodity may be determined first, and then the first commodity may be determined from the candidate commodities according to the similarity. For example, a candidate product whose similarity exceeds the similarity threshold can be selected as the first product.
  • the quantity of the first commodity may be one or more.
  • the multiple first commodities may be sorted according to the sorting characteristics, and a preset number of first commodities may be selected according to the sorting result.
  • the ranking characteristics may include, but are not limited to: price information, sales characteristics, seller's trustworthiness characteristics, and so on.
  • the preset number can be determined by those skilled in the art according to actual application requirements, for example, the preset number can be 2 or the like.
  • the link of the first commodity and the first price information can be obtained.
  • the link can be used to point to the page corresponding to the first product.
  • the link may include information such as the title of the first commodity.
  • the first price information may correspond to the first currency category.
  • the first currency type may be a currency type that matches the preset geographic area, so that the first price information conforms to the habits of the preset geographic area to which the user belongs.
  • the comparison interface can be used to compare the second product and the first product in the image of the multimedia data.
  • the translation image in the comparison interface may include the information of the second commodity, and the comparison interface may include the first price information of the first commodity. Therefore, the information in the comparison interface can be used as a basis for comparing the second commodity with the first commodity.
  • the translated image can be obtained by translating the image of the multimedia data.
  • the description language corresponding to the offline second product is different from the user's native language, language barriers are likely to occur, that is, it is difficult for the user to understand the description text of the product.
  • the user's native language is the second language and the description language corresponding to the second product is the first language, assuming that the second language is Chinese and the first language is English or French, it may be difficult for the user to understand the description text of the product.
  • the embodiment of the present application can use image translation technology to translate the image of the multimedia data into the translated image, and the characters corresponding to the translated image can be the first language, so as to improve the convenience for users to understand the description text of the product.
  • the translation image may be obtained by replacing the source character image in the image of the multimedia data by using the translation character image; the parameters corresponding to the translation character image are those corresponding to the source character image.
  • the parameters match; the above-mentioned parameters may include: position parameters and appearance parameters.
  • the translated character image can represent the image corresponding to the translated character.
  • the source character image can represent the image corresponding to the source character.
  • the images of multimedia data can include: background images, source character images, or non-character images (images corresponding to patterns, etc.),
  • the embodiment of the application uses the translated character image to replace the source character image in the image of the multimedia data, wherein the parameter corresponding to the translated character image matches the parameter corresponding to the source character image described above, so that the translation character image in the translated image can be improved.
  • the degree of matching between the foreground and the background can in turn improve the appearance quality of the translated image.
  • the comparison interface may include: an image area and a commodity area.
  • the image is used to display the translated image.
  • the commodity area is used to display the commodity information corresponding to the first commodity.
  • the image area and the merchandise area can be set up and down, for example, the image area is located in the upper area and the merchandise area is located in the lower area.
  • the image area and the product area can be set left and right, for example, the image area is located in the left area, and the product area is located in the right area.
  • the image area and the commodity area may be located on different interface layers.
  • the image area is located in the first interface layer
  • the commodity area is located in the second interface layer
  • the second interface layer is located above the first interface layer.
  • the second interface layer can be a masking layer
  • the masking layer can be a floating layer with adjustable transparency.
  • the original interface may include a comparison trigger control
  • the comparison interface may be displayed in response to a trigger operation on the comparison trigger control
  • the upper part of the original interface displays a translated image
  • the lower part of the original interface displays a comparison trigger control
  • a floating layer is displayed on the original interface, and at least a floating layer is displayed in the floating layer.
  • the sliding operation may be a sliding operation from bottom to top.
  • the above method may further include: obtaining the second currency type according to the location of the user; providing an input control in the above comparison interface for inputting the second price corresponding to the second commodity Information, the second price information corresponds to the second currency type.
  • the above-mentioned second currency type may be obtained according to the location information of the user in the first time period.
  • the first time period may be the most recent time period, and the end time of the first time period may be machine time.
  • the first time period may be the last day or the last two days.
  • the nearest temporary place where the user is located can be obtained, and the second currency type can be obtained according to the currency type of the nearest temporary place.
  • the second currency type can be set by the user, or the second currency type can be obtained from the image of the multimedia data.
  • the image of the multimedia data may contain the information of the second currency type.
  • the foregoing method may further include: in response to a user triggering operation on the foregoing input control, displaying exchange rate information between the first currency category and the second currency category.
  • the trigger operation for the aforementioned input control may be a click operation for the input control, etc., and in response to the click operation, the input focus may be displayed in the input control and exchange rate information may be displayed.
  • the exchange rate information may be " ⁇ 7.5", etc., for the user's reference.
  • the above method may further include: receiving second price information input by the user through the above input control; according to the conversion parameter between the first currency type and the second currency type, converting the second price The information is converted into third price information; the third price information corresponds to the first currency type; the third price information corresponding to the second price information is displayed in the comparison interface.
  • the embodiment of the application can convert the second price information of the second currency type according to the exchange rate information to obtain the third price information.
  • the comparison interface may include: the translated image, the third price information, and the product information corresponding to the first product, so that the user can price the second product and the first product Compare.
  • the above method is applied to the first program, and the link corresponding to the first product originates from the internal module of the first program, or the link corresponding to the first product originates from the second program.
  • One program can display links in accordance with the rules of the second program.
  • the internal module can be used to load the page corresponding to the first product, and the program can be loaded without jumping to the program.
  • the page corresponding to the first product is loaded, so the loading speed of the page corresponding to the first product can be increased, and the user experience can be improved.
  • Mini programs are applications that can be delivered from the server and executed in the application environment without installation. Mini programs generally cannot exist independently, relying on the application environment.
  • the applet can provide links and pages corresponding to the first product.
  • the program corresponding to the client can provide an application environment for the applet so that the applet can be executed in the application environment. Then, if a trigger operation for the link is received, the applet can be called to load the page corresponding to the first product. Since the page corresponding to the first product can be loaded without jumping to the program, the loading speed of the page corresponding to the first product can be improved, and the user experience can be improved.
  • the first product can originate from the Internet, and the second product in at least one frame of image in the multimedia data can be an offline physical product.
  • the comparison interface of the embodiment of this application can be Help users compare the first product on the Internet with offline physical products.
  • the first price information of the first commodity in the comparison interface of the embodiment of the present application corresponds to the first currency type.
  • the first currency type may be a currency type matching the preset geographic area.
  • the first price information that matches the geographic area can meet the user's price comparison needs in overseas scenarios, that is, meet the user's need for price comparison between the second product in the multimedia data and the first product in the Internet.
  • the above-mentioned first price information can help users quickly determine whether to purchase overseas commodities, so that the efficiency of overseas shopping can be improved, and the user experience can be improved.
  • FIG. 2 a flow chart of the steps of a method for determining a translation image according to an embodiment of the present application is shown, which may specifically include the following steps:
  • Step 201 Identify the source characters in the image of the multimedia data; the source characters correspond to the first language;
  • Step 202 Determine the translated character corresponding to the source character; the translated character corresponds to a second language;
  • Step 203 Replace the source character image in the image of the multimedia data with the translated character image to obtain the translation image; wherein the parameter corresponding to the translated character image matches the parameter corresponding to the source character image; the parameter may include : Position parameters and appearance parameters.
  • the embodiment of the application uses the translated character image to replace the source character image in the image of the multimedia data, wherein the parameter corresponding to the translated character image matches the parameter corresponding to the source character image described above, so that the translation character image in the translated image can be improved.
  • the degree of matching between the foreground and the background can in turn improve the appearance quality of the translated image.
  • step 201 OCR technology can be used to identify the source characters in the image of the multimedia data.
  • step 202 machine translation technology can be used to determine the translated character corresponding to the source character; the translated character corresponds to the second language.
  • the second language can be set by the user, or the second language can be obtained based on the location information of the user during the second time period.
  • the user's frequently used location can be obtained according to the location information of the user in the second time period, and the second language can be obtained according to the language type corresponding to the frequently used location.
  • the foregoing determining the translation character corresponding to the source character specifically includes: performing error correction on the source character; and determining the translation character corresponding to the source character after the error correction.
  • the above-mentioned error correction can correct errors generated in the OCR process to improve the accuracy of machine translation, that is, the accuracy of translated characters can be improved.
  • the error correction type may include: segmentation error correction, text error correction, or grammatical error correction, etc. It can be understood that the embodiment of the present application does not limit the error correction type of spinous processes.
  • replacing the source character image in the image of the multimedia data with a translated character image may specifically include: removing the source character image from the image of the multimedia data to obtain an intermediate image; The position parameter corresponding to the source character image determines the position parameter corresponding to the translated character image; according to the position parameter corresponding to the translated character image, the intermediate image and the translated character image are synthesized to obtain the translated image.
  • the embodiment of the present application can remove the source character image from the image of the multimedia data. Assuming that the source character image corresponds to a location area in the image of the multimedia data, the location area of the multimedia data image includes the source character, the location area in the intermediate image may not include any characters, and the location area in the translation image may include Translation characters.
  • the aforementioned appearance parameters may include: font parameters and background parameters.
  • Font parameters can include: font type, font size, and font color.
  • the background parameters may include: background color, etc.
  • the font parameters can characterize the foreground of the translated character image, and the background parameters can characterize the background of the translated character image; therefore, the matching degree between the foreground and the background of the translated character image in the translated image can be improved.
  • the embodiment of the present application may determine the position parameter corresponding to the translated character image according to the position parameter corresponding to the source character image.
  • Table 1 there is shown a schematic diagram of the mapping relationship between position parameters, source characters, and translated characters in an embodiment of the present application, where the position parameters can be represented by coordinates (x, y).
  • the embodiment of the application can synthesize the intermediate image and the translated character image according to the position parameter corresponding to the translated character image.
  • the translated character image can be placed at the position corresponding to the position parameter, and the image in the synthesized translation image
  • the source character image can be included in the location area.
  • the method of the embodiment of the present application uses a translated character image to replace the source character image in the image of the multimedia data, wherein the parameters corresponding to the translated character image match the parameters corresponding to the source character image, so the translation can be improved.
  • the matching degree between the foreground and background of the translated character image in the image can further improve the appearance quality of the translated image.
  • Embodiment 2 of a multimedia data processing method may specifically include the following steps:
  • Step 301 Receive multimedia data input by a user; the above-mentioned multimedia data may include: at least one frame of image;
  • Step 302 Determine the translation image corresponding to the image of the multimedia data
  • Step 303 Display the translated image and compare the trigger control
  • Step 304 In response to the trigger operation for the comparison trigger control, determine at least one first product corresponding to the image of the multimedia data, and display a comparison interface; the comparison interface may include: the translation image and the at least one first product. Commodity information corresponding to the commodity;
  • the commodity information corresponding to the first commodity may specifically include: a link and first price information; the first price information may correspond to a first currency type.
  • step 301 in response to a triggering operation for the scan interface, the shooting of the image of the multimedia data may be triggered, and the image of the multimedia data obtained by the shooting may be obtained.
  • the image translation technology may be used to determine the translation image corresponding to the image of the multimedia data. For details, refer to the method embodiment described in FIG.
  • the comparison trigger control may be located below the translated image.
  • the translation direction corresponding to the translated image such as the translation direction from the first language to the second language, can also be displayed.
  • step 304 at least one first commodity corresponding to the image of the multimedia data may be determined in response to the trigger operation of the comparison trigger control. For details, refer to the method embodiment 1, which will not be repeated here.
  • a floating layer may be displayed on the translated image, and the floating layer includes commodity information corresponding to at least one first commodity.
  • step 304 may be executed when the location of the user does not match the location of the preset geographic area, and a trigger operation for the above comparison trigger control is received.
  • the foregoing comparison interface may further include: an input control
  • the foregoing method may further include: in response to a user triggering operation on the foregoing input control, displaying the first currency type and the second currency type Exchange rate information between the two; the above-mentioned second currency type can be obtained based on the location information of the user in the first time period.
  • the aforementioned method may further include: in response to the second price information input by the user through the aforementioned input control, displaying third price information corresponding to the aforementioned second price information; the aforementioned third price information Can correspond to the first currency type.
  • the embodiment of the application can convert the second price information of the second currency type according to the exchange rate information to obtain the third price information.
  • the comparison interface may include: multimedia data images or translated images, the third price information, and the product information corresponding to the first product, so that the user can compare the second product with The price of the first commodity is compared.
  • the method of the embodiments of the present application can help users understand non-native language text in outbound travel scenes; and can automatically identify the second product in the image of the multimedia data, relying on the data of the e-commerce platform Information, providing the first price information of the first commodity related to the second commodity, thereby satisfying the user's price comparison needs.
  • the embodiment of the present application may also perform exchange rate conversion on the second price information input by the user, so as to improve the convenience of price comparison between different currency types. Therefore, the embodiments of the present application can improve the affordability of outbound shopping and increase the user experience in the scenario of outbound shopping; and, during the implementation of the method, it is not necessary to jump to the page of the third-party program to improve the consistency of the method execution. Performance, which in turn can improve the operating efficiency of the method.
  • FIGS. 4A-4F the image-based processing methods of the embodiments of the present application are shown.
  • Step S1 Provide an image acquisition interface in response to a trigger operation for the translation interface.
  • the image collection interface may include: previewed multimedia data image 401 and shooting controls 402; the translation direction may be the direction from English to Chinese;
  • Step S2 In response to the trigger operation on the shooting control 402, the translation interface is displayed.
  • the image acquisition interface may include: a translation image 403, a refresh control 404, a download control 405, and a comparison trigger control 406.
  • the refresh control 404 is used to trigger the display of the image acquisition interface, that is, to trigger a new shooting or a new scan.
  • Step S3 In response to the trigger operation of the comparison trigger control 406, a floating layer 407 is displayed on at least a part of the translated image 403, and the floating layer 407 may include: information of at least one first commodity. As shown in FIG. 4C, the floating layer 407 includes a first product A and a first product B. The floating layer 407 may also include: an input control 471.
  • Step S4 In response to the user's triggering operation on the input control 471, the keyboard 472 and the exchange rate information between the first currency type and the second currency type are displayed. As shown in FIG. 4D, the exchange rate information may be " ⁇ 7.5". Optionally, the address information where the user is located can also be displayed, such as "Los Angeles" in the figure.
  • Step S5 Receive the second price information input by the user in the input control 471, and convert the second price information into third price information, such as " ⁇ 120" in FIG. 4E.
  • Step S6 Receive the second price information input by the user in the input control 471, and convert the second price information into third price information, such as " ⁇ 120" in FIG. 4E.
  • Step S7 In response to the operation of closing the keyboard, display the translated image, the second price information of the second commodity, and the information of the first commodity in the comparison interface, so that the user can compare prices corresponding to the first commodity and the second commodity.
  • FIG. 5 there is shown a step flowchart of an embodiment of a voice data processing method of the present application.
  • the method may specifically include the following steps:
  • Step 501 Receive voice data input by the user
  • Step 502 Obtain the second product and location information from the aforementioned voice data
  • Step 503 If the location information does not match the preset geographic area, determine at least one first commodity corresponding to the second commodity according to the first currency type corresponding to the preset geographic area; commodity information corresponding to the first commodity It may include: link and/or first price information; the above-mentioned first price information matches the above-mentioned first currency type;
  • Step 504 Output the commodity information corresponding to the at least one first commodity.
  • the embodiment of the present application can provide the product information corresponding to the first product associated with the voice data for the voice data input by the user, thereby improving the convenience for the user to obtain the product information.
  • the commodity information corresponding to the at least one first commodity can be played, so that information services can be realized through voice interaction.
  • the commodity information corresponding to the at least one first commodity can also be displayed on the screen.
  • an intelligent interaction portal may be provided to receive voice data input by a user through the portal, and provide corresponding feedback information to the user.
  • a chat robot can be used to interact intelligently with the user.
  • the embodiment of the present application can support the user to carry the second product and location information in the voice data, and the embodiment of the present application can perform semantic recognition on the voice data to obtain the second product and location information from the voice data.
  • the voice data can be: "A piece of ice hockey equipment in Toronto M Canadian dollars", "A 500ml bottle of Bordeaux red wine from a supermarket in Paris, France, N Euro” and so on.
  • the embodiments of the present application may use natural language processing methods to perform semantic recognition on speech data.
  • the natural language processing method may include: entity word recognition method, syntactic analysis method, etc. It can be understood that the embodiment of the present application does not limit the specific natural language processing method.
  • Step 503 If the location information does not match the preset geographic area, it can be considered that the user is outside the preset geographic area, so at least one first product corresponding to the second product can be determined.
  • the name of the first commodity is the same as the name of the second commodity, or the category of the first commodity is the same as the category of the second commodity.
  • step 504 natural language may be used to play the commodity information corresponding to the at least one first commodity, such as: "500ml Bordeaux red wine in Tmall supermarket X yuan RMB" and so on.
  • the product information of the embodiment of the present application may include: information of the e-commerce platform where the first product is located, and information such as the specifications of the first product.
  • the embodiment of the application can display the link and the first price information.
  • FIG. 6 there is shown a step flow chart of an embodiment of a communication processing method of the present application, and the method may specifically include the following steps:
  • Step 601 Receive a message sent by a communication peer
  • Step 602 Obtain the second product and location information from the above message.
  • Step 603 If the location information does not match the preset geographic area, determine at least one first commodity corresponding to the second commodity according to the first currency type corresponding to the preset geographic area; commodity information corresponding to the first commodity It may include: link and/or first price information; the above-mentioned first price information matches the above-mentioned first currency type;
  • Step 604 Send the commodity information corresponding to the at least one first commodity to the communication peer.
  • the embodiment of the present application may reply to the message sent by the communication peer, and the reply content may include: the commodity information corresponding to the at least one first commodity mentioned above.
  • the embodiments of the present application may be applicable to situations where the communication peer is in an overseas scenario, and the user of the communication peer obtains the information and location information of the second commodity on the spot, and sends inquiry information to the communication local end to obtain reply information from the communication peer.
  • the message sent by the correspondent may be "I saw a coat in Paris, P Euro, is it expensive?" and so on.
  • the embodiment of the present application may use a natural language processing method to obtain the second product and location information from the above message, and determine at least one first product corresponding to the above second product when the location information does not match the preset geographic area.
  • Commodities such as the first commodity comes from a Tmall supermarket, etc.; and the commodity information corresponding to the at least one first commodity is automatically sent to the communication peer, thereby improving the convenience and intelligence of message reply.
  • the message sent by the correspondent can be "I saw a coat in Paris, P Euro, is it expensive?"
  • the corresponding reply content can be "This coat is sold for Q yuan in Tmall supermarket?" "Wait.
  • the embodiment of the application also provides a multimedia data processing device.
  • FIG. 7 there is shown a structural block diagram of an embodiment of a multimedia data processing apparatus according to the present application.
  • the foregoing apparatus may specifically include the following modules:
  • the receiving module 701 is configured to receive multimedia data input by a user; the above-mentioned multimedia data includes: at least one frame of image;
  • the judging module 702 is used to judge whether the location of the user matches the location of the preset geographic area
  • the commodity determination module 703 is configured to determine at least one first commodity corresponding to the at least one frame of image according to the first currency type corresponding to the preset geographic area if the location of the user does not match the location of the preset geographic area
  • the commodity information corresponding to the first commodity includes: a link and first price information; the first price information matches the first currency category; and
  • the display module 704 is configured to display a comparison interface; the comparison interface includes: the translation image corresponding to the at least one frame of image and the product information corresponding to the at least one first product.
  • the foregoing device may further include:
  • the second currency type determining module is used to obtain the second currency type according to the location of the user;
  • the input control providing module is configured to provide an input control in the comparison interface for inputting second price information corresponding to a second commodity, and the second price information corresponds to the second currency type.
  • the foregoing device may further include:
  • the exchange rate information display module is used to display exchange rate information between the first currency type and the second currency type in response to the user's triggering operation on the aforementioned input control.
  • the foregoing device may further include:
  • the second price display module is used to receive the second price information input by the user through the above-mentioned input control
  • the price conversion module is configured to convert the second price information into third price information according to the conversion parameters between the first currency type and the second currency type; the third price information corresponds to the first currency type;
  • the third price display module is used to display the third price information corresponding to the second price information in the comparison interface.
  • the foregoing device may further include:
  • the first area determining module is configured to obtain the foregoing preset geographic area according to user settings
  • the second area determination module is used to obtain the aforementioned preset geographic area according to the location of the user in the historical time period.
  • the foregoing device may further include:
  • the recognition module is used to recognize the source characters in the image; the above source characters correspond to the first language;
  • the translation character determination module is used to determine the translation character corresponding to the source character; the translation character corresponds to the second language;
  • the image replacement module is used to replace the source character image in the image with the translated character image to obtain the translated image; wherein the parameters corresponding to the translated character image match the parameters corresponding to the source character image; the parameters may include : Position parameters and appearance parameters.
  • the above-mentioned image replacement module may include:
  • the removal module is used to remove the source character image from the above image to obtain an intermediate image
  • the position parameter determination module is used to determine the position parameter corresponding to the translated character image according to the position parameter corresponding to the source character image;
  • the image synthesis module is used to synthesize the intermediate image and the translated character image according to the position parameter corresponding to the translated character image to obtain the translated image.
  • the aforementioned translation character determination module may include:
  • Error correction module used to correct the above source characters
  • the translation module is used to determine the translation character corresponding to the source character after error correction.
  • the aforementioned appearance parameters may include: font parameters and background parameters.
  • the aforementioned commodity determining module 703 may include:
  • the second product information determining module is used to determine the information of the second product in the above-mentioned image
  • the first commodity determining module is configured to determine at least one first commodity corresponding to the image from the commodity database based on the information of the second commodity and the first currency type.
  • the above-mentioned first commodity determination module may include:
  • the first searching module is used to search the commodity database according to the information of the second commodity mentioned above to obtain candidate commodities;
  • the screening module is used to obtain the first commodity matching the above-mentioned first currency category from the above-mentioned candidate commodities.
  • the above-mentioned first commodity determination module may include:
  • the second searching module is used for searching the commodity database corresponding to the first currency type according to the information of the second commodity to obtain the first commodity.
  • the name of the first commodity is the same as the name of the second commodity, or the category of the first commodity is the same as the category of the second commodity.
  • the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
  • FIG. 8 schematically shows an exemplary device 1300 that can be used to implement the various embodiments described above in this application.
  • FIG. 8 shows an exemplary device 1300.
  • the device 1300 may include: one or more processors 1302, a system control module (chipset) 1304 coupled with at least one of the processors 1302, and a system
  • the system memory 1306 coupled to the control module 1304, the non-volatile memory (NVM)/storage device 1308 coupled to the system control module 1304, one or more input/output devices 1310 coupled to the system control module 1304, and the system memory 1306 is coupled to the network interface 1312.
  • the system memory 1306 may include instructions 1362, and the instructions 1362 may be executed by one or more processors 1302.
  • the processor 1302 may include one or more single-core or multi-core processors, and the processor 1302 may include any combination of a general-purpose processor or a special-purpose processor (such as a graphics processor, an application processor, a baseband processor, etc.).
  • the device 1300 can serve as the above-mentioned server, target device, wireless device, etc. in the embodiments of the present application.
  • the device 1300 may include one or more machine-readable media with instructions (for example, the system memory 1306 or the NVM/storage device 1308) and be configured to be combined with the one or more machine-readable media
  • One or more processors 1302 that execute instructions to implement the modules included in the foregoing device, so as to perform the foregoing actions in the embodiments of the present application.
  • the system control module 1304 of an embodiment may include any suitable interface controller for providing any suitable interface to at least one of the processors 1302 and/or any suitable device or component communicating with the system control module 1304.
  • the system control module 1304 of an embodiment may include one or more memory controllers for providing an interface to the system memory 1306.
  • the memory controller may be a hardware module, a software module, and/or a firmware module.
  • the system memory 1306 of an embodiment may be used to load and store data and/or instructions 1362.
  • the system memory 1306 may include any suitable volatile memory, for example, a suitable DRAM (Dynamic Random Access Memory).
  • the system memory 1306 may include: a double data rate type quad synchronous dynamic random access memory (DDR4 SDRAM).
  • the system control module 1304 of an embodiment may include one or more input/output controllers to provide interfaces to the NVM/storage device 1308 and the input/output device(s) 1310.
  • the NVM/storage device 1308 of an embodiment may be used to store data and/or instructions 1382.
  • the NVM/storage device 1308 may include any suitable non-volatile memory (such as flash memory, etc.) and/or may include any suitable non-volatile storage device(s), such as one or more hard disk drives (HDD), one or more compact disc (CD) drives, and/or one or more digital versatile disc (DVD) drives, etc.
  • HDD hard disk drives
  • CD compact disc
  • DVD digital versatile disc
  • the NVM/storage device 1308 may include storage resources that are physically a part of the device on which the device 1300 is installed, or it may be accessed by the device and not necessarily be a part of the device.
  • the NVM/storage device 1308 may be accessed through the network and/or through the input/output device 1310 via the network interface 1312.
  • the input/output device(s) 1310 of an embodiment may provide an interface for the device 1300 to communicate with any other suitable devices.
  • the input/output device 1310 may include communication components, audio components, sensor components, and the like.
  • the network interface 1312 of an embodiment may provide an interface for the device 1300 to communicate with any other suitable device through one or more networks, and the device 1300 may be based on one or more wireless network standards and/or any of the protocols. And/or protocols to wirelessly communicate with one or more components of the wireless network, such as accessing wireless networks based on communication standards, such as WiFi (Wireless Fidelity), 2G or 3G or 4G or 5G, or their Combine for wireless communication.
  • WiFi Wireless Fidelity
  • 2G or 3G or 4G or 5G or their Combine for wireless communication.
  • At least one of the processors 1302 may be packaged with the logic of one or more controllers (eg, memory controllers) of the system control module 1304.
  • at least one of the processors 1302 may be packaged with the logic of one or more controllers of the system control module 1304 to form a system-in-package (SiP).
  • SiP system-in-package
  • at least one of the processors 1302 may be integrated with the logic of one or more controllers of the system control module 1304 on the same new product.
  • at least one of the processors 1302 may be integrated with the logic of one or more controllers of the system control module 1304 on the same chip to form a system on chip (SoC).
  • SoC system on chip
  • the device 1300 may include, but is not limited to, a computing device such as a desktop computing device or a mobile computing device (for example, a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.).
  • the device 1300 may have more or fewer components and/or different architectures.
  • the device 1300 may include one or more cameras, keyboards, liquid crystal display (LCD) screens (including touch screen displays), non-volatile memory ports, multiple antennas, graphics chips, application specific integrated circuits (ASIC) and speakers.
  • LCD liquid crystal display
  • ASIC application specific integrated circuits
  • the display screen can be implemented as a touch screen display to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touch, sliding, 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 related to the touch or slide operation.
  • the embodiment of the present application also provides a non-volatile readable storage medium.
  • the storage medium stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute Instructions for each method in the embodiment of this application.
  • a device including: one or more processors; and, instructions in one or more machine-readable media stored thereon, when executed by the one or more processors, cause The device executes the method in the embodiment of the present application, and the method may include: the method shown in FIG. 1 to FIG. 3.
  • one or more machine-readable media are also provided, on which instructions are stored, which when executed by one or more processors, cause the device to perform the method in the embodiment of the present application, and the method may include: The method shown in Figure 1 to Figure 3.
  • These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable image-based processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device,
  • the instruction device realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable image-based processing device, so that a series of operation steps are executed on the computer or other programmable device to produce computer-implemented processing, so that the computer or other programmable device
  • the executed instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Embodiments of the present application provide a processing method and apparatus, and a device and a machine-readable medium. The method comprises: receiving multimedia data input by a user, the multimedia data comprising: at least one image frame; determining whether the location of the user matches the location of a preset geographic area; if the location of the user does not match the location of the preset geographic area, determining at least one first commodity corresponding to the at least one image frame according to a first currency category corresponding to the preset geographic area, the commodity information corresponding to the first commodity comprising: a link and first price information, the first price information matching the first currency category; and displaying a comparison interface, the comparison interface comprising: a translation image corresponding to the at least one image frame, and commodity information corresponding to the at least one first commodity. The embodiments of the present application can improve the efficiency of overseas shopping.

Description

一种处理方法、装置、设备和机器可读介质Processing method, device, equipment and machine readable medium
本申请要求2020年01月08日递交的申请号为202010019663.3、发明名称为“一种处理方法、装置、设备和机器可读介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed on January 8, 2020 with the application number 202010019663.3 and the invention title "a processing method, device, equipment and machine-readable medium", the entire content of which is incorporated herein by reference Applying.
技术领域Technical field
本申请涉及通信技术领域,特别是涉及一种多媒体数据的处理方法、一种语音数据的处理方法、一种通信处理方法,一种基于多媒体数据的处理装置、一种设备和一种机器可读介质。This application relates to the field of communication technology, in particular to a method for processing multimedia data, a method for processing voice data, a method for communication processing, a processing device based on multimedia data, a device, and a machine readable medium.
背景技术Background technique
随着经济技术的发展,用户的生活水平逐渐提高,出境旅游和境外购物也越来越普遍。With the development of economy and technology, users' living standards have gradually improved, and outbound travel and overseas shopping have become more and more common.
目前,在境外购物的过程中,商品的价格通常是用户购买境外商品的一个重要因素,例如有些用户会考虑境外商品与境内商品之间的价格差异。目前用户往往在现场获得境外商品的价格,获得境内商品的价格,然后基于境外商品与境内商品之间的价格差异,确定是否购买境外商品。At present, in the process of overseas shopping, the price of commodities is usually an important factor for users to purchase overseas commodities. For example, some users will consider the price difference between overseas commodities and domestic commodities. At present, users often obtain the prices of overseas commodities and the prices of domestic commodities on the spot, and then determine whether to purchase overseas commodities based on the price difference between overseas commodities and domestic commodities.
发明人在实施本申请实施例的过程中发现,用户经由其他用户获得境内商品的价格,或者用户通过网络搜索境内商品的价格,上述获得境内商品的价格的方式费时费力,将导致境外购物的效率较低。In the process of implementing the embodiments of this application, the inventor found that users obtain the prices of domestic products through other users, or users search the prices of domestic products through the Internet. The above method of obtaining the prices of domestic products is time-consuming and laborious, which will lead to the efficiency of overseas shopping. Lower.
发明内容Summary of the invention
本申请实施例所要解决的技术问题是提供一种基于多媒体数据的处理方法,可以提高境外购物的效率。The technical problem to be solved by the embodiments of the present application is to provide a processing method based on multimedia data, which can improve the efficiency of overseas shopping.
相应的,本申请实施例还提供了一种语音数据的处理方法、一种通信处理方法、一种多媒体数据的处理装置、一种装置以及一种机器可读介质,用以保证上述方法的实现及应用。Correspondingly, the embodiments of the present application also provide a voice data processing method, a communication processing method, a multimedia data processing device, a device, and a machine-readable medium to ensure the implementation of the above method And application.
为了解决上述问题,本申请实施例公开了一种多媒体数据的处理方法,包括:In order to solve the foregoing problem, an embodiment of the present application discloses a method for processing multimedia data, including:
接收用户输入的多媒体数据;所述多媒体数据包括:至少一帧图像;Receiving multimedia data input by a user; the multimedia data includes: at least one frame of image;
判断用户所处的位置是否与预设地理区域的位置相匹配;Determine whether the location of the user matches the location of the preset geographic area;
若用户所处的位置与预设地理区域的位置不匹配,则依据所述预设地理区域对应的第一货币种类,确定所述至少一帧图像对应的至少一个第一商品;所述第一商品对应的商品信息包括:链接和第一价格信息;所述第一价格信息与所述第一货币种类相匹配;If the location of the user does not match the location of the preset geographic area, at least one first commodity corresponding to the at least one frame of image is determined according to the first currency type corresponding to the preset geographic area; The commodity information corresponding to the commodity includes: a link and first price information; the first price information matches the first currency category;
展示比较界面;所述比较界面中包括:所述至少一帧图像对应的翻译图像、以及所述至少一个第一商品对应的商品信息。A comparison interface is displayed; the comparison interface includes: a translated image corresponding to the at least one frame of image, and product information corresponding to the at least one first product.
本申请实施例公开了一种语音数据的处理方法,包括:The embodiment of the application discloses a method for processing voice data, including:
接收用户输入的语音数据;Receive voice data input by the user;
从所述语音数据中获取第二商品和位置信息;Acquiring the second product and location information from the voice data;
若所述位置信息与预设地理区域不匹配,则依据所述预设地理区域对应的第一货币种类,确定所述第二商品对应的至少一个第一商品;所述第一商品对应的商品信息包括:链接和/或第一价格信息;所述第一价格信息与所述第一货币种类相匹配;If the location information does not match the preset geographic area, at least one first commodity corresponding to the second commodity is determined according to the first currency type corresponding to the preset geographic area; the commodity corresponding to the first commodity The information includes: a link and/or first price information; the first price information matches the first currency category;
输出所述至少一个第一商品对应的商品信息。The product information corresponding to the at least one first product is output.
本申请实施例公开了一种通信处理方法,包括:The embodiment of the application discloses a communication processing method, including:
接收通信对端发送的消息;Receive the message sent by the correspondent end;
从所述消息中获取第二商品和位置信息;Acquiring the second commodity and location information from the message;
若所述位置信息与预设地理区域不匹配,则依据所述预设地理区域对应的第一货币种类,确定所述第二商品对应的至少一个第一商品;所述第一商品对应的商品信息包括:链接和/或第一价格信息;所述第一价格信息与所述第一货币种类相匹配;If the location information does not match the preset geographic area, at least one first commodity corresponding to the second commodity is determined according to the first currency type corresponding to the preset geographic area; the commodity corresponding to the first commodity The information includes: a link and/or first price information; the first price information matches the first currency category;
向所述通信对端发送所述至少一个第一商品对应的商品信息。Sending the commodity information corresponding to the at least one first commodity to the communication peer.
另一方面,本申请实施例还公开了一种多媒体数据的处理装置,所述装置包括:On the other hand, the embodiment of the present application also discloses a multimedia data processing device, which includes:
接收模块,用于接收用户输入的多媒体数据;所述多媒体数据包括:至少一帧图像;The receiving module is configured to receive multimedia data input by the user; the multimedia data includes: at least one frame of image;
判断模块,用于判断用户所处的位置是否与预设地理区域的位置相匹配;The judging module is used to judge whether the location of the user matches the location of the preset geographic area;
商品确定模块,用于若用户所处的位置与预设地理区域的位置不匹配,则依据所述预设地理区域对应的第一货币种类,确定所述至少一帧图像对应的至少一个第一商品;所述第一商品对应的商品信息包括:链接和第一价格信息;所述第一价格信息与所述第一货币种类相匹配;以及The commodity determination module is configured to determine at least one first currency corresponding to the at least one frame of image according to the first currency type corresponding to the preset geographic area if the location of the user does not match the location of the preset geographic area. Commodity; the commodity information corresponding to the first commodity includes: a link and first price information; the first price information matches the first currency category; and
展示模块,用于展示比较界面;所述比较界面中包括:所述至少一帧图像对应的翻译图像、以及所述至少一个第一商品对应的商品信息。The display module is configured to display a comparison interface; the comparison interface includes: a translated image corresponding to the at least one frame of image and product information corresponding to the at least one first product.
再一方面,本申请实施例还公开了一种设备,包括:On the other hand, an embodiment of the present application also discloses a device, including:
一个或多个处理器;和One or more processors; and
其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述设备执行前述一个或多个所述的方法。One or more machine-readable media on which instructions are stored, when executed by the one or more processors, cause the device to perform one or more of the aforementioned methods.
又一方面,本申请实施例公开了一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得设备执行前述一个或多个所述的方法。In another aspect, the embodiments of the present application disclose one or more machine-readable media on which instructions are stored, which when executed by one or more processors, cause the device to execute one or more of the aforementioned methods.
本申请实施例包括以下优点:The embodiments of the present application include the following advantages:
本申请实施例在接收用户输入的多媒体数据后,会判断用户所处的位置是否与预设地理区域的位置相匹配,若否,则认为用户处于预设地理区域之外,例如,若预设地理区域为用户所属的国家,则在用户处于预设地理区域之外的情况下,可以认为用户处于境外场景。此种情况下,本申请实施例依据上述预设地理区域对应的第一货币种类,确定多媒体数据中的至少一帧图像对应的至少一个第一商品,并提供比较界面,该比较界面中可以包括:上述至少一帧图像对应的翻译图像、以及上述至少一个第一商品对应的商品信息。After receiving the multimedia data input by the user, the embodiment of the application will determine whether the location of the user matches the location of the preset geographic area. If not, the user is considered to be outside the preset geographic area, for example, if the preset The geographic area is the country to which the user belongs. If the user is outside the preset geographic area, the user can be considered to be in an overseas scene. In this case, the embodiment of the present application determines at least one first commodity corresponding to at least one frame of image in the multimedia data according to the first currency type corresponding to the above-mentioned preset geographic area, and provides a comparison interface, which may include : The translation image corresponding to the at least one frame of image and the product information corresponding to the at least one first product.
本申请实施例的第一商品可以源自互联网,多媒体数据中至少一帧图像中的第二商品可以为线下的实体商品,本申请实施例的比较界面可以帮助用户对互联网中的第一商品与线下的实体商品进行比较。尤其地,本申请实施例的比较界面中第一商品的第一价格信息与第一货币种类相应,第一货币种类可以为与预设地理区域相匹配的货币种类,本申请实施例提供与预设地理区域相匹配的第一价格信息,可以满足用户在境外场景下的比价需求,也即满足用户对多媒体数据中第二商品与互联网中第一商品进行比价的需求。The first commodity in the embodiment of this application may originate from the Internet, and the second commodity in at least one frame of the image in the multimedia data may be an offline physical commodity. The comparison interface of the embodiment of this application can help users understand the first commodity on the Internet. Compare with offline physical products. In particular, the first price information of the first commodity in the comparison interface of the embodiment of the present application corresponds to the first currency type. The first currency type may be a currency type matching the preset geographic area. The first price information that matches the geographic area can meet the user's price comparison needs in overseas scenarios, that is, meet the user's need for price comparison between the second product in the multimedia data and the first product in the Internet.
在满足用户在境外场景下的比价需求的情况下,上述第一价格信息可以帮助用户快速确定是否购买境外商品,因此可以提高境外购物的效率,进而可以提升用户体验。In the case of meeting the user's price comparison needs in overseas scenarios, the above-mentioned first price information can help users quickly determine whether to purchase overseas commodities, so that the efficiency of overseas shopping can be improved, and the user experience can be improved.
在满足用户在境外场景下的比价需求的情况下,上述第一价格信息可以帮助用户快速确定是否购买境外商品,因此可以提高境外购物的效率,进而可以提升用户体验。In the case of meeting the user's price comparison needs in overseas scenarios, the above-mentioned first price information can help users quickly determine whether to purchase overseas commodities, so that the efficiency of overseas shopping can be improved, and the user experience can be improved.
附图说明Description of the drawings
图1是本申请的一种多媒体数据的处理方法实施例一的步骤流程图;FIG. 1 is a flowchart of the steps of Embodiment 1 of a method for processing multimedia data according to the present application;
图2是本申请的一种确定翻译图像的方法实施例的步骤流程图;FIG. 2 is a flowchart of steps of an embodiment of a method for determining a translation image according to the present application;
图3是本申请的一种多媒体数据的处理方法实施例二的步骤流程图;FIG. 3 is a flowchart of steps in Embodiment 2 of a multimedia data processing method according to the present application;
图4A是本申请实施例的基于图像的处理方法示例的一种界面示意图;4A is a schematic diagram of an interface of an example of an image-based processing method according to an embodiment of the present application;
图4B是本申请实施例的基于图像的处理方法示例的另一界面示意图;4B is another interface schematic diagram of an example of an image-based processing method according to an embodiment of the present application;
图4C是本申请实施例的基于图像的处理方法示例的又一界面示意图;4C is another interface schematic diagram of an example of an image-based processing method according to an embodiment of the present application;
图4D是本申请实施例的基于图像的处理方法示例的又一界面示意图;4D is another interface schematic diagram of an example of an image-based processing method according to an embodiment of the present application;
图4E是本申请实施例的基于图像的处理方法示例的又一界面示意图;4E is another interface schematic diagram of an example of an image-based processing method according to an embodiment of the present application;
图4F是本申请实施例的基于图像的处理方法示例的又一界面示意图;4F is another interface schematic diagram of an example of an image-based processing method according to an embodiment of the present application;
图5是本申请的一种语音数据的处理方法实施例的步骤流程图;FIG. 5 is a flowchart of steps of an embodiment of a method for processing voice data according to the present application;
图6是本申请的一种通信处理方法实施例的步骤流程图;FIG. 6 is a flowchart of steps of an embodiment of a communication processing method of the present application;
图7是本申请的一种基于图像的处理装置实施例的结构框图;以及Fig. 7 is a structural block diagram of an embodiment of an image-based processing device of the present application; and
图8是本申请一实施例提供的设备的结构示意图。Fig. 8 is a schematic structural diagram of a device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。In order to make the above objectives, features, and advantages of the application more obvious and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific implementations.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the protection scope of this application.
本申请的构思易于进行各种修改和替代形式,其具体实施例已经通过附图的方式示出,并将在这里详细描述。然而,应该理解,上述内容并不是用来将本申请的构思限制为所公开的具体形式,相反地,本申请的说明书和附加权利要求书意欲覆盖所有的修改、等同和替代的形式。The concept of the present application is easy to make various modifications and alternative forms, and its specific embodiments have been shown in the form of drawings and will be described in detail here. However, it should be understood that the above content is not used to limit the concept of the application to the specific form disclosed. On the contrary, the specification and appended claims of the application are intended to cover all modifications, equivalents, and alternative forms.
本说明书中的“一个实施例”,“实施例”,“一个具体实施例”等,表示所描述的实施例可以包括特定特征、结构或特性,但是每个实施例可以包括或可以不必然包括该特定特征、结构或特性。此外,这样的短语不一定指的是同一实施例。另外,在联系一个实施例描述特定特征、结构或特性的情况下,无论是否明确描述,可以认为本领域技术人员所知的范围内,这样的特征、结构或特性也与其他实施例有关。另外,应该理解的是,“在A,B和C的至少一个”这种形式所包括的列表中的条目中,可以包括如下可能的项目:(A);(B);(C);(A和B);(A和C);(B和C);或(A,B和C)。同样,“A,B或C中的至少一个”这种形式列出的项目可能意味着(A);(B);(C);(A和B);(A和C);(B和C);或(A,B和C)。In this specification, "one embodiment", "an embodiment", "a specific embodiment", etc., mean that the described embodiment may include specific features, structures, or characteristics, but each embodiment may or may not necessarily include The specific feature, structure, or characteristic. Furthermore, such phrases do not necessarily refer to the same embodiment. In addition, when a specific feature, structure, or characteristic is described in connection with an embodiment, whether or not it is explicitly described, it can be considered that such a feature, structure, or characteristic is also related to other embodiments within the scope known to those skilled in the art. In addition, it should be understood that the items in the list included in the form "at least one of A, B and C" may include the following possible items: (A); (B); (C); ( A and B); (A and C); (B and C); or (A, B and C). Similarly, items listed in the form of "at least one of A, B or C" may mean (A); (B); (C); (A and B); (A and C); (B and C); or (A, B and C).
在一些情况下,所公开的实施例可以被实施为硬件、固件、软件或其任意组合。所 公开的实施例也可以实现为携带或存储在一个或多个暂时的或者非暂时的机器可读(例如计算机可读)存储介质中的指令,该指令可以被一个或多个处理器执行。机器可读存储介质可以实施为用于以能够被机器读取的形式存储或者传输信息的存储装置、机构或其他物理结构(例如易失性或非易失性存储器、介质盘、或其他媒体其它物理结构装置)。In some cases, the disclosed embodiments may be implemented as hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored in one or more temporary or non-transitory machine-readable (for example, computer-readable) storage media, and the instructions may be executed by one or more processors. A machine-readable storage medium can be implemented as a storage device, mechanism, or other physical structure (such as volatile or nonvolatile memory, media disk, or other media) for storing or transmitting information in a form that can be read by a machine. Physical structure device).
在附图中,一些结构或方法特征可以以特定的安排和/或排序显示。然而,优选地,这样的具体安排和/或排序并不是必要的。相反,在一些实施方案中,这样的特征可以以不同的方式和/或顺序排列,而不是如附图中所示。此外,特定的附图中的结构或方法特征中所包含的内容,不意味着暗示这种特征是在所有实施例是必须的,并且在一些实施方案中,可能不包括这些特征,或者可能将这些特征与其它特征相结合。In the drawings, some structural or method features may be shown in a specific arrangement and/or order. However, preferably, such specific arrangement and/or ordering are not necessary. Conversely, in some embodiments, such features may be arranged in a different manner and/or order, rather than as shown in the drawings. In addition, the content contained in the structural or method features in a particular drawing is not meant to imply that such features are necessary in all embodiments, and in some embodiments, these features may not be included, or may be changed These features are combined with other features.
针对境外购物的效率较低的技术问题,本申请实施例提供了一种基于图像的处理方案,该方案具体包括:接收用户输入的多媒体数据;上述多媒体数据包括:至少一帧图像;判断用户所处的位置是否与预设地理区域的位置相匹配;若用户所处的位置与预设地理区域的位置不匹配,则依据上述预设地理区域对应的第一货币种类,确定上述至少一帧图像对应的至少一个第一商品;上述第一商品对应的商品信息可以包括:链接和第一价格信息;上述第一价格信息与上述第一货币种类相匹配;以及,展示比较界面;上述比较界面中可以包括:上述至少一帧图像对应的翻译图像、以及上述至少一个第一商品对应的商品信息。In view of the technical problem of low efficiency of overseas shopping, the embodiment of the present application provides an image-based processing solution, which specifically includes: receiving multimedia data input by a user; the above multimedia data includes: at least one frame of image; Whether the location of the location matches the location of the preset geographic area; if the location of the user does not match the location of the preset geographic area, the at least one frame of image is determined according to the first currency type corresponding to the preset geographic area Corresponding to at least one first product; the product information corresponding to the first product may include: link and first price information; the first price information matches the first currency category; and the comparison interface is displayed; in the comparison interface It may include: the translation image corresponding to the at least one frame of image and the product information corresponding to the at least one first product.
本申请实施例在接收用户输入的多媒体数据后,会判断用户所处的位置是否与预设地理区域的位置相匹配,若否,则认为用户处于预设地理区域之外,例如,若预设地理区域为用户所属的国家,则在用户处于预设地理区域之外的情况下,可以认为用户处于境外场景。此种情况下,本申请实施例依据上述预设地理区域对应的第一货币种类,确定多媒体数据中的至少一帧图像对应的至少一个第一商品,并提供比较界面,该比较界面中可以包括:上述至少一帧图像对应的翻译图像、以及上述至少一个第一商品对应的商品信息。After receiving the multimedia data input by the user, the embodiment of the application will determine whether the location of the user matches the location of the preset geographic area. If not, the user is considered to be outside the preset geographic area, for example, if the preset The geographic area is the country to which the user belongs. If the user is outside the preset geographic area, the user can be considered to be in an overseas scene. In this case, the embodiment of the present application determines at least one first commodity corresponding to at least one frame of image in the multimedia data according to the first currency type corresponding to the above-mentioned preset geographic area, and provides a comparison interface, which may include : The translation image corresponding to the at least one frame of image and the product information corresponding to the at least one first product.
本申请实施例的第一商品可以源自互联网,多媒体数据中至少一帧图像中的第二商品可以为线下的实体商品,本申请实施例的比较界面可以帮助用户对互联网中的第一商品与线下的实体商品进行比较。尤其地,本申请实施例的比较界面中第一商品的第一价格信息与第一货币种类相应,第一货币种类可以为与预设地理区域相匹配的货币种类,本申请实施例提供与预设地理区域相匹配的第一价格信息,可以满足用户在境外场景下的比价需求,也即满足用户对多媒体数据中第二商品与互联网中第一商品进行比价的需 求。The first commodity in the embodiment of this application may originate from the Internet, and the second commodity in at least one frame of the image in the multimedia data may be an offline physical commodity. The comparison interface of the embodiment of this application can help users understand the first commodity on the Internet. Compare with offline physical products. In particular, the first price information of the first commodity in the comparison interface of the embodiment of the present application corresponds to the first currency type. The first currency type may be a currency type matching the preset geographic area. The first price information that matches the geographic area can meet the user's price comparison needs in overseas scenarios, that is, meet the user's need for price comparison between the second product in the multimedia data and the first product in the Internet.
在满足用户在境外场景下的比价需求的情况下,上述第一价格信息可以帮助用户快速确定是否购买境外商品,因此可以提高境外购物的效率,进而可以提升用户体验。In the case of meeting the user's price comparison needs in overseas scenarios, the above-mentioned first price information can help users quickly determine whether to purchase overseas commodities, so that the efficiency of overseas shopping can be improved, and the user experience can be improved.
本申请实施例提供的方法可应用于客户端和服务端对应的应用环境中,客户端与服务端位于有线或无线网络中,通过该有线或无线网络,客户端与服务端进行数据交互。The method provided in the embodiments of the present application can be applied to the application environment corresponding to the client and the server. The client and the server are located in a wired or wireless network, and the client and the server exchange data through the wired or wireless network.
可选地,客户端可以运行在终端上,上述终端具体包括但不限:智能手机、平板电脑、电子书阅读器、MP3(动态影像专家压缩标准音频层面3,Moving Picture Experts Group Audio Layer III)播放器、MP4(动态影像专家压缩标准音频层面4,Moving Picture Experts Group Audio Layer IV)播放器、膝上型便携计算机、车载电脑、台式计算机、机顶盒、智能电视机、可穿戴设备等等。Optionally, the client can run on a terminal. The above-mentioned terminals include but are not limited to: smartphones, tablets, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) Players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop portable computers, car computers, desktop computers, set-top boxes, smart TVs, wearable devices, etc.
可选地,本申请实施例的终端可以具有多媒体采集功能,相应地,终端中可以设置有例如摄像头的多媒体采集装置。Optionally, the terminal of the embodiment of the present application may have a multimedia collection function, and accordingly, a multimedia collection device such as a camera may be provided in the terminal.
本申请实施例中,客户端可以对应任意的APP(应用程序,Application)。例如,客户端对应的APP可以包括:支付APP、图像处理APP、即时通信APP、或者语音交互APP等。In the embodiment of the present application, the client can correspond to any APP (application, Application). For example, the APP corresponding to the client terminal may include: a payment APP, an image processing APP, an instant messaging APP, or a voice interaction APP, etc.
方法实施例一Method embodiment one
参照图1,示出了本申请的一种基于图像的处理方法实施例一的步骤流程图,该方法具体可以包括如下步骤:1, there is shown a step flowchart of Embodiment 1 of an image-based processing method of the present application. The method may specifically include the following steps:
步骤101、接收用户输入的多媒体数据;上述多媒体数据可以包括:至少一帧图像;Step 101: Receive multimedia data input by a user; the foregoing multimedia data may include: at least one frame of image;
步骤102、判断用户所处的位置是否与预设地理区域的位置相匹配;Step 102: Determine whether the location of the user matches the location of the preset geographic area;
步骤103、若用户所处的位置与预设地理区域的位置不匹配,则依据上述预设地理区域对应的第一货币种类,确定上述至少一帧图像对应的至少一个第一商品;上述第一商品对应的商品信息可以包括:链接和第一价格信息;上述第一价格信息与上述第一货币种类相匹配;Step 103: If the location of the user does not match the location of the preset geographic area, determine at least one first commodity corresponding to the at least one frame of image according to the first currency type corresponding to the preset geographic area; The commodity information corresponding to the commodity may include: link and first price information; the first price information matches the first currency category;
步骤104、展示比较界面;上述比较界面中可以包括:上述至少一帧图像对应的翻译图像、以及上述至少一个第一商品对应的商品信息。Step 104: Display a comparison interface; the comparison interface may include: the translation image corresponding to the at least one frame of image and the product information corresponding to the at least one first product.
本申请实施例的方法所包括的至少一个步骤可由客户端执行,可以理解,本申请实施例对于方法所包括步骤的具体执行主体不加以限制。At least one step included in the method in the embodiment of the present application may be executed by the client, and it can be understood that the embodiment of the present application does not limit the specific execution subject of the steps included in the method.
步骤101中,多媒体数据可以包括:图像、或者视频。In step 101, the multimedia data may include: image or video.
在实际应用中,可以依据多媒体采集装置拍摄得到多媒体数据。例如,可以提供扫 一扫接口或翻译接口,并响应于针对扫一扫接口或翻译接口的触发操作,触发多媒体数据的采集。可以理解,本申请实施例对于多媒体数据的具体获取方式不加以限制。In practical applications, multimedia data can be obtained by shooting with a multimedia collection device. For example, a scan interface or a translation interface can be provided, and the collection of multimedia data can be triggered in response to a trigger operation on the scan interface or the translation interface. It can be understood that the embodiment of the present application does not impose restrictions on the specific acquisition method of the multimedia data.
本申请实施例中,可选的是,多媒体数据的至少一帧图像中可以包括第二商品。例如,用户在线下购物的情况下,可以对线下的第二商品拍照,以得到包含第二商品的图像。In the embodiment of the present application, optionally, the second commodity may be included in at least one frame of the multimedia data. For example, in the case of offline shopping, the user can take a picture of the offline second product to obtain an image containing the second product.
步骤102中,判断用户所处的位置是否与预设地理区域的位置相匹配,可以判断用户处于预设地理区域之内还是之外。例如,若预设地理区域为用户所属的国家,则在用户处于预设地理区域之外的情况下,可以认为用户处于境外场景。In step 102, it is judged whether the location of the user matches the location of the preset geographic area, and it can be judged whether the user is within or outside the preset geographic area. For example, if the preset geographic area is the country to which the user belongs, if the user is outside the preset geographic area, the user may be considered to be in an overseas scene.
本申请实施例中,可选的是,可以根据用户设置得到上述预设地理区域。例如,可以提供预设地理区域的设置接口,以通过该设置接口接收用户输入的预设地理区域等。In the embodiment of the present application, optionally, the foregoing preset geographic area can be obtained according to user settings. For example, a setting interface for a preset geographic area may be provided to receive a preset geographic area input by the user through the setting interface.
本申请实施例中,可选的是,可以依据用户在历史时间段内所处的位置,得到上述预设地理区域。历史时间段可以为时间段长度最长、或者时间段长度超过时长阈值的时间段,由此可以使用户在历史时间段内所处的位置信息表征常住地。In the embodiment of the present application, optionally, the above-mentioned preset geographic area can be obtained according to the location of the user in the historical time period. The historical time period may be the longest time period or the time period in which the time period exceeds the duration threshold, so that the location information of the user during the historical time period can be used to characterize the place of residence.
步骤103中,第一货币种类可以为预设地理区域内流通的货币。例如,中国流通的货币为人民币等。In step 103, the first currency type may be a currency circulating in a preset geographic area. For example, the currency in circulation in China is Renminbi, etc.
例如,用户A的常住地为中国,偶尔出境旅游,故可以确定用户A对应的第一货币种类为中国对应的人民币。可以理解,本申请实施例对于具体的第一货币种类不加以限制。For example, user A's habitual residence is China and occasionally travels abroad, so it can be determined that the first currency type corresponding to user A is RMB corresponding to China. It can be understood that the embodiment of the present application does not limit the specific first currency type.
本申请实施例中,可选的是,第一商品的名称与多媒体数据的图像中第二商品的名称相同,或者,第一商品的类别与多媒体数据的图像中第二商品的类别相同。In the embodiment of the present application, optionally, the name of the first product is the same as the name of the second product in the image of the multimedia data, or the category of the first product is the same as the category of the second product in the image of the multimedia data.
在本申请的一种可选实施例中,上述确定上述至少一帧图像对应的至少一个第一商品,具体可以包括:确定上述图像中第二商品的信息;依据上述第二商品的信息和上述第一货币种类,从商品数据库中确定出上述图像对应的至少一个第一商品。In an optional embodiment of the present application, the foregoing determining at least one first commodity corresponding to the at least one frame of image may specifically include: determining information of the second commodity in the image; based on the information of the second commodity and the foregoing For the first currency category, at least one first commodity corresponding to the image is determined from the commodity database.
根据一种实施例,上述从商品数据库中确定出上述图像对应的至少一个第一商品,具体可以包括:依据上述第二商品的信息,查找商品数据库,以得到备选商品;从上述备选商品中获取与上述第一货币种类相匹配的第一商品。本实施例中,商品数据库的字段可以包括:商品的信息,因此可以首先基于商品的信息的匹配,获得备选商品。备选商品的属性可以包括:货币种类属性,因此,可以基于货币种类属性的匹配,对备选商品进行筛选,以得到与第一货币种类相匹配的第一商品。According to an embodiment, the foregoing determining at least one first commodity corresponding to the image from the commodity database may specifically include: searching the commodity database according to the information of the second commodity to obtain the candidate commodity; Get the first commodity that matches the above-mentioned first currency category. In this embodiment, the fields of the commodity database may include: commodity information, and therefore, candidate commodities may be obtained first based on the matching of commodity information. The attributes of the candidate commodities may include: currency type attributes. Therefore, the candidate commodities may be screened based on the matching of the currency type attributes to obtain the first commodity matching the first currency type.
根据另一种实施例,上述从商品数据库中确定出上述图像对应的至少一个第一商品, 具体可以包括:依据上述第二商品的信息,查找上述第一货币种类对应的商品数据库,以得到第一商品。本实施例可以依据货币种类对商品数据库进行分类,则在查找的时候,可以利用第一货币种类对应的商品数据库进行查找。例如,商品数据库可以包括:人民币对应的商品数据库、或者美元对应的商品数据库、或者欧元对应的商品数据库等。According to another embodiment, the foregoing determining at least one first commodity corresponding to the image from the commodity database may specifically include: searching the commodity database corresponding to the first currency type according to the information of the second commodity to obtain the first commodity database. One commodity. In this embodiment, the commodity database can be classified according to currency types, and when searching, the commodity database corresponding to the first currency type can be used for searching. For example, the commodity database may include: a commodity database corresponding to RMB, or a commodity database corresponding to the US dollar, or a commodity database corresponding to the Euro.
本申请实施例的商品数据库可由电商平台提供,可以理解,本申请实施例对于具体的电商平台不加以限制。The commodity database of the embodiment of the present application may be provided by an e-commerce platform, and it can be understood that the embodiment of the present application does not impose restrictions on a specific e-commerce platform.
根据一种实施例,上述确定多媒体数据的图像中第二商品的过程可以包括:利用图像识别技术,确定多媒体数据的图像中第二商品。According to an embodiment, the foregoing process of determining the second commodity in the image of the multimedia data may include: using image recognition technology to determine the second commodity in the image of the multimedia data.
图像识别,是指利用机器对图像进行处理、分析和理解,以识别各种不同模式的图像目标的技术。具体到本申请实施例,可以利用机器对多媒体数据的图像进行处理、分析和理解,以识别各种不同模式的图像目标的技术。通常图像目标可以在图像中对应有一定的图像区域,图像目标可以包括:物品、人物、空间等,本申请实施例中的图像目标可以具体为物品。Image recognition refers to the use of machines to process, analyze, and understand images to identify various image targets in different modes. Specific to the embodiments of the present application, a machine can be used to process, analyze, and understand images of multimedia data to identify various image targets in different modes. Generally, an image target may correspond to a certain image area in the image, and the image target may include: an object, a person, a space, etc., and the image target in the embodiment of the present application may be an object.
根据另一种实施例,上述确定多媒体数据的图像中第二商品的过程可以包括:利用OCR(光学字符识别,Optical Character Recognition)技术识别多媒体数据的图像中的字符,并依据识别得到的字符得到第二商品的名称等信息。According to another embodiment, the foregoing process of determining the second commodity in the image of the multimedia data may include: using OCR (Optical Character Recognition) technology to recognize the characters in the image of the multimedia data, and obtain the result according to the recognized characters Information such as the name of the second product.
在本申请的另一种可选实施例中,可以首先确定多媒体数据的图像与备选商品的商品图像之间的相似度,然后依据相似度从备选商品中确定出第一商品。例如,可以选择相似度超过相似度阈值的备选商品,作为第一商品。In another optional embodiment of the present application, the similarity between the image of the multimedia data and the commodity image of the candidate commodity may be determined first, and then the first commodity may be determined from the candidate commodities according to the similarity. For example, a candidate product whose similarity exceeds the similarity threshold can be selected as the first product.
本申请实施例中,第一商品的数量可以为一个或多个。在第一商品为多个的情况下,可以依据排序特征,对多个第一商品进行排序,并依据排序结果选择预设数量的第一商品。排序特征可以包括但不限于:价格信息、销量特征、卖家的信任度特征等。预设数量可由本领域技术人员根据实际应用需求确定,例如,预设数量可以为2等。In the embodiment of the present application, the quantity of the first commodity may be one or more. In the case where there are multiple first commodities, the multiple first commodities may be sorted according to the sorting characteristics, and a preset number of first commodities may be selected according to the sorting result. The ranking characteristics may include, but are not limited to: price information, sales characteristics, seller's trustworthiness characteristics, and so on. The preset number can be determined by those skilled in the art according to actual application requirements, for example, the preset number can be 2 or the like.
以上对确定上述多媒体数据的图像对应的至少一个第一商品的实施例进行了详细介绍,可以理解,本领域技术人员可以根据实际应用需求,采用上述实施例中的任一或组合,本申请实施例对于确定上述多媒体数据的图像对应的至少一个第一商品的具体过程不加以限制。The above embodiments for determining at least one first product corresponding to the image of the above multimedia data have been described in detail. It can be understood that those skilled in the art can adopt any one or a combination of the above embodiments according to actual application requirements, and this application implements For example, the specific process of determining at least one first commodity corresponding to the image of the multimedia data is not limited.
本申请实施例在确定第一商品后,可以获取第一商品的链接和第一价格信息。链接可用于指向第一商品对应的页面。可选地,链接中可以包括:第一商品的标题等信息。In this embodiment of the application, after the first commodity is determined, the link of the first commodity and the first price information can be obtained. The link can be used to point to the page corresponding to the first product. Optionally, the link may include information such as the title of the first commodity.
第一价格信息可以与第一货币种类相应。第一货币种类可以为与预设地理区域相匹 配的货币种类,以使第一价格信息符合用户所属的预设地理区域的习惯。The first price information may correspond to the first currency category. The first currency type may be a currency type that matches the preset geographic area, so that the first price information conforms to the habits of the preset geographic area to which the user belongs.
步骤104中,比较界面可用于对多媒体数据的图像中的第二商品和第一商品进行比较。比较界面中翻译图像中可以包括第二商品的信息,比较界面中可以包括第一商品的第一价格信息,因此,比较界面中的信息可以作为对第二商品和第一商品进行比较的依据。In step 104, the comparison interface can be used to compare the second product and the first product in the image of the multimedia data. The translation image in the comparison interface may include the information of the second commodity, and the comparison interface may include the first price information of the first commodity. Therefore, the information in the comparison interface can be used as a basis for comparing the second commodity with the first commodity.
翻译图像可以为对多媒体数据的图像进行翻译得到。在境外场景下,若线下的第二商品对应的描述语言与用户的母语不同,则容易出现语言障碍,也即用户难以理解商品的描述文本的情况。例如,用户的母语为第二语种,第二商品对应的描述语言为第一语种,假设第二语种为汉语,第一语种为英语或法语等,则用户可能难以理解商品的描述文本的情况。本申请实施例可以利用图像翻译技术,将多媒体数据的图像翻译为翻译图像,翻译图像对应的字符可以为第一语种,以提高用户理解商品的描述文本的便利性。The translated image can be obtained by translating the image of the multimedia data. In an overseas scenario, if the description language corresponding to the offline second product is different from the user's native language, language barriers are likely to occur, that is, it is difficult for the user to understand the description text of the product. For example, if the user's native language is the second language and the description language corresponding to the second product is the first language, assuming that the second language is Chinese and the first language is English or French, it may be difficult for the user to understand the description text of the product. The embodiment of the present application can use image translation technology to translate the image of the multimedia data into the translated image, and the characters corresponding to the translated image can be the first language, so as to improve the convenience for users to understand the description text of the product.
在本申请的一种可选实施例中,上述翻译图像可以为采用翻译字符图像对上述多媒体数据的图像中的源字符图像进行替换得到;上述翻译字符图像对应的参数与上述源字符图像对应的参数相匹配;上述参数可以包括:位置参数和外观参数。In an optional embodiment of the present application, the translation image may be obtained by replacing the source character image in the image of the multimedia data by using the translation character image; the parameters corresponding to the translation character image are those corresponding to the source character image. The parameters match; the above-mentioned parameters may include: position parameters and appearance parameters.
翻译字符图像可以表征翻译字符对应的图像。源字符图像可以表征源字符对应的图像。多媒体数据的图像中可以包括:背景图像、源字符图像、或者非字符图像(图案对应的图像等),The translated character image can represent the image corresponding to the translated character. The source character image can represent the image corresponding to the source character. The images of multimedia data can include: background images, source character images, or non-character images (images corresponding to patterns, etc.),
本申请实施例采用翻译字符图像对多媒体数据的图像中的源字符图像进行替换,其中,翻译字符图像对应的参数与上述源字符图像对应的参数相匹配,因此可以提高翻译图像中翻译字符图像的前景与背景之间的匹配度,进而可以提高翻译图像的外观质量。The embodiment of the application uses the translated character image to replace the source character image in the image of the multimedia data, wherein the parameter corresponding to the translated character image matches the parameter corresponding to the source character image described above, so that the translation character image in the translated image can be improved. The degree of matching between the foreground and the background can in turn improve the appearance quality of the translated image.
本申请实施例中,可选的是,比较界面可以包括:图像区域和商品区域。图像用于显示翻译图像。商品区域用于显示第一商品对应的商品信息。In the embodiment of the present application, optionally, the comparison interface may include: an image area and a commodity area. The image is used to display the translated image. The commodity area is used to display the commodity information corresponding to the first commodity.
图像区域和商品区域可以上下设置,例如图像区域位于上部区域,商品区域位于下部区域。或者,图像区域和商品区域可以左右设置,例如图像区域位于左侧区域,商品区域位于右侧区域。The image area and the merchandise area can be set up and down, for example, the image area is located in the upper area and the merchandise area is located in the lower area. Alternatively, the image area and the product area can be set left and right, for example, the image area is located in the left area, and the product area is located in the right area.
或者,图像区域和商品区域可以位于不同的界面层。例如,图像区域位于第一界面层,商品区域位于第二界面层,第二界面层位于第一界面层之上等。第二界面层可以为蒙层,蒙层可以为透明度可调的浮层。Alternatively, the image area and the commodity area may be located on different interface layers. For example, the image area is located in the first interface layer, the commodity area is located in the second interface layer, and the second interface layer is located above the first interface layer. The second interface layer can be a masking layer, and the masking layer can be a floating layer with adjustable transparency.
在本申请的一种可选实施例中,原始界面中可以包括比较触发控件,则可以响应于针对该比较触发控件的触发操作,显示比较界面。In an optional embodiment of the present application, the original interface may include a comparison trigger control, and the comparison interface may be displayed in response to a trigger operation on the comparison trigger control.
可选地,原始界面的上部显示有翻译图像,原始界面的下部显示有比较触发控件,则可以响应于针对该比较触发控件的滑动操作,在原始界面上显示浮层,浮层中显示有至少一个第一商品的信息。滑动操作可以为从下往上的滑动操作等。Optionally, the upper part of the original interface displays a translated image, and the lower part of the original interface displays a comparison trigger control, then in response to a sliding operation for the comparison trigger control, a floating layer is displayed on the original interface, and at least a floating layer is displayed in the floating layer. Information about a first product. The sliding operation may be a sliding operation from bottom to top.
在本申请的一种可选实施例中,上述方法还可以包括:依据用户所处的位置得到第二货币种类;在上述比较界面中提供输入控件,用于输入第二商品对应的第二价格信息,上述第二价格信息对应有上述第二货币种类。In an optional embodiment of the present application, the above method may further include: obtaining the second currency type according to the location of the user; providing an input control in the above comparison interface for inputting the second price corresponding to the second commodity Information, the second price information corresponds to the second currency type.
可选地,上述第二货币种类可以为依据用户在第一时间段内所处的位置信息得到。第一时间段可以为最近的时间段,第一时间段的终止时间可以为机器时间。例如,第一时间段可以为最近一天或者最近两天等。依据第一时间段可以得到用户所处的最近临时地,并依据最近临时地的货币种类,得到第二货币种类。当然,第二货币种类可由用户设置,或者,第二货币种类可由多媒体数据的图像得到,例如,多媒体数据的图像中可以包含第二货币种类的信息。Optionally, the above-mentioned second currency type may be obtained according to the location information of the user in the first time period. The first time period may be the most recent time period, and the end time of the first time period may be machine time. For example, the first time period may be the last day or the last two days. According to the first time period, the nearest temporary place where the user is located can be obtained, and the second currency type can be obtained according to the currency type of the nearest temporary place. Of course, the second currency type can be set by the user, or the second currency type can be obtained from the image of the multimedia data. For example, the image of the multimedia data may contain the information of the second currency type.
在本申请的一种可选实施例中,上述方法还可以包括:响应于用户针对上述输入控件的触发操作,展示第一货币种类与第二货币种类之间的汇率信息。In an optional embodiment of the present application, the foregoing method may further include: in response to a user triggering operation on the foregoing input control, displaying exchange rate information between the first currency category and the second currency category.
针对上述输入控件的触发操作可以为针对输入控件的点击操作等,可以响应于该点击操作,在输入控件中显示输入焦点,并显示汇率信息。例如,第一货币种类为人民币,第二货币种类为美元,则汇率信息可以为“×7.5”等,以供用户参考。The trigger operation for the aforementioned input control may be a click operation for the input control, etc., and in response to the click operation, the input focus may be displayed in the input control and exchange rate information may be displayed. For example, if the first currency type is Renminbi and the second currency type is US dollars, the exchange rate information may be "×7.5", etc., for the user's reference.
在本申请的一种可选实施例中,上述方法还可以包括:接收用户通过上述输入控件输入的第二价格信息;按照第一货币种类与第二货币种类的转换参数,将上述第二价格信息转换为第三价格信息;上述第三价格信息对应有上述第一货币种类;在上述比较界面中展示上述第二价格信息对应的第三价格信息。本申请实施例可以依据汇率信息,对第二货币种类的第二价格信息进行转换,以得到第三价格信息。In an optional embodiment of the present application, the above method may further include: receiving second price information input by the user through the above input control; according to the conversion parameter between the first currency type and the second currency type, converting the second price The information is converted into third price information; the third price information corresponds to the first currency type; the third price information corresponding to the second price information is displayed in the comparison interface. The embodiment of the application can convert the second price information of the second currency type according to the exchange rate information to obtain the third price information.
在展示上述第二价格信息对应的第三价格信息后,比较界面中可以包括:翻译图像、第三价格信息和第一商品对应的商品信息,可以使用户对第二商品和第一商品进行价格比较。After displaying the third price information corresponding to the above-mentioned second price information, the comparison interface may include: the translated image, the third price information, and the product information corresponding to the first product, so that the user can price the second product and the first product Compare.
本申请实施例中,可选的是,上述方法应用于第一程序,第一商品对应的链接源自上述第一程序的内部模块,或者,第一商品对应的链接源自第二程序,第一程序可以按照第二程序的规则,对链接进行展示。In the embodiment of this application, it is optional that the above method is applied to the first program, and the link corresponding to the first product originates from the internal module of the first program, or the link corresponding to the first product originates from the second program. One program can display links in accordance with the rules of the second program.
在第一商品对应的链接源自上述程序的内部模块的情况下,若接收到针对链接的触发操作,则可以利用内部模块加载第一商品对应的页面,可以在不跳转程序的情况下, 加载第一商品对应的页面,因此可以提高第一商品对应的页面的加载速度,进而可以提升用户体验。In the case that the link corresponding to the first product originates from the internal module of the above-mentioned program, if a trigger operation for the link is received, the internal module can be used to load the page corresponding to the first product, and the program can be loaded without jumping to the program. The page corresponding to the first product is loaded, so the loading speed of the page corresponding to the first product can be increased, and the user experience can be improved.
小程序是可以从服务器下发,在不安装的情况下在应用环境下执行的应用程序。小程序一般不能独立存在,依托在应用环境下。Mini programs are applications that can be delivered from the server and executed in the application environment without installation. Mini programs generally cannot exist independently, relying on the application environment.
本申请实施例中,可选的是,小程序可以提供第一商品对应的链接和页面。客户端对应的程序可以为小程序提供应用环境,以使小程序在应用环境下执行。则,若接收到针对链接的触发操作,则可以调用小程序,加载第一商品对应的页面。由于可以在不跳转程序的情况下,加载第一商品对应的页面,因此可以提高第一商品对应的页面的加载速度,进而可以提升用户体验。In this embodiment of the application, optionally, the applet can provide links and pages corresponding to the first product. The program corresponding to the client can provide an application environment for the applet so that the applet can be executed in the application environment. Then, if a trigger operation for the link is received, the applet can be called to load the page corresponding to the first product. Since the page corresponding to the first product can be loaded without jumping to the program, the loading speed of the page corresponding to the first product can be improved, and the user experience can be improved.
综上,本申请实施例的基于图像的处理方法,第一商品可以源自互联网,多媒体数据中至少一帧图像中的第二商品可以为线下的实体商品,本申请实施例的比较界面可以帮助用户对互联网中的第一商品与线下的实体商品进行比较。尤其地,本申请实施例的比较界面中第一商品的第一价格信息与第一货币种类相应,第一货币种类可以为与预设地理区域相匹配的货币种类,本申请实施例提供与预设地理区域相匹配的第一价格信息,可以满足用户在境外场景下的比价需求,也即满足用户对多媒体数据中第二商品与互联网中第一商品进行比价的需求。In summary, in the image-based processing method of the embodiment of this application, the first product can originate from the Internet, and the second product in at least one frame of image in the multimedia data can be an offline physical product. The comparison interface of the embodiment of this application can be Help users compare the first product on the Internet with offline physical products. In particular, the first price information of the first commodity in the comparison interface of the embodiment of the present application corresponds to the first currency type. The first currency type may be a currency type matching the preset geographic area. The first price information that matches the geographic area can meet the user's price comparison needs in overseas scenarios, that is, meet the user's need for price comparison between the second product in the multimedia data and the first product in the Internet.
在满足用户在境外场景下的比价需求的情况下,上述第一价格信息可以帮助用户快速确定是否购买境外商品,因此可以提高境外购物的效率,进而可以提升用户体验。In the case of meeting the user's price comparison needs in overseas scenarios, the above-mentioned first price information can help users quickly determine whether to purchase overseas commodities, so that the efficiency of overseas shopping can be improved, and the user experience can be improved.
方法实施例二Method embodiment two
参照图2,示出了本申请实施例的一种确定翻译图像的方法的步骤流程图,具体可以包括如下步骤:Referring to FIG. 2, a flow chart of the steps of a method for determining a translation image according to an embodiment of the present application is shown, which may specifically include the following steps:
步骤201、识别多媒体数据的图像中的源字符;上述源字符对应有第一语种;Step 201: Identify the source characters in the image of the multimedia data; the source characters correspond to the first language;
步骤202、确定上述源字符对应的翻译字符;上述翻译字符对应有第二语种;Step 202: Determine the translated character corresponding to the source character; the translated character corresponds to a second language;
步骤203、将上述多媒体数据的图像中的源字符图像替换为翻译字符图像,以得到上述翻译图像;其中,上述翻译字符图像对应的参数与上述源字符图像对应的参数相匹配;上述参数可以包括:位置参数和外观参数。Step 203: Replace the source character image in the image of the multimedia data with the translated character image to obtain the translation image; wherein the parameter corresponding to the translated character image matches the parameter corresponding to the source character image; the parameter may include : Position parameters and appearance parameters.
本申请实施例采用翻译字符图像对多媒体数据的图像中的源字符图像进行替换,其中,翻译字符图像对应的参数与上述源字符图像对应的参数相匹配,因此可以提高翻译图像中翻译字符图像的前景与背景之间的匹配度,进而可以提高翻译图像的外观质量。The embodiment of the application uses the translated character image to replace the source character image in the image of the multimedia data, wherein the parameter corresponding to the translated character image matches the parameter corresponding to the source character image described above, so that the translation character image in the translated image can be improved. The degree of matching between the foreground and the background can in turn improve the appearance quality of the translated image.
步骤201中,可以采用OCR技术,识别多媒体数据的图像中的源字符。In step 201, OCR technology can be used to identify the source characters in the image of the multimedia data.
步骤202中,可以利用机器翻译技术,确定上述源字符对应的翻译字符;上述翻译字符对应有第二语种。In step 202, machine translation technology can be used to determine the translated character corresponding to the source character; the translated character corresponds to the second language.
第二语种可由用户设定,或者,第二语种可以为依据用户在第二时间段内所处的位置信息得到。可选地,可以依据用户在第二时间段内所处的位置信息得到用户的常用地,并依据常用地对应的语种,得到第二语种。The second language can be set by the user, or the second language can be obtained based on the location information of the user during the second time period. Optionally, the user's frequently used location can be obtained according to the location information of the user in the second time period, and the second language can be obtained according to the language type corresponding to the frequently used location.
在本申请的一种可选实施例中,上述确定上述源字符对应的翻译字符,具体包括:对上述源字符进行纠错;确定纠错后源字符对应的翻译字符。上述纠错可以对OCR过程中产生的错误进行修正,以提高机器翻译的准确度,也即可以提高翻译字符的准确度。In an optional embodiment of the present application, the foregoing determining the translation character corresponding to the source character specifically includes: performing error correction on the source character; and determining the translation character corresponding to the source character after the error correction. The above-mentioned error correction can correct errors generated in the OCR process to improve the accuracy of machine translation, that is, the accuracy of translated characters can be improved.
本申请实施例中,可选的是,纠错类型可以包括:断句纠错、文字纠错、或者语法纠错等,可以理解,本申请实施例对于棘突的纠错类型不加以限制。In the embodiment of the present application, optionally, the error correction type may include: segmentation error correction, text error correction, or grammatical error correction, etc. It can be understood that the embodiment of the present application does not limit the error correction type of spinous processes.
步骤203中,可选的是,上述将上述多媒体数据的图像中的源字符图像替换为翻译字符图像,具体可以包括:从上述多媒体数据的图像中去除源字符图像,以得到中间图像;依据上述源字符图像对应的位置参数,确定翻译字符图像对应的位置参数;依据上述翻译字符图像对应的位置参数,对上述中间图像和上述翻译字符图像进行合成,以得到翻译图像。In step 203, optionally, replacing the source character image in the image of the multimedia data with a translated character image may specifically include: removing the source character image from the image of the multimedia data to obtain an intermediate image; The position parameter corresponding to the source character image determines the position parameter corresponding to the translated character image; according to the position parameter corresponding to the translated character image, the intermediate image and the translated character image are synthesized to obtain the translated image.
本申请实施例可以从多媒体数据的图像中去除源字符图像。假设源字符图像在多媒体数据的图像中对应有位置区域,则多媒体数据的图像的位置区域中包括源字符,中间图像中的位置区域中可以不包括任意字符,翻译图像中的位置区域中可以包括翻译字符。The embodiment of the present application can remove the source character image from the image of the multimedia data. Assuming that the source character image corresponds to a location area in the image of the multimedia data, the location area of the multimedia data image includes the source character, the location area in the intermediate image may not include any characters, and the location area in the translation image may include Translation characters.
本申请实施例中,可选地,上述外观参数可以包括:字体参数和背景参数。字体参数可以包括:字体类型、字体大小和字体颜色等。背景参数可以包括:背景颜色等。字体参数可以表征翻译字符图像的前景,背景参数可以表征翻译字符图像的背景;因此可以提高翻译图像中翻译字符图像的前景与背景之间的匹配度,In the embodiment of the present application, optionally, the aforementioned appearance parameters may include: font parameters and background parameters. Font parameters can include: font type, font size, and font color. The background parameters may include: background color, etc. The font parameters can characterize the foreground of the translated character image, and the background parameters can characterize the background of the translated character image; therefore, the matching degree between the foreground and the background of the translated character image in the translated image can be improved.
本申请实施例可以依据源字符图像对应的位置参数,确定翻译字符图像对应的位置参数。参照表1,示出了本申请实施例的一种位置参数、源字符和翻译字符的映射关系的示意,其中,位置参数可以用坐标(x,y)表示。The embodiment of the present application may determine the position parameter corresponding to the translated character image according to the position parameter corresponding to the source character image. Referring to Table 1, there is shown a schematic diagram of the mapping relationship between position parameters, source characters, and translated characters in an embodiment of the present application, where the position parameters can be represented by coordinates (x, y).
表1Table 1
位置参数Location parameter 源字符Source character 翻译字符Translate characters
x1,y1x1, y1 SwisseSwisse 瑞思Reith
x2,y2x2, y2 HAIR SKIN NAILS+HAIR SKIN NAILS+ 头发 皮肤 指甲+Hair Skin Nails+
本申请实施例可以依据翻译字符图像对应的位置参数,对上述中间图像和上述翻译字符图像进行合成,具体地,可以将翻译字符图像放至对应位置参数的位置处,合成后的翻译图像中的位置区域中可以包括源字符图像。The embodiment of the application can synthesize the intermediate image and the translated character image according to the position parameter corresponding to the translated character image. Specifically, the translated character image can be placed at the position corresponding to the position parameter, and the image in the synthesized translation image The source character image can be included in the location area.
综上,本申请实施例的方法,采用翻译字符图像对多媒体数据的图像中的源字符图像进行替换,其中,翻译字符图像对应的参数与上述源字符图像对应的参数相匹配,因此可以提高翻译图像中翻译字符图像的前景与背景之间的匹配度,进而可以提高翻译图像的外观质量。In summary, the method of the embodiment of the present application uses a translated character image to replace the source character image in the image of the multimedia data, wherein the parameters corresponding to the translated character image match the parameters corresponding to the source character image, so the translation can be improved. The matching degree between the foreground and background of the translated character image in the image can further improve the appearance quality of the translated image.
方法实施例三Method Example Three
参照图3,示出了本申请的一种多媒体数据的处理方法实施例二的步骤流程图,该方法具体可以包括如下步骤:Referring to FIG. 3, there is shown a step flow chart of Embodiment 2 of a multimedia data processing method according to the present application. The method may specifically include the following steps:
步骤301、接收用户输入的多媒体数据;上述多媒体数据可以包括:至少一帧图像;Step 301: Receive multimedia data input by a user; the above-mentioned multimedia data may include: at least one frame of image;
步骤302、确定上述多媒体数据的图像对应的翻译图像;Step 302: Determine the translation image corresponding to the image of the multimedia data;
步骤303、展示翻译图像、以及比较触发控件;Step 303: Display the translated image and compare the trigger control;
步骤304、响应于针对上述比较触发控件的触发操作,确定上述多媒体数据的图像对应的至少一个第一商品,并展示比较界面;上述比较界面中可以包括:上述翻译图像、以及上述至少一个第一商品对应的商品信息;Step 304: In response to the trigger operation for the comparison trigger control, determine at least one first product corresponding to the image of the multimedia data, and display a comparison interface; the comparison interface may include: the translation image and the at least one first product. Commodity information corresponding to the commodity;
上述第一商品对应的商品信息具体可以包括:链接和第一价格信息;上述第一价格信息可以对应有第一货币种类。The commodity information corresponding to the first commodity may specifically include: a link and first price information; the first price information may correspond to a first currency type.
步骤301中,可以响应于针对扫一扫接口的触发操作,触发多媒体数据的图像的拍摄,并得到拍摄得到的多媒体数据的图像。In step 301, in response to a triggering operation for the scan interface, the shooting of the image of the multimedia data may be triggered, and the image of the multimedia data obtained by the shooting may be obtained.
步骤302中,可以利用图像翻译技术,确定上述多媒体数据的图像对应的翻译图像,具体可以参照图2上述方法实施例,在此不作赘述,相互参照即可。In step 302, the image translation technology may be used to determine the translation image corresponding to the image of the multimedia data. For details, refer to the method embodiment described in FIG.
步骤303中,比较触发控件可以位于翻译图像的下方。可选地,还可以显示翻译图像对应的翻译方向,比如从第一语种到第二语种的翻译方向等。In step 303, the comparison trigger control may be located below the translated image. Optionally, the translation direction corresponding to the translated image, such as the translation direction from the first language to the second language, can also be displayed.
步骤304中,可以响应于针对上述比较触发控件的触发操作,确定上述多媒体数据的图像对应的至少一个第一商品,具体参照方法实施例一,在此不作赘述。In step 304, at least one first commodity corresponding to the image of the multimedia data may be determined in response to the trigger operation of the comparison trigger control. For details, refer to the method embodiment 1, which will not be repeated here.
步骤304中,可以在翻译图像上显示浮层,浮层中包括至少一个第一商品对应的商品信息。In step 304, a floating layer may be displayed on the translated image, and the floating layer includes commodity information corresponding to at least one first commodity.
可选地,可以在用户所处的位置与预设地理区域的位置不匹配、且接收到针对上述比较触发控件的触发操作的情况下,执行步骤304。Optionally, step 304 may be executed when the location of the user does not match the location of the preset geographic area, and a trigger operation for the above comparison trigger control is received.
在本申请的一种可选实施例中,上述比较界面中还可以包括:输入控件,上述方法还可以包括:响应于用户针对上述输入控件的触发操作,展示第一货币种类与第二货币种类之间的汇率信息;上述第二货币种类可以为依据用户在第一时间段内所处的位置信息得到。In an optional embodiment of the present application, the foregoing comparison interface may further include: an input control, and the foregoing method may further include: in response to a user triggering operation on the foregoing input control, displaying the first currency type and the second currency type Exchange rate information between the two; the above-mentioned second currency type can be obtained based on the location information of the user in the first time period.
在本申请的一种可选实施例中,上述方法还可以包括:响应于用户通过上述输入控件输入的第二价格信息,展示上述第二价格信息对应的第三价格信息;上述第三价格信息可以对应有第一货币种类。本申请实施例可以依据汇率信息,对第二货币种类的第二价格信息进行转换,以得到第三价格信息。In an optional embodiment of the present application, the aforementioned method may further include: in response to the second price information input by the user through the aforementioned input control, displaying third price information corresponding to the aforementioned second price information; the aforementioned third price information Can correspond to the first currency type. The embodiment of the application can convert the second price information of the second currency type according to the exchange rate information to obtain the third price information.
在展示上述第二价格信息对应的第三价格信息后,比较界面中可以包括:多媒体数据的图像或翻译图像、第三价格信息和第一商品对应的商品信息,可以使用户对第二商品和第一商品进行价格比较。After displaying the third price information corresponding to the second price information, the comparison interface may include: multimedia data images or translated images, the third price information, and the product information corresponding to the first product, so that the user can compare the second product with The price of the first commodity is compared.
综上,本申请实施例的方法,以图像翻译为切入点,可以帮助用户在出境游场景理解非母语的文本;并且能够自动识别多媒体数据的图像中的第二商品,依托电商平台的数据信息,提供与第二商品相关的第一商品的第一价格信息,由此可以满足用户的比价需求。In summary, the method of the embodiments of the present application, using image translation as the entry point, can help users understand non-native language text in outbound travel scenes; and can automatically identify the second product in the image of the multimedia data, relying on the data of the e-commerce platform Information, providing the first price information of the first commodity related to the second commodity, thereby satisfying the user's price comparison needs.
并且,本申请实施例还可以对用户输入的第二价格信息进行汇率转换,以提高不同货币种类的比价的便捷性。因此,本申请实施例可以在出境购物的场景下,提高出境购物的实惠性,增加用户体验;并且,在方法的实施过程中,可以不跳转到第三方程序的页面,提高方法执行的连贯性,进而可以提高方法的运行效率。In addition, the embodiment of the present application may also perform exchange rate conversion on the second price information input by the user, so as to improve the convenience of price comparison between different currency types. Therefore, the embodiments of the present application can improve the affordability of outbound shopping and increase the user experience in the scenario of outbound shopping; and, during the implementation of the method, it is not necessary to jump to the page of the third-party program to improve the consistency of the method execution. Performance, which in turn can improve the operating efficiency of the method.
为使本领域技术人员更好地理解本申请实施例,在此通过具体的示例,说明本申请实施例的基于图像的处理方法,参照图4A-图4F,示出了本申请实施例的基于图像的处理方法示例的界面示意图,该示例具体可以包括如下步骤:In order to enable those skilled in the art to better understand the embodiments of the present application, specific examples are used to illustrate the image-based processing methods of the embodiments of the present application. Referring to FIGS. 4A-4F, the image-based processing methods of the embodiments of the present application are shown. A schematic diagram of the interface of an example of an image processing method. The example may specifically include the following steps:
步骤S1、响应于针对翻译接口的触发操作,提供图像采集界面。如图4A所示,图像采集界面中可以包括:预览的多媒体数据的图像401和拍摄控件402;翻译方向可以为英文到中文的方向;Step S1: Provide an image acquisition interface in response to a trigger operation for the translation interface. As shown in FIG. 4A, the image collection interface may include: previewed multimedia data image 401 and shooting controls 402; the translation direction may be the direction from English to Chinese;
步骤S2、响应于针对拍摄控件402的触发操作,展示翻译界面。如图4B所示,图像采集界面中可以包括:翻译图像403、刷新控件404、下载控件405和比较触发控件406。刷新控件404用于触发图像采集界面的显示,也即用于触发新的拍摄或新的扫描。Step S2: In response to the trigger operation on the shooting control 402, the translation interface is displayed. As shown in FIG. 4B, the image acquisition interface may include: a translation image 403, a refresh control 404, a download control 405, and a comparison trigger control 406. The refresh control 404 is used to trigger the display of the image acquisition interface, that is, to trigger a new shooting or a new scan.
步骤S3、响应于针对比较触发控件406的触发操作,在翻译图像403的至少部分之上显示浮层407,浮层407中可以包括:至少一个第一商品的信息。如图4C所示,浮层407中包括第一商品A和第一商品B。浮层407中还可以包括:输入控件471。Step S3: In response to the trigger operation of the comparison trigger control 406, a floating layer 407 is displayed on at least a part of the translated image 403, and the floating layer 407 may include: information of at least one first commodity. As shown in FIG. 4C, the floating layer 407 includes a first product A and a first product B. The floating layer 407 may also include: an input control 471.
步骤S4、响应于用户针对输入控件471的触发操作,展示键盘472、以及第一货币种类与第二货币种类之间的汇率信息,如图4D所示,汇率信息可以为“×7.5”。可选地,还可以显示用户所处的地址信息,如图中的“洛杉矶”。Step S4: In response to the user's triggering operation on the input control 471, the keyboard 472 and the exchange rate information between the first currency type and the second currency type are displayed. As shown in FIG. 4D, the exchange rate information may be "×7.5". Optionally, the address information where the user is located can also be displayed, such as "Los Angeles" in the figure.
步骤S5、接收用户在输入控件471中输入的第二价格信息,并将第二价格信息转换为第三价格信息,如图4E中的“¥120”。Step S5: Receive the second price information input by the user in the input control 471, and convert the second price information into third price information, such as "¥120" in FIG. 4E.
步骤S6、接收用户在输入控件471中输入的第二价格信息,并将第二价格信息转换为第三价格信息,如图4E中的“¥120”。Step S6: Receive the second price information input by the user in the input control 471, and convert the second price information into third price information, such as "¥120" in FIG. 4E.
步骤S7、响应于关闭键盘的操作,在比较界面中展示翻译图像、第二商品的第二价格信息和第一商品的信息,以便于用户对应第一商品和第二商品进行比价。Step S7: In response to the operation of closing the keyboard, display the translated image, the second price information of the second commodity, and the information of the first commodity in the comparison interface, so that the user can compare prices corresponding to the first commodity and the second commodity.
方法实施例四Method embodiment four
参照图5,示出了本申请的一种语音数据的处理方法实施例的步骤流程图,该方法具体可以包括如下步骤:Referring to FIG. 5, there is shown a step flowchart of an embodiment of a voice data processing method of the present application. The method may specifically include the following steps:
步骤501、接收用户输入的语音数据;Step 501: Receive voice data input by the user;
步骤502、从上述语音数据中获取第二商品和位置信息;Step 502: Obtain the second product and location information from the aforementioned voice data;
步骤503、若上述位置信息与预设地理区域不匹配,则依据上述预设地理区域对应的第一货币种类,确定上述第二商品对应的至少一个第一商品;上述第一商品对应的商品信息可以包括:链接和/或第一价格信息;上述第一价格信息与上述第一货币种类相匹配;Step 503: If the location information does not match the preset geographic area, determine at least one first commodity corresponding to the second commodity according to the first currency type corresponding to the preset geographic area; commodity information corresponding to the first commodity It may include: link and/or first price information; the above-mentioned first price information matches the above-mentioned first currency type;
步骤504、输出上述至少一个第一商品对应的商品信息。Step 504: Output the commodity information corresponding to the at least one first commodity.
本申请实施例可以针对用户输入的语音数据,提供与该语音数据相关联的第一商品对应的商品信息,由此可以提高用户获取商品信息的便捷性。The embodiment of the present application can provide the product information corresponding to the first product associated with the voice data for the voice data input by the user, thereby improving the convenience for the user to obtain the product information.
本申请实施例中,可以播放上述至少一个第一商品对应的商品信息,由此可以通过语音交互实现信息服务,当然,也可以将上述至少一个第一商品对应的商品信息展现在屏幕上。In the embodiment of the present application, the commodity information corresponding to the at least one first commodity can be played, so that information services can be realized through voice interaction. Of course, the commodity information corresponding to the at least one first commodity can also be displayed on the screen.
本申请实施例可以应用于智能交互的应用场景,例如,可以提供智能交互的入口,以通过该入口接收用户输入的语音数据,并向用户提供对应的反馈信息。可选地,可以通过聊天机器人与用户进行智能交互。The embodiments of the present application may be applied to application scenarios of intelligent interaction. For example, an intelligent interaction portal may be provided to receive voice data input by a user through the portal, and provide corresponding feedback information to the user. Optionally, a chat robot can be used to interact intelligently with the user.
本申请实施例可以支持用户在语音数据中携带第二商品和位置信息,则本申请实施例可以对语音数据进行语义识别,以从上述语音数据中获取第二商品和位置信息。例如,语音数据可以为:“多伦多的一件冰球装备M加币”、“法国巴黎某超市的波尔多红酒500ml一瓶N欧”等。The embodiment of the present application can support the user to carry the second product and location information in the voice data, and the embodiment of the present application can perform semantic recognition on the voice data to obtain the second product and location information from the voice data. For example, the voice data can be: "A piece of ice hockey equipment in Toronto M Canadian dollars", "A 500ml bottle of Bordeaux red wine from a supermarket in Paris, France, N Euro" and so on.
本申请实施例可以利用自然语言处理方法,对语音数据进行语义识别。自然语言处理方法可以包括:实体词识别方法、句法分析方法等,可以理解,本申请实施例对于具体的自然语言处理方法不加以限制。The embodiments of the present application may use natural language processing methods to perform semantic recognition on speech data. The natural language processing method may include: entity word recognition method, syntactic analysis method, etc. It can be understood that the embodiment of the present application does not limit the specific natural language processing method.
步骤503,若上述位置信息与预设地理区域不匹配,则可以认为用户处于预设地理区域之外,因此可以确定上述第二商品对应的至少一个第一商品。Step 503: If the location information does not match the preset geographic area, it can be considered that the user is outside the preset geographic area, so at least one first product corresponding to the second product can be determined.
可选地,上述第一商品的名称与上述第二商品的名称相同,或者,上述第一商品的类别与上述第二商品的类别相同。Optionally, the name of the first commodity is the same as the name of the second commodity, or the category of the first commodity is the same as the category of the second commodity.
步骤504中,可以采用自然语言播放上述至少一个第一商品对应的商品信息,如:“天猫超市的500ml波尔多红酒一瓶X元人民币”等。也即,本申请实施例的商品信息可以包括:第一商品所在的电商平台的信息、第一商品的规格等信息。当然,本申请实施例可以展现链接和第一价格信息。In step 504, natural language may be used to play the commodity information corresponding to the at least one first commodity, such as: "500ml Bordeaux red wine in Tmall supermarket X yuan RMB" and so on. That is, the product information of the embodiment of the present application may include: information of the e-commerce platform where the first product is located, and information such as the specifications of the first product. Of course, the embodiment of the application can display the link and the first price information.
方法实施例五Method embodiment five
参照图6,示出了本申请的一种通信处理方法实施例的步骤流程图,该方法具体可以包括如下步骤:Referring to FIG. 6, there is shown a step flow chart of an embodiment of a communication processing method of the present application, and the method may specifically include the following steps:
步骤601、接收通信对端发送的消息;Step 601: Receive a message sent by a communication peer;
步骤602、从上述消息中获取第二商品和位置信息;Step 602: Obtain the second product and location information from the above message.
步骤603、若上述位置信息与预设地理区域不匹配,则依据上述预设地理区域对应的第一货币种类,确定上述第二商品对应的至少一个第一商品;上述第一商品对应的商品信息可以包括:链接和/或第一价格信息;上述第一价格信息与上述第一货币种类相匹配;Step 603: If the location information does not match the preset geographic area, determine at least one first commodity corresponding to the second commodity according to the first currency type corresponding to the preset geographic area; commodity information corresponding to the first commodity It may include: link and/or first price information; the above-mentioned first price information matches the above-mentioned first currency type;
步骤604、向上述通信对端发送上述至少一个第一商品对应的商品信息。Step 604: Send the commodity information corresponding to the at least one first commodity to the communication peer.
本申请实施例可以针对通信对端发送的消息进行回复,回复内容可以包括:上述至少一个第一商品对应的商品信息。The embodiment of the present application may reply to the message sent by the communication peer, and the reply content may include: the commodity information corresponding to the at least one first commodity mentioned above.
本申请实施例可以适用于通信对端处于境外场景的情况,通信对端的用户在现场获得第二商品的信息和位置信息,并向通信本端发送问询信息,以获得通信对端的回复信息。例如,通信对端发送的消息可以为“在巴黎看到一件大衣,P欧元,贵不贵?”等。The embodiments of the present application may be applicable to situations where the communication peer is in an overseas scenario, and the user of the communication peer obtains the information and location information of the second commodity on the spot, and sends inquiry information to the communication local end to obtain reply information from the communication peer. For example, the message sent by the correspondent may be "I saw a coat in Paris, P Euro, is it expensive?" and so on.
本申请实施例可以利用自然语言处理方法,从上述消息中获取第二商品和位置信息,并在上述位置信息与预设地理区域不匹配的情况下,确定上述第二商品对应的至少一个第一商品,如第一商品来自天猫超市等;并自动向通信对端发送上述至少一个第一商品对应的商品信息,由此可以提高消息回复的便捷性和智能性。The embodiment of the present application may use a natural language processing method to obtain the second product and location information from the above message, and determine at least one first product corresponding to the above second product when the location information does not match the preset geographic area. Commodities, such as the first commodity comes from a Tmall supermarket, etc.; and the commodity information corresponding to the at least one first commodity is automatically sent to the communication peer, thereby improving the convenience and intelligence of message reply.
例如,在通信对端发送的消息可以为“在巴黎看到一件大衣,P欧元,贵不贵?”的情况下,对应的回复内容可以为“天猫超市上这件大衣卖Q元人民币”等。For example, the message sent by the correspondent can be "I saw a coat in Paris, P Euro, is it expensive?", the corresponding reply content can be "This coat is sold for Q yuan in Tmall supermarket?" "Wait.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the embodiments of the present application are not limited by the described sequence of actions, because According to the embodiments of the present application, some steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
本申请实施例还提供了一种多媒体数据的处理装置。The embodiment of the application also provides a multimedia data processing device.
参照图7,示出了本申请的一种多媒体数据的处理装置实施例的结构框图,上述装置具体可以包括如下模块:Referring to FIG. 7, there is shown a structural block diagram of an embodiment of a multimedia data processing apparatus according to the present application. The foregoing apparatus may specifically include the following modules:
接收模块701,用于接收用户输入的多媒体数据;上述多媒体数据包括:至少一帧图像;The receiving module 701 is configured to receive multimedia data input by a user; the above-mentioned multimedia data includes: at least one frame of image;
判断模块702,用于判断用户所处的位置是否与预设地理区域的位置相匹配;The judging module 702 is used to judge whether the location of the user matches the location of the preset geographic area;
商品确定模块703,用于若用户所处的位置与预设地理区域的位置不匹配,则依据上述预设地理区域对应的第一货币种类,确定上述至少一帧图像对应的至少一个第一商品;上述第一商品对应的商品信息包括:链接和第一价格信息;上述第一价格信息与上述第一货币种类相匹配;以及The commodity determination module 703 is configured to determine at least one first commodity corresponding to the at least one frame of image according to the first currency type corresponding to the preset geographic area if the location of the user does not match the location of the preset geographic area The commodity information corresponding to the first commodity includes: a link and first price information; the first price information matches the first currency category; and
展示模块704,用于展示比较界面;上述比较界面中包括:上述至少一帧图像对应的翻译图像、以及上述至少一个第一商品对应的商品信息。The display module 704 is configured to display a comparison interface; the comparison interface includes: the translation image corresponding to the at least one frame of image and the product information corresponding to the at least one first product.
可选地,上述装置还可以包括:Optionally, the foregoing device may further include:
第二货币种类确定模块,用于依据用户所处的位置得到第二货币种类;The second currency type determining module is used to obtain the second currency type according to the location of the user;
输入控件提供模块,用于在上述比较界面中提供输入控件,用于输入第二商品对应的第二价格信息,上述第二价格信息对应有上述第二货币种类。The input control providing module is configured to provide an input control in the comparison interface for inputting second price information corresponding to a second commodity, and the second price information corresponds to the second currency type.
可选地,上述装置还可以包括:Optionally, the foregoing device may further include:
汇率信息展示模块,用于响应于用户针对上述输入控件的触发操作,展示第一货币种类与第二货币种类之间的汇率信息。The exchange rate information display module is used to display exchange rate information between the first currency type and the second currency type in response to the user's triggering operation on the aforementioned input control.
可选地,上述装置还可以包括:Optionally, the foregoing device may further include:
第二价格展示模块,用于接收用户通过上述输入控件输入的第二价格信息;The second price display module is used to receive the second price information input by the user through the above-mentioned input control;
价格转换模块,用于按照第一货币种类与第二货币种类的转换参数,将上述第二价格信息转换为第三价格信息;上述第三价格信息对应有上述第一货币种类;The price conversion module is configured to convert the second price information into third price information according to the conversion parameters between the first currency type and the second currency type; the third price information corresponds to the first currency type;
第三价格展示模块,用于在上述比较界面中展示上述第二价格信息对应的第三价格信息。The third price display module is used to display the third price information corresponding to the second price information in the comparison interface.
可选地,上述装置还可以包括:Optionally, the foregoing device may further include:
第一区域确定模块,用于根据用户设置得到上述预设地理区域;The first area determining module is configured to obtain the foregoing preset geographic area according to user settings;
第二区域确定模块,用于依据用户在历史时间段内所处的位置,得到上述预设地理区域。The second area determination module is used to obtain the aforementioned preset geographic area according to the location of the user in the historical time period.
可选地,上述装置还可以包括:Optionally, the foregoing device may further include:
识别模块,用于识别图像中的源字符;上述源字符对应有第一语种;The recognition module is used to recognize the source characters in the image; the above source characters correspond to the first language;
翻译字符确定模块,用于确定上述源字符对应的翻译字符;上述翻译字符对应有第二语种;The translation character determination module is used to determine the translation character corresponding to the source character; the translation character corresponds to the second language;
图像替换模块,用于将上述图像中的源字符图像替换为翻译字符图像,以得到上述翻译图像;其中,上述翻译字符图像对应的参数与上述源字符图像对应的参数相匹配;上述参数可以包括:位置参数和外观参数。The image replacement module is used to replace the source character image in the image with the translated character image to obtain the translated image; wherein the parameters corresponding to the translated character image match the parameters corresponding to the source character image; the parameters may include : Position parameters and appearance parameters.
可选地,上述图像替换模块可以包括:Optionally, the above-mentioned image replacement module may include:
去除模块,用于从上述图像中去除源字符图像,以得到中间图像;The removal module is used to remove the source character image from the above image to obtain an intermediate image;
位置参数确定模块,用于依据上述源字符图像对应的位置参数,确定翻译字符图像对应的位置参数;The position parameter determination module is used to determine the position parameter corresponding to the translated character image according to the position parameter corresponding to the source character image;
图像合成模块,用于依据上述翻译字符图像对应的位置参数,对上述中间图像和上述翻译字符图像进行合成,以得到翻译图像。The image synthesis module is used to synthesize the intermediate image and the translated character image according to the position parameter corresponding to the translated character image to obtain the translated image.
可选地,上述翻译字符确定模块可以包括:Optionally, the aforementioned translation character determination module may include:
纠错模块,用于对上述源字符进行纠错;Error correction module, used to correct the above source characters;
翻译模块,用于确定纠错后源字符对应的翻译字符。The translation module is used to determine the translation character corresponding to the source character after error correction.
可选地,上述外观参数可以包括:字体参数和背景参数。Optionally, the aforementioned appearance parameters may include: font parameters and background parameters.
可选地,上述商品确定模块703可以包括:Optionally, the aforementioned commodity determining module 703 may include:
第二商品信息确定模块,用于确定上述图像中第二商品的信息;The second product information determining module is used to determine the information of the second product in the above-mentioned image;
第一商品确定模块,用于依据上述第二商品的信息和上述第一货币种类,从商品数 据库中确定出上述图像对应的至少一个第一商品。The first commodity determining module is configured to determine at least one first commodity corresponding to the image from the commodity database based on the information of the second commodity and the first currency type.
可选地,上述第一商品确定模块可以包括:Optionally, the above-mentioned first commodity determination module may include:
第一查找模块,用于依据上述第二商品的信息,查找商品数据库,以得到备选商品;The first searching module is used to search the commodity database according to the information of the second commodity mentioned above to obtain candidate commodities;
筛选模块,用于从上述备选商品中获取与上述第一货币种类相匹配的第一商品。The screening module is used to obtain the first commodity matching the above-mentioned first currency category from the above-mentioned candidate commodities.
可选地,上述第一商品确定模块可以包括:Optionally, the above-mentioned first commodity determination module may include:
第二查找模块,用于依据上述第二商品的信息,查找上述第一货币种类对应的商品数据库,以得到第一商品。The second searching module is used for searching the commodity database corresponding to the first currency type according to the information of the second commodity to obtain the first commodity.
可选地,上述第一商品的名称与上述第二商品的名称相同,或者,上述第一商品的类别与上述第二商品的类别相同。Optionally, the name of the first commodity is the same as the name of the second commodity, or the category of the first commodity is the same as the category of the second commodity.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the device in the foregoing embodiment, the specific manner in which each module performs operation has been described in detail in the embodiment of the method, and detailed description will not be given here.
本申请实施例的实施例可被实现为使用任意适当的硬件和/或软件进行想要的配置的系统或设备。图8示意性地示出了可被用于实现本申请中上述的各个实施例的示例性设备1300。The embodiments of the embodiments of the present application can be implemented as a system or device that uses any appropriate hardware and/or software to perform a desired configuration. FIG. 8 schematically shows an exemplary device 1300 that can be used to implement the various embodiments described above in this application.
对于一个实施例,图8示出了示例性设备1300,该设备1300可以包括:一个或多个处理器1302、与处理器1302中的至少一个耦合的系统控制模块(芯片组)1304、与系统控制模块1304耦合的系统存储器1306、与系统控制模块1304耦合的非易失性存储器(NVM)/存储设备1308、与系统控制模块1304耦合的一个或多个输入/输出设备1310,以及与系统存储器1306耦合的网络接口1312。该系统存储器1306可以包括:指令1362,该指令1362可被一个或多个处理器1302执行。For one embodiment, FIG. 8 shows an exemplary device 1300. The device 1300 may include: one or more processors 1302, a system control module (chipset) 1304 coupled with at least one of the processors 1302, and a system The system memory 1306 coupled to the control module 1304, the non-volatile memory (NVM)/storage device 1308 coupled to the system control module 1304, one or more input/output devices 1310 coupled to the system control module 1304, and the system memory 1306 is coupled to the network interface 1312. The system memory 1306 may include instructions 1362, and the instructions 1362 may be executed by one or more processors 1302.
处理器1302可包括一个或多个单核或多核处理器,处理器1302可包括通用处理器或专用处理器(例如图形处理器、应用程序处理器、基带处理器等)的任意组合。在一些实施例中,设备1300能够作为本申请实施例中上述的服务端、目标设备、无线设备等。The processor 1302 may include one or more single-core or multi-core processors, and the processor 1302 may include any combination of a general-purpose processor or a special-purpose processor (such as a graphics processor, an application processor, a baseband processor, etc.). In some embodiments, the device 1300 can serve as the above-mentioned server, target device, wireless device, etc. in the embodiments of the present application.
在一些实施例中,设备1300可包括具有指令的一个或多个机器可读介质(例如,系统存储器1306或NVM/存储装置1308)以及与该一个或多个机器可读介质相合并被配置为执行指令、以实现前述设备包括的模块、从而执行本申请实施例中上述的动作的一个 或多个处理器1302。In some embodiments, the device 1300 may include one or more machine-readable media with instructions (for example, the system memory 1306 or the NVM/storage device 1308) and be configured to be combined with the one or more machine-readable media One or more processors 1302 that execute instructions to implement the modules included in the foregoing device, so as to perform the foregoing actions in the embodiments of the present application.
一个实施例的系统控制模块1304可包括任何适合的接口控制器,用于提供任何适合的接口给处理器1302中的至少一个和/或与系统控制模块1304通信的任意适合的设备或部件。The system control module 1304 of an embodiment may include any suitable interface controller for providing any suitable interface to at least one of the processors 1302 and/or any suitable device or component communicating with the system control module 1304.
一个实施例的系统控制模块1304可包括一个或多个存储器控制器,用于提供接口给系统存储器1306。存储器控制器可以是硬件模块、软件模块和/或固件模块。The system control module 1304 of an embodiment may include one or more memory controllers for providing an interface to the system memory 1306. The memory controller may be a hardware module, a software module, and/or a firmware module.
一个实施例的系统存储器1306可被用于加载和存储数据和/或指令1362。对于一个实施例,系统存储器1306可包括任何适合的易失性存储器,例如,适合的DRAM(动态随机存取存储器)。在一些实施例中,系统存储器1306可包括:双倍数据速率类型四同步动态随机存取存储器(DDR4 SDRAM)。The system memory 1306 of an embodiment may be used to load and store data and/or instructions 1362. For one embodiment, the system memory 1306 may include any suitable volatile memory, for example, a suitable DRAM (Dynamic Random Access Memory). In some embodiments, the system memory 1306 may include: a double data rate type quad synchronous dynamic random access memory (DDR4 SDRAM).
一个实施例的系统控制模块1304可包括一个或多个输入/输出控制器,以向NVM/存储装置1308及(一个或多个)输入/输出设备1310提供接口。The system control module 1304 of an embodiment may include one or more input/output controllers to provide interfaces to the NVM/storage device 1308 and the input/output device(s) 1310.
一个实施例的NVM/存储装置1308可被用于存储数据和/或指令1382。NVM/存储装置1308可包括任何适合的非易失性存储器(例如闪存等)和/或可包括任何适合的(一个或多个)非易失性存储设备,例如,一个或多个硬盘驱动器(HDD)、一个或多个光盘(CD)驱动器和/或一个或多个数字通用光盘(DVD)驱动器等。The NVM/storage device 1308 of an embodiment may be used to store data and/or instructions 1382. The NVM/storage device 1308 may include any suitable non-volatile memory (such as flash memory, etc.) and/or may include any suitable non-volatile storage device(s), such as one or more hard disk drives ( HDD), one or more compact disc (CD) drives, and/or one or more digital versatile disc (DVD) drives, etc.
NVM/存储装置1308可包括在物理上是设备1300被安装在其上的设备的一部分的存储资源,或者其可被该设备访问而不必作为该设备的一部分。例如,NVM/存储装置1308可经由网络接口1312通过网络和/或通过输入/输出设备1310进行访问。The NVM/storage device 1308 may include storage resources that are physically a part of the device on which the device 1300 is installed, or it may be accessed by the device and not necessarily be a part of the device. For example, the NVM/storage device 1308 may be accessed through the network and/or through the input/output device 1310 via the network interface 1312.
一个实施例的(一个或多个)输入/输出设备1310可为设备1300提供接口以与任意其他适当的设备通信,输入/输出设备1310可以包括通信组件、音频组件、传感器组件等。The input/output device(s) 1310 of an embodiment may provide an interface for the device 1300 to communicate with any other suitable devices. The input/output device 1310 may include communication components, audio components, sensor components, and the like.
一个实施例的网络接口1312可为设备1300提供接口以通过一个或多个网络和/或与任何其他适合的设备通信,设备1300可根据一个或多个无线网络标准和/或协议中的任意标准和/或协议来与无线网络的一个或多个组件进行无线通信,例如接入基于通信标准的无线网络,如WiFi(无线保真,Wireless Fidelity),2G或3G或4G或5G,或它们的组合进行无线通信。The network interface 1312 of an embodiment may provide an interface for the device 1300 to communicate with any other suitable device through one or more networks, and the device 1300 may be based on one or more wireless network standards and/or any of the protocols. And/or protocols to wirelessly communicate with one or more components of the wireless network, such as accessing wireless networks based on communication standards, such as WiFi (Wireless Fidelity), 2G or 3G or 4G or 5G, or their Combine for wireless communication.
对于一个实施例,处理器1302中的至少一个可与系统控制模块1304的一个或多个控制器(例如,存储器控制器)的逻辑封装在一起。对于一个实施例,处理器1302中的至少一个可与系统控制模块1304的一个或多个控制器的逻辑封装在一起以形成系统级 封装(SiP)。对于一个实施例,处理器1302中的至少一个可与系统控制模块1304的一个或多个控制器的逻辑集成在同一新品上。对于一个实施例,处理器1302中的至少一个可与系统控制模块1304的一个或多个控制器的逻辑集成在同一芯片上以形成片上系统(SoC)。For one embodiment, at least one of the processors 1302 may be packaged with the logic of one or more controllers (eg, memory controllers) of the system control module 1304. For one embodiment, at least one of the processors 1302 may be packaged with the logic of one or more controllers of the system control module 1304 to form a system-in-package (SiP). For an embodiment, at least one of the processors 1302 may be integrated with the logic of one or more controllers of the system control module 1304 on the same new product. For one embodiment, at least one of the processors 1302 may be integrated with the logic of one or more controllers of the system control module 1304 on the same chip to form a system on chip (SoC).
在各个实施例中,设备1300可以包括但不限于:台式计算设备或移动计算设备(例如,膝上型计算设备、手持计算设备、平板电脑、上网本等)等计算设备。在各个实施例中,设备1300可具有更多或更少的组件和/或不同的架构。例如,在一些实施例中,设备1300可以包括一个或多个摄像机、键盘、液晶显示器(LCD)屏幕(包括触屏显示器)、非易失性存储器端口、多个天线、图形芯片、专用集成电路(ASIC)和扬声器。In various embodiments, the device 1300 may include, but is not limited to, a computing device such as a desktop computing device or a mobile computing device (for example, a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the device 1300 may have more or fewer components and/or different architectures. For example, in some embodiments, the device 1300 may include one or more cameras, keyboards, liquid crystal display (LCD) screens (including touch screen displays), non-volatile memory ports, multiple antennas, graphics chips, application specific integrated circuits (ASIC) and speakers.
其中,如果显示器包括触摸面板,显示屏可以被实现为触屏显示器,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。Wherein, if the display includes a touch panel, the display screen can be implemented as a touch screen display to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, sliding, 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 related to the touch or slide operation.
本申请实施例还提供了一种非易失性可读存储介质,该存储介质中存储有一个或多个模块(programs),该一个或多个模块被应用在设备时,可以使得该设备执行本申请实施例中各方法的指令(instructions)。The embodiment of the present application also provides a non-volatile readable storage medium. The storage medium stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute Instructions for each method in the embodiment of this application.
在一个示例中提供了一种设备,包括:一个或多个处理器;和,其上存储的一个或多个机器可读介质中的指令,由所述一个或多个处理器执行时,导致所述设备执行如本申请实施例中的方法,该方法可以包括:图1至图3所示的方法。In one example, a device is provided, including: one or more processors; and, instructions in one or more machine-readable media stored thereon, when executed by the one or more processors, cause The device executes the method in the embodiment of the present application, and the method may include: the method shown in FIG. 1 to FIG. 3.
在一个示例中还提供了一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得设备执行如本申请实施例中的方法,该方法可以包括:图1至图3所示的方法。In an example, one or more machine-readable media are also provided, on which instructions are stored, which when executed by one or more processors, cause the device to perform the method in the embodiment of the present application, and the method may include: The method shown in Figure 1 to Figure 3.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明,相关之处参见方法实施例的部分说明即可。Regarding the device in the above-mentioned embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, which will not be elaborated here. For related parts, please refer to the part of the description of the method embodiment. can.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other.
本申请实施例是参照根据本申请实施例的方法、装置(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供 这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程基于图像的处理装置的处理器以产生一个机器,使得通过计算机或其他可编程基于图像的处理装置的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments of the present application are described with reference to the flowcharts and/or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable image-based processing device to produce a machine for execution by the processor of the computer or other programmable image-based processing device The instructions generate means for realizing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程基于图像的处理装置以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable image-based processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device, The instruction device realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程基于图像的处理装置上,使得在计算机或其他可编程装置上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程装置上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable image-based processing device, so that a series of operation steps are executed on the computer or other programmable device to produce computer-implemented processing, so that the computer or other programmable device The executed instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。Although the preferred embodiments of the embodiments of the present application have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present application.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者装置中还存在另外的相同要素。Finally, it should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. Or there is any such actual relationship or sequence between operations. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other same elements in the process, method, article, or device that includes the element.
以上对本申请所提供的一种多媒体数据的处理方法、一种语音数据的处理方法、一种通信处理方法、一种多媒体数据的处理装置、一种装置、以及一种机器可读介质介质,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。In the above, a method for processing multimedia data, a method for processing voice data, a method for communication processing, a device for processing multimedia data, a device, and a machine-readable medium provided by this application are performed In this article, specific examples are used to illustrate the principles and implementation of the application. The descriptions of the above examples are only used to help understand the methods and core ideas of the application; at the same time, for those skilled in the art According to the idea of this application, there will be changes in the specific implementation and the scope of application. In summary, the content of this specification should not be construed as a limitation to this application.

Claims (18)

  1. 一种多媒体数据的处理方法,其特征在于,所述方法,包括:A method for processing multimedia data, characterized in that the method includes:
    接收用户输入的多媒体数据;所述多媒体数据包括:至少一帧图像;Receiving multimedia data input by a user; the multimedia data includes: at least one frame of image;
    判断用户所处的位置是否与预设地理区域的位置相匹配;Determine whether the location of the user matches the location of the preset geographic area;
    若用户所处的位置与预设地理区域的位置不匹配,则依据所述预设地理区域对应的第一货币种类,确定所述至少一帧图像对应的至少一个第一商品;所述第一商品对应的商品信息包括:链接和第一价格信息;所述第一价格信息与所述第一货币种类相匹配;If the location of the user does not match the location of the preset geographic area, at least one first commodity corresponding to the at least one frame of image is determined according to the first currency type corresponding to the preset geographic area; The commodity information corresponding to the commodity includes: a link and first price information; the first price information matches the first currency category;
    展示比较界面;所述比较界面中包括:所述至少一帧图像对应的翻译图像、以及所述至少一个第一商品对应的商品信息。A comparison interface is displayed; the comparison interface includes: a translated image corresponding to the at least one frame of image, and product information corresponding to the at least one first product.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    依据用户所处的位置得到第二货币种类;Obtain the second currency type according to the user's location;
    在所述比较界面中提供输入控件,用于输入第二商品对应的第二价格信息,所述第二价格信息对应有所述第二货币种类。An input control is provided in the comparison interface for inputting second price information corresponding to a second commodity, and the second price information corresponds to the second currency type.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, wherein the method further comprises:
    响应于用户针对所述输入控件的触发操作,展示第一货币种类与第二货币种类之间的汇率信息。In response to the user's triggering operation on the input control, the exchange rate information between the first currency category and the second currency category is displayed.
  4. 根据权利要求2或3所述的方法,其特征在于,所述方法还包括:The method according to claim 2 or 3, wherein the method further comprises:
    接收用户通过所述输入控件输入的第二价格信息;Receiving second price information input by the user through the input control;
    按照第一货币种类与第二货币种类的转换参数,将所述第二价格信息转换为第三价格信息;所述第三价格信息对应有所述第一货币种类;Converting the second price information into third price information according to the conversion parameters of the first currency type and the second currency type; the third price information corresponds to the first currency type;
    在所述比较界面中展示所述第二价格信息对应的第三价格信息。The third price information corresponding to the second price information is displayed in the comparison interface.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    根据用户设置得到所述预设地理区域;Obtaining the preset geographic area according to user settings;
    依据用户在历史时间段内所处的位置,得到所述预设地理区域。According to the location of the user in the historical time period, the preset geographic area is obtained.
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    识别图像中的源字符;所述源字符对应有第一语种;Identify the source characters in the image; the source characters correspond to the first language;
    确定所述源字符对应的翻译字符;所述翻译字符对应有第二语种;Determine the translated character corresponding to the source character; the translated character corresponds to a second language;
    将所述图像中的源字符图像替换为翻译字符图像,以得到所述翻译图像;其中,所述翻译字符图像对应的参数与所述源字符图像对应的参数相匹配;所述参数包括:位置参数和外观参数。Replace the source character image in the image with a translated character image to obtain the translated image; wherein the parameters corresponding to the translated character image match the parameters corresponding to the source character image; the parameters include: position Parameters and appearance parameters.
  7. 根据权利要求6所述的方法,其特征在于,所述将所述图像中的源字符图像替换为翻译字符图像,包括:The method according to claim 6, wherein the replacing the source character image in the image with a translated character image comprises:
    从所述图像中去除源字符图像,以得到中间图像;Removing the source character image from the image to obtain an intermediate image;
    依据所述源字符图像对应的位置参数,确定翻译字符图像对应的位置参数;Determine the position parameter corresponding to the translated character image according to the position parameter corresponding to the source character image;
    依据所述翻译字符图像对应的位置参数,对所述中间图像和所述翻译字符图像进行合成,以得到翻译图像。According to the position parameter corresponding to the translated character image, the intermediate image and the translated character image are synthesized to obtain the translated image.
  8. 根据权利要求6或7所述的方法,其特征在于,所述确定所述源字符对应的翻译字符,包括:The method according to claim 6 or 7, wherein the determining the translation character corresponding to the source character comprises:
    对所述源字符进行纠错;Perform error correction on the source character;
    确定纠错后源字符对应的翻译字符。Determine the translation character corresponding to the source character after error correction.
  9. 根据权利要求6或7所述的方法,其特征在于,所述外观参数包括:字体参数和背景参数。The method according to claim 6 or 7, wherein the appearance parameters include: font parameters and background parameters.
  10. 根据权利要求1或2或3或5或6或7所述的方法,其特征在于,所述确定所述至少一帧图像对应的至少一个第一商品,包括:The method according to claim 1 or 2 or 3 or 5 or 6 or 7, wherein said determining at least one first commodity corresponding to said at least one frame of image comprises:
    确定所述图像中第二商品的信息;Determine the information of the second commodity in the image;
    依据所述第二商品的信息和所述第一货币种类,从商品数据库中确定出所述图像对应的至少一个第一商品。According to the information of the second commodity and the first currency type, at least one first commodity corresponding to the image is determined from the commodity database.
  11. 根据权利要求10所述的方法,其特征在于,所述从商品数据库中确定出所述图像对应的至少一个第一商品,包括:The method according to claim 10, wherein the determining at least one first commodity corresponding to the image from a commodity database comprises:
    依据所述第二商品的信息,查找商品数据库,以得到备选商品;According to the information of the second commodity, search the commodity database to obtain candidate commodities;
    从所述备选商品中获取与所述第一货币种类相匹配的第一商品。Obtain a first commodity matching the first currency category from the candidate commodities.
  12. 根据权利要求10所述的方法,其特征在于,所述从商品数据库中确定出所述图像对应的至少一个第一商品,包括:The method according to claim 10, wherein the determining at least one first commodity corresponding to the image from a commodity database comprises:
    依据所述第二商品的信息,查找所述第一货币种类对应的商品数据库,以得到第一商品。According to the information of the second commodity, the commodity database corresponding to the first currency category is searched to obtain the first commodity.
  13. 根据权利要求10所述的方法,其特征在于,所述第一商品的名称与所述第二商品的名称相同,或者,所述第一商品的类别与所述第二商品的类别相同。The method according to claim 10, wherein the name of the first product is the same as the name of the second product, or the category of the first product is the same as the category of the second product.
  14. 一种语音数据的处理方法,其特征在于,包括:A method for processing voice data, which is characterized in that it comprises:
    接收用户输入的语音数据;Receive voice data input by the user;
    从所述语音数据中获取第二商品和位置信息;Acquiring the second product and location information from the voice data;
    若所述位置信息与预设地理区域不匹配,则依据所述预设地理区域对应的第一货币种类,确定所述第二商品对应的至少一个第一商品;所述第一商品对应的商品信息包括:链接和/或第一价格信息;所述第一价格信息与所述第一货币种类相匹配;If the location information does not match the preset geographic area, at least one first commodity corresponding to the second commodity is determined according to the first currency type corresponding to the preset geographic area; the commodity corresponding to the first commodity The information includes: a link and/or first price information; the first price information matches the first currency category;
    输出所述至少一个第一商品对应的商品信息。The product information corresponding to the at least one first product is output.
  15. 一种通信处理方法,其特征在于,包括:A communication processing method, characterized in that it comprises:
    接收通信对端发送的消息;Receive the message sent by the correspondent end;
    从所述消息中获取第二商品和位置信息;Acquiring the second commodity and location information from the message;
    若所述位置信息与预设地理区域不匹配,则依据所述预设地理区域对应的第一货币种类,确定所述第二商品对应的至少一个第一商品;所述第一商品对应的商品信息包括:链接和/或第一价格信息;所述第一价格信息与所述第一货币种类相匹配;If the location information does not match the preset geographic area, at least one first commodity corresponding to the second commodity is determined according to the first currency type corresponding to the preset geographic area; the commodity corresponding to the first commodity The information includes: a link and/or first price information; the first price information matches the first currency category;
    向所述通信对端发送所述至少一个第一商品对应的商品信息。Sending the commodity information corresponding to the at least one first commodity to the communication peer.
  16. 一种多媒体数据的处理装置,其特征在于,所述装置包括:A multimedia data processing device, characterized in that the device includes:
    接收模块,用于接收用户输入的多媒体数据;所述多媒体数据包括:至少一帧图像;The receiving module is configured to receive multimedia data input by the user; the multimedia data includes: at least one frame of image;
    判断模块,用于判断用户所处的位置是否与预设地理区域的位置相匹配;The judging module is used to judge whether the location of the user matches the location of the preset geographic area;
    商品确定模块,用于若用户所处的位置与预设地理区域的位置不匹配,则依据所述预设地理区域对应的第一货币种类,确定所述至少一帧图像对应的至少一个第一商品;所述第一商品对应的商品信息包括:链接和第一价格信息;所述第一价格信息与所述第一货币种类相匹配;以及The commodity determination module is configured to determine at least one first currency corresponding to the at least one frame of image according to the first currency type corresponding to the preset geographic area if the location of the user does not match the location of the preset geographic area. Commodity; the commodity information corresponding to the first commodity includes: a link and first price information; the first price information matches the first currency category; and
    展示模块,用于展示比较界面;所述比较界面中包括:所述至少一帧图像对应的翻译图像.以及所述至少一个第一商品对应的商品信息。The display module is configured to display a comparison interface; the comparison interface includes: a translated image corresponding to the at least one frame of image and product information corresponding to the at least one first product.
  17. 一种处理设备,其特征在于,包括:A processing device, characterized in that it comprises:
    一个或多个处理器;和One or more processors; and
    其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述设备执行如权利要求1-13中一个或多个所述的方法。One or more machine-readable media on which instructions are stored, when executed by the one or more processors, cause the device to perform the method according to one or more of claims 1-13.
  18. 一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得设备执行如权利要求1-13中一个或多个所述的方法。One or more machine-readable media having instructions stored thereon, when executed by one or more processors, cause the device to execute the method according to one or more of claims 1-13.
PCT/CN2021/070602 2020-01-08 2021-01-07 Processing method and apparatus, and device and machine-readable medium WO2021139711A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010019663.3A CN113095898A (en) 2020-01-08 2020-01-08 Processing method, device, equipment and machine readable medium
CN202010019663.3 2020-01-08

Publications (1)

Publication Number Publication Date
WO2021139711A1 true WO2021139711A1 (en) 2021-07-15

Family

ID=76663435

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/070602 WO2021139711A1 (en) 2020-01-08 2021-01-07 Processing method and apparatus, and device and machine-readable medium

Country Status (2)

Country Link
CN (1) CN113095898A (en)
WO (1) WO2021139711A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6199046B1 (en) * 1997-07-29 2001-03-06 Adsura Pty Ltd. Method system and article of manufacture for performing real time currency conversion
WO2016144785A1 (en) * 2015-03-06 2016-09-15 Rfco Llc Exchange service for wireless communication pricing accessible by wallet applications
CN107451895A (en) * 2017-08-07 2017-12-08 玫瑰视界(北京)网络科技有限公司 Merchandise news methods of exhibiting and device
CN109325722A (en) * 2018-10-25 2019-02-12 深圳市万普拉斯科技有限公司 Inventory generation method, device, mobile terminal and computer storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002288495A (en) * 2001-03-28 2002-10-04 Ricoh Co Ltd System and method for supporting shopping by local money, program and recording medium
CN103150392A (en) * 2013-03-25 2013-06-12 江苏乐买到网络科技有限公司 Method for comparing prices of similar commodities
CN106469004A (en) * 2015-08-20 2017-03-01 阿里巴巴集团控股有限公司 Information conversion method and device
CN108921592A (en) * 2018-05-31 2018-11-30 阿里巴巴集团控股有限公司 A kind of processing method of pricing information, processing unit and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6199046B1 (en) * 1997-07-29 2001-03-06 Adsura Pty Ltd. Method system and article of manufacture for performing real time currency conversion
WO2016144785A1 (en) * 2015-03-06 2016-09-15 Rfco Llc Exchange service for wireless communication pricing accessible by wallet applications
CN107451895A (en) * 2017-08-07 2017-12-08 玫瑰视界(北京)网络科技有限公司 Merchandise news methods of exhibiting and device
CN109325722A (en) * 2018-10-25 2019-02-12 深圳市万普拉斯科技有限公司 Inventory generation method, device, mobile terminal and computer storage medium

Also Published As

Publication number Publication date
CN113095898A (en) 2021-07-09

Similar Documents

Publication Publication Date Title
US10467508B2 (en) Font recognition using text localization
US9875429B2 (en) Font attributes for font recognition and similarity
JP6998413B2 (en) How to provide similar products for deep learning infrastructure, equipment for providing similar products for deep learning infrastructure, and programs
US9824304B2 (en) Determination of font similarity
US10108695B1 (en) Multi-level clustering for associating semantic classifiers with content regions
CN106850314B (en) Method and equipment for determining user attribute model and user attribute information
US8958661B2 (en) Learning concept templates from web images to query personal image databases
TW201909006A (en) Method and device for sample screening, method and device for searching for business object data
US10783885B2 (en) Image display device, method for driving the same, and computer readable recording medium
US20160189038A1 (en) Techniques for mobile prediction
KR102108460B1 (en) Method and apparatus for categorizing products using product vector
US20210158087A1 (en) Object detection based on deep neural network
WO2021098310A1 (en) Video generation method and device, and terminal and storage medium
US10650814B2 (en) Interactive question-answering apparatus and method thereof
US20150074596A1 (en) Techniques to display location-based information
CN111967892A (en) Information recommendation method and device
US11544469B2 (en) Electronic apparatus and control method thereof
CN111242129A (en) Method and device for end-to-end character detection and identification
CN110363206B (en) Clustering of data objects, data processing and data identification method
WO2023087934A1 (en) Voice control method, apparatus, device, and computer storage medium
CN102968266A (en) Identification method and apparatus
CN111488097A (en) Method and equipment for providing reading presentation information
US20210217071A1 (en) Product object publishing and recognition methods, apparatuses, electronic devices, and storage media
WO2021139711A1 (en) Processing method and apparatus, and device and machine-readable medium
WO2022179424A1 (en) Data processing method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21738091

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21738091

Country of ref document: EP

Kind code of ref document: A1