TWI779961B - Sound playback method equipment and computer-readable storage medium - Google Patents

Sound playback method equipment and computer-readable storage medium Download PDF

Info

Publication number
TWI779961B
TWI779961B TW110146182A TW110146182A TWI779961B TW I779961 B TWI779961 B TW I779961B TW 110146182 A TW110146182 A TW 110146182A TW 110146182 A TW110146182 A TW 110146182A TW I779961 B TWI779961 B TW I779961B
Authority
TW
Taiwan
Prior art keywords
sound
virtual object
weather
scene
airborne
Prior art date
Application number
TW110146182A
Other languages
Chinese (zh)
Other versions
TW202241570A (en
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 大陸商深圳市慧鯉科技有限公司
Application granted granted Critical
Publication of TWI779961B publication Critical patent/TWI779961B/en
Publication of TW202241570A publication Critical patent/TW202241570A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Abstract

The embodiments of the present disclosure relate to a sound playback method, equipment, and computer-readable storage medium. The method includes: determining a first position of the AR device in an augmented reality AR scene; and determining a virtual object in the AR scene according to the first position, obtain the weather conditions of the real geographic location where the AR device is located; in the case that the virtual object can make a sound based on the weather conditions, play the sound through the AR device.

Description

聲音播放方法、設備、電腦可讀儲存介質Sound playback method, device, and computer-readable storage medium

本發明關於電腦技術領域,尤其關於聲音播放方法、設備、電腦可讀儲存介質。The present invention relates to the field of computer technology, in particular to a sound playing method, device, and computer-readable storage medium.

擴增實境(augment reality,AR)技術,能夠將真實世界資訊和虛擬世界資訊相結合,將虛擬的資訊應用到真實世界,被人類感官所感知,從而達到超越現實的感官體驗。在AR技術中,會將真實環境和虛擬物件即時地疊加到同一個畫面中,在畫面中,虛擬物體可以與真實環境相契合。Augmented reality (augment reality, AR) technology can combine real world information and virtual world information, apply virtual information to the real world, and be perceived by human senses, so as to achieve a sensory experience beyond reality. In AR technology, the real environment and virtual objects are superimposed on the same screen in real time, and in the screen, the virtual objects can match the real environment.

在AR技術中,讓虛擬資訊更好地與真實環境相結合,能夠更好地提高使用者體驗。In AR technology, better combining virtual information with the real environment can better improve user experience.

本發明實施例提出了一種聲音播放技術方案。The embodiment of the present invention proposes a sound playback technical solution.

根據本發明實施例的一方面,提供了一種聲音播放方法,包括: 在擴增實境AR場景中,確定AR設備的第一位置; 根據所述第一位置,確定所述AR場景中的虛擬物體; 獲取所述AR設備所在的真實地理位置的天氣狀況; 在所述虛擬物體基於所述天氣狀況能夠發出聲音的情況下,通過所述AR設備播放所述聲音。 According to an aspect of the embodiments of the present invention, a sound playing method is provided, including: In the augmented reality AR scene, determine the first position of the AR device; determining a virtual object in the AR scene according to the first position; Obtaining the weather condition of the real geographic location where the AR device is located; If the virtual object can emit a sound based on the weather condition, the AR device is used to play the sound.

根據本發明實施例的一方面,提供了一種聲音播放裝置,包括: 第一位置確定模組,配置為在擴增實境AR場景中,確定AR設備的第一位置; 虛擬物體確定模組,配置為根據所述第一位置,確定所述AR場景中的虛擬物體; 天氣狀況確定模組,配置為獲取所述AR設備所在的真實地理位置的天氣狀況; 聲音播放模組,配置為在所述虛擬物體基於所述天氣狀況能夠發出聲音的情況下,通過所述AR設備播放所述聲音。 According to an aspect of the embodiments of the present invention, a sound playback device is provided, including: The first position determination module is configured to determine the first position of the AR device in the augmented reality AR scene; A virtual object determination module configured to determine a virtual object in the AR scene according to the first position; The weather condition determining module is configured to obtain the weather condition of the real geographic location where the AR device is located; The sound playing module is configured to play the sound through the AR device when the virtual object can make a sound based on the weather condition.

根據本發明實施例的一方面,提供了一種電子設備,包括:處理器;配置為儲存處理器可執行指令的記憶體;其中,所述處理器被配置為調用所述記憶體儲存的指令,以執行上述方法。According to an aspect of an embodiment of the present invention, there is provided an electronic device, including: a processor; a memory configured to store instructions executable by the processor; wherein, the processor is configured to call the instructions stored in the memory, to perform the above method.

根據本發明實施例的一方面,提供了一種電腦可讀儲存介質,其上儲存有電腦程式指令,所述電腦程式指令被處理器執行時實現上述方法。According to an aspect of the embodiments of the present invention, a computer-readable storage medium is provided, on which computer program instructions are stored, and the above-mentioned method is implemented when the computer program instructions are executed by a processor.

根據本發明實施例的一方面,提供了一種電腦程式,包括電腦可讀代碼,當所述電腦可讀代碼在電子設備中運行時,所述電子設備中的處理器執行用於實現上述方法。According to an aspect of the embodiments of the present invention, a computer program is provided, including computer readable codes, and when the computer readable codes are run in an electronic device, a processor in the electronic device is executed to implement the above method.

根據本發明實施例的一方面,提供了一種電腦程式產品,所述電腦程式產品包括一條或多條指令,所述一條或多條指令適於由處理器載入並執行上述方法中的步驟。According to an aspect of the embodiments of the present invention, a computer program product is provided, the computer program product includes one or more instructions, and the one or more instructions are suitable for being loaded by a processor and executing the steps in the above method.

在本發明實施例中,在使用者使用AR設備的過程中,AR設備播放的聲音考慮了使用者所處位置的天氣狀況對AR場景中虛擬物體的影響,在虛擬物體基於天氣狀況能夠發出聲音的情況下,通過AR設備播放聲音,使得AR設備播放的虛擬資訊更好地與真實情況相結合,使用者體驗更加真實,提高了使用者體驗。In the embodiment of the present invention, when the user is using the AR device, the sound played by the AR device takes into account the influence of the weather conditions of the user's location on the virtual objects in the AR scene, and the virtual objects can emit sounds based on the weather conditions. In some cases, the sound is played through the AR device, so that the virtual information played by the AR device can be better combined with the real situation, the user experience is more real, and the user experience is improved.

應當理解的是,以上的一般描述和後文的細節描述僅是示例性和解釋性的,而非限制本發明。根據下面參考附圖對示例性實施例的詳細說明,本發明的其它特徵及方面將變得清楚。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. Other features and aspects of the present invention will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.

以下將參考附圖詳細說明本發明的各種示例性實施例、特徵和方面。附圖中相同的附圖標記表示功能相同或相似的元件。儘管在附圖中示出了實施例的各種方面,但是除非特別指出,不必按比例繪製附圖。Various exemplary embodiments, features, and aspects of the invention will be described in detail below with reference to the accompanying drawings. The same reference numbers in the figures indicate functionally identical or similar elements. While various aspects of the embodiments are shown in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.

在這裡專用的詞“示例性”意為“用作例子、實施例或說明性”。這裡作為“示例性”所說明的任何實施例不必解釋為優於或好於其它實施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as superior or better than other embodiments.

本文中術語“和/或”,僅僅是一種描述關聯物件的關聯關係,表示可以存在三種關係,例如,A和/或B,可以表示:單獨存在A,同時存在A和B,單獨存在B這三種情況。另外,本文中術語“至少一種”表示多種中的任意一種或多種中的至少兩種的任意組合,例如,包括A、B、C中的至少一種,可以表示包括從A、B和C構成的集合中選擇的任意一個或多個元素。The term "and/or" in this article is just a description of the associated relationship between related objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone. three conditions. In addition, the term "at least one" herein means any one or any combination of at least two of the plurality, for example, including at least one of A, B, and C, may mean including the composition consisting of A, B, and C Any one or more elements selected in the collection.

另外,為了更好地說明本發明,在下文的具體實施方式中給出了眾多的具體細節。本領域技術人員應當理解,沒有某些具體細節,本發明同樣可以實施。在一些實例中,對於本領域技術人員熟知的方法、手段、元件和電路未作詳細描述,以便於凸顯本發明的主旨。In addition, in order to better illustrate the present invention, numerous specific details are given in the specific embodiments below. It will be understood by those skilled in the art that the present invention may be practiced without certain of the specific details. In some instances, methods, means, components and circuits well known to those skilled in the art have not been described in detail in order to highlight the gist of the present invention.

擴增實境,也被稱為混合現實,它是在虛擬實境的基礎上發展起來的新興技術,可以在使用者看到的真實環境上疊加上由電腦生成的虛擬景象。Augmented reality, also known as mixed reality, is an emerging technology developed on the basis of virtual reality, which can superimpose a virtual scene generated by a computer on the real environment seen by the user.

擴增實境技術將電腦生成的虛擬物體或系統提示資訊疊加到真實場景中,從而實現對現實的“擴增”。例如,可以將電腦生成的虛擬物體或關於真實物體的資訊,疊加到圖像採集設備採集的真實世界的影像中,實現了對真實世界的擴增。Augmented reality technology superimposes computer-generated virtual objects or system prompt information on the real scene, thereby realizing the "amplification" of reality. For example, computer-generated virtual objects or information about real objects can be superimposed on images of the real world captured by the image acquisition device, thereby realizing the amplification of the real world.

在本發明實施例中,在使用者使用AR設備的過程中,AR設備播放的聲音考慮了使用者所處位置的天氣狀況對AR場景中虛擬物體的影響,在虛擬物體基於天氣狀況能夠發出聲音的情況下,通過AR設備播放聲音,使得AR設備播放的虛擬資訊更好地與真實情況相結合,使用者體驗更加真實,提高了使用者體驗。In the embodiment of the present invention, when the user is using the AR device, the sound played by the AR device takes into account the influence of the weather conditions of the user's location on the virtual objects in the AR scene, and the virtual objects can emit sounds based on the weather conditions. In some cases, the sound is played through the AR device, so that the virtual information played by the AR device can be better combined with the real situation, the user experience is more real, and the user experience is improved.

本發明實施例提供的聲音播放方法可以由終端設備或伺服器等電子設備執行,終端設備可以為使用者設備(User Equipment,UE)、移動設備、使用者終端、終端、蜂窩電話、無線電話、個人數位助理(Personal Digital Assistant,PDA)、手持設備、計算設備、車載設備、可穿戴設備等,所述方法可以通過處理器調用記憶體中儲存的電腦可讀指令的方式來實現。或者,可通過伺服器執行所述方法。The sound playing method provided by the embodiment of the present invention can be executed by electronic equipment such as a terminal device or a server, and the terminal device can be user equipment (User Equipment, UE), mobile device, user terminal, terminal, cellular phone, wireless phone, For a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc., the method can be realized by calling a computer-readable instruction stored in a memory by a processor. Alternatively, the method may be performed by a server.

圖1示出根據本發明實施例的聲音播放方法的流程圖,如圖1所示,所述聲音播放方法包括以下步驟。Fig. 1 shows a flowchart of a sound playing method according to an embodiment of the present invention. As shown in Fig. 1 , the sound playing method includes the following steps.

在步驟S11中,在擴增實境AR場景中,確定AR設備的第一位置。In step S11, in the augmented reality AR scene, a first position of the AR device is determined.

AR場景是虛擬的場景,該場景可以是基於真實場景構建的虛擬的場景。例如,在AR技術中,會通過對真實場景中的地理物件進行空間重建,來構建場景模型,場景模型用來表徵真實場景中的三維結構,可以通過三維重建技術來得到,例如,可以通過運動恢復結構(Structure From motion,SFM)空間重建技術,來構建三維的場景模型,這裡的場景模型可以用作AR場景。The AR scene is a virtual scene, and the scene may be a virtual scene constructed based on a real scene. For example, in AR technology, the scene model will be constructed by spatially reconstructing the geographical objects in the real scene. The scene model is used to represent the 3D structure in the real scene, which can be obtained through 3D reconstruction technology, for example, through motion Restore structure (Structure From motion, SFM) space reconstruction technology to construct a three-dimensional scene model, where the scene model can be used as an AR scene.

當AR設備位於真實場景中的某個實際位置時,可以掃描周圍的場景資訊(例如圖像、深度資訊),然後利用該場景資訊與AR場景(例如場景模型)中的資訊進行匹配,匹配成功後,即可確定AR設備在AR場景中的第一位置。When the AR device is at an actual position in the real scene, it can scan the surrounding scene information (such as image, depth information), and then use the scene information to match with the information in the AR scene (such as the scene model), and the match is successful After that, the first position of the AR device in the AR scene can be determined.

在步驟S12中,根據所述第一位置,確定所述AR場景中室外的虛擬物體。In step S12, an outdoor virtual object in the AR scene is determined according to the first position.

AR場景中的虛擬物體顯示於AR設備的顯示介面中,虛擬物體不存在於使用者所在的真實場景中,AR設備的圖像採集模組還可以採集使用者所在的真實場景的圖像,並即時地顯示於AR設備的顯示介面中。The virtual objects in the AR scene are displayed on the display interface of the AR device, and the virtual objects do not exist in the real scene where the user is. The image acquisition module of the AR device can also collect images of the real scene where the user is, and It is displayed in the display interface of the AR device in real time.

AR場景中虛擬物體的擺放可以是基於前文所述的場景模型來實現的。在一些實現方式中,在通過視覺化介面在真實場景中顯示虛擬物體的過程中,會將構建的場景模型與AR設備即時採集的真實場景進行匹配,匹配成功後,即可將設置於場景模型中某一位置的虛擬物體,顯示於AR設備即時採集的真實場景中的對應位置處,實現了虛擬物體在真實場景中的擺放。The arrangement of virtual objects in the AR scene can be realized based on the scene model mentioned above. In some implementations, in the process of displaying virtual objects in the real scene through the visual interface, the constructed scene model will be matched with the real scene collected by the AR device in real time. After the matching is successful, the scene model can be set The virtual object at a certain position in the AR device is displayed at the corresponding position in the real scene collected by the AR device in real time, realizing the placement of the virtual object in the real scene.

顯然,AR場景中的虛擬物體的位置是已知的,那麼根據AR場景中AR設備的第一位置,即可確定AR場景中室外的虛擬物體。這裡確定出的室外的虛擬物體,可以是第一位置周邊預設距離內的虛擬物體,也可以是第一位置周邊擺放的使用者可見的虛擬物體,等等。Obviously, the position of the virtual object in the AR scene is known, so the outdoor virtual object in the AR scene can be determined according to the first position of the AR device in the AR scene. The outdoor virtual object determined here may be a virtual object within a preset distance around the first location, or a virtual object visible to the user placed around the first location, and so on.

考慮到室外的虛擬物體受天氣影響往往會比較明顯,因此,可以確定AR場景中室外的虛擬物體,如前文所述,虛擬物體的位置是已知的,那麼,根據虛擬物體的位置,即可以確定虛擬物體是在室內還是室外。此外,這裡的室外可以是AR場景中的室外,開發人員可以根據要擺放的虛擬物體的位置,預先標定虛擬物體是位於室內還是室外。Considering that outdoor virtual objects are often affected by the weather, it is possible to determine the outdoor virtual objects in the AR scene. As mentioned above, the position of the virtual object is known. Then, according to the position of the virtual object, it can be Determine whether the virtual object is indoors or outdoors. In addition, the outdoor here can be the outdoor in the AR scene, and developers can pre-calibrate whether the virtual object is located indoors or outdoors according to the position of the virtual object to be placed.

在步驟S13中,獲取所述AR設備所在的真實地理位置的天氣狀況。In step S13, the weather condition of the real geographic location where the AR device is located is acquired.

AR設備所在的真實地理位置的天氣狀況,可以是使用者在真實場景的地理位置的天氣狀況。The weather condition of the real geographic location where the AR device is located may be the weather condition of the user's geographic location in the real scene.

AR設備所在的真實地理位置天氣狀況的確定方式可以有多種,例如,可以基於AR設備在真實場景的地理位置,通過獲取天氣預報所預報的該地理位置當前的天氣狀況,來快速地獲取AR設備所在的真實地理位置的天氣狀況;此外,還可以基於AR設備的圖像採集設備採集真實場景中室外的圖像資訊,根據室外的圖像資訊,通過圖像分析技術來確定圖像中的天氣狀況,從而確定AR設備所在的真實地理位置的天氣狀況,以準確地確定AR設備所在的真實地理位置的天氣狀況。There are many ways to determine the weather conditions of the real geographic location where the AR device is located. For example, based on the geographic location of the AR device in the real scene, the AR device can be quickly obtained by obtaining the current weather conditions of the geographic location predicted by the weather forecast. The weather conditions of the real geographical location; in addition, the image acquisition equipment based on the AR device can also collect the outdoor image information in the real scene, and determine the weather in the image through image analysis technology according to the outdoor image information conditions, so as to determine the weather conditions of the real geographic location where the AR device is located, so as to accurately determine the weather conditions of the real geographic location where the AR device is located.

在步驟S14中,在所述虛擬物體基於所述天氣狀況能夠發出聲音的情況下,通過所述AR設備播放所述聲音。In step S14, if the virtual object can emit sound based on the weather condition, play the sound through the AR device.

虛擬物體基於天氣狀況能夠發出聲音,可以是虛擬物體對應的真實物體受天氣狀況影響能夠發出聲音,例如,對於AR場景中的虛擬物體“樹”,由於真實的“樹”在被風吹、被雨打時會發出聲音,則可以確定虛擬物體“樹”基於天氣狀況能夠發出聲音。The virtual object can emit sound based on the weather conditions. It can be that the real object corresponding to the virtual object can emit sound due to the influence of the weather condition. If it makes a sound when hit, it can be determined that the virtual object "tree" can make a sound based on the weather conditions.

那麼,在虛擬物體基於天氣狀況能夠發出聲音的情況下,可以通過AR設備播放該聲音,使用者的交互體驗更好。該聲音可以與AR場景中的其它聲音疊加播放,也可單獨播放,AR設備可以通過設備自帶的揚聲器播放該聲音,或者可以通過設備連接的播放設備播放該聲音。Then, in the case that the virtual object can emit a sound based on the weather condition, the sound can be played through the AR device, and the user's interaction experience is better. The sound can be superimposed and played with other sounds in the AR scene, or played separately. The AR device can play the sound through the built-in speaker of the device, or can play the sound through the playback device connected to the device.

在本發明實施例中,在使用者使用AR設備的過程中,AR設備播放的聲音考慮了使用者所處位置的天氣狀況對AR場景中虛擬物體的影響。在虛擬物體基於天氣狀況能夠發出聲音的情況下,通過AR設備播放聲音,使得AR設備播放的虛擬資訊更好地與真實情況相結合,使用者體驗更加真實,提高了使用者體驗。In the embodiment of the present invention, when the user is using the AR device, the sound played by the AR device takes into account the impact of the weather conditions at the user's location on the virtual objects in the AR scene. In the case that the virtual object can emit sound based on the weather conditions, the sound is played through the AR device, so that the virtual information played by the AR device can be better combined with the real situation, and the user experience is more realistic and the user experience is improved.

在一種可能的實現方式中,在所述獲取所述AR設備所在的真實地理位置的天氣狀況後,所述通過所述AR設備播放所述聲音前,所述方法還包括:檢測所述天氣狀況下是否存在產生聲音的發聲條件;在檢測到所述發聲條件的情況下,確定所述虛擬物體基於所述天氣狀況能夠發出聲音。In a possible implementation manner, after acquiring the weather condition of the real geographic location where the AR device is located and before playing the sound through the AR device, the method further includes: detecting the weather condition Whether there is a sounding condition for generating sound; if the sounding condition is detected, it is determined that the virtual object can make a sound based on the weather condition.

考慮到虛擬物體在某些天氣狀況下並不一定會發出聲音,例如,在晴天無風的天氣狀況下,室外的樹木、水面往往不會發出聲音;而在某些天氣狀況下會發出聲音,例如,室外的樹木受風吹時會發出聲音,室外的樹木、地面、水面受雨拍打會發出聲音。因此,可以檢測是否存在產生聲音的發聲條件。Considering that virtual objects do not necessarily make sounds under certain weather conditions, for example, in sunny and windless weather conditions, outdoor trees and water surfaces often do not make sounds; while under certain weather conditions, they will make sounds, such as , the outdoor trees will make a sound when they are blown by the wind, and the outdoor trees, ground, and water will make a sound when they are slapped by rain. Therefore, it is possible to detect whether or not there is a utterance condition that produces sound.

該發聲條件可以包括下述至少一種:所述天氣狀況下存在空中降落物;所述天氣狀況下存在風,且所述虛擬物體被風吹時能夠發出聲音。空中降落物包括雨滴、冰雹、雪中的至少一種。對發聲條件的進一步示例,可參見後文提供的可能的實現方式,本發明實施例對此不作限定。The sounding condition may include at least one of the following: there is an airborne object in the weather condition; there is wind in the weather condition, and the virtual object can make a sound when it is blown by the wind. Airfalls include at least one of raindrops, hail, and snow. For further examples of sounding conditions, refer to the possible implementation manners provided later, which are not limited in this embodiment of the present invention.

在本發明實施例中,在確定AR場景中的虛擬物體後,可以檢測是否存在產生聲音的發聲條件,在檢測到存在發聲條件的情況下,即確定虛擬物體基於天氣狀況能夠發出聲音,即可通過AR設備播放該聲音,使用者體驗更加真實,提高了使用者體驗。In the embodiment of the present invention, after the virtual object in the AR scene is determined, it can be detected whether there is a sounding condition for producing sound, and if the sounding condition is detected, it is determined that the virtual object can make sound based on the weather condition By playing the sound through the AR device, the user experience is more real and the user experience is improved.

在一種可能的實現方式中,所述發聲條件包括所述天氣狀況下存在空中降落物,所述空中降落物包括雨滴、冰雹、雪中的至少一種;所述檢測所述天氣狀況下是否存在產生聲音的發聲條件,包括:根據所述天氣狀況確定是否存在所述空中降落物;所述在檢測到所述發聲條件的情況下,確定所述虛擬物體基於所述天氣狀況能夠發出聲音,包括:在存在所述空中降落物的情況下,確定所述虛擬物體基於所述天氣狀況能夠發出聲。In a possible implementation manner, the sounding condition includes the existence of airborne falling objects under the weather conditions, and the airborne falling objects include at least one of raindrops, hail, and snow; The sounding condition of the sound includes: determining whether there is the falling object in the air according to the weather condition; in the case of detecting the sounding condition, determining that the virtual object can make a sound based on the weather condition, including: In the presence of the airborne object, it is determined that the virtual object is capable of making a sound based on the weather condition.

空中降落物可以是某些天氣狀況下自然降落的物體,例如,下雨天降落的雨滴,冰雹天氣降落的冰雹、雪天降落的雪花等等。考慮到空中降落物與室外的虛擬物體接觸時往往能夠發出聲音,例如,室外的樹木、地面、水面受雨拍打會發出聲音,因此,天氣狀況下存在空中降落物,可以視為一種可能的發聲條件。The falling objects in the air may be objects that fall naturally under certain weather conditions, for example, raindrops falling on a rainy day, hailstones falling on a hailstorm, snowflakes falling on a snowy day, and the like. Considering that airborne objects can often make sounds when they come into contact with outdoor virtual objects, for example, outdoor trees, ground, and water surfaces will make sounds when they are hit by rain. Therefore, the existence of airborne objects under weather conditions can be regarded as a possible sounding condition.

在根據天氣狀況確定是否存在空中降落物的過程中,可以對AR設備的圖像採集設備採集到的圖像進行圖像分析,來確定是否存在空中降落物;也可以獲取第一位置的天氣狀況,根據天氣狀況來確定是否存在空中降落物,當確定第一位置的天氣為降雨、降雪、冰雹等天氣時,則可以確定存在空中降落物。In the process of determining whether there is an airborne fallout according to the weather conditions, image analysis can be performed on the image collected by the image acquisition device of the AR device to determine whether there is an airborne fallout; the weather condition of the first location can also be acquired , according to the weather conditions to determine whether there is an airborne drop, when it is determined that the weather at the first location is rain, snow, hail, etc., then it can be determined that there is an airborne drop.

在本發明實施例中,在基於天氣狀況確定存在空中降落物的情況下,即可確定虛擬物體基於天氣狀況能夠發出聲音,能夠更加準確地將真實世界中的情況反映至AR場景中。從而通過AR設備播放聲音,使得使用者體驗更加真實,提高了使用者體驗。In the embodiment of the present invention, when it is determined based on the weather conditions that there is a falling object in the air, it can be determined that the virtual object can make a sound based on the weather conditions, which can more accurately reflect the situation in the real world to the AR scene. Therefore, the sound is played through the AR device, making the user experience more real and improving the user experience.

在一種可能的實現方式中,所述發聲條件包括所述天氣狀況下存在風,且所述虛擬物體被風吹時能夠發出聲音;所述檢測所述天氣狀況下是否存在產生聲音的發聲條件,包括:確定所述天氣狀況中的風力等級,以及所述虛擬物體的類型;根據預存的發聲關係庫和所述虛擬物體的類型,確定所述虛擬物體在所述風力等級下是否能夠產生聲音。In a possible implementation manner, the sounding condition includes that there is wind under the weather condition, and the virtual object can make a sound when it is blown by the wind; the detecting whether there is a sounding condition for producing sound under the weather condition includes : Determine the wind level in the weather condition and the type of the virtual object; determine whether the virtual object can produce sound under the wind level according to the pre-stored sounding relationship library and the type of the virtual object.

考慮到室外的虛擬物體在被風吹時往往能夠發出聲音,例如,室外的樹木被風吹時會發出聲音。因此,天氣狀況下存在風,且虛擬物體被風吹時能夠發出聲音,可以視為一種可能的發聲條件。Considering that an outdoor virtual object can often make a sound when it is blown by the wind, for example, an outdoor tree will make a sound when it is blown by the wind. Therefore, there is wind in weather conditions, and the virtual object can make a sound when it is blown by the wind, which can be regarded as a possible sounding condition.

考慮到有些虛擬物體可能在風力達到一定等級的情況下,才能受風吹產生聲音,例如,旗幟在受風力等級為一級的微風吹時往往不會發出聲音,但是當旗幟在受風力等級為三級的風吹時則大概率會產生聲音。因此,在確定是否存在產生聲音的發聲條件的過程中,可以確定天氣狀況中的風力等級,以及虛擬物體的類型,然後再確定該類型的物體在確定的風力等級下是否能夠產生聲音。Considering that some virtual objects may only be blown by the wind to produce sound when the wind force reaches a certain level, for example, a flag will not make a sound when it is blown by a breeze with a wind force level of one, but when the flag is blown by a wind force level of three When the wind blows, there is a high probability that a sound will be produced. Therefore, in the process of determining whether there is a sound producing condition, the wind level in the weather condition and the type of the virtual object can be determined, and then it is determined whether the object of this type can produce sound under the determined wind level.

可以預先構建發聲關係庫,發聲關係庫中可以保存有物體類型和能夠產生聲音的最低風力等級之間的對應關係,對該對應關係示例如下:樹木類對應二級風力,紡織類對應三級風力。而對於虛擬物體的類型,可以預先標定擺放於AR場景中的虛擬物體的類型,也可以依據圖像識別技術識別虛擬物體的類型。The sounding relationship library can be built in advance, and the corresponding relationship between the object type and the lowest wind force level that can produce sound can be stored in the sounding relationship library. The example of the corresponding relationship is as follows: trees correspond to the second-level wind force, and textiles correspond to the third-level wind force . As for the type of virtual object, the type of virtual object placed in the AR scene can be pre-calibrated, and the type of virtual object can also be identified based on image recognition technology.

在確定天氣狀況中的風力等級的過程中,可以獲取天氣預報中預測的第一位置的風力等級,或者,也可以基於AR設備的麥克風等裝置來檢測第一位置的風力等級,對於實施中確定風力等級的方法,本發明實施例不做具體限定。In the process of determining the wind force level in the weather conditions, the wind force level of the first position predicted in the weather forecast can be obtained, or the wind force level of the first position can also be detected based on the microphone of the AR device. The method of the wind level is not specifically limited in this embodiment of the present invention.

在確定了天氣狀況中的風力等級和虛擬物體的類型以後,即可依據該類型從發聲關係庫中確定對應的風力等級。如果確定的風力等級小於天氣狀況中的風力等級,則虛擬物體在當前天氣狀況下能夠產生聲音;如果確定的風力等級大於天氣狀況中的風力等級,則虛擬物體在當前天氣狀況下無法產生聲音。After determining the wind force level in the weather condition and the type of the virtual object, the corresponding wind force level can be determined from the sounding relationship library according to the type. If the determined wind level is smaller than the wind level in the weather condition, the virtual object can produce sound under the current weather condition; if the determined wind level is greater than the wind level in the weather condition, the virtual object cannot produce sound under the current weather condition.

在本發明實施例中,依據天氣狀況中的風力等級和虛擬物體的類型,來確定虛擬物體基於天氣狀況能否發出聲音,能夠更加準確地將真實世界中的情況反映至AR場景中,使得使用者體驗更加真實,提高了使用者體驗。In the embodiment of the present invention, it is determined whether the virtual object can make a sound based on the weather condition according to the wind level in the weather condition and the type of the virtual object, which can more accurately reflect the situation in the real world to the AR scene, so that the user can The user experience is more real and the user experience is improved.

在一種可能的實現方式中,在所述檢測所述天氣狀況下是否存在產生聲音的發聲條件後,所述方法還包括:在檢測到所述發聲條件的情況下,根據所述發聲條件確定所述虛擬物體基於所述天氣狀況所發出的聲音。In a possible implementation manner, after detecting whether there is a sounding condition for generating sound under the weather condition, the method further includes: if the sounding condition is detected, determining the sounding condition according to the sounding condition The virtual object emits a sound based on the weather condition.

不同的發聲條件可能會導致虛擬物體基於天氣狀況發出不同的聲音。因此,在本發明實施例中,可以在檢測到發聲條件的情況下,根據發聲條件來確定虛擬物體基於天氣狀況所發出的聲音。Different sounding conditions may cause virtual objects to make different sounds based on weather conditions. Therefore, in the embodiment of the present invention, the sound emitted by the virtual object based on the weather condition may be determined according to the sound emission condition when the sound emission condition is detected.

例如,不同的虛擬物體,受同一天氣狀況的影響所發出的聲音可能會不同;天氣狀況中的降落物不同,與同一虛擬物體作用發出的聲音也可能會不同。因此,可以根據發聲條件來確定虛擬物體基於天氣狀況所發出的聲音,這樣AR設備播放的聲音更加真實,提高了使用者體驗。本發明實施例對不同情況下發出的聲音不作限定。For example, different virtual objects may produce different sounds under the influence of the same weather condition; falling objects in different weather conditions may produce different sounds when interacting with the same virtual object. Therefore, the sound produced by the virtual object based on the weather condition can be determined according to the sound production condition, so that the sound played by the AR device is more realistic and the user experience is improved. The embodiment of the present invention does not limit the sound emitted in different situations.

在一種可能的實現方式中,在所述發聲條件包括所述天氣狀況下存在空中降落物的情況下,所述根據所述發聲條件確定所述虛擬物體基於所述天氣狀況所發出的聲音,包括:根據獲取到的所述AR設備所在的真實地理位置的天氣狀況,確定所述天氣狀況下的所述空中降落物的類型,以及降落所述空中降落物的氣象等級;根據所述空中降落物的類型確定所述空中降落物落在所述虛擬物體上所發出的聲音;根據所述氣象等級,確定所發出聲音的音量大小。In a possible implementation manner, when the sounding condition includes the presence of airborne objects under the weather condition, the determining the sound produced by the virtual object based on the weather condition according to the sounding condition includes: : According to the obtained weather conditions of the real geographic location where the AR device is located, determine the type of the airborne drop under the weather conditions, and the weather level of the airborne drop; according to the airborne drop The type determines the sound produced by the airborne falling object falling on the virtual object; according to the weather level, the volume of the produced sound is determined.

空中降落物的類型可以根據AR設備所在的真實地理位置的天氣狀況來確定,例如,天氣為降雨時,則降落物為雨滴;天氣為降雪時,則降落物為雪花;天氣為冰雹時,則降落物為冰雹。The type of falling objects in the air can be determined according to the weather conditions of the real geographical location where the AR device is located. For example, when the weather is raining, the falling objects are raindrops; when the weather is snowing, the falling objects are snowflakes; when the weather is hail, then The fallout was hail.

而不同類型的降落物與虛擬物體作用時,所產生的聲音時不同的,可以預先儲存不同類型的降落物與虛擬物體作用時的聲音,當確定了降落物的類型後,即可獲取預先儲存的聲音。When different types of falling objects interact with virtual objects, the sounds produced are different. You can pre-store the sounds of different types of falling objects interacting with virtual objects. When the type of falling objects is determined, you can obtain the pre-stored the sound of.

這裡的氣象等級,可以是用於指示氣象強弱的等級,例如氣象為降雨時,則用於指示降雨等級,往往分為小雨、中雨、大雨等多個等級;氣象為降雪時,往往分為小雪、中雪、大雪等多個等級。考慮到不同的氣象等級下,降落物與虛擬物體作用時產生的聲音大小不同,因此,可以根據氣象等級來確定發出聲音的音量大小,音量與氣象等級成正比。例如,降雨等級越大,則聲音越大。The meteorological level here can be the level used to indicate the strength of the weather. For example, when the weather is rainy, it is used to indicate the level of rainfall, which is often divided into multiple levels such as light rain, moderate rain, and heavy rain; when the weather is snowfall, it is often divided into Light snow, moderate snow, heavy snow and other levels. Considering that under different weather levels, the volume of the sound produced by the falling objects interacting with the virtual object is different. Therefore, the volume of the sound can be determined according to the weather level, and the volume is proportional to the weather level. For example, the greater the rainfall level, the louder the sound.

在本發明實施例中,根據獲取到的AR設備所在的真實地理位置的天氣狀況,確定天氣狀況下的空中降落物的類型,以及降落空中降落物的氣象等級,然後根據空中降落物的類型確定該空中降落物落在虛擬物體上所發出的聲音,並根據所述氣象等級,確定所發出聲音的音量大小。由此AR設備所發出的聲音是依據真實的天氣狀況中的空中降落物的類型以及氣象等級來確定的,能夠更加準確地將真實世界中的情況反映至AR場景中,由此確定的AR設備播放的聲音更加真實,提高了使用者體驗。In the embodiment of the present invention, according to the acquired weather conditions of the real geographic location where the AR device is located, the type of airborne objects under the weather conditions and the meteorological level of the airborne objects are determined, and then determined according to the type of airborne objects The sound produced by the airborne falling object falling on the virtual object, and according to the weather level, determine the volume of the produced sound. The sound emitted by the AR device is determined according to the type of falling objects in the air and the weather level in the real weather conditions, which can more accurately reflect the situation in the real world to the AR scene. The AR device thus determined The sound played is more realistic, which improves the user experience.

在一種可能的實現方式中,在所述發聲條件包括所述天氣狀況下存在風,且所述虛擬物體被風吹時能夠發出聲音的情況下,所述根據所述發聲條件確定所述虛擬物體基於所述天氣狀況所發出的聲音,包括:根據預存的發聲關係庫和所述虛擬物體的類型,確定所述虛擬物體在被風吹時所發出的聲音的聲音類型;根據所述風力等級,確定所發出聲音的音量大小。In a possible implementation manner, when the sounding conditions include wind in the weather condition, and the virtual object can make a sound when it is blown by the wind, the determining the virtual object according to the sounding condition is based on The sound emitted by the weather conditions includes: according to the pre-stored sound relation library and the type of the virtual object, determining the sound type of the sound emitted by the virtual object when it is blown by the wind; The volume at which the sound is emitted.

不同類型的虛擬物體所發出的聲音是不同的,例如,樹木在被風吹時,會發出“簌簌”的聲音,而紡織類的物體(例如旗幟)在被風吹時會發出“呼呼”的聲音。因此,可以基於虛擬物體的類型,來確定虛擬物體被風吹時所發出的聲音的聲音類型。The sounds produced by different types of virtual objects are different. For example, when a tree is blown by the wind, it will make a "rustle" sound, while a textile object (such as a flag) will make a "whoosh" sound when it is blown by the wind. sound. Therefore, based on the type of the virtual object, the sound type of the sound produced by the virtual object when it is blown by the wind can be determined.

虛擬物體的類型和被風吹時所發出的聲音的聲音類型之間的關係可以預先儲存於發聲關係庫中,基於該發聲關係庫,即可得到確定的虛擬物體的類型對應的聲音的聲音類型。The relationship between the type of the virtual object and the sound type of the sound produced when it is blown by the wind can be pre-stored in the sounding relationship library, based on the sounding relationship library, the sound type of the sound corresponding to the determined virtual object type can be obtained.

而風力等級用於指示風力的強弱,當風力越大的情況下,虛擬物體發出的聲音也越大;當風力越小的情況下,虛擬物體發出的聲音也越小。因此,可以根據風力等級,來確定虛擬物體發出的聲音的音量大小。The wind level is used to indicate the strength of the wind. When the wind is stronger, the sound from the virtual object will be louder; when the wind is weaker, the sound from the virtual object will be smaller. Therefore, the volume of the sound emitted by the virtual object can be determined according to the wind force level.

在本發明實施例中,通過根據預存的發聲關係庫和所述虛擬物體的類型,來確定虛擬物體在被風吹時所發出的聲音,並根據所述風力等級,確定所發出聲音的音量大小。由此,AR設備所發出的聲音是依據真實的風力等級和虛擬物體的類型來確定的,能夠更加準確地將真實世界中的情況反映至AR場景中,由此確定的AR設備播放的聲音更加真實,提高了使用者體驗。In the embodiment of the present invention, the sound emitted by the virtual object when blown by the wind is determined according to the pre-stored sound emission relationship library and the type of the virtual object, and the volume of the sound emitted is determined according to the wind force level. Therefore, the sound emitted by the AR device is determined according to the real wind level and the type of the virtual object, which can more accurately reflect the situation in the real world to the AR scene, and the sound played by the AR device thus determined is more accurate. Authentic, improving the user experience.

在一種可能的實現方式中,在獲取所述AR設備所在的真實地理位置的天氣狀況後,所述方法還包括:在所述天氣狀況下存在空中降落物的情況下,在所述虛擬物體上附加所述降落物。In a possible implementation manner, after obtaining the weather conditions of the real geographic location where the AR device is located, the method further includes: in the case of falling objects in the air under the weather conditions, on the virtual object Attach the drop.

在本發明實施例中,如果天氣狀況下存在空中降落物,則可以在虛擬物體上附加該降落物,虛擬物體上所附加的降落物的量,可以與降落空中降落物的氣象等級正相關,例如,降雪等級越高,則虛擬物體上附加的降落物的量越大。由此,能夠將真實世界中的情況反映至AR場景中,使得AR設備顯示的畫面更加真實,提高了使用者體驗。In the embodiment of the present invention, if there is a drop in the air under the weather conditions, the drop can be attached to the virtual object, and the amount of the drop attached to the virtual object can be positively correlated with the meteorological level of the drop in the air. For example, the higher the snowfall level, the greater the amount of falling matter attached to the virtual object. Thus, the situation in the real world can be reflected in the AR scene, so that the picture displayed by the AR device is more realistic, and the user experience is improved.

在一種可能的實現方式中,在獲取所述AR設備所在的真實地理位置的天氣狀況後,所述方法還包括:根據獲取到的所述AR設備所在的真實地理位置的天氣狀況,確定當前室外空氣的能見度;根據所述虛擬物體與所述第一位置之間的距離,以及所述能見度,對所述虛擬物體進行模糊顯示。In a possible implementation manner, after acquiring the weather condition of the real geographic location where the AR device is located, the method further includes: determining the current outdoor weather condition according to the acquired weather condition of the real geographic location where the AR device is located. Visibility of the air: according to the distance between the virtual object and the first position, and the visibility, the virtual object is blurred.

天氣狀況還可以包括能見度,該能見度可以是視力正常的人能將目標物從背景中識別出來的最大距離,能見度可以通過提供氣象服務的協力廠商服務的介面來獲取。The weather condition may also include visibility, which may be the maximum distance at which a person with normal vision can recognize the object from the background, and the visibility may be acquired through an interface of a third-party service that provides weather services.

對虛擬物體進行模糊顯示的程度,可以根據虛擬物體與第一位置之間的距離和能見度來確定。在虛擬物體與第一位置之間的距離為0的情況下,不進行模糊處理;在虛擬物體與第一位置之間的距離大於能見度的情況下,則完全模糊掉虛擬物體不進行顯示;在虛擬物體與第一位置之間的距離小於能見度的情況下,對虛擬物體進行模糊顯示的百分比可以是:虛擬物體與第一位置之間的距離除以能見度。例如,假設能見度為100米,虛擬物體距離第一位置50米,則對虛擬物體進行50%的模糊處理後再顯示。The degree of blurring the virtual object can be determined according to the distance and visibility between the virtual object and the first position. When the distance between the virtual object and the first position is 0, no blurring process is performed; when the distance between the virtual object and the first position is greater than the visibility, the virtual object is completely blurred and not displayed; When the distance between the virtual object and the first position is less than the visibility, the percentage for blurring the virtual object may be: dividing the distance between the virtual object and the first position by the visibility. For example, assuming that the visibility is 100 meters and the virtual object is 50 meters away from the first position, the virtual object is displayed after being blurred by 50%.

在本發明實施例中,通過根據天氣狀況中的能見度,來對虛擬物體進行模糊顯示,由此,能夠將真實世界中的情況反映至AR場景中,使得AR設備顯示的畫面更加真實,提高了使用者體驗。In the embodiment of the present invention, virtual objects are blurred and displayed according to the visibility in weather conditions, thereby reflecting the situation in the real world to the AR scene, making the picture displayed by the AR device more realistic and improving the user experience.

可以理解,本發明提及的上述各個方法實施例,在不違背原理邏輯的情況下,均可以彼此相互結合形成結合後的實施例。本領域技術人員可以理解,在具體實施方式的上述方法中,各步驟的實際執行順序應當以其功能和可能的內在邏輯確定。It can be understood that the above-mentioned method embodiments mentioned in the present invention can all be combined with each other to form a combined embodiment without violating the principle and logic. Those skilled in the art can understand that, in the above-mentioned method in the specific implementation manner, the actual execution order of each step should be determined by its function and possible internal logic.

此外,本發明實施例還提供了聲音播放裝置、電子設備、電腦可讀儲存介質、程式,上述均可用來實現本發明實施例提供的任一種聲音播放方法,相應技術方案和描述和參見方法部分的相應記載。In addition, the embodiments of the present invention also provide sound playback devices, electronic equipment, computer-readable storage media, and programs, all of which can be used to implement any sound playback method provided by the embodiments of the present invention. For the corresponding technical solutions and descriptions, refer to the method section corresponding record.

圖2示出根據本發明實施例的聲音播放裝置的方塊圖,如圖2所示,所述裝置20包括: 第一位置確定模組21,配置為在擴增實境AR場景中,確定AR設備的第一位置; 虛擬物體確定模組22,配置為根據所述第一位置,確定所述AR場景中的虛擬物體; 天氣狀況確定模組23,配置為獲取所述AR設備所在的真實地理位置的天氣狀況; 聲音播放模組24,配置為在所述虛擬物體基於所述天氣狀況能夠發出聲音的情況下,通過所述AR設備播放所述聲音。 Fig. 2 shows the block diagram of the sound playing device according to the embodiment of the present invention, as shown in Fig. 2, described device 20 comprises: The first position determination module 21 is configured to determine the first position of the AR device in the augmented reality AR scene; The virtual object determining module 22 is configured to determine the virtual object in the AR scene according to the first position; The weather condition determining module 23 is configured to obtain the weather condition of the real geographic location where the AR device is located; The sound playing module 24 is configured to play the sound through the AR device when the virtual object can make a sound based on the weather condition.

在一種可能的實現方式中,所述裝置20還包括: 檢測模組,配置為檢測所述天氣狀況下是否存在產生聲音的發聲條件; 發聲確定模組,配置為在檢測到所述發聲條件的情況下,確定所述虛擬物體基於所述天氣狀況能夠發出聲音。 In a possible implementation manner, the device 20 further includes: A detection module configured to detect whether there is a sounding condition for generating sound under the weather conditions; The sounding determination module is configured to determine that the virtual object can make a sound based on the weather condition when the sounding condition is detected.

在一種可能的實現方式中,所述發聲條件包括所述天氣狀況下存在空中降落物,所述空中降落物包括雨滴、冰雹、雪中的至少一種; 所述檢測模組,配置為根據所述天氣狀況確定是否存在所述空中降落物; 所述發聲確定模組,配置為在存在所述空中降落物的情況下,確定所述虛擬物體基於所述天氣狀況能夠發出聲。 In a possible implementation manner, the sounding condition includes the existence of airborne falling objects under the weather conditions, and the airborne falling objects include at least one of raindrops, hail, and snow; The detection module is configured to determine whether there is the airborne drop according to the weather condition; The sounding determination module is configured to determine that the virtual object can make a sound based on the weather condition in the presence of the falling object in the air.

在一種可能的實現方式中,所述發聲條件包括所述天氣狀況下存在風,且所述虛擬物體被風吹時能夠發出聲音; 所述檢測模組,配置為確定所述天氣狀況中的風力等級,以及所述虛擬物體的類型;根據預存的發聲關係庫和所述虛擬物體的類型,確定所述虛擬物體在所述風力等級下是否能夠產生聲音。 In a possible implementation manner, the sounding condition includes that there is wind in the weather condition, and the virtual object can make a sound when it is blown by the wind; The detection module is configured to determine the wind level in the weather conditions and the type of the virtual object; according to the pre-stored sounding relationship library and the type of the virtual object, determine that the virtual object is at the wind level to see if sound can be produced.

在一種可能的實現方式中,所述裝置20還包括: 聲音確定模組,配置為在檢測到所述發聲條件的情況下,根據所述發聲條件確定所述虛擬物體基於所述天氣狀況所發出的聲音。 In a possible implementation manner, the device 20 further includes: The sound determination module is configured to determine the sound emitted by the virtual object based on the weather condition according to the sound emission condition when the sound emission condition is detected.

在一種可能的實現方式中,在所述發聲條件包括所述天氣狀況下存在空中降落物的情況下,所述聲音確定模組,包括: 降落物確定模組,配置為根據獲取到的所述真實地理位置的天氣狀況,確定所述天氣狀況下的所述空中降落物的類型,以及降落所述空中降落物的氣象等級; 第一聲音類型確定模組,配置為根據所述空中降落物的類型確定所述空中降落物落在所述虛擬物體上所發出的聲音的聲音類型; 第一音量確定模組,配置為根據所述氣象等級,確定所發出聲音的音量大小。 In a possible implementation manner, when the sounding condition includes the presence of airborne falling objects under the weather condition, the sound determination module includes: The falling object determining module is configured to determine the type of the airborne falling object under the weather condition and the meteorological level of the falling airborne falling object according to the acquired weather conditions of the real geographic location; The first sound type determination module is configured to determine the sound type of the sound made by the airborne object falling on the virtual object according to the type of the airborne object; The first volume determination module is configured to determine the volume of the emitted sound according to the weather level.

在一種可能的實現方式中,在所述發聲條件包括所述天氣狀況下存在風,且所述虛擬物體被風吹時能夠發出聲音的情況下,所述聲音確定模組,包括: 第二聲音類型確定模組,配置為根據預存的發聲關係庫和所述虛擬物體的類型,確定所述虛擬物體在被風吹時所發出的聲音的聲音類型; 第二音量確定模組,配置為根據所述風力等級,確定所發出聲音的音量大小。 In a possible implementation manner, when the sounding conditions include wind under the weather condition, and the virtual object can make a sound when it is blown by the wind, the sound determining module includes: The second sound type determination module is configured to determine the sound type of the sound emitted by the virtual object when it is blown by the wind according to the pre-stored sounding relationship library and the type of the virtual object; The second volume determination module is configured to determine the volume of the emitted sound according to the wind force level.

在一種可能的實現方式中,所述裝置20還包括: 附加模組,配置為在所述天氣狀況下存在空中降落物的情況下,在所述虛擬物體上附加所述降落物。 In a possible implementation manner, the device 20 further includes: The additional module is configured to add the falling objects on the virtual object when there are falling objects in the air under the weather conditions.

在一種可能的實現方式中,所述裝置20還包括: 能見度確定模組,配置為根據獲取到的所述真實地理位置的天氣狀況,確定能見度; 模糊顯示模組,配置為根據所述虛擬物體與所述第一位置之間的距離,以及所述能見度,對所述虛擬物體進行模糊顯示。 In a possible implementation manner, the device 20 further includes: The visibility determining module is configured to determine the visibility according to the acquired weather conditions of the real geographic location; The blur display module is configured to perform blur display on the virtual object according to the distance between the virtual object and the first position and the visibility.

在一些實施例中,本發明實施例提供的裝置具有的功能或包含的模組可以配置為執行上文方法實施例描述的方法,其具體實現可以參照上文方法實施例的描述。In some embodiments, the functions of the device provided in the embodiments of the present invention or the included modules can be configured to execute the methods described in the above method embodiments, and the specific implementation can refer to the description of the above method embodiments.

本發明實施例還提出一種電腦可讀儲存介質,其上儲存有電腦程式指令,所述電腦程式指令被處理器執行時實現上述方法。電腦可讀儲存介質可以是非易失性電腦可讀儲存介質。The embodiment of the present invention also proposes a computer-readable storage medium, on which computer program instructions are stored, and the above-mentioned method is implemented when the computer program instructions are executed by a processor. The computer readable storage medium may be a non-volatile computer readable storage medium.

本發明實施例還提出一種電子設備,包括:處理器;配置為儲存處理器可執行指令的記憶體;其中,所述處理器被配置為調用所述記憶體儲存的指令,以執行上述方法。An embodiment of the present invention also proposes an electronic device, including: a processor; a memory configured to store instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.

本發明實施例還提供了一種電腦程式產品,包括電腦可讀代碼,當電腦可讀代碼在設備上運行時,設備中的處理器執行用於實現如上任一實施例提供的圖像檢測方法的指令。An embodiment of the present invention also provides a computer program product, including computer-readable codes. When the computer-readable codes are run on the device, the processor in the device executes the method for implementing the image detection method provided in any of the above embodiments. instruction.

本發明實施例還提供了另一種電腦程式產品,用於儲存電腦可讀指令,指令被執行時使得電腦執行上述任一實施例提供的圖像檢測方法的操作。The embodiment of the present invention also provides another computer program product, which is used for storing computer-readable instructions. When the instructions are executed, the computer executes the operation of the image detection method provided by any of the above-mentioned embodiments.

本發明實施例還提供了一種電腦程式,包括電腦可讀代碼,當所述電腦可讀代碼在電子設備中運行時,所述電子設備中的處理器執行用於實現上述任一實施例提供的圖像檢測方法。An embodiment of the present invention also provides a computer program, including computer-readable codes, when the computer-readable codes run in an electronic device, the processor in the electronic device executes the program for implementing the program provided by any of the above-mentioned embodiments. Image detection method.

電子設備可以被提供為終端、伺服器或其它形態的設備。Electronic devices may be provided as terminals, servers, or other types of devices.

圖3示出根據本發明實施例的一種電子設備800的方塊圖。例如,電子設備800可以是行動電話、電腦、數位廣播終端、消息收發設備、遊戲控制台、平板設備、醫療設備、健身設備、個人數位助理等終端。Fig. 3 shows a block diagram of an electronic device 800 according to an embodiment of the present invention. For example, the electronic device 800 may be a terminal such as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

參照圖3,電子設備800可以包括以下一個或多個組件:處理組件802、記憶體804、電源組件806、多媒體組件808、音頻組件810、輸入/輸出(Input/Output,I/O)的介面812,感測器組件814以及通信組件816。Referring to FIG. 3, the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (Input/Output, I/O) interface 812 , sensor component 814 and communication component 816 .

處理組件802通常控制電子設備800的整體操作,諸如與顯示、電話呼叫、資料通信、相機操作和記錄操作相關聯的操作。處理組件802可以包括一個或多個處理器820來執行指令,以完成上述的方法的全部或部分步驟。此外,處理組件802可以包括一個或多個模組,便於處理組件802和其他組件之間的交互。例如,處理組件802可以包括多媒體模組,以方便多媒體組件808和處理組件802之間的交互。The processing component 802 generally controls the overall operations of the electronic device 800, such as those associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802 .

記憶體804被配置為儲存各種類型的資料以支援在電子設備800的操作。這些資料的示例包括用於在電子設備800上操作的任何應用程式或方法的指令,連絡人資料,電話簿資料,消息,圖片,視頻等。記憶體804可以由任何類型的易失性或非易失性存放裝置或者它們的組合實現,如靜態隨機存取記憶體(SRAM,Static Random-Access Memory),電可擦除可程式設計唯讀記憶體(EEPROM,Static Random-Access Memory),可擦除可程式設計唯讀記憶體(EPROM,Electrically Erasable Programmable Read-Only Memory),可程式設計唯讀記憶體(PROM,Programmable Read-Only Memory),唯讀記憶體(ROM,Read Only Memory),磁記憶體,快閃記憶體,磁片或光碟。The memory 804 is configured to store various types of data to support operations of the electronic device 800 . Examples of such data include instructions for any application or method operating on the electronic device 800, contact information, phonebook information, messages, pictures, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM, Static Random-Access Memory), electrically erasable programmable read-only Memory (EEPROM, Static Random-Access Memory), Erasable Programmable Read-Only Memory (EPROM, Electrically Erasable Programmable Read-Only Memory), Programmable Read-Only Memory (PROM, Programmable Read-Only Memory) , Read Only Memory (ROM, Read Only Memory), Magnetic Memory, Flash Memory, Disk or CD.

