TW202004609A - Method and device for processing price information, and storage medium - Google Patents

Method and device for processing price information, and storage medium Download PDF

Info

Publication number
TW202004609A
TW202004609A TW108106475A TW108106475A TW202004609A TW 202004609 A TW202004609 A TW 202004609A TW 108106475 A TW108106475 A TW 108106475A TW 108106475 A TW108106475 A TW 108106475A TW 202004609 A TW202004609 A TW 202004609A
Authority
TW
Taiwan
Prior art keywords
currency
price information
recognition model
price
information
Prior art date
Application number
TW108106475A
Other languages
Chinese (zh)
Inventor
徐達峰
Original Assignee
香港商阿里巴巴集團服務有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 香港商阿里巴巴集團服務有限公司 filed Critical 香港商阿里巴巴集團服務有限公司
Publication of TW202004609A publication Critical patent/TW202004609A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0283Price estimation or determination

Landscapes

  • Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Image Processing (AREA)

Abstract

Provided in an embodiment of the present invention are a method and device for processing price information, and a storage medium. The method comprises: recognizing first price information from an image containing the first price information associated with a first currency; determining second price information associated with a preset second currency according to the first price information and a conversion relationship between the first currency and the second currency; and displaying the second price information.

Description

一種價格資訊的處理方法、處理裝置和儲存媒體Price information processing method, processing device and storage medium

本發明涉及資訊處理技術領域,特別涉及一種價格資訊的處理方法、處理裝置、儲存媒體。The present invention relates to the field of information processing technology, and in particular to a price information processing method, processing device, and storage medium.

近年來,使用者在境外活動的時間日益增長。在境外活動時,使用者常常存在如下的需求:將以當地貨幣計價的價格資訊轉換為以其常用貨幣計價的價格資訊,即,進行相應的貨幣轉換(也稱為匯率轉換)。 在以往的技術中,使用者呼叫內置於終端設備的應用模組,選擇要進行轉換的兩種貨幣,輸入以其中一種貨幣計價的價格,該應用模組將該價格轉換為以另一種貨幣計價的價格,並向使用者顯示轉換後的價格資訊。 應該注意,上面對技術背景的介紹只是為了方便對本發明的技術方案進行清楚、完整的說明,並方便本領域技術人員的理解而闡述的。不能僅僅因為這些方案在本發明的背景技術部分進行了闡述而認為上述技術方案為本領域技術人員所公知。In recent years, users have spent more time abroad. In overseas activities, users often have the following needs: to convert price information denominated in local currency into price information denominated in their common currency, that is, to perform corresponding currency conversion (also called exchange rate conversion). In the past, the user calls the application module built into the terminal device, selects the two currencies to be converted, and enters the price in one currency. The application module converts the price to the other currency. And display the converted price information to the user. It should be noted that the above introduction to the technical background is set forth only to facilitate a clear and complete description of the technical solution of the present invention and to facilitate understanding by those skilled in the art. It cannot be considered that these technical solutions are known to those skilled in the art simply because these solutions are described in the background of the present invention.

發明人發現,在以往的技術中,使用者需要通過複雜的手動操作來獲得轉換後的價格資訊,操作繁瑣且可能出現誤操作,使用者體驗較差。 為了解決上述問題,本說明書實施例提供一種價格資訊的處理方法、處理裝置和儲存媒體,能夠自動識別價格資訊並進行貨幣轉換,操作簡單,且避免了誤操作,提升使用者體驗。 根據本說明書實施例的第一態樣,提供一種價格資訊的處理方法,該方法包括:從包含與第一貨幣相關的第一價格資訊的影像中識別該第一價格資訊;根據該第一價格資訊以及該第一貨幣與預設的第二貨幣之間的轉換關係,確定與該第二貨幣相關的第二價格資訊;以及顯示該第二價格資訊。 根據本說明書實施例的第二態樣,提供一種價格資訊的處理裝置,該裝置包括:識別單元,其從包含與第一貨幣相關的第一價格資訊的影像中識別該第一價格資訊;確定單元,其根據該第一價格資訊以及該第一貨幣與預設的第二貨幣之間的轉換關係,確定與該第二貨幣相關的第二價格資訊;以及顯示單元,其顯示該第二價格資訊。 根據本說明書實施例的第三態樣,提供一種儲存有電腦可讀程式的儲存媒體,該電腦可讀程式使得處理器執行根據上述第一態樣所述的方法。 本說明書實施例的有益效果在於,能夠自動識別價格資訊並進行貨幣轉換,操作簡單,且避免了誤操作,提升使用者體驗。 參照後文的說明和附圖,詳細公開了本發明的特定實施方式,指明了本發明的原理可以被採用的方式。應該理解,本發明的實施方式在範圍上並不因而受到限制。在所附申請專利範圍的精神和條款的範圍內,本發明的實施方式包括許多改變、修改和等同。 針對一種實施方式描述及/或示出的特徵可以以相同或類似的方式在一個或更多個其它實施方式中使用,與其它實施方式中的特徵相組合,或替代其它實施方式中的特徵。 應該強調,術語“包括/包含”在本文使用時指特徵、整件、步驟或組件的存在,但並不排除一個或更多個其它特徵、整件、步驟或組件的存在或附加。The inventor found that in the prior art, the user needs to obtain the converted price information through a complicated manual operation, the operation is cumbersome and there may be misoperation, and the user experience is poor. In order to solve the above problems, the embodiments of the present specification provide a price information processing method, a processing device, and a storage medium, which can automatically recognize price information and perform currency conversion. The operation is simple, and misoperation is avoided, and the user experience is improved. According to a first aspect of the embodiments of the present specification, a method for processing price information is provided. The method includes: identifying the first price information from an image containing the first price information related to the first currency; and according to the first price Information and the conversion relationship between the first currency and the preset second currency to determine the second price information related to the second currency; and display the second price information. According to a second aspect of the embodiments of the present specification, there is provided a price information processing device, which includes: an identification unit that identifies the first price information from an image containing the first price information related to the first currency; A unit, which determines the second price information related to the second currency based on the first price information and the conversion relationship between the first currency and the preset second currency; and a display unit, which displays the second price News. According to a third aspect of the embodiments of the present specification, there is provided a storage medium storing a computer-readable program that causes a processor to execute the method according to the first aspect described above. The beneficial effect of the embodiment of the present specification is that it can automatically recognize price information and perform currency conversion, the operation is simple, and the misoperation is avoided, and the user experience is improved. With reference to the following description and drawings, specific embodiments of the present invention are disclosed in detail, and the manner in which the principles of the present invention can be adopted is indicated. It should be understood that the embodiments of the present invention are not thus limited in scope. Within the scope of the spirit and terms of the appended patent application, the embodiments of the present invention include many changes, modifications, and equivalents. Features described and/or illustrated for one embodiment may be used in one or more other embodiments in the same or similar manner, combined with features in other embodiments, or substituted for features in other embodiments. It should be emphasized that the term "comprising/comprising" as used herein refers to the presence of features, whole pieces, steps or components, but does not exclude the presence or addition of one or more other features, whole pieces, steps or components.

