A processing method, device, apparatus and machine-readable medium
By receiving multimedia data input by users, determining the location and providing a price comparison interface, it solves the time-consuming and labor-intensive problem of users obtaining domestic product prices, and improves the efficiency and user experience of overseas shopping.
Patent Information
- Application Number
- CN202010019663.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-08
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-01-08
AI Technical Summary
In the process of overseas shopping, the way for users to obtain the prices of domestic products is time-consuming and laborious, resulting in low efficiency of overseas shopping.
By receiving multimedia data input by the user, it determines whether the user's location matches the preset geographical area. If it does not match, the product information is determined based on the preset currency type, and a comparison interface is provided to display images and price information to help users compare prices.
It improves users' price comparison efficiency in overseas scenarios, helps users quickly determine whether to purchase overseas products, and improves the shopping experience.
Smart Images

Figure CN113095898B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method for processing multimedia data, a method for processing voice data, a communication processing method, a processing device based on multimedia data, a device and a machine-readable medium. Background Art
[0002] With the development of economy and technology, users' living standards are gradually improving, and outbound travel and overseas shopping are becoming more and more common.
[0003] At present, in the process of overseas shopping, the price of goods is usually an important factor for users to purchase overseas goods. For example, some users will consider the price difference between overseas goods and domestic goods. Currently, users often obtain the price of overseas goods and the price of domestic goods on site, and then determine whether to purchase overseas goods based on the price difference between overseas goods and domestic goods.
[0004] The inventors discovered during the implementation of the embodiments of the present application that users obtain prices of domestic goods through other users, or users search for prices of domestic goods through the Internet. The above methods of obtaining prices of domestic goods are time-consuming and labor-intensive, which will lead to low efficiency of overseas shopping. Summary of the invention
[0005] 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.
[0006] Correspondingly, the embodiments of the present application also provide a method for processing voice data, a communication processing method, a multimedia data processing device, a device and a machine-readable medium to ensure the implementation and application of the above methods.
[0007] In order to solve the above problems, the present application discloses a method for processing multimedia data, including:
[0008] Receiving multimedia data input by a user; the multimedia data includes: at least one frame of image;
[0009] Determine whether the user's location matches the location of a preset geographic area;
[0010] If the location of the user does not match the location of the preset geographical area, then determining at least one first commodity corresponding to the at least one frame of image according to the first currency type corresponding to the preset geographical area; the commodity information corresponding to the first commodity includes: a link and first price information; the first price information matches the first currency type;
[0011] A comparison interface is displayed; the comparison interface includes: a translation image corresponding to the at least one frame of image, and product information corresponding to the at least one first product.
[0012] The present application embodiment discloses a method for processing voice data, including:
[0013] Receiving voice data input by a user;
[0014] Acquire second product and location information from the voice data;
[0015] If the location information does not match the preset geographical area, determining at least one first commodity corresponding to the second commodity based on the first currency type corresponding to the preset geographical area; the commodity information corresponding to the first commodity includes: a link and / or first price information; the first price information matches the first currency type;
[0016] The commodity information corresponding to the at least one first commodity is outputted.
[0017] The present application embodiment discloses a communication processing method, including:
[0018] Receive messages sent by the communication peer;
[0019] Acquire a second product and location information from the message;
[0020] If the location information does not match the preset geographical area, determining at least one first commodity corresponding to the second commodity based on the first currency type corresponding to the preset geographical area; the commodity information corresponding to the first commodity includes: a link and / or first price information; the first price information matches the first currency type;
[0021] Sending commodity information corresponding to the at least one first commodity to the communication peer.
[0022] On the other hand, an embodiment of the present application further discloses a multimedia data processing device, the device comprising:
[0023] A receiving module, used to receive multimedia data input by a user; the multimedia data includes: at least one frame of image;
[0024] A determination module, used to determine whether the location of the user matches the location of a preset geographical area;
[0025] a commodity determination module, configured to determine, if the location of the user does not match the location of the preset geographical area, at least one first commodity corresponding to the at least one frame of image according to a first currency type corresponding to the preset geographical area; the commodity information corresponding to the first commodity includes: a link and first price information; the first price information matches the first currency type; and
[0026] The display module is used to display a comparison interface; the comparison interface includes: a translation image corresponding to the at least one frame of image, and commodity information corresponding to the at least one first commodity.
[0027] On the other hand, the embodiment of the present application further discloses a device, including:
[0028] one or more processors; and
[0029] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the device to perform one or more of the methods described above.
[0030] On the other hand, an embodiment of the present application discloses one or more machine-readable media having instructions stored thereon, which, when executed by one or more processors, enable a device to execute one or more of the methods described above.
[0031] The embodiments of the present application include the following advantages:
[0032] After receiving multimedia data input by the user, the embodiment of the present application will determine whether the user's location matches the location of the preset geographical area. If not, it is considered that the user is outside the preset geographical area. For example, if the preset geographical area is the country to which the user belongs, then when the user is outside the preset geographical area, it can be considered that the user is in a foreign 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 based on the first currency type corresponding to the above-mentioned preset geographical area, and provides a comparison interface, which may include: the translation image corresponding to the above-mentioned at least one frame of image, and the commodity information corresponding to the above-mentioned at least one first commodity.
[0033] The first commodity in the embodiment of the present application may be from the Internet, and the second commodity in at least one frame of the multimedia data may be an offline physical commodity. The comparison interface in the embodiment of the present application can help users compare the first commodity on the Internet with the offline physical commodity. In particular, the first price information of the first commodity in the comparison interface in the embodiment of the present application corresponds to the first currency type, and the first currency type may be a currency type that matches a preset geographical area. The embodiment of the present application provides the first price information that matches the preset geographical area, which can meet the user's price comparison needs in overseas scenarios, that is, meet the user's demand for price comparison between the second commodity in the multimedia data and the first commodity on the Internet.
[0034] While satisfying the user's need for price comparison in overseas scenarios, the above first price information can help the user quickly determine whether to purchase overseas products, thereby improving the efficiency of overseas shopping and further improving the user experience.
[0035] While satisfying the user's need for price comparison in overseas scenarios, the above first price information can help the user quickly determine whether to purchase overseas products, thereby improving the efficiency of overseas shopping and further improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 This is a flowchart of the steps of Embodiment 1 of a method for processing multimedia data of the present application;
[0037] Figure 2 is a flowchart of steps of an embodiment of a method for determining a translation image of the present application;
[0038] Figure 3 This is a flowchart of the steps of Embodiment 2 of a method for processing multimedia data of the present application;
[0039] Figure 4A-4F is a schematic diagram of an interface of an example of an image-based processing method according to an embodiment of the present application;
[0040] Figure 5 This is a flowchart of a method for processing voice data according to an embodiment of the present application;
[0041] Figure 6 is a flow chart of steps of an embodiment of a communication processing method of the present application;
[0042] Figure 7 is a structural block diagram of an embodiment of an image-based processing device of the present application; and
[0043] Figure 8 It is a schematic diagram of the structure of a device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0046] The concept of the present application is susceptible to various modifications and alternative forms, and its specific embodiments have been shown in the form of drawings and will be described in detail herein. However, it should be understood that the above content is not intended to limit the concept of the present application to the specific form disclosed. On the contrary, the specification and appended claims of the present application are intended to cover all modifications, equivalents and alternative forms.
[0047] In this specification, "one embodiment", "embodiment", "a specific embodiment", etc., indicate that the described embodiment may include a specific feature, structure or characteristic, but each embodiment may or may not necessarily include the specific feature, structure or characteristic. In addition, such phrases do not necessarily refer to the same embodiment. In addition, when a specific feature, structure or characteristic is described in connection with one 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 of "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, the 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).
[0048] 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-temporary machine-readable (e.g., computer-readable) storage media, which may be executed by one or more processors. The machine-readable storage medium may be implemented as a storage device, mechanism, or other physical structure (e.g., volatile or non-volatile memory, media disk, or other media other physical structure device) for storing or transmitting information in a form that can be read by a machine.
[0049] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, preferably, such a specific arrangement and / or order is not necessary. On the contrary, in some embodiments, such features may be arranged in a different manner and / or order, rather than as shown in the accompanying drawings. In addition, the content included in the structural or method features in a specific figure does not mean to imply that such features are necessary in all embodiments, and in some embodiments, these features may not be included, or these features may be combined with other features.
[0050] In response to the technical problem of low efficiency of overseas shopping, an embodiment of the present application provides an image-based processing solution, which specifically includes: receiving multimedia data input by a user; the multimedia data includes: at least one frame of image; determining whether the user's location matches the location of a preset geographical area; if the user's location does not match the location of the preset geographical area, determining at least one first commodity corresponding to the at least one frame of image based on the first currency type corresponding to the preset geographical area; the commodity information corresponding to the first commodity may include: a link and first price information; the first price information matches the first currency type; and, displaying a comparison interface; the comparison interface may include: a translation image corresponding to the at least one frame of image, and commodity information corresponding to the at least one first commodity.
[0051] After receiving multimedia data input by the user, the embodiment of the present application will determine whether the user's location matches the location of the preset geographical area. If not, it is considered that the user is outside the preset geographical area. For example, if the preset geographical area is the country to which the user belongs, then when the user is outside the preset geographical area, it can be considered that the user is in a foreign 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 based on the first currency type corresponding to the above-mentioned preset geographical area, and provides a comparison interface, which may include: the translation image corresponding to the above-mentioned at least one frame of image, and the commodity information corresponding to the above-mentioned at least one first commodity.
[0052] The first commodity in the embodiment of the present application may be from the Internet, and the second commodity in at least one frame of the multimedia data may be an offline physical commodity. The comparison interface in the embodiment of the present application can help users compare the first commodity on the Internet with the offline physical commodity. In particular, the first price information of the first commodity in the comparison interface in the embodiment of the present application corresponds to the first currency type, and the first currency type may be a currency type that matches a preset geographical area. The embodiment of the present application provides the first price information that matches the preset geographical area, which can meet the user's price comparison needs in overseas scenarios, that is, meet the user's demand for price comparison between the second commodity in the multimedia data and the first commodity on the Internet.
[0053] While satisfying the user's need for price comparison in overseas scenarios, the above first price information can help the user quickly determine whether to purchase overseas products, thereby improving the efficiency of overseas shopping and further improving the user experience.
[0054] The method provided in the embodiment of the present application can be applied to an application environment corresponding to a client and a server. The client and the server are located in a wired or wireless network, and the client and the server interact with each other through the wired or wireless network.
[0055] Optionally, the client can run on a terminal, which specifically includes but is not limited to: smart phones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, car computers, desktop computers, set-top boxes, smart TVs, wearable devices, etc.
[0056] Optionally, the terminal of the embodiment of the present application may have a multimedia acquisition function, and accordingly, a multimedia acquisition device such as a camera may be provided in the terminal.
[0057] In the embodiment of the present application, the client may correspond to any APP (Application). For example, the APP corresponding to the client may include: a payment APP, an image processing APP, an instant messaging APP, or a voice interaction APP.
[0058] Method Example 1
[0059] Reference Figure 1 , shows a flowchart of a first embodiment of an image-based processing method of the present application, which may specifically include the following steps:
[0060] Step 101: receiving multimedia data input by a user; the multimedia data may include: at least one frame of image;
[0061] Step 102: determine whether the user's location matches the location of a preset geographical area;
[0062] Step 103: if the location of the user does not match the location of the preset geographical area, then determining at least one first commodity corresponding to the at least one frame of image according to the first currency type corresponding to the preset geographical area; the commodity information corresponding to the first commodity may include: a link and first price information; the first price information matches the first currency type;
[0063] Step 104: display a comparison interface; the comparison interface may include: a translation image corresponding to the at least one frame of image, and product information corresponding to the at least one first product.
[0064] At least one step included in the method of the embodiment of the present application can be executed by the client. It can be understood that the embodiment of the present application does not limit the specific execution entity of the steps included in the method.
[0065] In step 101, the multimedia data may include: images or videos.
[0066] In practical applications, multimedia data can be obtained by shooting according to a multimedia acquisition device. For example, a scan interface or a translation interface can be provided, and in response to a trigger operation on the scan interface or the translation interface, the acquisition of multimedia data is triggered. It is understood that the embodiments of the present application do not limit the specific method of acquiring multimedia data.
[0067] In the embodiment of the present application, optionally, at least one frame of the multimedia data may include the second commodity. For example, when the user is shopping offline, the user may take a photo of the offline second commodity to obtain an image including the second commodity.
[0068] In step 102, it is determined whether the user's location matches the location of the preset geographical area, and it can be determined whether the user is inside or outside the preset geographical area. For example, if the preset geographical area is the country to which the user belongs, then when the user is outside the preset geographical area, it can be considered that the user is in an overseas scene.
[0069] In the embodiment of the present application, the preset geographical area can be obtained according to user settings. For example, a setting interface for the preset geographical area can be provided to receive the preset geographical area input by the user through the setting interface.
[0070] In the embodiment of the present application, optionally, the preset geographical area can be obtained based on the location of the user in the historical time period. The historical time period can be the longest time period, or the time period length exceeds the time period threshold, so that the location information of the user in the historical time period can represent the permanent residence.
[0071] In step 103, the first currency type may be a currency circulated in a preset geographical area, for example, the currency circulated in China is RMB.
[0072] For example, user A's permanent residence is China, and he 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.
[0073] 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.
[0074] In an optional embodiment of the present application, the above-mentioned determination of at least one first commodity corresponding to the above-mentioned at least one frame of image may specifically include: determining information of a second commodity in the above-mentioned image; and determining at least one first commodity corresponding to the above-mentioned image from a commodity database based on the information of the above-mentioned second commodity and the above-mentioned first currency type.
[0075] According to an embodiment, the above-mentioned determination of at least one first commodity corresponding to the above-mentioned image from the commodity database may specifically include: searching the commodity database according to the information of the above-mentioned second commodity to obtain candidate commodities; and obtaining the first commodity matching the above-mentioned first currency type from the above-mentioned candidate commodities. In this embodiment, the fields of the commodity database may include: commodity information, so the candidate commodities may be obtained based on the matching of the commodity information first. The attributes of the candidate commodities may include: currency type attributes, so 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.
[0076] According to another embodiment, the above-mentioned determining at least one first commodity corresponding to the above-mentioned image from the commodity database may specifically include: searching the commodity database corresponding to the above-mentioned first currency type according to the information of the above-mentioned second commodity to obtain the first commodity. In this embodiment, the commodity database may be classified according to the currency type, and when searching, the commodity database corresponding to the first currency type may be used for searching. For example, the commodity database may include: a commodity database corresponding to RMB, or a commodity database corresponding to USD, or a commodity database corresponding to EUR, etc.
[0077] The product database of the embodiment of the present application can be provided by an e-commerce platform. It can be understood that the embodiment of the present application is not limited to a specific e-commerce platform.
[0078] According to an embodiment, the process of determining the second commodity in the image of the multimedia data may include: determining the second commodity in the image of the multimedia data by using image recognition technology.
[0079] Image recognition refers to the technology of using machines to process, analyze and understand images to identify image targets of various different modes. Specifically in the embodiment of the present application, the technology of using machines to process, analyze and understand images of multimedia data to identify image targets of various different modes. Usually, an image target can correspond to a certain image area in the image. The image target can include: objects, people, space, etc. The image target in the embodiment of the present application can be specifically an object.
[0080] According to another embodiment, the process of determining the second product in the image of the multimedia data may include: using OCR (Optical Character Recognition) technology to recognize characters in the image of the multimedia data, and obtaining information such as the name of the second product based on the recognized characters.
[0081] In another optional embodiment of the present application, the similarity between the image of the multimedia data and the product image of the candidate product can be determined first, and then the first product can be determined from the candidate products based on the similarity. For example, the candidate product whose similarity exceeds the similarity threshold can be selected as the first product.
[0082] 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 quantity of first commodities may be selected according to the sorting result. The sorting characteristics may include but are not limited to: price information, sales volume characteristics, seller's trust characteristics, etc. The preset quantity may be determined by those skilled in the art according to actual application requirements, for example, the preset quantity may be 2, etc.
[0083] The above is a detailed introduction to the embodiment of determining at least one first commodity corresponding to the image of the above-mentioned multimedia data. It can be understood that those skilled in the art can adopt any one or a combination of the above-mentioned embodiments according to actual application requirements. The embodiment of the present application does not limit the specific process of determining at least one first commodity corresponding to the image of the above-mentioned multimedia data.
[0084] After determining the first commodity, the embodiment of the present application can obtain a link and first price information of the first commodity. The link can be used to point to a page corresponding to the first commodity. Optionally, the link can include: information such as the title of the first commodity.
[0085] The first price information may correspond to a first currency type. The first currency type may be a currency type that matches a preset geographical area, so that the first price information conforms to the habits of the preset geographical area to which the user belongs.
[0086] 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 translated image in the comparison interface can include information about the second product, and the comparison interface can include first price information of the first product. Therefore, the information in the comparison interface can be used as a basis for comparing the second product and the first product.
[0087] The translated image can be obtained by translating the image of the multimedia data. In overseas scenarios, if the description language corresponding to the offline second product is different from the user's native language, a language barrier is likely to occur, that is, it is difficult for the user to understand the description text of the product. For example, 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, etc., the user may find it difficult to understand the description text of the product. The embodiment of the present application can use image translation technology to translate the image of multimedia data into a translated image, and the characters corresponding to the translated image can be in the first language to improve the convenience of the user's understanding of the description text of the product.
[0088] In an optional embodiment of the present application, the above-mentioned translation image can be obtained by replacing the source character image in the image of the above-mentioned multimedia data with a translation character image; the parameters corresponding to the above-mentioned translation character image match the parameters corresponding to the above-mentioned source character image; the above-mentioned parameters may include: position parameters and appearance parameters.
[0089] The translated character image may represent an image corresponding to the translated character. The source character image may represent an image corresponding to the source character. The image of the multimedia data may include: a background image, a source character image, or a non-character image (an image corresponding to a pattern, etc.).
[0090] The embodiment of the present application uses a translated character image to replace a source character image in an image of multimedia data, wherein parameters corresponding to the translated character image match parameters corresponding to the above-mentioned source character image, thereby improving the matching degree between the foreground and background of the translated character image in the translated image, thereby improving the appearance quality of the translated image.
[0091] In the embodiment of the present application, optionally, the comparison interface may include: an image area and a product area. The image area is used to display the translation image. The product area is used to display product information corresponding to the first product.
[0092] The image area and the product area can be arranged vertically, for example, the image area is located in the upper area and the product area is located in the lower area. Alternatively, the image area and the product area can be arranged horizontally, for example, the image area is located in the left area and the product area is located in the right area.
[0093] Alternatively, the image area and the product area may be located in different interface layers. For example, the image area is located in the first interface layer, the product area is located in the second interface layer, the second interface layer is located above the first interface layer, etc. The second interface layer may be a mask layer, and the mask layer may be a floating layer with adjustable transparency.
[0094] 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.
[0095] Optionally, the upper part of the original interface displays the translation image, and the lower part of the original interface displays the comparison trigger control. Then, in response to a sliding operation on the comparison trigger control, a floating layer may be displayed on the original interface, and the floating layer may display information of at least one first product. The sliding operation may be a sliding operation from bottom to top, etc.
[0096] In an optional embodiment of the present application, the above method may also include: obtaining a second currency type based on the user's location; providing an input control in the above comparison interface for inputting second price information corresponding to the second commodity, the above second price information corresponding to the above second currency type.
[0097] Optionally, the second currency type may be obtained based on the location information of the user in the first time period. The first time period may be a 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 most recent day or the most recent two days. The most recent temporary location of the user may be obtained based on the first time period, and the second currency type may be obtained based on the currency type of the most recent temporary location. Of course, the second currency type may be set by the user, or the second currency type may be obtained from an image of multimedia data, for example, the image of multimedia data may contain information about the second currency type.
[0098] In an optional embodiment of the present application, the method may further include: in response to a triggering operation of the user on the input control, displaying the exchange rate information between the first currency type and the second currency type.
[0099] The trigger operation for the above input control may be a click operation on the input control, etc. In response to the click operation, the input focus may be displayed in the input control, and the exchange rate information may be displayed. For example, if the first currency type is RMB and the second currency type is USD, the exchange rate information may be "×7.5" etc. for user reference.
[0100] In an optional embodiment of the present application, the method may further include: receiving second price information input by a user through the input control; converting the second price information into third price information according to conversion parameters between the first currency and the second currency; the third price information corresponds to the first currency; and displaying the third price information corresponding to the second price information in the comparison interface. The embodiment of the present application may convert the second price information of the second currency according to the exchange rate information to obtain the third price information.
[0101] After displaying the third price information corresponding to the second price information, the comparison interface may include: a translation image, the third price information and the product information corresponding to the first product, so that the user can compare the prices of the second product and the first product.
[0102] In an embodiment of the present application, optionally, the above method is applied to a first program, and the link corresponding to the first product originates from an internal module of the above first program, or the link corresponding to the first product originates from a second program, and the first program can display the link according to the rules of the second program.
[0103] In the case where 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. The page corresponding to the first product can be loaded without jumping the program, thereby increasing the loading speed of the page corresponding to the first product and further improving the user experience.
[0104] Mini programs are applications that can be sent from a server and executed in an application environment without installation. Mini programs generally cannot exist independently and rely on an application environment.
[0105] In the embodiment of the present application, the mini program can optionally provide a link and page corresponding to the first product. The program corresponding to the client can provide an application environment for the mini program so that the mini program can be executed in the application environment. Then, if a trigger operation for the link is received, the mini program 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 increased, thereby improving the user experience.
[0106] In summary, in the image-based processing method of the embodiment of the present application, the first commodity can be sourced from the Internet, and the second commodity in at least one frame of the multimedia data can be an offline physical commodity. The comparison interface of the embodiment of the present application can help users compare the first commodity on the Internet with the offline physical commodity. 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, and the first currency type can be a currency type that matches a preset geographical area. The embodiment of the present application provides the first price information that matches the preset geographical area, which can meet the user's price comparison needs in overseas scenarios, that is, meet the user's demand for price comparison between the second commodity in the multimedia data and the first commodity on the Internet.
[0107] While satisfying the user's need for price comparison in overseas scenarios, the above first price information can help the user quickly determine whether to purchase overseas products, thereby improving the efficiency of overseas shopping and further improving the user experience.
[0108] Method Example 2
[0109] Reference Figure 2 , shows a flowchart of a method for determining a translation image in an embodiment of the present application, which may specifically include the following steps:
[0110] Step 201, identifying source characters in an image of multimedia data; the source characters correspond to a first language;
[0111] Step 202, determining the translation characters corresponding to the source characters; the translation characters correspond to a second language;
[0112] Step 203: Replace the source character image in the image of the multimedia data 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.
[0113] The embodiment of the present application uses a translated character image to replace a source character image in an image of multimedia data, wherein parameters corresponding to the translated character image match parameters corresponding to the above-mentioned source character image, thereby improving the matching degree between the foreground and background of the translated character image in the translated image, thereby improving the appearance quality of the translated image.
[0114] In step 201, OCR technology may be used to recognize source characters in the image of multimedia data.
[0115] In step 202, machine translation technology may be used to determine the translation characters corresponding to the source characters; the translation characters correspond to a second language.
[0116] The second language may be set by the user, or the second language may be obtained based on the location information of the user in the second time period. Optionally, the user's frequently used location may be obtained based on the location information of the user in the second time period, and the second language may be obtained based on the language corresponding to the frequently used location.
[0117] In an optional embodiment of the present application, the above-mentioned determination of the translation character corresponding to the above-mentioned source character specifically includes: correcting the above-mentioned source character; and determining the translation character corresponding to the source character after the error correction. The above-mentioned error correction can correct the errors generated in the OCR process to improve the accuracy of machine translation, that is, it can improve the accuracy of the translation character.
[0118] In the embodiment of the present application, optionally, the error correction type may include: sentence correction, text correction, or grammatical correction, etc. It can be understood that the embodiment of the present application does not limit the error correction type of the spinous process.
[0119] In step 203, optionally, the replacing of the source character image in the image of the multimedia data with the translated character image may specifically include: removing the source character image from the image of the multimedia data to obtain an intermediate image; determining position parameters corresponding to the translated character image based on position parameters corresponding to the source character image; and synthesizing the intermediate image and the translated character image based on the position parameters corresponding to the translated character image to obtain a translated image.
[0120] In an embodiment of the present application, a source character image can be removed from an image of multimedia data. Assuming that the source character image corresponds to a position region in the image of multimedia data, the position region of the image of multimedia data includes the source character, the position region in the intermediate image may not include any character, and the position region in the translation image may include the translation character.
[0121] In the embodiment of the present application, the above appearance parameters may optionally include: font parameters and background parameters. The font parameters may include: font type, font size and font color, etc. The background parameters may include: background color, etc. The font parameters may characterize the foreground of the translated character image, and the background parameters may characterize the background of the translated character image; thus, the matching degree between the foreground and background of the translated character image in the translated image may be improved.
[0122] The embodiment of the present application can determine the position parameters corresponding to the translated character image according to the position parameters corresponding to the source character image. Referring to Table 1, a schematic diagram of the mapping relationship between position parameters, source characters and translated characters in the embodiment of the present application is shown, wherein the position parameters can be represented by coordinates (x, y).
[0123] Table 1
[0124] Positional parameters Source Character Translate characters x1,y1 Swisse Reese x2,y2 HAIR SKIN NAILS+ Hair Skin Nails+ … … …
[0125] The embodiment of the present application can synthesize the intermediate image and the translated character image according to the position parameters corresponding to the translated character image. Specifically, the translated character image can be placed at the position corresponding to the position parameters, and the position area in the synthesized translated image can include the source character image.
[0126] In summary, the method of the embodiment of the present application uses a translated character image to replace a source character image in an image of multimedia data, wherein the parameters corresponding to the translated character image match the parameters corresponding to the above-mentioned source character image, thereby improving the matching degree between the foreground and background of the translated character image in the translated image, thereby improving the appearance quality of the translated image.
[0127] Method Example 3
[0128] Reference Figure 3 , shows a flowchart of the steps of Embodiment 2 of a method for processing multimedia data of the present application, the method may specifically include the following steps:
[0129] Step 301: receiving multimedia data input by a user; the multimedia data may include: at least one frame of image;
[0130] Step 302: Determine the translation image corresponding to the image of the multimedia data;
[0131] Step 303: display the translation image and compare the trigger controls;
[0132] Step 304: in response to a trigger operation on the comparison trigger control, determining at least one first commodity corresponding to the image of the multimedia data, and displaying a comparison interface; the comparison interface may include: the translation image, and commodity information corresponding to the at least one first commodity;
[0133] 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.
[0134] In step 301, in response to a trigger operation on the scan interface, capturing of an image of multimedia data may be triggered, and the captured image of the multimedia data may be obtained.
[0135] In step 302, image translation technology may be used to determine the translation image corresponding to the image of the multimedia data. Figure 2 The above method embodiments are not described in detail here, and reference can be made to each other.
[0136] In step 303, the comparison trigger control may be located below the translation image. Optionally, the translation direction corresponding to the translation image may also be displayed, such as the translation direction from the first language to the second language.
[0137] In step 304, in response to the trigger operation on the comparison trigger control, at least one first commodity corresponding to the image of the multimedia data may be determined. For details, please refer to method embodiment 1, which will not be described in detail here.
[0138] In step 304, a floating layer may be displayed on the translation image, where the floating layer includes product information corresponding to the at least one first product.
[0139] Optionally, step 304 may be performed when the location of the user does not match the location of the preset geographical area and a trigger operation for the comparison trigger control is received.
[0140] In an optional embodiment of the present application, the above-mentioned comparison interface may further include: an input control, and the above-mentioned method may further include: in response to a trigger operation of the user on the above-mentioned input control, displaying the exchange rate information between the first currency type and the second currency type; the above-mentioned second currency type may be obtained based on the location information of the user in the first time period.
[0141] In an optional embodiment of the present application, the method may further include: in response to the second price information input by the user through the input control, displaying third price information corresponding to the second price information; the third price information may correspond to the first currency. The embodiment of the present application may convert the second price information of the second currency according to the exchange rate information to obtain the third price information.
[0142] After displaying the third price information corresponding to the second price information, the comparison interface may include: an image or a translated image of the multimedia data, the third price information and the product information corresponding to the first product, so that the user can compare the prices of the second product and the first product.
[0143] In summary, the method of the embodiment of the present application takes image translation as the entry point, which can help users understand non-native texts in outbound travel scenarios; and can automatically identify the second product in the image of multimedia data, and rely on the data information of the e-commerce platform to provide the first price information of the first product related to the second product, thereby meeting the user's price comparison needs.
[0144] In addition, the embodiment of the present application can also perform exchange rate conversion on the second price information input by the user to improve the convenience of price comparison of different currencies. Therefore, the embodiment of the present application can improve the affordability of outbound shopping and increase user experience in the scenario of outbound shopping; and in the implementation process of the method, it is not necessary to jump to the page of the third-party program, thereby improving the consistency of the execution of the method and thus improving the operating efficiency of the method.
[0145] In order to enable those skilled in the art to better understand the embodiments of the present application, the image-based processing method of the embodiments of the present application is described herein by using specific examples. Figure 4A-4F , shows an interface schematic diagram of an example of an image-based processing method according to an embodiment of the present application, which may specifically include the following steps:
[0146] Step S1: In response to a trigger operation on a translation interface, an image acquisition interface is provided. Figure 4A As shown, the image acquisition interface may include: an image 401 of the previewed multimedia data and a shooting control 402; the translation direction may be from English to Chinese;
[0147] Step S2: In response to the triggering operation on the shooting control 402, display the translation interface. Figure 4B As shown, the image acquisition interface may include: translation image 403, refresh control 404, download control 405 and comparison trigger control 406. Refresh control 404 is used to trigger the display of the image acquisition interface, that is, to trigger new shooting or new scanning.
[0148] Step S3: In response to the trigger operation on the comparison trigger control 406, a floating layer 407 is displayed on at least a portion of the translation image 403, and the floating layer 407 may include: information about at least one first product. Figure 4C As shown, the floating layer 407 includes the first commodity A and the first commodity B. The floating layer 407 may also include: an input control 471 .
[0149] 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, such as Figure 4D As shown, the exchange rate information may be "×7.5". Optionally, the user's address information may also be displayed, such as "Los Angeles" in the figure.
[0150] Step S5: receiving the second price information input by the user in the input control 471, and converting the second price information into the third price information, such as Figure 4E The “¥120” in the text box.
[0151] Step S6: receiving the second price information input by the user in the input control 471, and converting the second price information into the third price information, such as Figure 4E The “¥120” in the text box.
[0152] Step S7: In response to the operation of closing the keyboard, the translation image, the second price information of the second product and the information of the first product are displayed in the comparison interface, so that the user can compare the prices of the first product and the second product.
[0153] Method Example 4
[0154] Reference Figure 5 , shows a flowchart of a method for processing voice data according to an embodiment of the present application, which method may specifically include the following steps:
[0155] Step 501: receiving voice data input by a user;
[0156] Step 502: Obtain the second product and location information from the voice data;
[0157] Step 503: if the location information does not match the preset geographical area, determine at least one first commodity corresponding to the second commodity according to the first currency type corresponding to the preset geographical area; the commodity information corresponding to the first commodity may include: a link and / or first price information; the first price information matches the first currency type;
[0158] Step 504: output product information corresponding to the at least one first product.
[0159] The embodiment of the present application can provide product information corresponding to the first product associated with the voice data input by the user, thereby improving the convenience of the user in obtaining the product information.
[0160] In the embodiment of the present application, the product information corresponding to the at least one first product can be played, thereby realizing information service through voice interaction. Of course, the product information corresponding to the at least one first product can also be displayed on the screen.
[0161] The embodiments of the present application can be applied to application scenarios of intelligent interaction, for example, an intelligent interaction portal can be provided to receive voice data input by a user through the portal and provide corresponding feedback information to the user. Optionally, intelligent interaction can be performed with the user through a chatbot.
[0162] The embodiment of the present application can support the user to carry the second commodity 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 commodity and location information from the above voice data. For example, the voice data can be: "a piece of ice hockey equipment in Toronto for M Canadian dollars", "a bottle of 500ml Bordeaux red wine in a supermarket in Paris, France for N euros", etc.
[0163] The embodiment of the present application can use natural language processing methods to perform semantic recognition on voice data. The natural language processing methods may include: entity word recognition methods, syntactic analysis methods, etc. It can be understood that the embodiment of the present application does not limit the specific natural language processing methods.
[0164] Step 503: If the location information does not match the preset geographical area, it can be considered that the user is outside the preset geographical area, and thus at least one first product corresponding to the second product can be determined.
[0165] Optionally, 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.
[0166] In step 504, the product information corresponding to the at least one first product may be played in natural language, such as: "A bottle of 500ml Bordeaux red wine in Tmall Supermarket costs RMB X". That is, the product information of the embodiment of the present application may include: information about the e-commerce platform where the first product is located, specifications of the first product, etc. Of course, the embodiment of the present application may display the link and the first price information.
[0167] Method Example 5
[0168] Reference Figure 6 , shows a flow chart of steps of an embodiment of a communication processing method of the present application, the method may specifically include the following steps:
[0169] Step 601: Receive a message sent by a communication peer;
[0170] Step 602: Obtain the second product and location information from the message;
[0171] Step 603: if the location information does not match the preset geographical area, determine at least one first commodity corresponding to the second commodity according to the first currency type corresponding to the preset geographical area; the commodity information corresponding to the first commodity may include: a link and / or first price information; the first price information matches the first currency type;
[0172] Step 604: Send product information corresponding to the at least one first product to the communication peer.
[0173] The embodiment of the present application can reply to the message sent by the communication peer, and the reply content may include: the product information corresponding to the at least one first product mentioned above.
[0174] The embodiment of the present application can be applied to the case where the communication peer is in a foreign scenario, and the user of the communication peer obtains the information and location information of the second product on site, and sends an inquiry message to the communication terminal to obtain the reply information of the communication peer. For example, the message sent by the communication peer can be "I saw a coat in Paris, P euros, is it expensive?"
[0175] The embodiment of the present application can utilize a natural language processing method to obtain the second product and location information from the above message, and when the above location information does not match the preset geographical area, determine at least one first product corresponding to the above second product, such as if the first product comes from Tmall Supermarket, etc.; and automatically send the product information corresponding to the above at least one first product to the communication counterpart, thereby improving the convenience and intelligence of message replying.
[0176] For example, when the message sent by the communication peer is "I saw a coat in Paris, P euros, is it expensive?", the corresponding reply content may be "This coat is sold for Q yuan in Tmall Supermarket" and so on.
[0177] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware 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.
[0178] The embodiment of the present application also provides a device for processing multimedia data.
[0179] Reference Figure 7 , shows a structural block diagram of an embodiment of a multimedia data processing device of the present application, and the above device may specifically include the following modules:
[0180] The receiving module 701 is used to receive multimedia data input by a user; the multimedia data includes: at least one frame of image;
[0181] A determination module 702 is used to determine whether the location of the user matches the location of a preset geographical area;
[0182] The commodity determination module 703 is used 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 geographical area if the user's location does not match the location of the preset geographical area; the commodity information corresponding to the first commodity includes: a link and first price information; the first price information matches the first currency type; and
[0183] The display module 704 is used to display a comparison interface; the comparison interface includes: a translation image corresponding to the at least one frame of image, and product information corresponding to the at least one first product.
[0184] Optionally, the above device may further include:
[0185] A second currency type determination module, used to obtain the second currency type according to the location of the user;
[0186] The input control providing module is used to provide an input control in the comparison interface for inputting second price information corresponding to the second commodity, wherein the second price information corresponds to the second currency type.
[0187] Optionally, the above device may further include:
[0188] The exchange rate information display module is used to display the exchange rate information between the first currency type and the second currency type in response to the user's triggering operation on the above input control.
[0189] Optionally, the above device may further include:
[0190] A second price display module, used to receive the second price information input by the user through the above input control;
[0191] A price conversion module, used for converting the second price information into third price information according to the conversion parameters between the first currency and the second currency; the third price information corresponds to the first currency;
[0192] The third price display module is used to display the third price information corresponding to the second price information in the comparison interface.
[0193] Optionally, the above device may further include:
[0194] A first area determination module, used to obtain the above-mentioned preset geographical area according to user settings;
[0195] The second area determination module is used to obtain the above-mentioned preset geographical area according to the location of the user in the historical time period.
[0196] Optionally, the above device may further include:
[0197] A recognition module, used for recognizing source characters in the image; the source characters correspond to a first language;
[0198] A translation character determination module is used to determine the translation character corresponding to the source character; the translation character corresponds to a second language;
[0199] The image replacement module is used to replace the source character image in the above image with the translation character image to obtain the above translation image; wherein the parameters corresponding to the above translation character image match the parameters corresponding to the above source character image; the above parameters may include: position parameters and appearance parameters.
[0200] Optionally, the above-mentioned image replacement module may include:
[0201] A removal module, used for removing the source character image from the above image to obtain an intermediate image;
[0202] A position parameter determination module, used to determine the position parameters corresponding to the translated character image according to the position parameters corresponding to the source character image;
[0203] The image synthesis module is used to synthesize the intermediate image and the translated character image according to the position parameters corresponding to the translated character image to obtain a translated image.
[0204] Optionally, the translation character determination module may include:
[0205] An error correction module, used for correcting the above source characters;
[0206] The translation module is used to determine the translation characters corresponding to the source characters after error correction.
[0207] Optionally, the above appearance parameters may include: font parameters and background parameters.
[0208] Optionally, the commodity determination module 703 may include:
[0209] A second commodity information determination module, used to determine the information of the second commodity in the above image;
[0210] The first commodity determining module is used to determine at least one first commodity corresponding to the image from a commodity database according to the information of the second commodity and the first currency type.
[0211] Optionally, the first commodity determination module may include:
[0212] A first search module is used to search a product database according to the information of the second product to obtain candidate products;
[0213] The screening module is used to obtain a first commodity matching the first currency type from the candidate commodities.
[0214] Optionally, the first commodity determination module may include:
[0215] The second search module is used to search the commodity database corresponding to the first currency type according to the information of the second commodity to obtain the first commodity.
[0216] Optionally, 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.
[0217] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0218] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0219] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0220] The embodiments of the present application may be implemented as a system or device using any appropriate hardware and / or software to perform a desired configuration. Figure 8 An exemplary device 1300 that can be used to implement the various embodiments described above in the present application is schematically shown.
[0221] For one embodiment, Figure 8 An exemplary device 1300 is shown, which may include one or more processors 1302, a system control module (chip set) 1304 coupled to at least one of the processors 1302, a system memory 1306 coupled to the system control module 1304, a 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 a network interface 1312 coupled to the system control module 1306. The system memory 1306 may include instructions 1362, which may be executed by the one or more processors 1302.
[0222] The processor 1302 may include one or more single-core or multi-core processors, and the processor 1302 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the device 1300 can be used as the server, target device, wireless device, etc. mentioned above in the embodiments of the present application.
[0223] In some embodiments, the device 1300 may include one or more machine-readable media having instructions (e.g., system memory 1306 or NVM / storage device 1308) and one or more processors 1302 that are combined with the one or more machine-readable media and configured to execute instructions to implement the modules included in the aforementioned device, thereby performing the above-mentioned actions in the embodiments of the present application.
[0224] System control module 1304 for one embodiment may include any suitable interface controller for providing any suitable interface to at least one of processors 1302 and / or any suitable device or component in communication with system control module 1304 .
[0225] System control module 1304 for one embodiment may include one or more memory controllers for providing an interface to system memory 1306. A memory controller may be a hardware module, a software module, and / or a firmware module.
[0226] The system memory 1306 of one 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, such as a suitable DRAM (dynamic random access memory). In some embodiments, the system memory 1306 may include: double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
[0227] System control module 1304 for one embodiment may include one or more input / output controllers to provide interfaces to NVM / storage 1308 and input / output device(s) 1310 .
[0228] NVM / storage 1308 of one embodiment may be used to store data and / or instructions 1382. NVM / storage 1308 may include any suitable non-volatile memory (e.g., flash memory, etc.) and / or may include any suitable non-volatile storage device(s), such as, for example, one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives, etc.
[0229] NVM / storage 1308 may include storage resources that are physically part of the device on which device 1300 is installed, or that may be accessible to the device without being part of the device. For example, NVM / storage 1308 may be accessible over a network via network interface 1312 and / or through input / output devices 1310.
[0230] The input / output device(s) 1310 of one embodiment may provide an interface for the device 1300 to communicate with any other suitable device and the input / output device 1310 may include a communication component, an audio component, a sensor component, and the like.
[0231] The network interface 1312 of one embodiment may provide an interface for the device 1300 to communicate through one or more networks and / or with any other suitable device. The device 1300 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, for example, accessing a wireless network based on a communication standard, such as WiFi (Wireless Fidelity), 2G or 3G or 4G or 5G, or a combination thereof for wireless communication.
[0232] For one embodiment, at least one of the processors 1302 may be packaged together with the logic of one or more controllers (e.g., a memory controller) of the system control module 1304. For one embodiment, at least one of the processors 1302 may be packaged together with the logic of one or more controllers of the system control module 1304 to form a system-in-package (SiP). For one embodiment, at least one of the processors 1302 may be integrated on the same product with the logic of one or more controllers of the system control module 1304. For one embodiment, at least one of the processors 1302 may be integrated on the same chip with the logic of one or more controllers of the system control module 1304 to form a system on chip (SoC).
[0233] 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 (e.g., 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 a different architecture. For example, in some embodiments, the device 1300 may include one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application specific integrated circuit (ASIC), and a speaker.
[0234] Wherein, if the display includes a touch panel, the display screen can be implemented as a touch screen display to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundary of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0235] The embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions (instructions) of each method in the embodiment of the present application.
[0236] In one example, a device is provided, including: one or more processors; and instructions in one or more machine-readable media stored thereon, which, when executed by the one or more processors, cause the device to perform a method as in an embodiment of the present application, and the method may include: Figure 1 or Figure 2 or Figure 3 or Figure 4 or Figure 5 The method shown.
[0237] In one example, one or more machine-readable media are provided, on which instructions are stored. When executed by one or more processors, the device performs a method in an embodiment of the present application. The method may include: Figure 1 or Figure 2 or Figure 3 or Figure 4 or Figure 5 The method shown.
[0238] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here. For relevant matters, please refer to the partial description of the method embodiment.
[0239] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0240] 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 box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable image-based processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable image-based processing device generate instructions for implementing the processes in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0241] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable image-based processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0242] These computer program instructions may also be loaded onto a computer or other programmable image-based processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0243] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0244] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" 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 includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0245] The above is a detailed introduction to a multimedia data processing method, a voice data processing method, a communication processing method, a multimedia data processing device, a device, and a machine-readable medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for processing multimedia data, characterized in that: The method comprises: Receive multimedia data input by a user; the multimedia data includes: at least one frame of image; the at least one frame of image includes a second commodity; the source characters in the at least one frame of image correspond to a first language; Determining whether the location of the user matches the location of a preset geographical area; the first language is different from the language of the preset geographical area; the preset geographical area is used to represent the country to which the user belongs; If the location of the user does not match the location of the preset geographical 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 geographical area; the commodity information corresponding to the first commodity includes: a link and first price information; the first price information matches the first currency type; the first commodity is an Internet commodity, and the second commodity is an offline physical commodity; Displaying a comparison interface; the comparison interface includes: a translation image corresponding to the at least one frame of image, and product information corresponding to the at least one first product; After receiving at least one frame of image input by the user, a translation image corresponding to the at least one frame of image is determined, and the translation image and a comparison trigger control are displayed; and in response to a trigger operation on the comparison trigger control, at least one first commodity corresponding to the at least one frame of image is determined, and a comparison interface is displayed; The determining the at least one first commodity corresponding to the at least one frame of image includes: Searching a product database according to the information of the second product to obtain candidate products; obtaining a first product matching the first currency type from the candidate products; or According to the information of the second commodity, a commodity database corresponding to the first currency type is searched to obtain the first commodity.
2. The method according to claim 1, characterized in that: The method further comprises: Obtaining a second currency type based on the user's location; An input control is provided in the comparison interface for inputting second price information corresponding to the second commodity, where the second price information corresponds to the second currency type.
3. The method according to claim 2, characterized in that The method further comprises: In response to a trigger operation of the user on the input control, the exchange rate information between the first currency type and the second currency type is displayed.
4. The method according to claim 2 or 3, characterized in that: The method further comprises: receiving second price information input by the user through the input control; According to the conversion parameter between the first currency and the second currency, the second price information is converted into third price information; the third price information corresponds to the first currency; The third price information corresponding to the second price information is displayed in the comparison interface.
5. The method according to claim 1, characterized in that The method further comprises: Obtaining the preset geographical area according to user settings; The preset geographical area is obtained according to the location of the user in the historical time period.
6. The method according to claim 1, characterized in that The method further comprises: Recognize source characters in the image; the source characters correspond to a first language; Determine a translation character corresponding to the source character; the translation character corresponds to a second language; The source character image in the image is replaced with the translation character image to obtain the translation image; wherein the parameters corresponding to the translation character image match the parameters corresponding to the source character image; the parameters include: position parameters and appearance parameters.
7. The method according to claim 6, characterized in that The step of replacing the source character image in the image with the translated character image comprises: removing the source character image from the image to obtain an intermediate image; Determining the position parameters corresponding to the translated character image according to the position parameters corresponding to the source character image; The intermediate image and the translated character image are synthesized according to the position parameters corresponding to the translated character image to obtain a translated image.
8. The method according to claim 6 or 7, characterized in that: The determining the translation character corresponding to the source character comprises: Performing error correction on the source characters; Determine the translation characters corresponding to the source characters after error correction.
9. The method according to claim 6 or 7, characterized in that: The appearance parameters include: font parameters and background parameters.
10. The method according to claim 1 or 2 or 3 or 5 or 6 or 7, characterized in that: The determining the at least one first commodity corresponding to the at least one frame of image includes: determining information of a second product in the image; At least one first commodity corresponding to the image is determined from a commodity database according to the information of the second commodity and the first currency type.
11. The method according to claim 10, characterized in that The determining, from a commodity database, at least one first commodity corresponding to the image comprises: Searching a product database according to the information of the second product to obtain alternative products; A first commodity matching the first currency type is obtained from the candidate commodities.
12. The method according to claim 10, characterized in that The determining, from a commodity database, at least one first commodity corresponding to the image comprises: According to the information of the second commodity, a commodity database corresponding to the first currency type is searched to obtain the first commodity.
13. The method according to claim 10, characterized in that 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.
14. A method for processing speech data, characterized in that: include: Receiving voice data input by a user; Acquire second product and location information from the voice data; If the location information does not match the preset geographical area, determining at least one first commodity corresponding to the second commodity according to the first currency type corresponding to the preset geographical area; The commodity information corresponding to the first commodity includes: a link and / or first price information; the first price information matches the first currency type; the first language of the location information is different from the language of the preset geographical area; the preset geographical area is used to represent the country to which the user belongs; Outputting commodity information corresponding to the at least one first commodity; the first commodity is an Internet commodity, and the second commodity is an offline physical commodity; The step of determining at least one first commodity corresponding to the second commodity includes: Searching a product database according to the information of the second product to obtain candidate products; obtaining a first product matching the first currency type from the candidate products; or According to the information of the second commodity, a commodity database corresponding to the first currency type is searched to obtain the first commodity.
15. A communication processing method, characterized in that: include: Receive messages sent by the communication peer; Acquire a second product and location information from the message; If the location information does not match the preset geographical area, determining at least one first commodity corresponding to the second commodity according to the first currency type corresponding to the preset geographical area; The commodity information corresponding to the first commodity includes: a link and / or first price information; the first price information matches the first currency type; the first language of the location information is different from the language of the preset geographical area; the preset geographical area is used to represent the country to which the user belongs; Sending commodity information corresponding to the at least one first commodity to the communication peer; the first commodity is an Internet commodity, and the second commodity is an offline physical commodity; The step of determining at least one first commodity corresponding to the second commodity includes: Searching a product database according to the information of the second product to obtain candidate products; obtaining a first product matching the first currency type from the candidate products; or According to the information of the second commodity, a commodity database corresponding to the first currency type is searched to obtain the first commodity.
16. A multimedia data processing device, characterized in that: The device comprises: The receiving module is used to receive multimedia data input by a user; the multimedia data includes: at least one frame of image; the at least one frame of image includes the second commodity; the source characters in the at least one frame of image correspond to the first language; a determination module, configured to determine whether the location of the user matches the location of a preset geographical area; the first language is different from the language of the preset geographical area; the preset geographical area is used to represent the country to which the user belongs; a commodity determination module, configured to determine, if the user's location does not match the location of a preset geographical area, at least one first commodity corresponding to the at least one frame of image according to a first currency type corresponding to the preset geographical area; the commodity information corresponding to the first commodity includes: a link and first price information; the first price information matches the first currency type; the first commodity is an Internet commodity, and the second commodity is an offline physical commodity; and A display module, used to display a comparison interface; the comparison interface includes: a translation image corresponding to the at least one frame of image, and commodity information corresponding to the at least one first commodity; After receiving at least one frame of image input by the user, a translation image corresponding to the at least one frame of image is determined, and the translation image and a comparison trigger control are displayed; and in response to a trigger operation on the comparison trigger control, at least one first commodity corresponding to the at least one frame of image is determined, and a comparison interface is displayed; The determining the at least one first commodity corresponding to the at least one frame of image includes: Searching a product database according to the information of the second product to obtain candidate products; obtaining a first product matching the first currency type from the candidate products; or According to the information of the second commodity, a commodity database corresponding to the first currency type is searched to obtain the first commodity.
17. A device, characterized in that include: one or more processors; and One or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform the method of one or more of claims 1-13.
18. One or more machine-readable media having instructions stored thereon which, when executed by one or more processors, cause a device to perform the method of one or more of claims 1-13.