電源組件806為電子設備800的各種組件提供電力。電源組件806可以包括電源管理系統,一個或多個電源,及其他與為電子設備800生成、管理和分配電力相關聯的組件。The power supply component 806 provides power to various components of the electronic device 800 . Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 800 .

多媒體組件808包括在所述電子設備800和使用者之間的提供一個輸出介面的螢幕。在一些實施例中,螢幕可以包括液晶顯示器(LCD,Liquid Crystal Display)和觸摸面板(TP,Touch Panel)。如果螢幕包括觸摸面板,螢幕可以被實現為觸控式螢幕,以接收來自使用者的輸入信號。觸摸面板包括一個或多個觸摸感測器以感測觸摸、滑動和觸摸面板上的手勢。所述觸摸感測器可以不僅感測觸摸或滑動動作的邊界,而且還檢測與所述觸摸或滑動操作相關的持續時間和壓力。在一些實施例中,多媒體組件808包括一個前置攝影頭和/或後置攝影頭。當電子設備800處於操作模式,如拍攝模式或視訊模式時,前置攝影頭和/或後置攝影頭可以接收外部的多媒體資料。每個前置攝影頭和後置攝影頭可以是一個固定的光學透鏡系統或具有焦距和光學變焦能力。The multimedia component 808 includes a screen providing an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD, Liquid Crystal Display) and a touch panel (TP, Touch Panel). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or slide action, but also detect a duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音頻組件810被配置為輸出和/或輸入音頻信號。例如,音頻組件810包括一個麥克風(MIC,Microphone),當電子設備800處於操作模式,如呼叫模式、記錄模式和語音辨識模式時,麥克風被配置為接收外部音頻信號。所接收的音頻信號可以被進一步儲存在記憶體804或經由通信組件816發送。在一些實施例中,音頻組件810還包括一個揚聲器,用於輸出音頻信號。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC, Microphone). When the electronic device 800 is in an operation mode, such as a calling mode, a recording mode and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal may be further stored in the memory 804 or sent via the communication component 816 . In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