參照附圖,通過下面的說明書,本發明的前述以及其它特徵將變得明顯。在說明書和附圖中,具體公開了本發明的特定實施方式,其表明了其中可以採用本發明的原則的部分實施方式,應瞭解的是,本發明不限於所描述的實施方式,相反,本發明包括落入所附申請專利範圍的範圍內的全部修改、變型以及等同物。 在本說明書實施例中,術語“第一”、“第二”等用於對不同元素從稱謂上進行區分,但並不表示這些元素的空間排列或時間順序等,這些元素不應被這些術語所限制。術語“及/或”包括相關聯列出的術語的一種或多個中的任何一個和所有組合。 在本說明書實施例中,單數形式“一”、“該”等包括複數形式,應廣義地理解為“一種”或“一類”而並不是限定為“一個”的含義;此外術語“所述”應理解為既包括單數形式也包括複數形式,除非上下文另外明確指出。此外術語“根據”應理解為“至少部分根據……”,術語“基於”應理解為“至少部分基於……”,除非上下文另外明確指出。 下面結合附圖對本說明書實施例的具體實施方式進行說明。 實施例1 本實施例1提供一種價格資訊的處理方法。圖1是本實施例的價格資訊的處理方法的一個示意圖。 如圖1所述,該方法包括: 步驟101,從包含與第一貨幣相關的第一價格資訊的影像中識別該第一價格資訊; 步驟102,根據該第一價格資訊以及該第一貨幣與預設的第二貨幣之間的轉換關係,確定與該第二貨幣相關的第二價格資訊; 步驟103,顯示該第二價格資訊。 通過本實施例的上述方法,能夠從影像中自動識別第一價格資訊並進行貨幣轉換,以將貨幣轉換後的第二價格資訊顯示給使用者,操作簡單,且避免了誤操作,提升使用者體驗。 在本實施例中,第一貨幣、第二貨幣是不同類型的貨幣,例如,第一貨幣是日元、第二貨幣是人民幣。 在本實施例中,第一貨幣可以是使用者當前所處的國家或地區的貨幣,第二貨幣可以是預設的貨幣,例如,使用者所屬國的貨幣或者使用者想要用於衡量商品價格的貨幣。該第一貨幣可由使用者設置,也可以由設備自動獲取。關於設備自動獲取第一貨幣的具體方式,可參見後述的說明。 與第一貨幣相關的第一價格資訊是以第一貨幣計價的價格資訊。同樣地,與第二貨幣相關的第二價格資訊是以第二貨幣計價的價格資訊。這樣,第一貨幣與第二貨幣之間的轉換關係即不同貨幣之間的匯率關係。 在本實施例中,該第一價格資訊包括價格,或者,價格以及相應的折扣資訊。也就是說,該第一價格資訊是能夠用於確定與第一貨幣相關的第一價格的資訊。 例如,通過將價格和折扣相乘,得到以第一貨幣表示的實際價格。 在本實施例中,包含第一價格資訊的影像可通過任意方式獲得。例如,使用者使用終端設備對包含第一價格資訊的實景中的區域進行影像採集而獲得。這裡的實景例如是包含價簽或者價格文案等的實際生活場景。這裡的價簽例如可以是商場中商品上粘貼的價簽,價格文案例如可以是購物網站上在商品頁面中顯示的與價格相關的文字或圖片等。 在本實施例中,在上述步驟101中,可以使用任意方式從影像中識別第一價格資訊。例如,可以通過使用機器學習而獲得的識別模型進行識別的方式,但本實施例不以此作為限制。 在本實施例中,在上述步驟103中,還可以同時顯示第一貨幣與第二貨幣之間的轉換關係,即,可以同時顯示匯率資訊。 圖2是本實施例的價格資訊的處理方法的另一個示意圖。如圖2所示,除上述步驟101-103以外,該方法還可以包括: 步驟201,使用訓練樣本訓練用於識別該第一價格資訊的識別模型。 由此,上述步驟101能夠基於該識別模型從影像中識別第一價格資訊。 該步驟201是可選的。另外,該步驟201可以是預先進行的。也就是說,在實際的識別之前預先訓練並得到識別模型。 在本實施例中,上述訓練樣本可以是大量包含價格資訊或類似資訊的圖片。包含類似資訊的圖片例如可以是包含數位的其他圖片,例如包含數學公式的圖片、日曆的圖片等。 在本實施例中,如圖2所示,該方法還可以包括: 步驟202,將包含第一價格資訊的影像添加到上述訓練樣本中,基於添加後的訓練樣本對識別模型進行重新訓練,以獲得更新後的識別模型。 由此,能夠利用該影像向訓練樣本提供反饋樣本,從而提高基於更新後的識別模型進行識別時的識別度。 上述步驟202中獲得的更新後的識別模型可被提供給步驟101,用於基於該更新後的識別模型從該影像中識別第一價格資訊。 該步驟202是可選的,可不執行步驟202而在步驟201後直接執行步驟101。 另外,在實施步驟202時,可以在獲得包含第一價格資訊的影像後直接實施步驟202,也可以在無法從包含第一價格資訊的影像中識別第一價格資訊的情況下實施步驟202。 在本實施例中,上述識別模型可以是基於卷積神經網路的模型,也可以是其他模型。 在本實施例中,該方法還可以包括步驟(未圖示):使用測試樣本對該識別模型進行測試,將該影像添加到測試樣本中,並且基於添加後的測試樣本對該識別模型進行重新測試,以獲得更新後的識別模型。該步驟為可選的步驟。 由此,能夠利用該影像向測試樣本提供反饋樣本,從而提高基於更新後的識別模型進行識別時的識別度。 在本實施例中,測試樣本也可以是大量包含價格資訊或類似資訊的圖片。 在本實施例中,可以在獲得包含第一價格資訊的影像後直接將該影像添加到測試樣本中,也可以在無法從該影像中識別第一價格資訊的情況下才將該影像添加到測試樣本中。 如果採用在無法從該影像中識別第一價格資訊的情況下才將該影像添加到訓練樣本及/或測試樣本中的方案,還可在基於更新後的識別模型的測試結果滿足預設條件的情況下重新從該影像中識別第一價格資訊。由此,能夠提高從該影像中識別出該第一價格資訊的可能性。 在本實施例中,該方法還可包括步驟:獲取使用者的定位資訊,根據該定位資訊確定該第一貨幣,並基於確定的該第一貨幣和預設的第二貨幣獲取該轉換關係。由此,能夠由設備自動獲取該第一貨幣,進一步簡化了操作並避免誤操作。該步驟是可選的步驟。 例如,根據使用者的定位資訊,確定該使用者當前所處的國家或地區,該第一貨幣則是該國家或地區的貨幣。 該轉換關係例如可以通過向提供實時匯率資訊服務的伺服器查詢而獲得。 在本實施例中,上述方法可以在一個設備上實現,例如可以在一個終端設備中實現。也可以分散式地在多個設備上實現,例如可以在終端設備和伺服器上共同執行。但本實施例不限於上述示例,也可以在其他類型的設備上執行。 在多個設備上實現時,上述步驟101-103例如可通過如下方式實現:可在第一設備(例如終端設備)中識別第一價格資訊並獲取定位資訊,並將該兩種資訊聚合,將聚合後的資訊發送到提供貨幣轉換服務的第二設備(例如伺服器)。該第二設備可從聚合後的資訊中提取出定位資訊和第一價格資訊,根據該定位資訊確定第一貨幣,並基於該第一貨幣和預設的第二貨幣獲取第一貨幣與第二貨幣之間的轉換關係,並且,根據提取出的第一價格資訊以及該轉換關係,確定與第二貨幣相關的第二價格資訊,將該第二價格資訊發送到第一設備進行顯示。但本實施例不以此作為限制,也可以採用其他類似的方式實現。 在多個設備上實現時,上述步驟201-202、101-103例如可通過如下方式實現:可在第三設備(例如伺服器)上執行步驟201-202,在第一設備(例如終端設備上)執行步驟101-103。另外,上述對該識別模型進行測試,將該影像添加到測試樣本中,並且基於添加後的測試樣本對該識別模型進行重新測試,以獲得更新後的識別模型的步驟也可在上述第三設備上執行。在基於更新後的識別模型的測試結果滿足預設條件的情況下重新從該影像中識別第一價格資訊的步驟可在第一設備上執行。識別模型或更新後的識別模型在被獲得後可從第三設備被發送到第一設備,第一設備可基於接收到的識別模型或更新後的識別模型識別第一價格資訊。第一設備可將包含第一價格資訊的影像發送到第三設備用於添加到到訓練樣本及/或測試樣本。但本實施例不以此作為限制,也可以採用其他類似的方式實現。 上述第二設備和第三設備可以是同一設備,也可以是不同的設備。 在本實施例中,在上述第一設備為終端設備,上述第三設備為伺服器的情況下,可將終端設備設置無需使用者允許即可從終端設備向伺服器發送包含第一價格資訊的影像,也可設置為在使用者允許的情況下才能從終端設備向伺服器發送該影像,否則不能發送該影像。 通過本實施例的價格資訊的處理方法,能夠自動識別價格資訊並進行貨幣轉換,操作簡單,且避免了誤操作,提升使用者體驗。 實施例2 本實施例2提供一種價格資訊的處理裝置。圖3是本實施例的價格資訊的處理裝置300的一個示意圖。本實施例2中與實施例1相同的部分不再贅述。 如圖3所示,價格資訊的處理裝置300包括識別單元301、確定單元302和顯示單元303。識別單元301從包含與第一貨幣相關的第一價格資訊的影像中識別該第一價格資訊;確定單元302根據該第一價格資訊以及該第一貨幣與第二貨幣之間的轉換關係,確定與該第二貨幣相關的第二價格資訊;顯示單元303顯示該第二價格資訊。 在本實施例中,該第一價格資訊可包括價格及/或相應的折扣資訊。 在本實施例中,處理裝置300還可包括:定位單元304、貨幣確定單元305和轉換關係獲取單元306。定位單元304獲取定位資訊;貨幣確定單元305根據該定位資訊確定該第一貨幣;轉換關係獲取單元306基於確定的該第一貨幣和預設的第二貨幣獲取該轉換關係。 上述定位單元304、貨幣確定單元305和轉換關係獲取單元306是可選的部件。 在本實施例中,處理裝置300還可包括訓練單元307,訓練單元307使用訓練樣本訓練用於識別第一價格資訊的識別模型。 上述訓練單元307是可選的部件。 在本實施例中,該識別模型可以為卷積神經網路模型。 在本實施例中,處理裝置300還可包括添加單元308,添加單元308將包含第一價格資訊的影像添加到該訓練樣本中,基於添加後的訓練樣本對該識別模型進行重新訓練,以獲得更新後的識別模型。 上述添加單元308是可選的部件。 在本實施例中,處理裝置300還可包括測試單元309,測試單元309使用測試樣本對識別模型進行測試,添加單元308還可將包含第一價格的影像添加到該測試樣本中,並且基於添加後的測試樣本對該識別模型進行重新測試,以獲得更新後的識別模型。 上述測試單元309是可選的部件。 在本實施例中,處理裝置300還可包括影像取得單元310,該影像取得單元310取得包含第一價格資訊的影像。並且,添加單元308還可從影像取得單元310獲得該影像。 上述影像取得單元310是可選的部件。 上述各單元的功能可通過實施例1中所述的具體方式實現。此外,上述各單元可通過一個設備實現,也可通過多個設備實現,相應的具體實現方式可參見實施例1。此處不再贅述。 通過本實施例的價格資訊的處理裝置,能夠自動識別價格資訊並進行貨幣轉換,操作簡單,且避免了誤操作,提升使用者體驗。 本說明書實施例還提供一種電腦可讀程式,該電腦可讀程式使得處理器執行實施例1所述的方法。 本說明書實施例還提供一種儲存有電腦可讀程式的儲存媒體,其中,儲存有電腦可讀程式的儲存媒體,該電腦可讀程式使得處理器執行實施例1所述的方法。 結合本說明書實施例描述的價格資訊的處理裝置可直接體現為硬體、由處理器執行的軟體模組或二者組合。例如,附圖中所示的功能方塊圖中的一個或多個及/或功能方塊圖的一個或多個組合,既可以對應於電腦程式流程的各個軟體模組,亦可以對應於各個硬體模組。這些軟體模組,可以分別對應於附圖所示的各個步驟。這些硬體模組例如可利用現場可程式閘陣列(FPGA)將這些軟體模組固化而實現。 軟體模組可以位於RAM記憶體、快閃記憶體、ROM記憶體、EPROM記憶體、EEPROM記憶體、暫存器、硬碟、行動磁碟、CD-ROM或者本領域已知的任何其它形式的儲存媒體。可以將一種儲存媒體耦接至處理器,從而使處理器能夠從該儲存媒體讀取資訊,且可向該儲存媒體寫入資訊;或者該儲存媒體可以是處理器的組成部分。處理器和儲存媒體可以位於ASIC中。該軟體模組可以儲存在電子設備的記憶體中,也可以儲存在可插入電子設備的儲存卡中。例如,若電子設備(例如行動終端)採用的是較大容量的MEGA-SIM卡或者大容量的快閃記憶體裝置,則該軟體模組可儲存在該MEGA-SIM卡或者大容量的快閃記憶體裝置中。 針對圖描述的功能方塊圖中的一個或多個及/或功能方塊圖的一個或多個組合,可以實現為用於執行本發明所描述功能的通用處理器、數位信號處理器(DSP)、特殊應用積體電路(ASIC)、現場可程式閘陣列(FPGA)或其它可編程邏輯裝置、分散式閘極或電晶體邏輯裝置、分立硬體組件、或者其任意適當組合。針對附圖描述的功能方塊圖中的一個或多個及/或功能方塊圖的一個或多個組合,還可以實現為計算設備的組合,例如,DSP和微處理器的組合、多個微處理器、與DSP通信結合的一個或多個微處理器或者任何其它這種配置。 此外,本說明書實施例的處理方法、處理裝置可在單處理器環境中實現,也可在多處理器的環境中分散式地實現。 以上結合具體的實施方式對本發明進行了描述,但本領域技術人員應該清楚,這些描述都是示例性的,並不是對本發明保護範圍的限制。本領域技術人員可以根據本發明的原理對本發明做出各種變型和修改,這些變型和修改也在本發明的範圍內。The foregoing and other features of the present invention will become apparent from the following description with reference to the drawings. In the specification and the drawings, specific embodiments of the present invention are disclosed in detail, which show some of the embodiments in which the principles of the present invention can be adopted. It should be understood that the present invention is not limited to the described embodiments. The invention includes all modifications, variations, and equivalents that fall within the scope of the attached patent application. In the embodiments of this specification, the terms "first", "second", etc. are used to distinguish different elements from their titles, but they do not mean the spatial arrangement or chronological order of these elements, and these elements should not be used by these terms Restricted. The term "and/or" includes any and all combinations of one or more of the associated listed terms. In the embodiments of the present specification, the singular forms "a", "the", etc. include plural forms, which should be broadly understood as "a" or "a class" rather than being limited to the meaning of "a"; in addition, the term "said" It should be understood to include both singular and plural forms unless the context clearly indicates otherwise. In addition, the term "based on" should be understood as "based at least in part on..." and the term "based on" should be understood as "based at least in part on..." unless the context clearly indicates otherwise. The following describes the specific implementation manners of the embodiments of the present specification with reference to the drawings. Example 1 The first embodiment provides a method for processing price information. FIG. 1 is a schematic diagram of the price information processing method of this embodiment. As shown in FIG. 1, the method includes: Step 101: Identify the first price information from the image containing the first price information related to the first currency; Step 102: Determine second price information related to the second currency according to the first price information and the conversion relationship between the first currency and the preset second currency; Step 103: Display the second price information. Through the above method of this embodiment, the first price information can be automatically recognized from the image and currency conversion can be performed to display the second price information after currency conversion to the user, the operation is simple, and the wrong operation is avoided, and the user experience is improved . In this embodiment, the first currency and the second currency are different types of currencies. For example, the first currency is Japanese yen and the second currency is Renminbi. In this embodiment, the first currency may be the currency of the country or region where the user is currently located, and the second currency may be the default currency, for example, the currency of the country where the user belongs or the user wants to use to measure the commodity Price currency. The first currency can be set by the user, or can be automatically obtained by the device. For the specific method for the device to automatically acquire the first currency, please refer to the following description. The first price information related to the first currency is price information denominated in the first currency. Similarly, the second price information related to the second currency is price information denominated in the second currency. In this way, the conversion relationship between the first currency and the second currency is the exchange rate relationship between different currencies. In this embodiment, the first price information includes price, or, price and corresponding discount information. That is, the first price information is information that can be used to determine the first price related to the first currency. For example, by multiplying the price and the discount, the actual price expressed in the first currency is obtained. In this embodiment, the image containing the first price information can be obtained in any way. For example, a user uses a terminal device to acquire an image in a real scene containing first price information. The real scene here is, for example, a real life scene including price tags or price copy. The price tag here may be, for example, a price tag pasted on a commodity in a shopping mall, and the price copy may be, for example, a price-related text or picture displayed on a product page on a shopping website. In this embodiment, in the above step 101, the first price information can be identified from the image in any manner. For example, it is possible to recognize by using a recognition model obtained by machine learning, but this embodiment is not limited thereto. In this embodiment, in the above step 103, the conversion relationship between the first currency and the second currency can also be displayed at the same time, that is, the exchange rate information can be displayed at the same time. FIG. 2 is another schematic diagram of the price information processing method of this embodiment. As shown in FIG. 2, in addition to the above steps 101-103, the method may further include: Step 201: Use a training sample to train a recognition model for identifying the first price information. Therefore, the above step 101 can recognize the first price information from the video based on the recognition model. This step 201 is optional. In addition, this step 201 may be performed in advance. In other words, the recognition model is pre-trained and obtained before the actual recognition. In this embodiment, the training sample may be a large number of pictures containing price information or similar information. Pictures containing similar information may be other pictures containing digits, such as pictures containing mathematical formulas, pictures of calendars, etc. In this embodiment, as shown in FIG. 2, the method may further include: Step 202: Add an image containing the first price information to the above training sample, and retrain the recognition model based on the added training sample to obtain an updated recognition model. As a result, it is possible to use the image to provide feedback samples to the training samples, thereby improving the recognition degree when performing recognition based on the updated recognition model. The updated identification model obtained in step 202 above may be provided to step 101 for identifying the first price information from the image based on the updated identification model. This step 202 is optional, and step 101 may be directly executed after step 201 without performing step 202. In addition, when implementing step 202, step 202 may be implemented directly after obtaining the image containing the first price information, or step 202 may be implemented when the first price information cannot be recognized from the image containing the first price information. In this embodiment, the above recognition model may be a model based on a convolutional neural network, or other models. In this embodiment, the method may further include the step (not shown): test the identification model using a test sample, add the image to the test sample, and re-based the identification model based on the added test sample Test to obtain an updated recognition model. This step is optional. As a result, it is possible to use the image to provide feedback samples to the test samples, thereby improving the recognition degree when performing recognition based on the updated recognition model. In this embodiment, the test sample may also be a large number of pictures containing price information or similar information. In this embodiment, the image containing the first price information may be directly added to the test sample after obtaining the image, or the image may be added to the test only when the first price information cannot be recognized from the image In the sample. If the solution of adding the image to the training sample and/or test sample only when the first price information cannot be recognized from the image, the test result based on the updated recognition model can also meet the preset conditions In this case, re-recognize the first price information from the image. Thereby, the possibility of recognizing the first price information from the video can be increased. In this embodiment, the method may further include the steps of acquiring positioning information of the user, determining the first currency based on the positioning information, and acquiring the conversion relationship based on the determined first currency and the preset second currency. Thus, the first currency can be automatically acquired by the device, which further simplifies the operation and avoids erroneous operation. This step is optional. For example, according to the user's location information, the country or region where the user is currently located is determined, and the first currency is the currency of the country or region. The conversion relationship can be obtained by querying a server that provides real-time exchange rate information services, for example. In this embodiment, the above method may be implemented on one device, for example, a terminal device. It can also be implemented on multiple devices in a decentralized manner, for example, it can be executed jointly on the terminal device and the server. However, this embodiment is not limited to the above example, and can also be executed on other types of devices. When implemented on multiple devices, the above steps 101-103 may be implemented, for example, in the following manner: the first price information may be identified in the first device (eg, terminal device) and positioning information may be obtained, and the two types of information may be aggregated to The aggregated information is sent to a second device (such as a server) that provides currency conversion services. The second device can extract positioning information and first price information from the aggregated information, determine the first currency based on the positioning information, and obtain the first currency and the second currency based on the first currency and the preset second currency The conversion relationship between currencies, and based on the extracted first price information and the conversion relationship, determine the second price information related to the second currency, and send the second price information to the first device for display. However, this embodiment is not limited as such, and may also be implemented in other similar ways. When implemented on multiple devices, the above steps 201-202, 101-103 may be implemented, for example, by performing the steps 201-202 on a third device (such as a server) and on the first device (such as a terminal device) ) Perform steps 101-103. In addition, the step of testing the recognition model described above, adding the image to the test sample, and retesting the recognition model based on the added test sample to obtain the updated recognition model may also be performed on the third device On the implementation. The step of re-recognizing the first price information from the image under the condition that the test result based on the updated recognition model satisfies the preset condition may be performed on the first device. The identification model or the updated identification model may be sent from the third device to the first device after being obtained, and the first device may identify the first price information based on the received identification model or the updated identification model. The first device may send the image containing the first price information to the third device for addition to training samples and/or test samples. However, this embodiment is not limited as such, and may also be implemented in other similar ways. The above-mentioned second device and third device may be the same device or different devices. In this embodiment, when the first device is a terminal device and the third device is a server, the terminal device can be set to send the first price information from the terminal device to the server without user permission The image can also be set to send the image from the terminal device to the server with permission of the user, otherwise the image cannot be sent. Through the processing method of price information in this embodiment, the price information can be automatically recognized and currency conversion is performed, the operation is simple, and the misoperation is avoided, and the user experience is improved. Example 2 The second embodiment provides a price information processing device. FIG. 3 is a schematic diagram of the price information processing device 300 of this embodiment. The same parts of Embodiment 2 as Embodiment 1 will not be repeated. As shown in FIG. 3, the price information processing device 300 includes an identification unit 301, a determination unit 302, and a display unit 303. The identifying unit 301 identifies the first price information from the image containing the first price information related to the first currency; the determining unit 302 determines the first price information and the conversion relationship between the first currency and the second currency The second price information related to the second currency; the display unit 303 displays the second price information. In this embodiment, the first price information may include price and/or corresponding discount information. In this embodiment, the processing device 300 may further include: a positioning unit 304, a currency determination unit 305, and a conversion relationship acquisition unit 306. The positioning unit 304 acquires positioning information; the currency determination unit 305 determines the first currency based on the positioning information; and the conversion relationship acquisition unit 306 acquires the conversion relationship based on the determined first currency and a preset second currency. The above-mentioned positioning unit 304, currency determination unit 305, and conversion relationship acquisition unit 306 are optional components. In this embodiment, the processing device 300 may further include a training unit 307, which uses the training samples to train the recognition model for recognizing the first price information. The training unit 307 described above is an optional component. In this embodiment, the recognition model may be a convolutional neural network model. In this embodiment, the processing device 300 may further include an adding unit 308 that adds the image containing the first price information to the training sample, and retrains the recognition model based on the added training sample to obtain The updated recognition model. The above adding unit 308 is an optional component. In this embodiment, the processing device 300 may further include a test unit 309, which uses the test sample to test the recognition model, and the addition unit 308 may also add an image containing the first price to the test sample, and based on the addition The later test sample retests the recognition model to obtain an updated recognition model. The above test unit 309 is an optional component. In this embodiment, the processing device 300 may further include an image acquisition unit 310 that acquires an image including first price information. In addition, the adding unit 308 can also obtain the image from the image obtaining unit 310. The image acquisition unit 310 described above is an optional component. The functions of the above units can be implemented in the specific manner described in Embodiment 1. In addition, the above units may be implemented by one device, or by multiple devices. For a specific implementation manner, refer to Embodiment 1. I won't repeat them here. The price information processing device of this embodiment can automatically recognize the price information and perform currency conversion. The operation is simple, and the erroneous operation is avoided, and the user experience is improved. The embodiments of the present specification also provide a computer-readable program that causes the processor to execute the method described in Embodiment 1. The embodiments of the present specification also provide a storage medium storing a computer-readable program, wherein the storage medium storing the computer-readable program causes the processor to execute the method described in Embodiment 1. The price information processing device described in conjunction with the embodiments of the present specification may be directly embodied as hardware, a software module executed by a processor, or a combination of both. For example, one or more of the functional block diagrams shown in the drawings and/or one or more combinations of the functional block diagrams can correspond to each software module of the computer program flow or each hardware Module. These software modules can correspond to the steps shown in the drawings. These hardware modules can be realized by curing these software modules by using a field programmable gate array (FPGA), for example. The software module may be located in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, register, hard disk, mobile disk, CD-ROM, or any other form known in the art Storage media. A storage medium may be coupled to the processor, so that the processor can read information from the storage medium and write information to the storage medium; or the storage medium may be an integral part of the processor. The processor and the storage medium may be located in the ASIC. The software module can be stored in the memory of the electronic device, or it can be stored in a memory card that can be inserted into the electronic device. For example, if an electronic device (such as a mobile terminal) uses a larger-capacity MEGA-SIM card or a larger-capacity flash memory device, the software module can be stored in the MEGA-SIM card or a larger-capacity flash Memory device. One or more of the functional block diagrams described in the drawings and/or one or more combinations of the functional block diagrams may be implemented as a general-purpose processor, a digital signal processor (DSP) for performing the functions described in the present invention, Special application integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, decentralized gate or transistor logic devices, discrete hardware components, or any suitable combination thereof. One or more of the functional block diagrams described in the drawings and/or one or more combinations of the functional block diagrams can also be implemented as a combination of computing devices, for example, a combination of DSP and microprocessor, multiple microprocessing Processor, one or more microprocessors in communication with the DSP, or any other such configuration. In addition, the processing method and the processing apparatus of the embodiments of the present specification may be implemented in a single-processor environment, or may be implemented in a distributed manner in a multi-processor environment. The present invention has been described above in conjunction with specific embodiments, but it should be clear to those skilled in the art that these descriptions are exemplary and do not limit the protection scope of the present invention. Those skilled in the art can make various variations and modifications to the present invention based on the principles of the present invention, and these variations and modifications are also within the scope of the present invention.

