這裡將詳細地對示例性實施例進行說明,其示例表示在圖式中。下面的描述涉及圖式時,除非另有表示,不同圖式中的相同數字表示相同或相似的要素。以下示例性實施例中所描述的實施方式並不代表與本說明書一個或多個實施例相一致的所有實施方式。相反地,它們僅是與如所附申請專利範圍中所詳述的、本說明書一個或多個實施例的一些態樣相一致的裝置和方法的例子。
需要說明的是:在其他實施例中並不一定按照本說明書示出和描述的順序來執行相應方法的步驟。在一些其他實施例中,其方法所包括的步驟可以比本說明書所描述的更多或更少。此外,本說明書中所描述的單個步驟,在其他實施例中可能被分解為多個步驟進行描述;而本說明書中所描述的多個步驟,在其他實施例中也可能被合併為單個步驟進行描述。
圖1是一示例性實施例提供的一種容器狀態的檢測系統的架構示意圖。如圖1所示,該系統可以包括容器檢測設備11、用戶端12、服務端13以及網路14。
容器檢測設備11位於容器外部,例如,可以設於容器的口部附近。其中,該容器內部包含易揮發液體,比如酒精、香水、鹽酸等。基於易揮發的特性,該容器在存放這些液體時需處於密封狀態;比如,可設一封裝部件用以對容器的口部進行密封處理,以防止內部的液體揮發洩漏。
用戶端12可與容器檢測設備11建立短距離無線連接,以在靠近容器檢測設備11時與其進行資料互動。例如,用戶可使用用戶端12透過藍牙、NFC(Near Field Communication,近距離無線通訊技術)、RFID(Radio Frequency Identification,無線射頻識別)等與容器檢測設備11建立連接,並獲取容器檢測設備11的檢測結果。用戶端12可以是手機,當然,手機只是用戶可以使用的一種類型的電子設備。實際上,用戶顯然還可以使用諸如下述類型的電子設備:平板設備、筆記型電腦、掌上型電腦(PDA,Personal Digital Assistant)、可穿戴設備(如智慧型眼鏡、智慧型手錶等)等,本說明書一個或多個實施例並不對此進行限制。
服務端13可以為包含一獨立主機的物理伺服器,或者該服務端13可以為主機集群承載的虛擬伺服器。在運行過程中,該物理伺服器或虛擬伺服器可以運行某一應用的伺服器側的程式,以實現該應用的相關業務功能,比如當運行基於服務端側的容器狀態的檢測方法的程式時,可以實現為該容器狀態的檢測方法的服務端。而在本說明書一個或多個實施例的技術方案中,可由服務端13透過與容器檢測設備11進行配合,以實現容器狀態的檢測方案。
而對於容器檢測設備11與服務端13之間進行互動的網路14,可以包括多種類型的有線或無線網路。在一實施例中,該網路14可以包括公共交換電話網路(Public Switched Telephone Network,PSTN)和網際網路。容器檢測設備11與服務端13之間可以透過網路14建立長連接,使得容器檢測設備11透過該長連接向服務端13發送通知訊息等。
請參見圖2,圖2是一示例性實施例提供的一種容器狀態的檢測方法的流程圖。如圖2所示,該方法係應用於容器檢測設備,所述容器(待檢測容器)內包含易揮發液體;該方法可以包括以下步驟:
步驟202,獲取所述容器附近的待檢測氣體的氣體濃度。
在本實施例中,所述待檢測氣體為所述易揮發液體揮發得到的氣體。舉例而言,當容器內部包含白酒、葡萄酒等酒精含量較高的液體時,待檢測氣體可以是乙醇;當容器內部包含易揮發的酸性或鹼性溶液時,待檢測氣體可以是該酸性或鹼性溶液揮發的氣體,比如,對應於鹽酸的待檢測氣體為氯化氫(HCL),而對應於硝酸的待檢測氣體為二氧化氮(硝酸遇光易分解,4HNO3==4NO2+O2+2H2O);以此類推,對應於其他類型液體的待檢測氣體與上述情況類似,在此不再贅述。
步驟204,基於所述氣體濃度判定所述容器是否完整。
在本實施例中,基於容器內液體的揮發特性(比如,酒精、香水、鹽酸等液體),該容器在存放這些液體時需處於密封狀態。比如,可設一封裝部件(比如,當容器為酒瓶時,封裝部件可以是酒瓶的瓶塞)用以對容器的口部進行密封處理,以防止內部的液體揮發洩漏。當容器存在破損時,該容器內部的液體將從破損處流至容器外部,進而與外界環境接觸,導致該液體容易揮發為氣體;或者,當容器被打開(比如,封裝部件被打開)時,該容器內部的液體與外界環境連通,導致液體將揮發成氣體流失至外界環境。而外界環境中該氣體的濃度往往較低,揮發的氣體將導致容器附近(尤其是破損處或被打開的容器口部)的濃度提升。因此,可基於待檢測氣體的氣體濃度來判定容器是否完整。例如,普通的外界環境(區別於酒瓶內部環境)中酒精(乙醇)濃度往往較低,當酒瓶的瓶口被打開時,酒瓶內部的部分酒精揮發為氣體從瓶口散發出來,導致瓶口附近的氣態酒精的濃度上升。
在一實施例中,可在容器的容器口部附近設置第一氣體感測器,以用來檢測容器口部附近待檢測氣體的氣體濃度。那麼,容器檢測設備可獲取所述第一氣體感測器檢測到的第一氣體濃度,並基於所述第一氣體濃度判定所述容器口部是否完整。例如,在一種情況下,當容器口部存在略微的破損(比如,輕微的裂縫)時,可能存在少量的液體從破損處流出(或者容器內部的液體揮發成氣體從破損處向外擴散),進而揮發成氣體提升了周圍小範圍內該氣體的氣體濃度。因此,可配置第一預設閾值用來衡量容器口部存在略微破損的情況下的氣體濃度。在另一種情況下,當容器口部被打開(比如,容器口部被封裝部件密封,封裝部件被去除)時,容器內部的液體與外界環境接觸進而揮發成氣體從瓶口向外擴散,導致提升了容器口部周圍小範圍內該氣體的氣體濃度。因此,可配置第二預設閾值用來衡量容器口部被打開時的氣體濃度。那麼,當所述第一氣體濃度超過第一預設閾值且未超過第二預設閾值時,可判定所述容器口部存在破損;當所述第一氣體濃度超過所述第二預設閾值時,可判定所述容器口部被打開。其中,由於相較於容器口部存在破損的情況,容器口部被打開時由容器內部向外擴散的氣體相對較多,即容器口部被打開時對容器口部附近氣體濃度的提升幅度更大。因此,可將所述第一預設閾值設定為小於所述第二預設閾值。
在另一實施例中,當容器口部被打開時,容器內部的液體與外界環境接觸進而揮發成氣體從瓶口向外擴散,導致容器口部周圍小範圍內該氣體的氣體濃度上升。其中,越靠近容器口部的區域其氣體濃度越高。因此,可在所述容器的容器口部附近設置第二氣體感測器,所述第二氣體感測器包括第一檢測模組和第二檢測模組,所述第一檢測模組相較於所述第二檢測模組更靠近於所述容器口部。基於上述第二氣體感測器的配置,容器檢測設備可先獲取所述第一檢測模組檢測到的第二氣體濃度和所述第二檢測模組檢測到的第三氣體濃度,並基於第二氣體濃度和第三氣體濃度之間的濃度差值來判定容器是否完整。其中,當同一時刻檢測到的第二氣體濃度和第三氣體濃度之間的濃度差值超過第三預設閾值時,可判定所述容器口部被打開。
需要說明的是,容器檢測設備可在開啟後按照預設頻率執行步驟202至204以檢測容器狀態。而針對容器檢測設備的開啟方式,比如可設定為容器被封裝部件密封後便一直處於開啟狀態;或者由服務端下發啟動指令以控制容器檢測設備開啟,而容器檢測設備在未接收到啟動指令時處於休眠模式。另外,上述第一預設閾值、第二預設閾值、第三預設閾值的具體取值可根據實際情況靈活設定,本說明書一個或多個實施例並不對此進行限制。
在本實施例中,當判定所述容器不完整時,可向服務端上傳所述容器的容器狀態為不完整的通知訊息,以由所述服務端將所述容器的容器狀態標記為不完整。其中,服務端可配置資料庫用來記錄各個容器的容器狀態。比如,可儲存各個容器的標識與容器狀態(比如,可以包括完整狀態、不完整狀態、開啟狀態、破損狀態等)的映射關係。在一種情況下,基於服務端記錄有各個容器的容器狀態,用戶可透過用戶端向服務端發送查詢請求以獲取任意容器的容器狀態。在另一種情況下,當容器檢測設備與用戶端建立短距離無線連接時,用戶可透過用戶端向容器檢測設備發送針對容器狀態的獲取指令,以使得容器檢測設備在接收到該獲取指令後向用戶端返回判定結果。
為了便於理解,下面以容器為酒瓶為例,對本說明書中容器狀態的檢測方案進行詳細說明。
實施例一
請參見圖3,圖3是一示例性實施例提供的第一氣體感測器111的示意圖。如圖3A所示,容器檢測設備11可設於酒瓶31的瓶口P附近,而酒瓶31被瓶塞311密封。其中,容器檢測設備11包含第一氣體感測器111。如圖3B所示,當瓶塞311被打開時,酒瓶31內部的酒精揮發向瓶口P外擴散,從而導致瓶口P附近的氣態酒精濃度上升。同理,當瓶口P附近出現破損時,也會導致瓶口P附近的氣態酒精濃度上升。因此,可基於瓶口P附近的酒精濃度來判定酒瓶31是否被打開或者破損。
如圖4所示,圖4是一示例性實施例提供的另一種容器狀態的檢測方法的流程圖。如圖4所示,該方法係應用於容器檢測設備11,可以包括以下步驟:
步驟402,獲取第一氣體濃度。
在本實施例中,第一氣體濃度由第一氣體感測器111 (例如,可以是酒精氣體濃度檢測儀)採集得到。
步驟404,判斷第一氣體濃度是否超過第一預設閾值,若超過,則轉入步驟406A,否則轉入步驟406B。
步驟406A,判斷第一氣體濃度是否超過第二預設閾值,若超過,則轉入步驟408A,否則轉入步驟408B。
在本實施例中,第一預設閾值和第二預設閾值可根據實際情況靈活設定,本說明書一個或多個實施例並不對此進行限制。其中,由於相較於瓶口P存在破損的情況,瓶口P被打開(比如,瓶塞311被打開)時由酒瓶內部向外擴散的氣態酒精相對較多,即瓶口P被打開時對瓶口P附近氣態酒精濃度的提升幅度更大。因此,可將第一預設閾值設定為小於第二預設閾值。
步驟406B,判斷酒瓶完整。
步驟408A,判定瓶口被打開。
步驟408B,判定瓶口存在破損。
在本實施例中,當第一氣體濃度超過第一預設閾值且未超過第二預設閾值時,可判定瓶口P存在破損(比如,因碰撞產生的細小裂痕);當第一氣體濃度超過第二預設閾值時,可判定瓶口P被打開。
舉例而言,假定第一預設閾值為0.5 mg/m3
,第二預設閾值為1 mg/m3
。那麼,當第一氣體濃度為0.6 mg/m3
時,可判定瓶口P存在略微的破損;當第一氣體濃度為1.1 mg/m3
時,可判定瓶口P被打開。
實施例二
請參見圖5,圖5是一示例性實施例提供的第二氣體感測器112的示意圖。如圖5A所示,容器檢測設備11可設於酒瓶31的瓶口P附近,而酒瓶31被瓶塞311密封。其中,容器檢測設備11包含第二氣體感測器112,第二氣體感測器112包括第一檢測模組1121和第二檢測模組1122,第一檢測模組1121相較於第二檢測模組1122更靠近於瓶口P。如圖3B所示,當瓶塞311被打開時,酒瓶31內部的酒精揮發向瓶口P外擴散,從而導致瓶口P附近的氣態酒精濃度上升。其中,越靠近瓶口P的區域其氣態酒精濃度越高。因此,可基於第一檢測模組1121和第二檢測模組1122採集到的氣態酒精濃度的差值來判定酒瓶31是否被打開(即瓶塞311是否被打開)。
如圖6所示,圖6是一示例性實施例提供的另一種容器狀態的檢測方法的流程圖。如圖6所示,該方法係應用於容器檢測設備11,可以包括以下步驟:
步驟602,獲取第二氣體濃度。
步驟604,獲取第三氣體濃度。
在本實施例中,第二氣體濃度由第一檢測模組1121 (例如,可以是酒精氣體濃度檢測儀)採集得到,第三氣體濃度由第二檢測模組1122(例如,可以是酒精氣體濃度檢測儀)採集得到。
步驟606,計算第二氣體濃度和第三氣體濃度之間的濃度差值。
步驟608,判斷濃度差值是否超過第三預設閾值,若超過,則轉入步驟610,否則,轉入步驟612。
在本實施例中,當瓶塞311被打開時,由於第一檢測模組1121相較於第二檢測模組1122距離瓶口P更近,同一時刻下第二氣體濃度應大於第三氣體濃度。因此,可設定第三預設閾值用來衡量第二氣體濃度和第三氣體濃度之間的濃度差值。其中,當同一時刻下檢測到的第二氣體濃度和第三氣體濃度之間的濃度差值超過第三預設閾值時,可判定瓶口P被打開(即瓶塞311被打開)。當然,第三預設閾值的具體取值可根據實際情況靈活設定,本說明書一個或多個實施例並不對此進行限制。
步驟610,判定瓶口被打開。
步驟612,判定酒瓶完整。
舉例而言,假定第三閾值為0.4 mg/m3
。那麼,若第二氣體濃度和第三氣體濃度之間的濃度差值超過0.4 mg/m3
,則可判定瓶口P被打開;否則,可判定酒瓶31完整。
在本說明書的容器狀態的檢測方案中,容器檢測設備11還可與用戶端12以及服務端13之間互動判定結果。如圖7所示,容器檢測設備11與服務端13之間的互動過程可包括以下步驟:
步驟702,容器檢測設備判定酒瓶是否完整。
在本實施例中,容器檢測設備11的判定過程可參考上述圖3-6所示的實施例,在此不再贅述。
步驟704,容器檢測設備向服務端上傳酒瓶狀態為不完整的通知訊息。
步驟706,服務端標記酒瓶狀態。
在本實施例中,當容器檢測設備11判定酒瓶31不完整時,可向服務端13上傳酒瓶狀態為不完整的通知訊息,以由服務端13將酒瓶31的酒瓶狀態標記為不完整。其中,服務端13可配置資料庫用來記錄各個酒瓶的酒瓶狀態。
舉例而言,服務端12根據接收到的來自各個容器檢測設備發送的通知訊息,可維護如表1所示的映射關係:
表1
當容器檢測設備11與用戶端12建立短距離無線連接時,用戶可透過用戶端12向容器檢測設備11發送針對容器狀態的獲取指令,以使得容器檢測設備11在接收到該獲取指令後向用戶端12返回判定結果,進而瞭解到酒瓶狀態(例如,可以瞭解到酒瓶是否被打開過或者是否存在破損)。如圖8所示,容器檢測設備11與用戶端12之間的互動過程可包括以下步驟:
步驟802,容器檢測設備判定酒瓶是否完整。
在本實施例中,容器檢測設備11的判定過程可參考上述圖3-6所示的實施例,在此不再贅述。
步驟804,容器檢測設備與用戶端建立短距離無線連接。
在本實施例中,用戶可使用用戶端12透過藍牙、NFC、RFID等方式與容器檢測設備11建立連接,以與容器檢測設備11進行資料互動,獲取容器檢測設備11的判定結果。其中,用戶端12可以是手機,當然,手機只是用戶可以使用的一種類型的電子設備。實際上,用戶顯然還可以使用諸如下述類型的電子設備:平板設備、筆記型電腦、掌上型電腦、可穿戴設備(如智慧型眼鏡、智慧型手錶等)等,本說明書一個或多個實施例並不對此進行限制。
步驟806,用戶端向容器檢測設備發送獲取指令。
步驟808,容器檢測設備向用戶端返回判定結果。
步驟810,用戶端顯示容器檢測設備返回的判定結果。
需要說明的是,用戶還可透過用戶端12與服務端13建立連接,以獲取服務端13記錄的酒瓶狀態。例如,可在酒瓶上標明向服務端13請求查詢酒瓶狀態的連結(比如,二維碼、網址等)。那麼用戶可透過手機等用戶端12根據該連結向服務端13請求查詢(透過發送查詢請求,查詢請求中包含酒瓶的標識)酒瓶狀態,並根據服務端13返回(在接收到查詢請求後返回)自身記錄的酒瓶狀態來判斷該酒瓶是否被打開過。由於該過程與上述圖8所示實施例的原理類似,在此不再贅述。
圖9是一示例性實施例提供的一種電子設備的示意結構圖。請參考圖9,在硬體層面,該設備包括處理器902、內部匯流排904、網路介面906、記憶體908以及非易失性記憶體910,當然還可能包括其他業務所需要的硬體。處理器902從非易失性記憶體910中讀取對應的電腦程式到記憶體908中然後運行,在邏輯層面上形成容器狀態的檢測裝置。當然,除了軟體實現方式之外,本說明書一個或多個實施例並不排除其他實現方式,比如邏輯裝置抑或軟硬體結合的方式等等,也就是說以下處理流程的執行主體並不限定於各個邏輯單元,也可以是硬體或邏輯裝置。
請參考圖10,在軟體實施方式中,該容器狀態的檢測裝置可以包括:
獲取單元1001,獲取所述容器(容器內包含易揮發液體)附近的待檢測氣體的氣體濃度,所述待檢測氣體為所述易揮發液體揮發得到的氣體;
判定單元1002,基於所述氣體濃度判定所述容器是否完整。
可選地,所述容器的容器口部附近設有第一氣體感測器,所述第一氣體感測器用來檢測所述待檢測氣體的氣體濃度;
所述獲取單元1001具體用於:
獲取所述第一氣體感測器檢測到的第一氣體濃度;
所述判定單元具體1002用於:
基於所述第一氣體濃度判定所述容器口部是否完整。
可選地,所述判定單元1002進一步用於:
當所述第一氣體濃度超過第一預設閾值且未超過第二預設閾值時,判定所述容器口部存在破損;
當所述第一氣體濃度超過所述第二預設閾值時,判定所述容器口部被打開;
其中,所述第一預設閾值小於所述第二預設閾值。
可選地,所述容器的容器口部附近設有第二氣體感測器,所述第二氣體感測器包括第一檢測模組和第二檢測模組,所述第一檢測模組相較於所述第二檢測模組更靠近於所述容器口部;
所述獲取單元1001具體用於:
獲取所述第一檢測模組檢測到的第二氣體濃度和所述第二檢測模組檢測到的第三氣體濃度;
所述判定單元1002具體用於:
當同一時刻檢測到的第二氣體濃度和第三氣體濃度之間的濃度差值超過第三預設閾值時,判定所述容器口部被打開。
可選地,還包括:
上傳單元1003,當判定所述容器不完整時,向服務端上傳所述容器的容器狀態為不完整的通知訊息,以由所述服務端將所述容器的容器狀態標記為不完整。
可選地,還包括:
返回單元1004,當與用戶端建立短距離無線連接時,若接收到所述用戶端發送的針對容器狀態的獲取指令時,向所述用戶端返回判定結果。
上述實施例闡明的系統、裝置、模組或單元,具體可以由電腦晶片或實體實現,或者由具有某種功能的產品來實現。一種典型的實現設備為電腦,電腦的具體形式可以是個人電腦、膝上型電腦、蜂巢式電話、相機電話、智慧型電話、個人數位助理、媒體播放機、導航設備、電子郵件收發設備、遊戲控制台、平板電腦、可穿戴設備或者這些設備中的任意幾種設備的組合。
在一個典型的配置中,電腦包括一個或多個處理器(CPU)、輸入/輸出介面、網路介面和記憶體。
記憶體可能包括電腦可讀媒體中的非永久性記憶體,隨機存取記憶體(RAM)和/或非易失性記憶體等形式,如唯讀記憶體(ROM)或快閃記憶體(flash RAM)。記憶體是電腦可讀媒體的示例。
電腦可讀媒體包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是電腦可讀指令、資料結構、程式的模組或其他資料。電腦的儲存媒體的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可擦除可編程唯讀記憶體(EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存器、磁盒式磁帶、磁碟儲存器、量子記憶體、基於石墨烯的儲存媒體或其他磁性儲存設備或任何其他非傳輸媒體,可用來儲存可以被計算設備存取的資訊。按照本文中的界定,電腦可讀媒體不包括暫態性電腦可讀媒體(transitory media),如調變的資料信號和載波。
還需要說明的是,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、商品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、商品或者設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個……”限定的要素,並不排除在包括所述要素的過程、方法、商品或者設備中還存在另外的相同要素。
上述對本說明書特定實施例進行了描述。其它實施例在所附申請專利範圍的範疇內。在一些情況下,在申請專利範圍中記載的動作或步驟可以按照不同於實施例中的順序來執行並且仍然可以實現期望的結果。另外,在圖式中描繪的過程不一定要求示出的特定順序或者連續順序才能實現期望的結果。在某些實施方式中,多工處理和並行處理也是可以的或者可能是有利的。
在本說明書一個或多個實施例使用的術語是僅僅出於描述特定實施例的目的,而非旨在限制本說明書一個或多個實施例。在本說明書一個或多個實施例和所附申請專利範圍中所使用的單數形式的“一種”、“所述”和“該”也旨在包括多數形式,除非上下文清楚地表示其他含義。還應當理解,本文中使用的術語“和/或”是指並包含一個或多個相關聯的列出專案的任何或所有可能組合。
應當理解,儘管在本說明書一個或多個實施例可能採用術語第一、第二、第三等來描述各種資訊,但這些資訊不應限於這些術語。這些術語僅用來將同一類型的資訊彼此區分開。例如,在不脫離本說明書一個或多個實施例範圍的情況下,第一資訊也可以被稱為第二資訊,類似地,第二資訊也可以被稱為第一資訊。取決於語境,如在此所使用的詞語“如果”可以被解釋成為“在……時”或“當……時”或“回應於確定”。
以上所述僅為本說明書一個或多個實施例的較佳實施例而已,並不用來限制本說明書一個或多個實施例,凡在本說明書一個或多個實施例的精神和原則之內,所做的任何修改、等同替換、改進等,均應包含在本說明書一個或多個實施例保護的範圍之內。The exemplary embodiments will be described in detail here, and examples thereof are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with one or more embodiments of this specification. On the contrary, they are only examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the scope of the appended application. It should be noted that in other embodiments, the steps of the corresponding method may not be executed in the order shown and described in this specification. In some other embodiments, the method may include more or fewer steps than described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may also be combined into a single step in other embodiments. description. Fig. 1 is a schematic structural diagram of a system for detecting the status of a container provided by an exemplary embodiment. As shown in FIG. 1, the system may include a container inspection device 11, a client 12, a server 13 and a network 14. The container detection device 11 is located outside the container, for example, it may be provided near the mouth of the container. Wherein, the container contains volatile liquids, such as alcohol, perfume, hydrochloric acid, etc. Based on the volatile characteristics, the container needs to be in a sealed state when storing these liquids; for example, a packaging component can be provided to seal the mouth of the container to prevent the internal liquid from volatilizing and leaking. The user terminal 12 can establish a short-range wireless connection with the container inspection device 11 to interact with the container inspection device 11 in data. For example, the user can use the user terminal 12 to establish a connection with the container inspection device 11 through Bluetooth, NFC (Near Field Communication), RFID (Radio Frequency Identification, radio frequency identification), etc., and obtain the container inspection device 11 Test results. The user terminal 12 may be a mobile phone. Of course, a mobile phone is only a type of electronic device that the user can use. In fact, users can obviously also use electronic devices such as the following types: tablet devices, notebook computers, PDAs (Personal Digital Assistant), wearable devices (such as smart glasses, smart watches, etc.), etc. One or more embodiments of this specification do not limit this. The server 13 may be a physical server including an independent host, or the server 13 may be a virtual server carried by a host cluster. During operation, the physical server or virtual server can run a program on the server side of an application to implement related business functions of the application, such as when running a program based on the detection method of the container status on the server side , Can be implemented as the server side of the container state detection method. In the technical solutions of one or more embodiments of this specification, the server 13 can cooperate with the container detection device 11 to realize the detection solution of the container status. The network 14 for interaction between the container inspection device 11 and the server 13 may include multiple types of wired or wireless networks. In an embodiment, the network 14 may include a Public Switched Telephone Network (PSTN) and the Internet. The container detection device 11 and the server 13 can establish a long connection through the network 14 so that the container detection device 11 sends notification messages to the server 13 through the long connection. Please refer to FIG. 2, which is a flowchart of a method for detecting the state of a container according to an exemplary embodiment. As shown in FIG. 2, the method is applied to a container detection device, and the container (container to be detected) contains a volatile liquid; the method may include the following steps: Step 202: Obtain the gas of the gas to be detected near the container concentration. In this embodiment, the gas to be detected is a gas obtained by volatilization of the volatile liquid. For example, when the inside of the container contains liquids with high alcohol content such as liquor and wine, the gas to be detected can be ethanol; when the inside of the container contains a volatile acid or alkaline solution, the gas to be detected can be the acid or alkali For example, the gas to be detected corresponding to hydrochloric acid is hydrogen chloride (HCL), and the gas to be detected corresponding to nitric acid is nitrogen dioxide (nitric acid is easy to decompose when exposed to light, 4HNO3==4NO2+O2+2H2O); By analogy, the gas to be detected corresponding to other types of liquids is similar to the above situation, and will not be repeated here. Step 204: Determine whether the container is complete based on the gas concentration. In this embodiment, based on the volatilization characteristics of the liquid in the container (for example, alcohol, perfume, hydrochloric acid and other liquids), the container needs to be in a sealed state when storing these liquids. For example, a packaging component (for example, when the container is a wine bottle, the packaging component can be a stopper of a wine bottle) can be provided to seal the mouth of the container to prevent the internal liquid from volatilizing and leaking. When the container is damaged, the liquid inside the container will flow from the damaged place to the outside of the container, and then come into contact with the external environment, causing the liquid to easily volatilize into gas; or, when the container is opened (for example, the packaging part is opened), The liquid inside the container is connected to the external environment, causing the liquid to volatilize into gas and lose to the external environment. The concentration of the gas in the external environment is often low, and the volatilized gas will lead to an increase in the concentration near the container (especially at the damaged part or the mouth of the opened container). Therefore, it can be determined whether the container is complete based on the gas concentration of the gas to be detected. For example, the concentration of alcohol (ethanol) in the ordinary external environment (different from the internal environment of a wine bottle) is often low. When the mouth of the wine bottle is opened, part of the alcohol inside the wine bottle volatilizes as gas emitted from the mouth of the bottle, resulting in The concentration of gaseous alcohol near the mouth of the bottle rises. In an embodiment, a first gas sensor may be provided near the mouth of the container to detect the gas concentration of the gas to be detected near the mouth of the container. Then, the container detection device can obtain the first gas concentration detected by the first gas sensor, and determine whether the container mouth is complete based on the first gas concentration. For example, in one case, when there is a slight damage to the mouth of the container (for example, a slight crack), there may be a small amount of liquid flowing out of the damage (or the liquid inside the container volatilizes into gas and diffuses from the damage). In turn, the volatilization into gas increases the gas concentration of the gas in a small area around it. Therefore, the first preset threshold can be configured to measure the gas concentration when the mouth of the container is slightly damaged. In another case, when the mouth of the container is opened (for example, the mouth of the container is sealed by the packaging part and the packaging part is removed), the liquid inside the container comes into contact with the external environment and volatilizes into gas to diffuse out of the bottle mouth, resulting in The gas concentration of the gas in a small area around the mouth of the container is increased. Therefore, the second preset threshold can be configured to measure the gas concentration when the mouth of the container is opened. Then, when the first gas concentration exceeds the first preset threshold and does not exceed the second preset threshold, it can be determined that the container mouth is damaged; when the first gas concentration exceeds the second preset threshold At this time, it can be determined that the container mouth is opened. Among them, as compared with the case of damage to the container mouth, more gas diffuses from the inside of the container when the container mouth is opened, that is, when the container mouth is opened, the increase in gas concentration near the container mouth is greater. Big. Therefore, the first preset threshold may be set to be smaller than the second preset threshold. In another embodiment, when the mouth of the container is opened, the liquid inside the container comes into contact with the external environment and volatilizes into a gas that diffuses from the mouth of the bottle, causing the gas concentration of the gas in a small area around the mouth of the container to increase. Among them, the region closer to the mouth of the container has a higher gas concentration. Therefore, a second gas sensor can be provided near the mouth of the container. The second gas sensor includes a first detection module and a second detection module. The second detection module is closer to the container mouth. Based on the above-mentioned configuration of the second gas sensor, the container detection device can first obtain the second gas concentration detected by the first detection module and the third gas concentration detected by the second detection module, and based on the first The concentration difference between the second gas concentration and the third gas concentration determines whether the container is complete. Wherein, when the concentration difference between the second gas concentration and the third gas concentration detected at the same time exceeds the third preset threshold, it may be determined that the container mouth is opened. It should be noted that the container detection device can perform steps 202 to 204 at a preset frequency after being turned on to detect the state of the container. Regarding the opening method of the container inspection equipment, for example, the container can be set to be in the open state after being sealed by the encapsulation component; or the server sends a startup command to control the opening of the container inspection equipment, and the container inspection equipment does not receive the startup instruction When in sleep mode. In addition, the specific values of the first preset threshold, the second preset threshold, and the third preset threshold can be flexibly set according to actual conditions, and one or more embodiments of this specification do not limit this. In this embodiment, when it is determined that the container is incomplete, a notification message that the container status of the container is incomplete can be uploaded to the server, so that the server can mark the container status of the container as incomplete . Among them, the server can configure a database to record the container status of each container. For example, the mapping relationship between the identifier of each container and the container state (for example, it may include a complete state, an incomplete state, an open state, a damaged state, etc.). In one case, based on the container status of each container recorded by the server, the user can send a query request to the server through the client to obtain the container status of any container. In another case, when the container inspection device establishes a short-distance wireless connection with the user terminal, the user can send an acquisition instruction for the container state to the container inspection device through the user terminal, so that the container inspection device sends the acquisition instruction to the container inspection device after receiving the acquisition instruction. The client returns the judgment result. For ease of understanding, the following takes the container as a wine bottle as an example to describe the detection scheme of the container state in this specification in detail. Embodiment 1 Please refer to FIG. 3, which is a schematic diagram of a first gas sensor 111 provided by an exemplary embodiment. As shown in FIG. 3A, the container detection device 11 may be arranged near the mouth P of the wine bottle 31, and the wine bottle 31 is sealed by the stopper 311. Among them, the container detection device 11 includes a first gas sensor 111. As shown in FIG. 3B, when the stopper 311 is opened, the alcohol inside the wine bottle 31 volatilizes and diffuses out of the bottle mouth P, which causes the gaseous alcohol concentration near the bottle mouth P to increase. Similarly, when there is damage near the bottle mouth P, the gaseous alcohol concentration near the bottle mouth P will also increase. Therefore, it is possible to determine whether the wine bottle 31 is opened or broken based on the alcohol concentration near the mouth P. As shown in FIG. 4, FIG. 4 is a flowchart of another method for detecting the state of a container provided by an exemplary embodiment. As shown in FIG. 4, the method is applied to the container inspection device 11, and may include the following steps: Step 402, obtain the first gas concentration. In this embodiment, the first gas concentration is collected by the first gas sensor 111 (for example, it may be an alcohol gas concentration detector). Step 404: Determine whether the first gas concentration exceeds a first preset threshold, if it exceeds, then go to step 406A, otherwise go to step 406B. In step 406A, it is determined whether the first gas concentration exceeds a second preset threshold, if it exceeds, then go to step 408A, otherwise go to step 408B. In this embodiment, the first preset threshold and the second preset threshold can be flexibly set according to actual conditions, and one or more embodiments of this specification do not limit this. Among them, due to the damage of the bottle mouth P, when the bottle mouth P is opened (for example, the cork 311 is opened), there is relatively more gaseous alcohol diffused from the inside of the wine bottle, that is, when the bottle mouth P is opened The increase in the concentration of gaseous alcohol near the bottle mouth P is even greater. Therefore, the first preset threshold can be set to be smaller than the second preset threshold. In step 406B, it is determined that the wine bottle is complete. In step 408A, it is determined that the bottle mouth is opened. In step 408B, it is determined that the bottle mouth is damaged. In this embodiment, when the first gas concentration exceeds the first preset threshold and does not exceed the second preset threshold, it can be determined that the bottle mouth P is damaged (for example, small cracks caused by collision); when the first gas concentration When the second preset threshold is exceeded, it can be determined that the bottle mouth P is opened. For example, assume that the first preset threshold is 0.5 mg/m 3 and the second preset threshold is 1 mg/m 3 . Then, when the first gas concentration is 0.6 mg/m 3 , it can be determined that the bottle mouth P is slightly damaged; when the first gas concentration is 1.1 mg/m 3 , it can be determined that the bottle mouth P is opened. Embodiment 2 Please refer to FIG. 5, which is a schematic diagram of the second gas sensor 112 provided by an exemplary embodiment. As shown in FIG. 5A, the container detection device 11 can be arranged near the mouth P of the wine bottle 31, and the wine bottle 31 is sealed by the stopper 311. Among them, the container detection equipment 11 includes a second gas sensor 112, and the second gas sensor 112 includes a first detection module 1121 and a second detection module 1122. The first detection module 1121 is compared with the second detection module. Group 1122 is closer to the bottle mouth P. As shown in FIG. 3B, when the stopper 311 is opened, the alcohol inside the wine bottle 31 volatilizes and diffuses out of the bottle mouth P, which causes the gaseous alcohol concentration near the bottle mouth P to increase. Among them, the closer to the bottle mouth P, the higher the concentration of gaseous alcohol. Therefore, it can be determined whether the wine bottle 31 is opened (that is, whether the cork 311 is opened) based on the difference between the gaseous alcohol concentration collected by the first detection module 1121 and the second detection module 1122. As shown in FIG. 6, FIG. 6 is a flowchart of another method for detecting the state of a container provided by an exemplary embodiment. As shown in Fig. 6, the method is applied to the container inspection device 11, and may include the following steps: Step 602: Obtain the second gas concentration. Step 604: Obtain the third gas concentration. In this embodiment, the second gas concentration is collected by the first detection module 1121 (for example, an alcohol gas concentration detector), and the third gas concentration is collected by the second detection module 1122 (for example, it may be an alcohol gas concentration). Detector). Step 606: Calculate the concentration difference between the second gas concentration and the third gas concentration. Step 608: Determine whether the concentration difference exceeds the third preset threshold, if it exceeds, then go to step 610; otherwise, go to step 612. In this embodiment, when the bottle stopper 311 is opened, since the first detection module 1121 is closer to the bottle opening P than the second detection module 1122, the second gas concentration should be greater than the third gas concentration at the same time . Therefore, a third preset threshold can be set to measure the concentration difference between the second gas concentration and the third gas concentration. Wherein, when the concentration difference between the second gas concentration and the third gas concentration detected at the same time exceeds the third preset threshold, it can be determined that the bottle mouth P is opened (that is, the bottle stopper 311 is opened). Of course, the specific value of the third preset threshold can be flexibly set according to actual conditions, which is not limited by one or more embodiments of this specification. In step 610, it is determined that the bottle mouth is opened. In step 612, it is determined that the wine bottle is complete. For example, assume that the third threshold is 0.4 mg/m 3 . Then, if the concentration difference between the second gas concentration and the third gas concentration exceeds 0.4 mg/m 3 , it can be determined that the bottle mouth P is opened; otherwise, it can be determined that the wine bottle 31 is complete. In the container state detection solution in this specification, the container detection device 11 may also interact with the user end 12 and the server 13 to determine the results. As shown in FIG. 7, the interaction process between the container inspection device 11 and the server 13 may include the following steps: Step 702, the container inspection device determines whether the wine bottle is complete. In this embodiment, the determination process of the container inspection device 11 can refer to the embodiment shown in FIGS. 3-6, which will not be repeated here. Step 704: The container inspection device uploads a notification message that the status of the wine bottle is incomplete to the server. Step 706, the server marks the status of the wine bottle. In this embodiment, when the container inspection device 11 determines that the wine bottle 31 is incomplete, it can upload a notification message that the wine bottle status is incomplete to the server 13 so that the server 13 will mark the wine bottle status of the wine bottle 31 as incomplete. Among them, the server 13 can configure a database to record the bottle status of each wine bottle. For example, the server 12 can maintain the mapping relationship shown in Table 1 according to the received notification messages sent from each container inspection device: Table 1 When the container inspection device 11 establishes a short-distance wireless connection with the user terminal 12, the user can send the container state acquisition instruction to the container inspection device 11 through the user terminal 12, so that the container inspection device 11 receives the acquisition instruction The determination result is returned to the user terminal 12 to learn the status of the wine bottle (for example, it can be learned whether the wine bottle has been opened or whether it is damaged). As shown in FIG. 8, the interaction process between the container inspection device 11 and the user terminal 12 may include the following steps: Step 802, the container inspection device determines whether the wine bottle is complete. In this embodiment, the determination process of the container inspection device 11 can refer to the embodiment shown in FIGS. 3-6, which will not be repeated here. Step 804: The container inspection device establishes a short-range wireless connection with the user terminal. In this embodiment, the user can use the user terminal 12 to establish a connection with the container inspection device 11 through Bluetooth, NFC, RFID, etc., to interact with the container inspection device 11 and obtain the determination result of the container inspection device 11. Among them, the user terminal 12 may be a mobile phone. Of course, a mobile phone is only a type of electronic device that the user can use. In fact, users can obviously also use electronic devices such as the following types: tablet devices, notebook computers, palmtop computers, wearable devices (such as smart glasses, smart watches, etc.). One or more implementations of this manual The example does not limit this. Step 806: The user terminal sends an acquisition instruction to the container inspection device. Step 808, the container inspection device returns the determination result to the user terminal. In step 810, the user terminal displays the determination result returned by the container inspection device. It should be noted that the user can also establish a connection with the server 13 through the user terminal 12 to obtain the bottle status recorded by the server 13. For example, a link (such as a QR code, a website address, etc.) for requesting the status of the wine bottle from the server 13 may be marked on the wine bottle. Then the user can use the mobile phone or other user terminal 12 to request the server 13 to query the status of the wine bottle according to the link (by sending the query request, the query request contains the identification of the wine bottle), and return it according to the server 13 (after receiving the query request) Return) The status of the wine bottle recorded by itself to judge whether the wine bottle has been opened. Since this process is similar to the principle of the embodiment shown in FIG. 8, it will not be repeated here. Fig. 9 is a schematic structural diagram of an electronic device according to an exemplary embodiment. Please refer to Figure 9. At the hardware level, the device includes a processor 902, an internal bus 904, a network interface 906, a memory 908, and a non-volatile memory 910. Of course, it may also include hardware required for other services. . The processor 902 reads the corresponding computer program from the non-volatile memory 910 to the memory 908 and then runs it to form a detection device for the container status on a logical level. Of course, in addition to software implementation, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., which means that the execution body of the following processing flow is not limited to Each logical unit can also be a hardware or a logical device. 10, in the software implementation, the device for detecting the state of the container may include: an obtaining unit 1001, which obtains the gas concentration of the gas to be detected near the container (contains volatile liquid in the container), and the gas to be detected Is the gas obtained by volatilization of the volatile liquid; the determining unit 1002 determines whether the container is complete based on the gas concentration. Optionally, a first gas sensor is provided near the mouth of the container, and the first gas sensor is used to detect the gas concentration of the gas to be detected; the acquiring unit 1001 is specifically configured to: The first gas concentration detected by the first gas sensor; the determining unit 1002 is specifically configured to: determine whether the container mouth is complete based on the first gas concentration. Optionally, the determining unit 1002 is further configured to: when the first gas concentration exceeds a first preset threshold and does not exceed a second preset threshold, determine that the container mouth is damaged; When the gas concentration exceeds the second preset threshold, it is determined that the container mouth is opened; wherein the first preset threshold is smaller than the second preset threshold. Optionally, a second gas sensor is provided near the mouth of the container, and the second gas sensor includes a first detection module and a second detection module, and the first detection module corresponds to Is closer to the container mouth than the second detection module; the acquisition unit 1001 is specifically configured to: acquire the second gas concentration detected by the first detection module and the second detection module The detected third gas concentration; the determining unit 1002 is specifically configured to: determine the container when the concentration difference between the second gas concentration and the third gas concentration detected at the same time exceeds a third preset threshold The mouth is opened. Optionally, it further includes: an uploading unit 1003, when it is determined that the container is incomplete, upload a notification message that the container status of the container is incomplete to the server, so that the server can update the container status of the container Mark as incomplete. Optionally, it further includes: a returning unit 1004, when a short-distance wireless connection is established with the user terminal, if an instruction for acquiring the container status sent by the user terminal is received, the determination result is returned to the user terminal. The systems, devices, modules or units explained in the above embodiments may be implemented by computer chips or entities, or implemented by products with certain functions. A typical implementation device is a computer. The specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email receiving and sending device, and a game. Console, tablet, wearable device, or a combination of any of these devices. In a typical configuration, a computer includes one or more processors (CPU), input/output interfaces, network interfaces, and memory. Memory may include non-permanent memory in computer-readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory ( flash RAM). Memory is an example of computer-readable media. Computer-readable media includes permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), and other types of random access memory (RAM) , Read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital multi-function disc (DVD) or other optical storage, magnetic cassette, magnetic disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media, which can be used for storage and can be accessed by computing devices Information. According to the definition in this article, computer-readable media does not include transient computer-readable media (transitory media), such as modulated data signals and carrier waves. It should also be noted that the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, product or equipment including a series of elements not only includes those elements, but also includes Other elements that are not explicitly listed, or they also include elements inherent to such processes, methods, commodities, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity or equipment including the element. The foregoing describes specific embodiments of this specification. Other embodiments are within the scope of the attached patent application. In some cases, the actions or steps described in the scope of the patent application may be performed in a different order from the embodiment and still achieve desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown in order to achieve the desired result. In some embodiments, multiplexing and parallel processing are also possible or may be advantageous. The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms "a", "the" and "the" used in one or more embodiments of this specification and the scope of the appended patent application are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and/or" as used herein refers to and includes any or all possible combinations of one or more associated listed items. It should be understood that although the terms first, second, third, etc. may be used to describe various information in one or more embodiments of this specification, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first information can also be referred to as second information, and similarly, the second information can also be referred to as first information. Depending on the context, the word "if" as used herein can be interpreted as "when" or "when" or "in response to certainty". The above descriptions are only the preferred embodiments of one or more embodiments of this specification, and are not used to limit one or more embodiments of this specification. All within the spirit and principle of one or more embodiments of this specification, Any modification, equivalent replacement, improvement, etc. made should be included in the protection scope of one or more embodiments of this specification.