I/O介面812為處理組件802和週邊介面模組之間提供介面,上述週邊介面模組可以是鍵盤,點擊輪,按鈕等。這些按鈕可包括但不限於:主頁按鈕、音量按鈕、啟動按鈕和鎖定按鈕。The I/O interface 812 provides an interface between the processing unit 802 and peripheral interface modules, such as a keyboard, a click wheel, and buttons. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

感測器組件814包括一個或多個感測器,用於為電子設備800提供各個方面的狀態評估。例如,感測器組件814可以檢測到電子設備800的打開/關閉狀態、組件的相對定位,例如所述組件為電子設備800的顯示器和小鍵盤,感測器組件814還可以檢測電子設備800或電子設備800一個組件的位置改變,使用者與電子設備800接觸的存在或不存在,電子設備800方位或加速/減速和電子設備800的溫度變化。感測器組件814可以包括接近感測器,被配置用來在沒有任何的物理接觸時檢測附近物體的存在。感測器組件814還可以包括光感測器,如互補金屬氧化物半導體(CMOS,Complementary Metal-Oxide-Semiconductor)或電荷耦合裝置(CCD,Charge Coupled Device)圖像感測器,用於在成像應用中使用。在一些實施例中,該感測器組件814還可以包括加速度感測器、陀螺儀感測器、磁感測器、壓力感測器或溫度感測器。Sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for electronic device 800 . For example, the sensor assembly 814 can detect the open/closed state of the electronic device 800, the relative positioning of components, such as the display and the keypad of the electronic device 800, and the sensor assembly 814 can also detect the electronic device 800 or The position of a component of the electronic device 800 changes, the presence or absence of user contact with the electronic device 800 , the orientation or acceleration/deceleration of the electronic device 800 and the temperature of the electronic device 800 change. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor component 814 may also include a light sensor, such as a complementary metal oxide semiconductor (CMOS, Complementary Metal-Oxide-Semiconductor) or a charge-coupled device (CCD, Charge Coupled Device) image sensor, for imaging used in the application. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信組件816被配置為便於電子設備800和其他設備之間有線或無線方式的通信。電子設備800可以接入基於通信標準的無線網路,如無線網路(Wi-Fi,Wireless Fidelity),第二代移動通信技術(2G,The 2nd Generation)或第三代移動通信技術(3G,The 3nd Generation),或它們的組合。在一個示例性實施例中,通信組件816經由廣播通道接收來自外部廣播管理系統的廣播信號或廣播相關資訊。在一個示例性實施例中,所述通信組件816還包括近場通信(NFC,Near Field Communication)模組,以促進短程通信。例如,在NFC模組可基於射頻識別(RFID,Radio Frequency Identification)技術,紅外資料協會(IrDA,Infrared Data Association)技術,超寬頻(UWB,Ultra Wide Band)技術,藍牙(BT,Blue Tooth)技術和其他技術來實現。The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access wireless networks based on communication standards, such as wireless networks (Wi-Fi, Wireless Fidelity), second-generation mobile communication technologies (2G, The 2nd Generation) or third-generation mobile communication technologies (3G, The 3rd Generation), or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC, Near Field Communication) module to facilitate short-range communication. For example, the NFC module can be based on radio frequency identification (RFID, Radio Frequency Identification) technology, infrared data association (IrDA, Infrared Data Association) technology, ultra-wideband (UWB, Ultra Wide Band) technology, Bluetooth (BT, Blue Tooth) technology and other technologies to achieve.