101‧‧‧步驟 102‧‧‧步驟 103‧‧‧步驟 201‧‧‧步驟 202‧‧‧步驟 300‧‧‧價格資訊的處理裝置 301‧‧‧識別單元 302‧‧‧確定單元 303‧‧‧顯示單元 304‧‧‧定位單元 305‧‧‧貨幣確定單元 306‧‧‧轉換關係獲取單元 307‧‧‧訓練單元 308‧‧‧添加單元 309‧‧‧測試單元 310‧‧‧影像取得單元101‧‧‧Step 102‧‧‧Step 103‧‧‧Step 201‧‧‧Step 202‧‧‧Step 300‧‧‧ price information processing device 301‧‧‧Identification unit 302‧‧‧ Confirmation unit 303‧‧‧Display unit 304‧‧‧positioning unit 305‧‧‧ currency determination unit 306‧‧‧ Conversion relationship acquisition unit 307‧‧‧Training unit 308‧‧‧Add unit 309‧‧‧Test unit 310‧‧‧Image acquisition unit

所包括的附圖用來提供對本說明書實施例的進一步的理解,其構成了說明書的一部分,用於例示本發明的實施方式,並與文字描述一起來闡釋本發明的原理。顯而易見地,下面描述中的附圖僅僅是本發明的一些實施例,對於本領域普通技術人員來講,在不付出創造性勞動性的前提下,還可以根據這些附圖獲得其他的附圖。在附圖中: 圖1是本說明書實施例1的價格資訊的處理方法的一個示意圖。 圖2是本說明書實施例1的價格資訊的處理方法的另一個示意圖。 圖3是本說明書實施例2的價格資訊的處理裝置的一個示意圖。The included drawings are used to provide a further understanding of the embodiments of the specification, which form a part of the specification, are used to exemplify the embodiments of the invention, and explain the principles of the invention together with the textual description. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without paying creative labor, other drawings can be obtained based on these drawings. In the drawings: FIG. 1 is a schematic diagram of a method of processing price information according to Embodiment 1 of the present specification. FIG. 2 is another schematic diagram of the price information processing method according to Embodiment 1 of the present specification. FIG. 3 is a schematic diagram of a price information processing device according to Embodiment 2 of this specification.