在示例性實施例中,電子設備800可以被一個或多個應用專用積體電路(ASIC,Application Specific Integrated Circuit)、數位訊號處理器(DSP,Digital Signal Processor)、數位信號處理設備(DSPD,Digital Signal Processing Device)、可程式設計邏輯器件(PLD,Programmable Logic Device)、現場可程式設計閘陣列(FPGA,Field Programmable Gate Array)、控制器、微控制器、微處理器或其他電子組件實現,用於執行上述方法。In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASIC, Application Specific Integrated Circuit), digital signal processors (DSP, Digital Signal Processor), digital signal processing devices (DSPD, Digital Signal Processing Device), Programmable Logic Device (PLD, Programmable Logic Device), Field Programmable Gate Array (FPGA, Field Programmable Gate Array), controller, microcontroller, microprocessor or other electronic components, using to perform the above method.

在示例性實施例中,還提供了一種非易失性電腦可讀儲存介質,例如包括電腦程式指令的記憶體804,上述電腦程式指令可由電子設備800的處理器820執行以完成上述方法。In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium, such as the memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to implement the above method.

圖4示出根據本發明實施例的一種電子設備1900的方塊圖。例如,電子設備1900可以被提供為一伺服器。參照圖4,電子設備1900包括處理組件1922,可以包括一個或多個處理器,以及由記憶體1932所代表的記憶體資源,用於儲存可由處理組件1922的執行的指令,例如應用程式。記憶體1932中儲存的應用程式可以包括一個或一個以上的每一個對應於一組指令的模組。此外,處理組件1922被配置為執行指令,以執行上述方法。Fig. 4 shows a block diagram of an electronic device 1900 according to an embodiment of the present invention. For example, electronic device 1900 may be provided as a server. Referring to FIG. 4 , the electronic device 1900 includes a processing component 1922 , which may include one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922 , such as application programs. The application programs stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.