Claims (15)

一種價格資訊的處理方法,所述方法包括: 從包含與第一貨幣相關的第一價格資訊的影像中識別所述第一價格資訊; 根據所述第一價格資訊以及所述第一貨幣與預設的第二貨幣之間的轉換關係,確定與所述第二貨幣相關的第二價格資訊;以及 顯示所述第二價格資訊。A method for processing price information, the method includes: Identifying the first price information from the image containing the first price information related to the first currency; Determine second price information related to the second currency based on the first price information and the conversion relationship between the first currency and a preset second currency; and Displaying the second price information. 根據請求項1所述的方法, 所述第一價格資訊包括價格,或者,價格以及相應的折扣資訊。According to the method described in claim 1, The first price information includes price, or, price and corresponding discount information. 根據請求項1所述的方法,所述方法還包括: 獲取使用者的定位資訊,根據所述定位資訊確定所述第一貨幣,並基於確定的所述第一貨幣和預設的第二貨幣獲取所述轉換關係。The method according to claim 1, further comprising: Acquire positioning information of the user, determine the first currency according to the positioning information, and acquire the conversion relationship based on the determined first currency and a preset second currency. 根據請求項1所述的方法,所述方法還包括: 使用訓練樣本訓練用於識別所述第一價格資訊的識別模型。The method according to claim 1, further comprising: A training sample is used to train a recognition model for identifying the first price information. 根據請求項4所述的方法, 所述識別模型為卷積神經網路模型。According to the method described in claim 4, The recognition model is a convolutional neural network model. 根據請求項4或5所述的方法,所述方法還包括: 將所述影像添加到所述訓練樣本中,基於添加後的訓練樣本對所述識別模型進行重新訓練,以獲得更新後的識別模型。The method according to claim 4 or 5, further comprising: The image is added to the training sample, and the recognition model is retrained based on the added training sample to obtain an updated recognition model. 根據請求項4或5所述的方法,所述方法還包括: 使用測試樣本對所述識別模型進行測試,將所述影像添加到所述測試樣本中,並且基於添加後的測試樣本對所述識別模型進行重新測試,以獲得更新後的識別模型。The method according to claim 4 or 5, further comprising: The test model is used to test the recognition model, the image is added to the test sample, and the recognition model is retested based on the added test sample to obtain an updated recognition model. 一種價格資訊的處理裝置,所述裝置包括: 識別單元,其從包含與第一貨幣相關的第一價格資訊的影像中識別所述第一價格資訊; 確定單元,其根據所述第一價格資訊以及所述第一貨幣與預設的第二貨幣之間的轉換關係,確定與所述第二貨幣相關的第二價格資訊;以及 顯示單元,其顯示所述第二價格資訊。A price information processing device, the device includes: An identification unit that identifies the first price information from the image containing the first price information related to the first currency; A determining unit that determines second price information related to the second currency based on the first price information and the conversion relationship between the first currency and a preset second currency; and A display unit that displays the second price information. 根據請求項8所述的裝置, 所述第一價格資訊包括價格,或者,價格以及相應的折扣資訊。The device according to claim 8, The first price information includes price, or, price and corresponding discount information. 根據請求項8所述的裝置,所述裝置還包括: 定位單元,其獲取使用者的定位資訊; 貨幣確定單元,其根據所述定位資訊確定所述第一貨幣;以及 轉換關係獲取單元,基於確定的所述第一貨幣和預設的第二貨幣獲取所述轉換關係。The device according to claim 8, further comprising: A positioning unit, which obtains the user's positioning information; A currency determination unit that determines the first currency based on the positioning information; and The conversion relationship acquisition unit acquires the conversion relationship based on the determined first currency and the preset second currency. 根據請求項10所述的裝置,所述裝置還包括: 訓練單元,其使用訓練樣本訓練用於識別所述第一價格資訊的識別模型。The device according to claim 10, further comprising: A training unit that uses a training sample to train a recognition model for identifying the first price information. 根據請求項11所述的裝置, 所述識別模型為卷積神經網路模型。The device according to claim 11, The recognition model is a convolutional neural network model. 根據請求項11或12所述的裝置,所述裝置還包括: 添加單元,其將所述影像添加到所述訓練樣本中,基於添加後的訓練樣本對所述識別模型進行重新訓練,以獲得更新後的識別模型。The apparatus according to claim 11 or 12, further comprising: An adding unit that adds the image to the training sample, and retrains the recognition model based on the added training sample to obtain an updated recognition model. 根據請求項11或12所述的裝置,所述裝置還包括: 測試單元,其使用測試樣本對所述識別模型進行測試, 並且所述添加裝置還將所述影像添加到所述測試樣本中,並且基於添加後的測試樣本對所述識別模型進行重新測試,以獲得更新後的識別模型。The apparatus according to claim 11 or 12, further comprising: A test unit that uses a test sample to test the recognition model, And the adding device also adds the image to the test sample, and retests the recognition model based on the added test sample to obtain an updated recognition model. 一種儲存有電腦可讀程式的儲存媒體,所述電腦可讀程式使得處理器執行根據請求項1至7中任一項所述的方法。A storage medium storing a computer-readable program that causes a processor to execute the method according to any one of request items 1 to 7.
TW108106475A 2018-05-31 2019-02-26 Method and device for processing price information, and storage medium TW202004609A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810549476.9 2018-05-31
CN201810549476.9A CN108921592A (en) 2018-05-31 2018-05-31 A kind of processing method of pricing information, processing unit and storage medium

Publications (1)

Publication Number Publication Date
TW202004609A true TW202004609A (en) 2020-01-16

Family

ID=64410703

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108106475A TW202004609A (en) 2018-05-31 2019-02-26 Method and device for processing price information, and storage medium

Country Status (3)

Country Link
CN (1) CN108921592A (en)
TW (1) TW202004609A (en)
WO (1) WO2019228005A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108921592A (en) * 2018-05-31 2018-11-30 阿里巴巴集团控股有限公司 A kind of processing method of pricing information, processing unit and storage medium
CN113095898B (en) * 2020-01-08 2024-10-15 阿里巴巴新加坡控股有限公司 Processing method, processing device, processing equipment and machine-readable medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105989512A (en) * 2015-02-10 2016-10-05 黄金富知识产权咨询(深圳)有限公司 Commodity sale system and corresponding method
CN105279235A (en) * 2015-09-25 2016-01-27 联想(北京)有限公司 Display method and electronic device
CN107219920A (en) * 2017-05-15 2017-09-29 北京小米移动软件有限公司 The recognition methods of AR glasses, device and AR glasses based on scene
CN107292248B (en) * 2017-06-05 2023-04-07 广州诚予国际市场信息研究有限公司 Commodity management method and system based on image recognition technology
CN107492185A (en) * 2017-07-27 2017-12-19 上海青橙实业有限公司 Currency recognition method and apparatus based on mobile terminal
CN108921592A (en) * 2018-05-31 2018-11-30 阿里巴巴集团控股有限公司 A kind of processing method of pricing information, processing unit and storage medium