電子設備1900還可以包括一個電源組件1926被配置為執行電子設備1900的電源管理,一個有線或無線網路介面1950被配置為將電子設備1900連接到網路,和一個輸入/輸出(I/O)介面1958。電子設備1900可以操作基於儲存在記憶體1932的作業系統,例如微軟伺服器作業系統(Windows ServerTM),蘋果公司推出的基於圖形化使用者介面作業系統(Mac OS XTM),多使用者多進程的電腦作業系統(UnixTM), 自由和開放原代碼的類Unix作業系統(LinuxTM),開放原代碼的類Unix作業系統(FreeBSDTM)或類似系統。Electronic device 1900 may also include a power supply component 1926 configured to perform power management of electronic device 1900, a wired or wireless network interface 1950 configured to connect electronic device 1900 to a network, and an input/output (I/O ) interface 1958. The electronic device 1900 can operate based on the operating system stored in the memory 1932, such as the Microsoft server operating system (Windows ServerTM), the operating system based on the graphical user interface (Mac OS XTM) launched by Apple Inc., multi-user and multi-process A computer operating system (UnixTM), a free and open source Unix-like operating system (LinuxTM), an open source Unix-like operating system (FreeBSDTM), or similar.

在示例性實施例中,還提供了一種非易失性電腦可讀儲存介質,例如包括電腦程式指令的記憶體1932,上述電腦程式指令可由電子設備1900的處理組件1922執行以完成上述方法。In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium, such as the memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to implement the above method.