Also Published As

Publication number Publication date
CN108921592A (en) 2018-11-30
WO2019228005A1 (en) 2019-12-05

Similar Documents

Publication Publication Date Title
US11610394B2 (en) Neural network model training method and apparatus, living body detecting method and apparatus, device and storage medium
CN109800320B (en) Image processing method, device and computer readable storage medium
US20220012488A1 (en) Receipt identification method, apparatus, electronic device and computer-readable storage medium
WO2019071738A1 (en) Examinee identity authentication method and apparatus, readable storage medium and terminal device
US20220270396A1 (en) Palm print recognition method, method for training feature extraction model, device, and medium
US20170103397A1 (en) Video identification method and computer program product thereof
CN112233690B (en) Double recording method, device, terminal and storage medium
WO2017114167A1 (en) Authenticity verification method, apparatus and system for terminal
CN112396054A (en) Text extraction method and device, electronic equipment and storage medium
US20190026575A1 (en) Living body detecting method and apparatus, device and storage medium
CN105450664B (en) A kind of information processing method and terminal
US20190087786A1 (en) System and method for automated lead retrieval and attendance tracking
TWI724530B (en) Offline self-service settlement method, device and system
CN109784339A (en) Picture recognition test method, device, computer equipment and storage medium
WO2022007798A1 (en) Data display method and apparatus, terminal device and storage medium
CN108335109A (en) The management method and device of comment system
CN112561269A (en) Advisor recommendation method and device
TW202004609A (en) Method and device for processing price information, and storage medium
CN107992484A (en) A kind of method, equipment and the storage medium of the performance for evaluating and testing OCR system
CN107391543B (en) Wireless hotspot type identification method and device
TWM606868U (en) Device for identifying identity based on document image and living body image
CN112183417A (en) Business consultant service capability evaluation system and method
CN111210370A (en) Real estate safe transaction method and system
CN109409875B (en) Bill checking method and device and electronic equipment
US20170076368A1 (en) Method and Device for Processing Card Application Data