本發明實施例可以是系統、方法和/或電腦程式產品。電腦程式產品可以包括電腦可讀儲存介質,其上載有用於使處理器實現本發明實施例的各個方面的電腦可讀程式指令。Embodiments of the invention may be systems, methods and/or computer program products. The computer program product may include a computer-readable storage medium loaded with computer-readable program instructions for causing a processor to implement various aspects of the embodiments of the present invention.

電腦可讀儲存介質可以是可以保持和儲存由指令執行設備使用的指令的有形設備。電腦可讀儲存介質例如可以是(但不限於)電存放裝置、磁存放裝置、光存放裝置、電磁存放裝置、半導體存放裝置或者上述的任意合適的組合。電腦可讀儲存介質可以包括:可擕式電腦盤、硬碟、隨機存取記憶體(RAM,Random Access Memory)、唯讀記憶體、可擦式可程式設計唯讀記憶體(EPROM或快閃記憶體)、靜態隨機存取記憶體、可擕式壓縮磁碟唯讀記憶體(CD-ROM,Compact Disc Read-Only Memory)、數位多功能盤(DVD,Digital Video Disc)、記憶棒、軟碟、機械編碼設備、例如其上儲存有指令的打孔卡或凹槽內凸起結構、以及上述的任意合適的組合。這裡所使用的電腦可讀儲存介質不被解釋為暫態信號本身,諸如無線電波或者其他自由傳播的電磁波、通過波導或其他傳輸媒介傳播的電磁波(例如,通過光纖電纜的光脈衝)、或者通過電線傳輸的電信號。A computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. Computer-readable storage media can include: portable computer disk, hard disk, random access memory (RAM, Random Access Memory), read-only memory, erasable programmable read-only memory (EPROM or flash Memory), Static Random Access Memory, Portable Compressed Disk Read-Only Memory (CD-ROM, Compact Disc Read-Only Memory), Digital Versatile Disk (DVD, Digital Video Disc), Memory Stick, Soft Discs, mechanical encoding devices, such as punched cards with instructions stored thereon or raised structures in grooves, and any suitable combination of the foregoing. A computer-readable storage medium as used herein is not to be construed as a transient signal per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other Electrical signals transmitted by wires.

這裡所描述的電腦可讀程式指令可以從電腦可讀儲存介質下載到各個計算/處理設備,或者通過網路、例如網際網路、局域網、廣域網路和/或無線網下載到外部電腦或外部存放裝置。網路可以包括銅傳輸電纜、光纖傳輸、無線傳輸、路由器、防火牆、交換機、閘道電腦和/或邊緣伺服器。每個計算/處理設備中的網路介面卡或者網路介面從網路接收電腦可讀程式指令,並轉發該電腦可讀程式指令,以供儲存在各個計算/處理設備中的電腦可讀儲存介質中。The computer readable program instructions described herein may be downloaded from a computer readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network interface card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in computer-readable storage in each computing/processing device medium.

用於執行本發明實施例操作的電腦程式指令可以是彙編指令、指令集架構(ISA,Industry Standard Architecture)指令、機器指令、機器相關指令、偽代碼、固件指令、狀態設置資料、或者以一種或多種程式設計語言的任意組合編寫的原始程式碼或目標代碼,所述程式設計語言包括物件導向的程式設計語言諸如Smalltalk、C++等,以及常規的過程式程式設計語言如“C”語言或類似的程式設計語言。電腦可讀程式指令可以完全地在使用者電腦上執行、部分地在使用者電腦上執行、作為一個獨立的套裝軟體執行、部分在使用者電腦上部分在遠端電腦上執行、或者完全在遠端電腦或伺服器上執行。在涉及遠端電腦的情形中,遠端電腦可以通過任意種類的網路,包括局域網(LAN,Local Area Network)或廣域網路(WAN,Wide Area Network)連接到使用者電腦,或者,可以連接到外部電腦(例如利用網際網路服務提供者來通過網際網路連接)。在一些實施例中,通過利用電腦可讀程式指令的狀態資訊來個性化定制電子電路,例如可程式設計邏輯電路、現場可程式設計閘陣列或可程式設計邏輯陣列,該電子電路可以執行電腦可讀程式指令,從而實現本發明實施例的各個方面。The computer program instructions used to execute the operations of the embodiments of the present invention may be assembly instructions, instruction set architecture (ISA, Industry Standard Architecture) instructions, machine instructions, machine-related instructions, pseudocode, firmware instructions, state setting data, or in one or Source code or object code written in any combination of programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as "C" or similar programming language. Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone package, partly on the user's computer and partly on a remote computer, or entirely on a remote computer. Execute on the terminal computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer via any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to An external computer (e.g. using an Internet service provider to connect via the Internet). In some embodiments, electronic circuits, such as programmable logic circuits, field programmable gate arrays, or programmable logic arrays, can be customized by utilizing state information of computer-readable program instructions, which can execute computer-programmable Program instructions are read, so as to realize various aspects of the embodiments of the present invention.

這裡參照根據本發明實施例的方法、裝置(系統)和電腦程式產品的流程圖和/或方塊圖描述了本發明實施例的各個方面。應當理解,流程圖和/或方塊圖的每個方塊以及流程圖和/或方塊圖中各方塊的組合,都可以由電腦可讀程式指令實現。Aspects of embodiments of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart and/or block diagram and combinations of blocks in the flowchart and/or block diagram can be implemented by computer readable program instructions.

這些電腦可讀程式指令可以提供給通用電腦、專用電腦或其它可程式設計資料處理裝置的處理器,從而生產出一種機器,使得這些指令在通過電腦或其它可程式設計資料處理裝置的處理器執行時,產生了實現流程圖和/或方塊圖中的一個或多個方塊中規定的功能/動作的裝置。也可以把這些電腦可讀程式指令儲存在電腦可讀儲存介質中,這些指令使得電腦、可程式設計資料處理裝置和/或其他設備以特定方式工作,從而,儲存有指令的電腦可讀介質則包括一個製造品,其包括實現流程圖和/或方塊圖中的一個或多個方塊中規定的功能/動作的各個方面的指令。These computer-readable program instructions may be provided to a processor of a general-purpose computer, special-purpose computer, or other programmable data-processing device, thereby producing a machine such that the instructions are executed by the processor of the computer or other programmable data-processing device When, means for realizing the function/action specified in one or more blocks in the flowchart and/or block diagram are produced. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause a computer, a programmable data processing device and/or other equipment to operate in a specific manner, so that the computer-readable medium storing the instructions is An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks in the flowchart and/or block diagrams is included.

也可以把電腦可讀程式指令載入到電腦、其它可程式設計資料處理裝置、或其它設備上,使得在電腦、其它可程式設計資料處理裝置或其它設備上執行一系列操作步驟,以產生電腦實現的過程,從而使得在電腦、其它可程式設計資料處理裝置、或其它設備上執行的指令實現流程圖和/或方塊圖中的一個或多個方塊中規定的功能/動作。It is also possible to load computer-readable program instructions into a computer, other programmable data processing device, or other equipment, so that a series of operation steps are executed on the computer, other programmable data processing device, or other equipment to produce a computer The process of implementation, so that instructions executed on computers, other programmable data processing devices, or other equipment implement the functions/actions specified in one or more blocks in the flowchart and/or block diagram.

附圖中的流程圖和方塊圖顯示了根據本發明的多個實施例的系統、方法和電腦程式產品的可能實現的體系架構、功能和操作。在這點上,流程圖或方塊圖中的每個方塊可以代表一個模組、程式段或指令的一部分,所述模組、程式段或指令的一部分包含一個或多個用於實現規定的邏輯功能的可執行指令。在有些作為替換的實現中,方塊中所標注的功能也可以以不同於附圖中所標注的順序發生。例如,兩個連續的方塊實際上可以基本並行地執行,它們有時也可以按相反的循序執行,這依所涉及的功能而定。也要注意的是,方塊圖和/或流程圖中的每個方塊、以及方塊圖和/或流程圖中的方塊的組合,可以用執行規定的功能或動作的專用的基於硬體的系統來實現,或者可以用專用硬體與電腦指令的組合來實現。The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction that contains one or more logic for implementing the specified Executable instructions for a function. In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two consecutive blocks may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action. implemented, or may be implemented using a combination of dedicated hardware and computer instructions.

該電腦程式產品可以通過硬體、軟體或其結合的方式實現。在一個可選實施例中,所述電腦程式產品體現為電腦儲存介質,在另一個可選實施例中,電腦程式產品體現為軟體產品,例如軟體發展包(Software Development Kit,SDK)等等。The computer program product can be realized by hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium. In another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) and the like.

以上已經描述了本發明的各實施例,上述說明是示例性的,並非窮盡性的,並且也不限於所披露的各實施例。在不偏離所說明的各實施例的範圍和精神的情況下,對於本技術領域的普通技術人員來說許多修改和變更都是顯而易見的。本文中所用術語的選擇,旨在最好地解釋各實施例的原理、實際應用或對市場中的技術的改進,或者使本技術領域的其它普通技術人員能理解本文披露的各實施例。Having described various embodiments of the present invention, the foregoing description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and alterations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principle of each embodiment, practical application or improvement of technology in the market, or to enable other ordinary skilled in the art to understand each embodiment disclosed herein.

工業實用性 本發明實施例中,在使用者使用AR設備的過程中,AR設備播放的聲音考慮了使用者所處位置的天氣狀況對AR場景中虛擬物體的影響。在虛擬物體基於天氣狀況能夠發出聲音的情況下,通過AR設備播放聲音,使得AR設備播放的虛擬資訊更好地與真實情況相結合,使用者體驗更加真實,提高了使用者體驗。 Industrial Applicability In the embodiment of the present invention, when the user is using the AR device, the sound played by the AR device takes into account the impact of the weather conditions at the user's location on the virtual objects in the AR scene. In the case that the virtual object can emit sound based on the weather conditions, the sound is played through the AR device, so that the virtual information played by the AR device can be better combined with the real situation, and the user experience is more realistic and the user experience is improved.

20:聲音播放裝置 21:第一位置確定模組 22:虛擬物體確定模組 23:天氣狀況確定模組 24:聲音播放模組 800:電子設備 802:處理組件 804:記憶體 806:電源組件 808:多媒體組件 810:音頻組件 812:輸入/輸出介面 814:感測器組件 816:通信組件 820:處理器 900:電子設備 1922:處理組件 1926:電源組件 1932:記憶體 1950:網路介面 1958:輸入/輸出介面 S11~S14:步驟 20: Sound playback device 21: The first position determination module 22: Virtual object determination module 23: Weather condition determination module 24: Sound player module 800: Electronic equipment 802: processing components 804: memory 806: Power components 808:Multimedia components 810:Audio components 812: input/output interface 814: Sensor component 816:Communication component 820: Processor 900: Electronic equipment 1922: Processing components 1926: Power components 1932: Memory 1950: Web interface 1958: Input/Output Interface S11~S14: Steps

此處的附圖被併入說明書中並構成本說明書的一部分,這些附圖示出了符合本發明的實施例,並與說明書一起用於說明本發明的技術方案。 圖1示出根據本發明實施例的聲音播放方法的流程圖。 圖2示出根據本發明實施例的一種聲音播放裝置的方塊圖。 圖3示出根據本發明實施例的一種電子設備的方塊圖。 圖4示出根據本發明實施例的一種電子設備的方塊圖。 The accompanying drawings here are incorporated into the specification and constitute a part of the specification. These drawings show embodiments consistent with the present invention, and are used together with the description to explain the technical solution of the present invention. Fig. 1 shows a flowchart of a sound playing method according to an embodiment of the present invention. Fig. 2 shows a block diagram of a sound playback device according to an embodiment of the present invention. Fig. 3 shows a block diagram of an electronic device according to an embodiment of the present invention. Fig. 4 shows a block diagram of an electronic device according to an embodiment of the present invention.

S11~S14:步驟 S11~S14: Steps

Claims (9)

一種聲音播放方法,用於電子設備,包括:在擴增實境AR場景中,基於AR設備掃描真實場景周圍得到的場景資訊,確定所述AR設備的第一位置;其中,所述第一位置為所述AR設備位於所述AR場景中的位置;根據所述第一位置,確定所述AR場景中位置已知的虛擬物體;其中,所述AR場景中的虛擬物體與真實場景疊加在同一畫面中;獲取所述AR設備所在的真實地理位置的天氣狀況;根據所述天氣狀況確定是否存在所述空中降落物;所述空中降落物包括雨滴、冰雹、雪中的至少一種;在存在所述空中降落物的情況下,確定所述虛擬物體基於所述天氣狀況能夠發出聲音;在所述虛擬物體基於所述天氣狀況能夠發出聲音的情況下,通過所述AR設備播放所述虛擬物體基於所述天氣狀態所發出的聲音;其中,不同類型的所述虛擬物體基於相同的天氣狀態所發出的聲音不同。 A sound playing method for electronic devices, comprising: in an augmented reality AR scene, based on the scene information obtained by the AR device scanning around the real scene, determining a first position of the AR device; wherein, the first position is the position of the AR device in the AR scene; according to the first position, determine a virtual object whose position is known in the AR scene; wherein, the virtual object in the AR scene is superimposed on the same scene as the real scene In the screen; obtain the weather condition of the real geographical location where the AR device is located; determine whether there is the airborne object according to the weather condition; the airborne object includes at least one of raindrops, hail, and snow; In the case of the above-mentioned falling objects in the air, it is determined that the virtual object can emit sound based on the weather condition; The sound emitted by the weather state; wherein, different types of virtual objects emit different sounds based on the same weather state. 根據請求項1所述的方法,其中,所述天氣狀況下是否存在產生聲音的發聲條件包括所述天氣狀況下存在風,且所述虛擬物體被風吹時能夠發出聲音;所述,方法還包括:確定所述天氣狀況中的風力等級,以及所述虛擬物體的類型; 根據預存的發聲關係庫和所述虛擬物體的類型,確定所述虛擬物體在所述風力等級下是否能夠產生聲音。 According to the method described in claim 1, wherein, whether there is a sounding condition for producing sound under the weather condition includes wind under the weather condition, and the virtual object can produce sound when it is blown by the wind; the method further includes : determine the wind level in the weather condition, and the type of the virtual object; Determine whether the virtual object can produce sound under the wind level according to the pre-stored sounding relationship library and the type of the virtual object. 根據請求項1所述的方法,其中,在所述根據所述天氣狀況確定是否存在所述空中降落物後,所述方法還包括:在檢測到存在所述空中降落物的情況下,根據所述空中降落物確定所述虛擬物體基於所述天氣狀況所發出的聲音。 The method according to claim 1, wherein, after determining whether there is the airborne drop according to the weather condition, the method further includes: if the presence of the airborne drop is detected, according to the The airborne object determines the sound made by the virtual object based on the weather condition. 根據請求項3所述的方法,其中,所述檢測到存在所述空中降落物的情況下,根據所述空中降落物確定所述虛擬物體基於所述天氣狀況所發出的聲音,包括:根據獲取到的所述真實地理位置的天氣狀況,確定所述天氣狀況下的所述空中降落物的類型,以及降落所述空中降落物的氣象等級;根據所述空中降落物的類型確定所述空中降落物落在所述虛擬物體上所發出的聲音的聲音類型;根據所述氣象等級,確定所發出聲音的音量大小。 The method according to claim 3, wherein, in the case of detecting the presence of the airborne object, determining the sound made by the virtual object based on the weather condition according to the airborne object includes: according to the acquired According to the weather condition of the real geographic location, the type of the airborne drop under the weather conditions is determined, and the meteorological grade of the airborne drop is landed; the airborne landing is determined according to the type of the airborne drop The sound type of the sound emitted by the object falling on the virtual object; according to the weather level, the volume of the emitted sound is determined. 根據請求項3所述的方法,其中,所述方法還包括:確定所述天氣狀況中的風力等級,以及所述虛擬物體的類型;根據預存的發聲關係庫和所述虛擬物體的類型,確定所述虛擬物體在被風吹時所發出的聲音的聲音類型;根據所述風力等級,確定所發出聲音的音量大小。 The method according to claim 3, wherein, the method further includes: determining the wind level in the weather conditions and the type of the virtual object; determining the The sound type of the sound emitted by the virtual object when it is blown by the wind; the volume of the sound emitted is determined according to the wind force level. 根據請求項1所述的方法,其中,在獲取所述AR設備所在的真實地理位置的天氣狀況後,所述方法還包括:在所述天氣狀況下存在所述空中降落物的情況下,在所述虛擬物體上添加所述空中降落物。 The method according to claim 1, wherein, after obtaining the weather conditions of the real geographic location where the AR device is located, the method further includes: in the case where the aerial drop exists under the weather conditions, The aerial drop is added to the virtual object. 根據請求項1所述的方法,其中,在獲取所述AR設備所在的真實地理位置的天氣狀況後,所述方法還包括:根據獲取到的所述真實地理位置的天氣狀況,確定能見度;根據所述虛擬物體與所述第一位置之間的距離,以及所述能見度,對所述虛擬物體進行模糊處理,並將模糊處理後的虛擬物體進行顯示。 The method according to claim 1, wherein, after acquiring the weather conditions of the real geographic location where the AR device is located, the method further includes: determining the visibility according to the acquired weather conditions of the real geographic location; The distance between the virtual object and the first position, and the visibility are blurred for the virtual object, and the blurred virtual object is displayed. 一種電子設備,包括:處理器;用於儲存處理器可執行指令的記憶體;其中,所述處理器被配置為調用所述記憶體儲存的指令,以執行請求項1至7中任意一項所述的方法。 An electronic device, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to call the instructions stored in the memory to perform any one of request items 1 to 7 the method described. 一種電腦可讀儲存介質,其上儲存有電腦程式指令,所述電腦程式指令被處理器執行時實現請求項1至7中任意一項所述的方法。 A computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method described in any one of claims 1 to 7 is realized.
TW110146182A 2021-04-26 2021-12-09 Sound playback method equipment and computer-readable storage medium TWI779961B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110453375.3A CN113157097B (en) 2021-04-26 2021-04-26 Sound playing method and device, electronic equipment and storage medium
CN202110453375.3 2021-04-26

Publications (2)

Publication Number Publication Date
TWI779961B true TWI779961B (en) 2022-10-01
TW202241570A TW202241570A (en) 2022-11-01

Family

ID=76870857

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110146182A TWI779961B (en) 2021-04-26 2021-12-09 Sound playback method equipment and computer-readable storage medium

Country Status (3)

Country Link
CN (1) CN113157097B (en)
TW (1) TWI779961B (en)
WO (1) WO2022227421A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157097B (en) * 2021-04-26 2022-06-07 深圳市慧鲤科技有限公司 Sound playing method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM455933U (en) * 2012-11-07 2013-06-21 Ya Technology Co Ltd Interactive doll used in extended artificial reality environment
CN107179908A (en) * 2017-05-16 2017-09-19 网易(杭州)网络有限公司 Audio method of adjustment, device, electronic equipment and computer-readable recording medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9852547B2 (en) * 2015-03-23 2017-12-26 International Business Machines Corporation Path visualization for augmented reality display device based on received data and probabilistic analysis
CN106598245B (en) * 2016-12-16 2020-06-12 阿里巴巴(中国)有限公司 Multi-user interaction control method and device based on virtual reality
US10410432B2 (en) * 2017-10-27 2019-09-10 International Business Machines Corporation Incorporating external sounds in a virtual reality environment
CN111638796A (en) * 2020-06-05 2020-09-08 浙江商汤科技开发有限公司 Virtual object display method and device, computer equipment and storage medium
CN112245912B (en) * 2020-11-11 2022-07-12 腾讯科技(深圳)有限公司 Sound prompting method, device, equipment and storage medium in virtual scene
CN112492097B (en) * 2020-11-26 2022-01-11 广州酷狗计算机科技有限公司 Audio playing method, device, terminal and computer readable storage medium
CN112612445A (en) * 2020-12-28 2021-04-06 维沃移动通信有限公司 Audio playing method and device
CN113157097B (en) * 2021-04-26 2022-06-07 深圳市慧鲤科技有限公司 Sound playing method and device, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM455933U (en) * 2012-11-07 2013-06-21 Ya Technology Co Ltd Interactive doll used in extended artificial reality environment
CN107179908A (en) * 2017-05-16 2017-09-19 网易(杭州)网络有限公司 Audio method of adjustment, device, electronic equipment and computer-readable recording medium

Also Published As

Publication number Publication date
TW202241570A (en) 2022-11-01
CN113157097B (en) 2022-06-07
WO2022227421A1 (en) 2022-11-03
CN113157097A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN109151593B (en) Anchor recommendation method, device and storage medium
TWI747325B (en) Target object matching method, target object matching device, electronic equipment and computer readable storage medium
WO2020098462A1 (en) Ar virtual character drawing method and apparatus, mobile terminal and storage medium
US20210097715A1 (en) Image generation method and device, electronic device and storage medium
WO2022188305A1 (en) Information presentation method and apparatus, and electronic device, storage medium and computer program
CN109474850B (en) Motion pixel video special effect adding method and device, terminal equipment and storage medium
CN111107421B (en) Video processing method and device, terminal equipment and storage medium
US20220358549A1 (en) Media collection navigation with opt-out interstitial
CN112258241A (en) Page display method, device, terminal and storage medium
US9613270B2 (en) Weather displaying method and device
CN110210045B (en) Method and device for estimating number of people in target area and storage medium
WO2022134475A1 (en) Point cloud map construction method and apparatus, electronic device, storage medium and program
TWI779961B (en) Sound playback method equipment and computer-readable storage medium
CN111369271B (en) Advertisement ordering method and device, electronic equipment and storage medium
WO2020220807A1 (en) Image generation method and apparatus, electronic device, and storage medium
CN111708944A (en) Multimedia resource identification method, device, equipment and storage medium
CN110662105A (en) Animation file generation method and device and storage medium
CN114302160B (en) Information display method, device, computer equipment and medium
WO2022179080A1 (en) Positioning method and apparatus, electronic device, storage medium, program and product
JPWO2018135246A1 (en) Information processing system and information processing apparatus
KR20140089829A (en) Method and apparatus for controlling animated image in an electronic device
US10229523B2 (en) Augmented reality alteration detector
KR20130096983A (en) Method and apparatus for processing video information including face
CN111526380A (en) Video processing method, video processing device, server, electronic equipment and storage medium
WO2023123840A1 (en) Payment method and apparatus, electronic device, storage medium, and computer program product

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent