WO2018068689A1 - 音量调节方法及装置 - Google Patents

音量调节方法及装置 Download PDF

Info

Publication number
WO2018068689A1
WO2018068689A1 PCT/CN2017/105353 CN2017105353W WO2018068689A1 WO 2018068689 A1 WO2018068689 A1 WO 2018068689A1 CN 2017105353 W CN2017105353 W CN 2017105353W WO 2018068689 A1 WO2018068689 A1 WO 2018068689A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
target
moving object
volume
determining
Prior art date
Application number
PCT/CN2017/105353
Other languages
English (en)
French (fr)
Inventor
苏辉
栾国良
金升阳
蒋海青
Original Assignee
杭州萤石网络有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州萤石网络有限公司 filed Critical 杭州萤石网络有限公司
Publication of WO2018068689A1 publication Critical patent/WO2018068689A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42225User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details characterized by types of remote control, e.g. universal remote control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/20Arrangements for obtaining desired frequency or directional characteristics

Definitions

  • the present application relates to the field of audio and video processing technologies, and in particular, to a volume adjustment method and apparatus.
  • the user when it is required to adjust the volume of the audio and video played by the terminal, on the one hand, the user can rotate the adjustment knob provided on the terminal to perform volume adjustment, and on the other hand, the user can also control the terminal through the corresponding remote controller. For volume adjustment.
  • the current volume adjustment method requires the user to manually adjust the volume of the terminal. Therefore, the operation of adjusting the volume is complicated and the convenience is low.
  • the embodiment of the present application provides a volume adjustment method and device.
  • the technical solution is as follows:
  • a volume adjustment method including:
  • the audio and video comprising at least one of audio and video
  • the determining the target volume according to the target distance includes:
  • the method further includes:
  • the method before the determining the target distance between the terminal and the target object, the method further includes:
  • the moving object is determined as the target object
  • one of the at least two moving objects is selected as the target object.
  • the detecting whether there is a moving object in a preset range in which the terminal is located includes:
  • the determining, according to the image that includes the moving object, whether the mobile object is in a preset range in which the terminal is located includes:
  • the determining, by the terminal, whether the mobile object exists in the detectable range includes:
  • the determining a target distance between the terminal and the target object includes:
  • the target distance is determined according to a relative positional positioning manner.
  • a volume adjustment apparatus comprising:
  • a first determining module configured to determine, in a process of playing audio and video, the target distance between the terminal and the target object, where the audio and video includes at least one of audio and video;
  • a second determining module configured to determine a target volume according to the target distance
  • a first adjustment module configured to adjust a volume of the audio and video played by the terminal to the target volume.
  • the second determining module is configured to:
  • the volume adjustment device further includes:
  • a second adjusting module configured to adjust a sounding direction of the terminal, such that a sounding direction of the terminal faces the target object.
  • the volume adjustment device further includes:
  • a detecting module configured to detect whether a moving object exists in a preset range in which the terminal is located
  • a third determining module configured to determine a quantity of the moving object when a moving object exists within a preset range in which the terminal is located;
  • a fourth determining module configured to determine the moving object as the target object when the number of the moving objects is 1.
  • a fifth determining module configured to select one moving object as the target object among the at least two moving objects when the number of the moving objects is at least two.
  • the detecting module includes:
  • a determining sub-module configured to determine whether a mobile object exists in the detectable range of the terminal
  • Obtaining a sub-module configured to acquire an image including the moving object when a moving object exists within the terminal detectable range
  • a determining submodule configured to determine, according to the image that includes the moving object, whether the moving object is within a preset range in which the terminal is located.
  • the determining submodule is used to:
  • the determining submodule is configured to:
  • the first determining module is configured to:
  • the target distance is determined according to a relative positional positioning manner.
  • the terminal is a speaker.
  • a volume adjustment apparatus comprising:
  • a sensing module configured to determine a target distance between the terminal and the target object during the playing of the audio and video, wherein the audio and video includes at least one of audio and video;
  • a processor configured to receive the target distance sent by the sensing module, and determine a target volume according to the target distance
  • a speaker module configured to play the audio and video by using the target volume according to an instruction of the processor.
  • the processor is further configured to: query a preset distance and volume correspondence relationship, and obtain a target volume corresponding to the target distance; or acquire a location of the target object according to the location of the target object. And the target distance, the target volume is calculated by using a preset association algorithm.
  • the volume adjustment device further includes: a driving module, configured to drive the speaker module The position and/or direction changes to adjust the direction of sounding of the terminal.
  • a driving module configured to drive the speaker module The position and/or direction changes to adjust the direction of sounding of the terminal.
  • the sensing module is further configured to detect whether a moving object exists in a preset range in which the terminal is located;
  • the processor is further configured to determine a quantity of the moving object when the sensing module detects that a moving object exists in a preset range in which the terminal is located; and when the number of the moving object is 1, The moving object is determined as the target object; when the number of the moving objects is at least two, one of the at least two moving objects is selected as the target object.
  • the sensing module includes an image capturing module.
  • the processor is further configured to determine whether a mobile object exists in the detectable range of the terminal;
  • the image acquisition module is configured to acquire an image including the moving object when the processor determines that a moving object exists in the detectable range of the terminal;
  • the processor is further configured to determine, according to the image that is acquired by the image acquisition module that includes the moving object, whether the moving object is within a preset range in which the terminal is located.
  • the processor is further configured to detect, in an image that includes the moving object, whether a similarity correlation value of the moving object and a preset size reference object is less than a preset correlation value threshold, the similarity correlation The value is negatively correlated with the similarity; when the similarity correlation value of the moving object and the reference object is less than a preset correlation value threshold, determining that the moving object is within a preset range in which the terminal is located.
  • the image acquisition module is configured to periodically acquire an image within a detectable range of the terminal
  • the processor is further configured to compare an image acquired by the image acquisition module in a current period with an image acquired in a previous period; when the image acquired in the current period and an object acquired in the previous period have an object with a changed position Determining that there is a moving object in the terminal detectable range, and the moving object is the object in which the existing position changes.
  • the sensing module includes:
  • An image acquisition module configured to calculate a target distance between the terminal and the target object by using a binocular stereo vision algorithm
  • an infrared sensor for determining the target distance by using an infrared ranging method
  • a laser generator for determining a target distance by a laser ranging method
  • GPS global positioning system
  • the wireless fidelity WIFI module is configured to determine the target distance according to a relative position and positioning manner.
  • the embodiment of the present application further discloses a computer readable storage medium, where the computer includes a computer program, where the computer program is executed by the processor to implement the volume adjustment method step. .
  • the volume adjustment method and device determines the target volume according to the target distance between the terminal and the target object, and adjusts the volume of the audio and video played by the terminal to the target volume, thereby realizing automatic adjustment of the audio and video volume of the terminal, without The user manually adjusts the volume of the terminal, which simplifies the operation of adjusting the volume, making the volume adjustment operation more convenient.
  • FIG. 1 is a schematic diagram of an implementation environment shown in accordance with the related art
  • FIG. 2 is a flowchart of a method for adjusting a volume according to an exemplary embodiment
  • FIG. 3 is a flowchart of a method for another volume adjustment method according to an exemplary embodiment
  • FIG. 4 is a flowchart of a method of a volume adjustment method according to an exemplary embodiment
  • FIG. 5 is a schematic diagram of a moving object in an image, according to an exemplary embodiment
  • FIG. 6 is a schematic diagram of a moving object in another image according to an exemplary embodiment
  • 7-1 is a schematic diagram of a terminal with a rotating function according to an exemplary embodiment
  • FIG. 7-2 is a schematic diagram of another terminal with a rotation function according to an exemplary embodiment
  • FIG. 8 is a block diagram of a volume adjustment apparatus according to an exemplary embodiment
  • FIG. 9 is a block diagram of another volume adjustment apparatus according to an exemplary embodiment.
  • FIG. 10 is a block diagram of still another volume adjustment apparatus according to an exemplary embodiment
  • FIG. 11 is a block diagram of a detection module according to an exemplary embodiment
  • FIG. 12 is a block diagram of still another volume adjustment apparatus according to an exemplary embodiment
  • FIG. 13 is a block diagram of still another volume adjustment apparatus according to an exemplary embodiment
  • FIG. 14 is a block diagram of still another volume adjustment apparatus, according to an exemplary embodiment.
  • the implementation environment may be an indoor environment or an outdoor environment, usually an indoor environment.
  • the implementation environment may include: a terminal 01 and at least one user 02.
  • the terminal 01 may have an audio and video playing function.
  • the audio and video includes at least one of audio and video
  • the terminal 01 may be a speaker, a smart phone, a computer, a multimedia player, an e-reader, and wearable. Equipment, etc.
  • the distance between terminal 01 and at least one user 02 can be dynamically changed.
  • the implementation environment may be that a speaker is placed at one end of the living room, and the user starts to be located on the sofa at the other end of the living room, and the user can control the speaker through the button set on the speaker or use the corresponding remote controller to perform audio playback, and at the same time
  • the user's location may change.
  • the user may leave the current location to drink water or exercise, which will change the distance between the user and the speaker.
  • the implementation environment may be that a speaker is placed in the center of the hotel lobby, and the personnel in the hotel are dispersed around the speaker as a user, and any user can control the speaker through a button set on the speaker or using a corresponding remote controller. Audio playback, while the user's position may change during audio playback, such as security patrols or cleaners' cleaning, which will change the distance between the user and the speaker.
  • the volume adjustment method can be used to control the volume adjustment of the terminal 01.
  • the volume adjustment method can be implemented by the terminal in the implementation environment shown in FIG. 01 to execute. Referring to FIG. 2, the method flow may include the following steps:
  • Step 201 Determine a target distance between the terminal and the target object in the process of playing the audio and video by the terminal.
  • the audio and video includes at least one of audio and video.
  • Step 202 Determine a target volume according to the target distance.
  • Step 203 Adjust the volume of the audio and video played by the terminal to the target volume.
  • the volume adjustment method determines the target volume according to the target distance between the terminal and the target object, and adjusts the volume of the audio and video played by the terminal to the target volume, thereby realizing the automatic audio and video volume of the terminal. Adjustment, no need for the user to manually adjust the volume of the terminal, simplifying the operation process of adjusting the volume, making the volume adjustment operation more convenient.
  • FIG. 3 is a flowchart of a method for another volume adjustment method according to an exemplary embodiment, which may be performed by the audio and video playback terminal 01 in the implementation environment shown in FIG. 1.
  • the method flow may include the following steps:
  • Step 301 Detect whether there is a moving object within a preset range in which the terminal is located.
  • the volume of the terminal needs to be adjusted according to the distance between the terminal and the user to satisfy the user's hearing comfort.
  • the distance between the terminal and the user is changed based on the user's motion. Therefore, when the terminal meets the preset trigger condition, it is detected whether there is a moving object in the preset range where the terminal is located.
  • the preset trigger condition may be that the terminal is powered on, or the terminal may start playing audio and video.
  • the terminal can determine the target object among the moving objects, and the target object is defaulted to the user.
  • the target object may be a human body, or may be a pet that can be moved, such as a cat or a dog.
  • the step 301 may include:
  • Step 3011 Determine whether the terminal can detect whether there is a moving object in the range.
  • the process of determining whether the terminal can detect the presence of a moving object within the range may include the following steps:
  • Step 3011a Periodically acquire an image within the range detectable by the terminal.
  • an image acquisition module connected to the terminal or an image acquisition module connected to the terminal may be used to obtain an image within the detectable range of the terminal.
  • the image acquisition module may be a camera.
  • the size of the image acquired by the camera is usually It is: 640 ⁇ 480, 1024 ⁇ 768, 1600 ⁇ 1200 or 2048 ⁇ 1536.
  • the size of the acquired image is different for different cameras. Among the two sets of numbers imaged, the former is the width of the picture and the latter is the height of the picture.
  • the acquired image has an aspect ratio of 4:3.
  • the image within the detectable range of the terminal refers to an image within a range detectable by the terminal, for example, may be an image within a photographable range of the image acquisition module.
  • the period of acquiring the image may be a fixed period, for example, 1 second or 0.5 second, or may be a variable period.
  • two adjacent acquisition periods are triggered by different trigger modes, or are consistent with a preset rule, so that two phases are obtained.
  • the duration of the acquisition cycle of the neighbor is different.
  • Step 3011b Compare the image acquired in the current cycle with the image acquired in the previous cycle.
  • the image acquired in the current period is compared with the image of the previous period acquired 0.5 seconds ago, and it is determined whether the two frames have an object with a position change and are acquired in the current period.
  • step 3011c is performed.
  • step 3011a is performed.
  • the images compared by the terminal are usually images acquired from the same angle. If the terminal can move, the images acquired by the terminal at different angles are usually not compared.
  • Step 3011c When there is an object with a position change in the image acquired in the current period and the image acquired in the previous period, it is determined that there is a moving object in the detectable range of the terminal, and the moving object is an object having a position change.
  • the terminal captures two images at the same angle, and the shape of the same object in the two images produces a position change, and the terminal determines that the object is an object having a position change.
  • the position change in the embodiment of the present application may be a position change in the horizontal direction or a position change in the vertical direction.
  • the number of moving objects may be multiple.
  • all objects having changed positions may be determined as moving objects.
  • the moving object uses ultrasonic waves to determine whether there is a moving object within the detectable range of the terminal.
  • the ultrasonic wave is a sound wave with a frequency higher than 20,000 Hz, which has good directionality, strong penetrating ability, easy to obtain concentrated sound energy, and is often used in ranging, speed measurement and the like.
  • the terminal is provided with an ultrasonic generator and an ultrasonic receiver, and the terminal periodically transmits an ultrasonic signal through the ultrasonic generator, wherein the period of transmitting the ultrasonic signal may be a fixed period, for example, 1 second or 2 seconds, or may be Variable period, for example, two adjacent transmission periods are triggered by different triggering modes, or according to a preset rule, so that the durations of two adjacent transmission periods are different; the terminal receives the returned ultrasonic reflection signal through the ultrasonic receiver;
  • the ultrasonic reflection signal received in the current cycle and the ultrasonic reflection signal received in the previous cycle determine whether there is a moving object; if the ultrasonic reflection signal received in the current cycle is different from the ultrasonic reflection signal received in the previous cycle, it is determined that there is movement The object; if the ultrasonic reflection signal received in the current cycle is the same as the ultrasonic reflection signal received in the previous cycle, it is determined that there is no moving object.
  • the ultrasonic reflected signal received by the current period of the terminal is compared with the ultrasonic reflected signal received before 1 second, if the waveform of the two ultrasonic reflected signals is generated. When there is a change, it is judged that there is a moving object. If the waveforms of the two ultrasonic reflected signals do not change, it is judged that there is no moving object.
  • the ultrasonic signals compared by the terminal are signals transmitted and received from the same angle. If the terminal can move, the signals transmitted and received by the terminal at different angles are usually not compared.
  • Step 3012 Acquire an image including the moving object when there is a moving object in the terminal detectable range.
  • an image including a moving object may be obtained by an image acquisition module provided by the terminal or an image acquisition module connected to the terminal, and the image acquisition module may be a camera, and the image including the moving object may be the acquired terminal of the camera.
  • An image within the range can be detected, and the moving object is included in the image within the detectable range of the terminal.
  • Step 3013 Determine, according to the image that includes the moving object, whether the moving object is within a preset range in which the terminal is located.
  • the method for determining whether the mobile object is in a preset range in which the terminal is located according to the image that includes the moving object may include the following steps:
  • Step 3013a detecting a moving object and a preset size reference object in the image including the moving object Whether the similarity correlation value is less than the preset correlation value threshold.
  • the similarity correlation value and the similarity are negatively correlated, that is, the similarity between the moving object and the preset size reference object is smaller, the higher the similarity between the moving object and the preset size reference object is.
  • the similarity between the two is mainly represented by the similarity of size.
  • the preset correlation value threshold may be set according to an actual situation. In an actual application, the preset correlation value threshold may be set to 10.
  • the image that includes the moving object is determined as the target image, and before the similarity correlation value of the moving object and the preset size reference object in the detection target image is less than a preset correlation value threshold, the image may be established in the target image.
  • An image coordinate system in which the similarity correlation value of the moving object and the reference object is calculated.
  • the origin of the image coordinate system is assumed to be the upper left corner of the target image, and in the coordinate system, the x-axis
  • the positive direction is the direction to the right in the horizontal direction
  • the positive direction of the y-axis is the direction downward in the vertical direction.
  • the formula for calculating the similarity value of the moving object and the reference object may be:
  • M is the height of the reference (in units of 1 pixel)
  • N is the width of the reference (in units of 1 pixel)
  • M ⁇ N represents a matrix of pixels of the reference size
  • target(i,j ) represents the luminance component of the reference object at a pixel of coordinates (i, j)
  • current (ii, jj) represents the overall luminance component of the target image.
  • Image_width represents the width of the target image (in 1 pixel)
  • image_height represents the height of the target image (in 1 pixel).
  • Diff Avgpixelval represents the similarity correlation value between the moving object and the reference object
  • Diff Avgpixelval and the moving object have a negative correlation with the similarity of the reference object, that is, the smaller the value of Diff Avgpixelval , the more similar the similarity between the moving object and the reference object is. high.
  • ABS(*) means to find the absolute value of the content in parentheses.
  • step 3013b Comparing the similarity correlation value of the moving object and the reference object with the preset correlation value threshold value, if the similarity correlation value of the moving object and the reference object is less than the preset correlation value threshold value, performing step 3013b, for example, As shown in FIG. 5, it is assumed that the similarity correlation value of the moving object L1 and the reference object in the image acquired by the terminal in FIG. 5 is less than the preset correlation value threshold, and then step 3013b may be performed; if the moving object is similar to the reference object When the correlation value is not less than the preset correlation value threshold, To perform step 3013c, and then return to step 301 to continue the detection. For example, as shown in FIG. 6 , if the similarity correlation value of the moving object L2 and the reference object in the image acquired by the terminal in FIG. 6 is greater than the preset correlation value threshold, Then step 301 can be performed.
  • Step 3013b When the similarity correlation value of the moving object and the preset size reference object is less than the preset correlation value threshold, determine that the moving object is within the preset range in which the terminal is located.
  • Step 3013c When the similarity correlation value of the moving object and the preset size reference object is not less than the preset correlation value threshold, determine that the moving object is not within the preset range in which the terminal is located.
  • Step 302 Determine the number of moving objects when there is a moving object in a preset range where the terminal is located.
  • Step 303 When the number of moving objects is 1, the moving object is determined as the target object.
  • the moving object can be determined as the target object.
  • Step 304 When the number of moving objects is at least two, one of the at least two moving objects is selected as the target object.
  • the selection manner of selecting the target object in the at least two moving objects may be multiple.
  • the selection manner may include one or more of the following manners, where the selection manner includes the following manners.
  • priority can be set for each of a plurality of ways, and the selection process is performed according to the corresponding priority:
  • a first mode selecting an object closest to the terminal among the at least two moving objects; a second manner, selecting an object in which the sounding direction of the terminal is oriented among the at least two moving objects; and a third mode, at least Among the two moving objects, an object whose front side (for example, a human face) faces the terminal is selected.
  • the target object may be a human body, or a pet that can be moved, such as a cat or a dog.
  • the terminal may also identify some movable machines as target objects, such as a sweeping robot or a drone, but for such a
  • the volume adjustment of the target object loses the original intention of improving the user experience. Therefore, the living body recognition module can be installed on the terminal, and after the target object is determined, the target object is subjected to living body recognition. If the target object is a living body, the volume is set for the target object. Adjusting, if the target object is not a living body, the target object may be excluded and the above steps 301 to 304 are performed again until the target object of the living body is found.
  • Step 305 Determine a target distance between the terminal and the target object in the process of playing the audio and video by the terminal.
  • the target distance is the distance between the center position of the target object and the terminal.
  • the embodiment of the present application can be implemented in the following three manners:
  • the first achievable manner is to calculate a target distance between the terminal and the target object by using a binocular stereo video algorithm.
  • the specific process may include:
  • Step A1 Collect a binocular stereoscopic video image of the target object.
  • Step B1 Perform parallax estimation based on image segmentation stereo matching on the binocular stereoscopic video image.
  • Step C1 Perform consistency check on the disparity image obtained by stereo matching of the image segmentation, and adopt adaptive matching to delete unreliable matching, thereby reducing mismatching of the depth image.
  • Step D1 Converting the parallax image into a depth image according to the relationship between the parallax and the depth.
  • step E1 the depth image is corrected and optimized by using a polygon filter.
  • Step F1 outputting a depth image to obtain binocular stereo video depth information.
  • the target distance D Depth(x, y)
  • Depth(x, y) represents the depth information of the target object
  • (x, y) is the coordinate value of the center of the target object in the preset coordinate system.
  • the second achievable method is to determine the target distance by using an infrared ranging method or a laser ranging method, and the specific process may include:
  • Step A2 A target light is emitted to the target object at the location of the terminal, and the target light is laser or infrared light.
  • Step B2 Receive target light reflected from the target object.
  • Step C2 Obtain a round trip time of the target ray.
  • Step D2 Calculate a distance between the target object and the terminal according to the round trip time.
  • the third achievable method determines the target distance according to the relative position and positioning method.
  • the manner in which the target distance is determined according to the relative positional positioning manner is a manner of positioning according to the displacement change of the object with respect to the reference object. Specifically, it may include a Global Positioning System (GPS) positioning or Wireless Fidelity (WIFI) positioning. This embodiment of the present application does not describe this.
  • GPS Global Positioning System
  • WIFI Wireless Fidelity
  • Step 306 Determine a target volume according to the target distance.
  • the target volume in the embodiment of the present application is a volume that makes the target object feel comfortable at the location.
  • the target volume can be set such that the volume perceived by the person is between 60 decibels and 75 decibels.
  • the embodiment of the present application can be implemented in the following two manners:
  • the first achievable manner is: querying the preset distance and the volume corresponding relationship, and obtaining the target volume corresponding to the target distance.
  • the preset relationship between the distance and the volume may be a preset relationship between the distance, the position and the volume.
  • the data of the corresponding distance, position and volume may be collected through experiments before the terminal leaves the factory, wherein the The experimental environment for the collection experiment can be a general standard environment.
  • the collection experiment can be carried out in a room with an area of 50 square meters.
  • a speaker is arranged at one end of the length direction of the room, and the person is set as the target object, and the target volume is set to 60. Experiment with decibels, constantly adjust the distance and position of the target object and the speaker, and record the corresponding volume that the target object can feel at the distance and position at 60 dB, for example, in the direction of the target object facing the speaker.
  • the target volume corresponding to the target distance can be obtained by looking up the table.
  • the second achievable manner is: obtaining the position of the target object, and calculating the target volume by using a preset association algorithm according to the position of the target object and the target distance.
  • the data of the corresponding distance, position, and volume can be collected through experiments before the terminal leaves the factory.
  • the experimental environment for performing the collection experiment can be a general standard environment, and can be performed in a room with an area of 50 square meters.
  • set a speaker at the end of the length direction of the room set the person as the target object, set the target volume to 60 dB for experiment, continuously adjust the distance and position of the target object and the speaker, and record the position and position at the distance.
  • the volume perceived by the target object is a corresponding volume of 60 decibels.
  • the corresponding target volume is recorded; the direction of the target object facing the speaker And when the speaker is 3 meters away, record the corresponding target volume; when the target object is facing away from the speaker, and the speaker is 2 meters away, record the corresponding target volume; in the direction of the target object facing the speaker, and When the speaker is 3 meters away, record the corresponding target volume; adjust the distance between the target object and the speaker multiple times.
  • a preset association algorithm of the preset distance, position and volume is obtained according to the collected data, and the association algorithm is stored in the storage module of the terminal.
  • the position and the target distance of the target object can be brought into the preset association algorithm to calculate the target volume corresponding to the target distance.
  • a preset coordinate system needs to be set for the terminal, and when the algorithm is established, the collected position is based on the coordinate system, and the location of the terminal in collecting the target object is also based on the preset. Set the coordinate system to ensure the accuracy of the target volume.
  • Step 307 Adjust the volume of the audio and video played by the terminal to the target volume.
  • the target volume in this step is the target volume obtained according to the target distance in step 306.
  • Step 308 Adjust the sounding direction of the terminal so that the sounding direction of the terminal faces the target object.
  • the embodiment of the present application is not limited, and can be implemented by referring to related technologies.
  • the speaker includes The sounding structure 01 and the moving structure 02
  • the moving structure 02 can move the sounding structure 01 to adjust its sounding direction.
  • the moving structure 02 includes a base 021, and a rotating shaft 022 disposed on the base 021.
  • the sounding structure 01 is fixedly coupled to the rotating shaft 022, and is rotated by the rotating shaft 022.
  • a cavity may be disposed in the base 021, and a driving structure is disposed in the cavity.
  • the driving structure may be a micro motor for driving the rotating shaft.
  • the rotating shaft may also be manually adjusted by a user. The embodiment does not limit this.
  • the upper end of the moving structure 02 and the lower end of the sounding structure 01 can be mounted with a magnetic structure (not shown in Fig. 7-2).
  • a magnetic structure not shown in Fig. 7-2
  • the sounding structure 01 can be suspended.
  • the moving structure 02 is moved above, and the sounding structure 01 can be rotated to adjust the sounding direction.
  • the target object by adjusting the sounding direction of the terminal and making the sounding direction of the terminal toward the target object, the target object can obtain better audiovisual sound effects.
  • the embodiment of the present application may determine the target distance between the terminal and the target object by using other methods. For example, when it is detected that at least one mobile object exists in the detectable range of the terminal (the detection method may refer to the foregoing step 3011), The distance between the terminal and each moving object is determined whether there is a distance smaller than the preset distance threshold in the distance between the terminal and each moving object.
  • the specific preset distance threshold may be set according to an actual situation. For example, the preset distance threshold may be Set to 3 meters.
  • the volume adjustment method determines the target volume according to the target distance between the terminal and the target object, and adjusts the volume of the audio and video played by the terminal to the target volume, thereby realizing the automatic audio and video volume of the terminal. Adjustment, no need for the user to manually adjust the volume of the terminal, simplifying the operation process of adjusting the volume, making the volume adjustment operation more convenient.
  • FIG. 8 is a block diagram of a volume adjustment device 40 according to an exemplary embodiment.
  • the volume adjustment device 40 may include:
  • the first determining module 401 is configured to determine a target distance between the terminal and the target object during the playing of the audio and video, wherein the terminal may be a speaker.
  • the second determining module 402 is configured to determine a target volume according to the target distance.
  • the first adjustment module 403 is configured to adjust the volume of the audio and video played by the terminal to the target volume.
  • the volume adjustment apparatus determines the target volume according to the target distance between the terminal and the target object, and adjusts the volume of the audio and video played by the terminal to the target volume, thereby realizing the automatic audio and video volume of the terminal. Adjustment, no need for the user to manually adjust the volume of the terminal, simplifying the operation process of adjusting the volume, making the volume adjustment operation more convenient.
  • the second determining module 402 is configured to:
  • the position of the target object is obtained, and the target volume is calculated by using a preset association algorithm according to the position of the target object and the target distance.
  • FIG. 9 is a block diagram of still another volume adjustment device 40 according to an exemplary embodiment.
  • the volume adjustment device 40 may include: a first determination module 401, a second determination module 402, and a first adjustment module 403. And a second adjustment module 404.
  • the first determining module 401 is configured to determine a target distance between the terminal and the target object during the playing of the audio and video by the terminal.
  • the second determining module 402 is configured to determine a target volume according to the target distance.
  • the first adjustment module 403 is configured to adjust the volume of the audio and video played by the terminal to the target volume.
  • the second adjustment module 404 is configured to adjust the sounding direction of the terminal so that the sounding direction of the terminal faces the target object.
  • FIG. 10 is a block diagram of still another volume adjustment device 40 according to an exemplary embodiment.
  • the volume adjustment device 40 may include: a first determination module 401, a second determination module 402, and a first adjustment module 403.
  • the first determining module 401 is configured to determine a target distance between the terminal and the target object during the playing of the audio and video by the terminal.
  • the second determining module 402 is configured to determine a target volume according to the target distance.
  • the first adjustment module 403 is configured to adjust the volume of the audio and video played by the terminal to the target volume.
  • the detecting module 405 is configured to detect whether there is a moving object within a preset range in which the terminal is located.
  • the third determining module 406 is configured to determine the number of moving objects when a moving object exists within a preset range in which the terminal is located.
  • the fourth determining module 407 is configured to determine the moving object as the target object when the number of moving objects is 1.
  • the fifth determining module 408 is configured to select one moving object as the target object among the at least two moving objects when the number of moving objects is at least two.
  • FIG. 11 is a block diagram of a detection module 405 provided by the embodiment shown in FIG. 10.
  • the detection module 405 may include:
  • the determining sub-module 4051 is configured to determine whether there is a moving object in the detectable range of the terminal.
  • the obtaining sub-module 4052 is configured to acquire an image including the moving object when the moving object exists in the terminal detectable range.
  • the determining sub-module 4053 is configured to determine, according to the image including the moving object, whether the moving object is within a preset range in which the terminal is located.
  • the determining submodule 4053 is configured to:
  • the determining submodule 4051 is configured to:
  • the first determining module 401 is configured to:
  • the target distance is determined by infrared ranging or laser ranging;
  • the target distance is determined according to the relative positional positioning method.
  • the volume adjustment apparatus determines the target volume according to the target distance between the terminal and the target object, and adjusts the volume of the audio and video played by the terminal to the target volume, thereby realizing the automatic audio and video volume of the terminal. Adjustment, no need for the user to manually adjust the volume of the terminal, simplifying the operation process of adjusting the volume, making the volume adjustment operation more convenient.
  • FIG. 12 is a block diagram of still another volume adjustment device 50 according to an exemplary embodiment.
  • the device 50 may be a device having an imaging function, and the volume adjustment device 50 may be used to control an audio and video playback terminal.
  • the terminal can be a speaker, a smart phone, a computer, a multimedia player, an e-reader, a wearable device, and the like. It is preferably a speaker.
  • the structure of the speaker can be referred to the structure shown in Figures 7-1 and 7-2.
  • the volume adjustment device 50 can include:
  • Device 50 may include one or more of the following components: processing component 501, memory 502, power component 503, multimedia component 504, audio component 505, input/output (I/O) interface 506, sensor component 506, and communication component 508.
  • Processing component 501 typically controls the overall operation of device 50, such as operations associated with display, data communication, camera operations, and recording operations.
  • Processing component 501 can include one or more processors 510 to execute instructions to perform all or part of the steps described above.
  • processing component 501 can include one or more modules to facilitate interaction between component 501 and other components.
  • processing component 501 can include a multimedia module to facilitate interaction between multimedia component 504 and processing component 501.
  • Memory 502 is configured to store various types of data to support operation at device 50. Examples of such data include instructions for any application or method operating on device 50, contact data, phone book data, messages, pictures, videos, and the like.
  • Memory 502 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Power component 503 provides power to various components of device 50.
  • Power component 503 can include electricity The source management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 50.
  • the multimedia component 504 includes a screen between the device 50 and the user that provides an output interface.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 504 includes a front camera and/or a rear camera. When the device 50 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 and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 505 is configured to output and/or input an audio signal.
  • the audio component 505 includes a microphone (MIC) that is configured to receive an external audio signal when the device 50 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 502 or transmitted via communication component 508.
  • the audio component 505 also includes a speaker for outputting an audio signal.
  • the I/O interface 506 provides an interface between the processing component 501 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 506 includes one or more sensors for providing device 50 with various aspects of status assessment.
  • sensor assembly 506 can detect an open/closed state of device 50, relative positioning of components, such as the display and keypad of device 50, and sensor component 506 can also detect the location of one component of device 50 or device 50. The presence or absence of contact by the user with the device 50, the orientation or acceleration/deceleration of the device 50 and the temperature change of the device 50.
  • Sensor assembly 506 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 506 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 506 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 508 is configured to facilitate wired or wireless communication between device 50 and other devices.
  • the device 50 can access a wireless network based on a communication standard, such as WIFI, 2G or 3G, or a combination thereof.
  • communication component 508 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 508 also includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • device 50 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 502 comprising instructions executable by processor 510 of apparatus 50 to perform the above method.
  • the non-transitory computer readable storage medium can be a ROM, a random access memory (RAM), a read only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device.
  • a non-transitory computer readable storage medium when the instructions in the storage medium are executed by a processor of the device 50, enabling the device 50 to perform a volume adjustment method provided by an embodiment of the present application
  • the volume adjustment apparatus determines the target volume according to the target distance between the terminal and the target object, and adjusts the volume of the audio and video played by the terminal to the target volume, thereby realizing the automatic audio and video volume of the terminal. Adjustment, no need for the user to manually adjust the volume of the terminal, simplifying the operation process of adjusting the volume, making the volume adjustment operation more convenient.
  • FIG. 13 is a block diagram of a volume adjustment device 60 according to another exemplary embodiment. As shown in FIG. 13 , the volume adjustment device 60 may be a sound box, and the volume adjustment device 60 includes:
  • the sensing module 601 is configured to determine a target distance between the terminal and the target object during the playing of the audio and video, and the audio and video includes at least one of audio and video.
  • the processor 602 is configured to receive a target distance sent by the sensing module 601, and according to the target distance Set the target volume.
  • the speaker module 603 is configured to play the audio and video with the target volume according to the instruction of the processor 602.
  • the sensing module 601 may have the same or similar function as the first determining module 401 in the above embodiment.
  • the sensing module 601 can also have the same or similar functionality as the detection module 405 of the above embodiment.
  • the sensing module 601 can also have the same or similar functions as the acquisition sub-module 4052 in the above embodiment.
  • Processor 602 can have the same or similar functionality as second determination module 402 of the above-described embodiment.
  • the processor can be one or more processors.
  • Processor 602 may also have the same or similar functionality as third determination module 406 of the above-described embodiment.
  • the processor 602 may also have the same or similar functions as the fourth determining module 407 in the above embodiment.
  • Processor 602 may also have the same or similar functionality as fifth determination module 408 of the above-described embodiment.
  • the processor 602 may also have the same or similar functions as the judgment sub-module 4051 in the above embodiment.
  • the processor 602 may also have the same or similar functionality as the determination sub-module 4053 in the above embodiment.
  • the speaker module 603 may have the same or similar function as the first adjustment module 403 in the above embodiment.
  • the volume adjustment apparatus determines the target volume according to the target distance between the terminal and the target object, and adjusts the volume of the audio and video played by the terminal to the target volume, thereby realizing the automatic audio and video volume of the terminal. Adjustment, no need for the user to manually adjust the volume of the terminal, simplifying the operation process of adjusting the volume, making the volume adjustment operation more convenient.
  • the processor 602 is further configured to: query a preset distance and a volume corresponding relationship, and obtain a target volume corresponding to the target distance; or obtain a position of the target object, according to the position of the target object and the target distance, adopt a pre- Let the correlation algorithm calculate the target volume.
  • the volume adjustment device 60 may further include: a driving module 604, The position and/or direction of the driving speaker module is changed to adjust the sounding direction of the terminal.
  • the driving module can be a DC motor, a magnetic suspension component or a mechanical rail.
  • the sensing module 601 is further configured to detect whether a moving object exists in a preset range in which the terminal is located.
  • the processor 602 is further configured to determine the number of moving objects when the sensing module 601 detects that there is a moving object within a preset range in which the terminal is located; and when the number of moving objects is 1, determine the moving object as the target object; When the number of moving objects is at least two, one of the at least two moving objects is selected as the target object.
  • the sensing module 601 can include an image acquisition module 6011.
  • the processor 602 can also be configured to determine whether there is a moving object within the detectable range of the terminal.
  • the image acquisition module 6011 can be configured to acquire an image including the moving object when the processor determines that there is a moving object in the detectable range of the terminal.
  • the image acquisition module can be a camera.
  • the processor 602 is further configured to determine, according to the image that includes the moving object acquired by the image capturing module, whether the moving object is within a preset range in which the terminal is located.
  • the processor 602 is further configured to detect, in the image that includes the moving object, whether a similarity correlation value of the moving object and the preset size reference object is less than a preset correlation value threshold, where the similarity correlation value is similar to Degree negative correlation; when the similarity correlation value of the moving object and the reference object is less than the preset correlation value threshold, it is determined that the moving object is within the preset range in which the terminal is located.
  • the image acquisition module 6011 can be used to periodically acquire images within the detectable range of the terminal.
  • the processor 602 is further configured to compare the image acquired by the current period of the image capturing module with the image acquired in the previous period; and determine the detectable range of the terminal when the image acquired in the current period and the object having the changed position in the image acquired in the previous period There is a moving object, and the moving object is an object with a position change.
  • the sensing module 601 can include:
  • the image acquisition module is configured to calculate a target distance between the terminal and the target object by using a binocular stereo vision algorithm.
  • an infrared sensor is used to determine the target distance using infrared ranging.
  • a laser generator for laser ranging determines the target distance.
  • the GPS is used to determine the target distance according to the relative positional positioning manner.
  • the WIFI module is configured to determine the target distance according to the relative position and positioning manner.
  • the volume adjustment apparatus determines the target volume according to the target distance between the terminal and the target object, and adjusts the volume of the audio and video played by the terminal to the target volume, thereby realizing the automatic audio and video volume of the terminal. Adjustment, no need for the user to manually adjust the volume of the terminal, simplifying the operation process of adjusting the volume, making the volume adjustment operation more convenient.
  • the embodiment of the present application further provides a computer readable storage medium, where the storage medium stores a computer program, and when the computer program is executed by the processor, the volume adjustment method step is implemented, and the method includes:
  • the audio and video comprising at least one of audio and video
  • the volume adjustment method provided by the embodiment of the present application determines the target volume according to the target distance between the terminal and the target object, and adjusts the volume of the audio and video played by the terminal to the target volume, thereby realizing the automatic adjustment of the audio and video volume of the terminal without manual user intervention. Adjusting the volume of the terminal simplifies the operation of adjusting the volume, making the volume adjustment operation more convenient.
  • the determining the target volume according to the target distance may include:
  • the method may further include:
  • the method may further include:
  • the moving object is determined as the target object
  • one of the at least two moving objects is selected as the target object.
  • the detecting whether the mobile object exists in the preset range in which the terminal is located may include:
  • the determining, according to the image that includes the moving object, whether the moving object is in a preset range in which the terminal is located may include:
  • the determining, by the terminal, whether the mobile object exists in the detectable range may include:
  • the determining a target distance between the terminal and the target object may include:
  • the target distance is determined according to a relative positional positioning manner.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Acoustics & Sound (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)

Abstract

本申请是关于一种音量调节方法及装置,属于音视频处理技术领域。所述方法包括:在终端播放音视频的过程中,确定终端与目标物体的目标距离;根据目标距离确定目标音量;将终端播放的音视频的音量调节至目标音量。本申请解决了调节音量的操作复杂,便捷性较低的技术问题。实现了简化调节音量的操作过程,使得音量调节操作更加便捷的有益效果。本申请用于音视频的播放。

Description

音量调节方法及装置
本申请要求于2016年10月11日提交中国专利局、申请号为201610885863.0发明名称为“音量调节方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及音视频处理技术领域,特别涉及一种音量调节方法及装置。
背景技术
随着音视频处理技术的不断发展,能够进行音视频播放的终端应用越来越广泛,其中,较为常见的终端为音箱。
相关技术中,当需要对终端播放的音视频的音量进行调节时,一方面,用户可以旋转设置在终端上的调节旋钮以进行音量调节,另一方面,用户也可以通过相应的遥控器控制终端以进行音量调节。
但是,目前的音量调节方法,都需要用户手动调节终端的音量,因此,调节音量的操作复杂,便捷性较低。
发明内容
为了解决调节音量的操作复杂,便捷性较低的问题,本申请实施例提供了一种音量调节方法及装置。所述技术方案如下:
根据本申请实施例的第一方面,提供一种音量调节方法,包括:
在终端播放音视频的过程中,确定所述终端与目标物体的目标距离,所述音视频包括音频和视频中的至少一种;
根据所述目标距离确定目标音量;
将所述终端播放的音视频的音量调节至所述目标音量。
可选的,所述根据所述目标距离确定目标音量,包括:
查询预设的距离与音量对应关系,得到所述目标距离对应的目标音量;
或者,获取所述目标物体的位置,根据所述目标物体的位置和所述目标距离,采用预设关联算法计算得到目标音量。
可选的,在所述将所述终端播放的音视频的音量调节至所述目标音量之后,所述方法还包括:
调节所述终端的发声方向,使所述终端的发声方向朝向所述目标物体。
可选的,在所述确定所述终端与目标物体的目标距离之前,所述方法还包括:
检测所述终端所在的预设范围内是否存在移动物体;
在所述终端所在的预设范围内存在移动物体时,确定所述移动物体的数量;
在所述移动物体的数量为1时,将所述移动物体确定为所述目标物体;
在所述移动物体的数量为至少两个时,在至少两个移动物体中选择一个移动物体作为所述目标物体。
可选的,所述检测所述终端所在的预设范围内是否存在移动物体,包括:
判断所述终端可检测范围内是否存在移动物体;
在所述终端可检测范围内存在移动物体时,获取包括所述移动物体的图像;
根据包括所述移动物体的图像,确定所述移动物体是否处于所述终端所在的预设范围内。
可选的,所述根据包括所述移动物体的图像,确定所述移动物体是否处于所述终端所在的预设范围内,包括:
检测包括所述移动物体的图像中,所述移动物体与预设大小的参考物的相似度相关值是否小于预设相关值阈值,所述相似度相关值与相似度负相关;
在所述移动物体与所述参考物的相似度相关值小于预设相关值阈值时,确定所述移动物体处于所述终端所在的预设范围内。
可选的,所述判断所述终端可检测范围内是否存在移动物体,包括:
周期性获取所述终端可检测范围内的图像;
比较当前周期获取的图像与上一周期获取的图像;
在所述当前周期获取的图像与所述上一周期获取的图像中存在位置变化的物体时,确定所述终端可检测范围内存在移动物体,且所述移动物体为所述存在位置变化的物体。
可选的,所述确定所述终端与目标物体的目标距离,包括:
利用双目立体视觉算法计算所述终端与目标物体的目标距离;
或者,采用红外测距方式或激光测距方式确定所述目标距离;
或者,根据相对位置定位方式确定所述目标距离。
根据本申请实施例的第二方面,提供一种音量调节装置,所述装置包括:
第一确定模块,用于在终端播放音视频的过程中,确定所述终端与目标物体的目标距离,所述音视频包括音频和视频中的至少一种;
第二确定模块,用于根据所述目标距离确定目标音量;
第一调节模块,用于将所述终端播放的音视频的音量调节至所述目标音量。
可选的,所述第二确定模块,用于:
查询预设的距离与音量对应关系,得到所述目标距离对应的目标音量;
或者,获取所述目标物体的位置,根据所述目标物体的位置和所述目标距离,采用预设关联算法计算得到目标音量。
可选的,所述音量调节装置还包括:
第二调节模块,用于调节所述终端的发声方向,使所述终端的发声方向朝向所述目标物体。
可选的,所述音量调节装置还包括:
检测模块,用于检测所述终端所在的预设范围内是否存在移动物体;
第三确定模块,用于在所述终端所在的预设范围内存在移动物体时,确定所述移动物体的数量;
第四确定模块,用于在所述移动物体的数量为1时,将所述移动物体确定为所述目标物体;
第五确定模块,用于在所述移动物体的数量为至少两个时,在至少两个移动物体中选择一个移动物体作为所述目标物体。
可选的,所述检测模块,包括:
判断子模块,用于判断所述终端可检测范围内是否存在移动物体;
获取子模块,用于在所述终端可检测范围内存在移动物体时,获取包括所述移动物体的图像;
确定子模块,用于根据包括所述移动物体的图像,确定所述移动物体是否处于所述终端所在的预设范围内。
可选的,所述确定子模块用于:
检测包括所述移动物体的图像中,所述移动物体与预设大小的参考物的相似度相关值是否小于预设相关值阈值,所述相似度相关值与相似度负相关;
在所述移动物体与所述参考物的相似度相关值小于预设相关值阈值时,确定所述移动物体处于所述终端所在的预设范围内。
可选的,所述判断子模块用于:
周期性获取所述终端可检测范围内的图像;
比较当前周期获取的图像与上一周期获取的图像;
在所述当前周期获取的图像与所述上一周期获取的图像中存在位置变化的物体时,确定所述终端可检测范围内存在移动物体,且所述移动物体为所述存在位置变化的物体。
可选的,所述第一确定模块,用于:
利用双目立体视觉算法计算所述终端与目标物体的目标距离;
或者,采用红外测距方式或激光测距方式确定所述目标距离;
或者,根据相对位置定位方式确定所述目标距离。
可选的,所述终端为音箱。
根据本申请实施例的第三方面,提供一种音量调节装置,所述装置包括:
传感模块,用于在终端播放音视频的过程中,确定所述终端与目标物体的目标距离,所述音视频包括音频和视频中的至少一种;
处理器,用于接收所述传感模块发送的所述目标距离,并根据所述目标距离确定目标音量;
扬声模块,用于根据所述处理器的指令采用所述目标音量播放所述音视频。
可选的,所述处理器,还用于:查询预设的距离与音量对应关系,得到所述目标距离对应的目标音量;或者,获取所述目标物体的位置,根据所述目标物体的位置和所述目标距离,采用预设关联算法计算得到目标音量。
可选的,所述音量调节装置还包括:驱动模块,用于驱动所述扬声模块 的位置和/或方向变化,以调节所述终端的发声方向。
可选的,所述传感模块还用于检测所述终端所在的预设范围内是否存在移动物体;
所述处理器还用于在所述传感模块检测到所述终端所在的预设范围内存在移动物体时,确定所述移动物体的数量;在所述移动物体的数量为1时,将所述移动物体确定为所述目标物体;在所述移动物体的数量为至少两个时,在至少两个移动物体中选择一个移动物体作为所述目标物体。
可选的,所述传感模块包括图像采集模块,
所述处理器还用于判断所述终端可检测范围内是否存在移动物体;
所述图像采集模块用于在所述处理器判断得到所述终端可检测范围内存在移动物体时,获取包括所述移动物体的图像;
所述处理器还用于根据所述图像采集模块获取的包括所述移动物体的图像,确定所述移动物体是否处于所述终端所在的预设范围内。
可选的,所述处理器还用于检测包括所述移动物体的图像中,所述移动物体与预设大小的参考物的相似度相关值是否小于预设相关值阈值,所述相似度相关值与相似度负相关;在所述移动物体与所述参考物的相似度相关值小于预设相关值阈值时,确定所述移动物体处于所述终端所在的预设范围内。
可选的,所述图像采集模块用于周期性获取所述终端可检测范围内的图像;
所述处理器还用于比较所述图像采集模块当前周期获取的图像与上一周期获取的图像;在所述当前周期获取的图像与所述上一周期获取的图像中存在位置变化的物体时,确定所述终端可检测范围内存在移动物体,且所述移动物体为所述存在位置变化的物体。
可选的,所述传感模块包括:
图像采集模块,用于利用双目立体视觉算法计算所述终端与目标物体的目标距离;
或者,红外传感器,用于采用红外测距方式确定所述目标距离;
或者,激光发生器,用于激光测距方式确定所述目标距离;
或者,全球定位系统GPS,用于根据相对位置定位方式确定所述目标距 离;
或者,无线保真WIFI模块,用于根据相对位置定位方式确定所述目标距离。
根据本申请实施例的第四方面,本申请实施例还公开了一种计算机可读存储介质,所述存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述音量调节方法步骤。
本申请的实施例提供的技术方案可以包括以下有益效果:
本申请实施例提供的音量调节方法及装置,根据终端与目标物体的目标距离来确定目标音量,并将终端播放的音视频的音量调节至目标音量,实现了终端音视频音量的自动调节,无需用户手动调节终端的音量,简化了调节音量的操作过程,使得音量调节操作更加便捷。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本申请。
附图说明
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是根据相关技术示出的一种实施环境的示意图;
图2是根据一示例性实施例示出的一种音量调节方法的方法流程图;
图3是根据一示例性实施例示出的另一种音量调节方法的方法流程图;
图4是根据一示例性实施例示出的又一种音量调节方法的方法流程图;
图5是根据一示例性实施例示出的一种图像中的移动物体示意图;
图6是根据一示例性实施例示出的另一种图像中的移动物体示意图;
图7-1是根据一示例性实施例示出的一种带有旋转功能的终端示意图;
图7-2是根据一示例性实施例示出的另一种带有旋转功能的终端示意图;
图8是根据一示例性实施例示出的一种音量调节装置的框图;
图9是根据一示例性实施例示出的另一种音量调节装置的框图;
图10是根据一示例性实施例示出的又一种音量调节装置的框图;
图11是根据一示例性实施例示出的一种检测模块的框图;
图12是根据一示例性实施例示出的再一种音量调节装置的框图;
图13是根据一示意性实施例示出的再一种音量调节装置的框图;
图14是根据一示意性实施例示出的再一种音量调节装置的框图。
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。
具体实施方式
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
请参见图1,其示出了本申请部分实施例中提供的音量调节方法所涉及的实施环境的示意图。该实施环境可以为室内环境也可以为室外环境,通常为室内环境。该实施环境可以包括:终端01和至少一个用户02。其中,终端01可以具有音视频播放功能,本申请实施例中,音视频包括音频和视频中的至少一种,终端01可以为音箱、智能手机、电脑、多媒体播放器、电子阅读器、可穿戴式设备等。终端01和至少一个用户02的距离可以动态改变。例如,该实施环境可以是在客厅的一端放置有一个音箱,用户开始位于客厅另一端的沙发上,用户可以通过设置在音箱上的按钮或者使用相应的遥控器控制音箱,进行音频播放,同时在音频播放的过程中,用户的位置可能会产生变化,比如,用户在音频播放的过程中,可能会离开当前位置去喝水或者运动,这样就会使用户和音箱的距离发生改变。又例如,该实施环境可以是在酒店大厅的中央放置有一个音箱,酒店内的人员作为用户分散于音箱周围,任一用户可以通过设置在音箱上的按钮或者使用相应的遥控器控制音箱,进行音频播放,同时在音频播放的过程中,用户的位置可能会产生变化,比如,保安的巡逻或者清洁工的打扫,这样就会使用户和音箱的距离发生改变。
图2是根据一示意性实施例示出的一种音量调节方法的方法流程图,该音量调节方法可以用于控制终端01的音量调节,该音量调节方法可以由图1所示实施环境中的终端01来执行。参见图2,该方法流程可以包括如下几个步骤:
步骤201、在终端播放音视频的过程中,确定终端与目标物体的目标距离。
在本申请实施例中,音视频包括音频和视频中的至少一种。
步骤202、根据目标距离确定目标音量。
步骤203、将终端播放的音视频的音量调节至目标音量。
综上所述,本申请实施例提供的音量调节方法,根据终端与目标物体的目标距离来确定目标音量,并将终端播放的音视频的音量调节至目标音量,实现了终端音视频音量的自动调节,无需用户手动调节终端的音量,简化了调节音量的操作过程,使得音量调节操作更加便捷。
图3是根据一示意性实施例示出的另一种音量调节方法的方法流程图,该音量调节方法可以由图1所示实施环境中的音视频播放终端01来执行。参见图3该方法流程可以包括如下几个步骤:
步骤301、检测终端所在的预设范围内是否存在移动物体。
由于本申请实施例中,终端的音量需要根据终端与用户的距离来调节,以满足用户的听觉舒适度,而通常情况下,在终端固定时,终端与用户的距离改变是基于用户的运动,因此,在终端满足预设触发条件时,会检测终端所在的预设范围内是否存在移动物体,该预设触发条件可以为终端上电,也可以为终端开始播放音视频。终端可以在这些移动物体中再确定目标物体,将该目标物体默认为用户。实际应用中,该目标物体可以是人体,也可以是猫、狗等能够移动的宠物,本申请实施例对此不做限定。
可选的,如图4所示,该步骤301可以包括:
步骤3011、判断终端可检测范围内是否存在移动物体。
示例的,判断终端可检测范围内是否存在移动物体的过程可以包括如下步骤:
步骤3011a、周期性获取终端可检测范围内的图像。
示例的,可以通过终端自带的图像获取模块或者是和终端连接的图像获取模块来获得终端可检测范围内的图像,该图像获取模块可以为摄像头,实际应用中,摄像头获取的图像的大小通常为:640×480、1024×768、1600×1200或者2048×1536。具体的,针对不同的摄像头,获取的图像的大小不同。在成像的两组数字中,前者为图片宽度,后者为图片的高度。获取的图像的长宽比一般为4:3。该终端可检测范围内的图像指的是终端能够检测到的范围内中的图像,例如,可以为图像获取模块的可拍摄范围内的图像。其中,获取图像的周期可以为固定周期,例如1秒或0.5秒,也可以为可变周期,例如,两个相邻的获取周期通过不同触发方式触发,或者符合预设规律,使得两个相邻的获取周期的时长不同。
步骤3011b、比较当前周期获取的图像与上一周期获取的图像。
以获取周期为固定周期,且为0.5秒为例,将当前周期获取的图像与0.5秒前获取的上一周期的图像进行比较,确定两帧图像是否存在位置变化的物体,在当前周期获取的图像与上一周期获取的图像中存在位置变化的物体时,则执行步骤3011c,在当前周期获取的图像与上一周期获取的图像中不存在位置变化的物体时,则执行步骤3011a。
需要说明的是,终端比较的图像通常是从同一角度获取的图像,如果终端能够移动,则终端对不同角度获取的图像通常不进行比较。
步骤3011c、在当前周期获取的图像与上一周期获取的图像中存在位置变化的物体时,确定终端可检测范围内存在移动物体,且移动物体为存在位置变化的物体。
例如,终端在同一角度拍摄了两幅图像,该两幅图像中形状相同物体产生了位置变化,则终端确定该物体为存在位置变化的物体。
需要说明的是,本申请实施例中的位置变化可以为水平方向的位置变化,也可以为竖直方向的位置变化。
实际应用中,移动物体的数量可以为多个,在将当前周期获取的图像与上一周期获取的图像进行对比时,可以将所有的位置存在变化的物体确定为移动物体。
本申请实施例中,还可以通过其他方式判断终端可检测范围内是否存在 移动物体,例如,采用超声波来判断终端可检测范围内是否存在移动物体。其中,该超声波是一种频率高于20000赫兹的声波,它的方向性好,穿透能力强,易于获得较集中的声能,经常被应用于测距、测速等方面。示例的,终端上设置有超声波发生器和超声波接收器,终端通过该超声波发生器周期性发射超声波信号,其中,发射超声波信号的周期可以为固定周期,例如1秒或2秒,也可以为可变周期,例如,两个相邻的发射周期通过不同触发方式触发,或者符合预设规律,使得两个相邻的发射周期的时长不同;终端通过超声波接收器接收返回的超声波反射信号;终端比较当前周期接收到的超声波反射信号和上一周期接收到的超声波反射信号,判断是否存在移动物体;如果当前周期接收到的超声波反射信号与上一周期接收到的超声波反射信号不同,则判断存在移动物体;如果当前周期接收到的超声波反射信号与上一周期接收到的超声波反射信号相同,则判断不存在移动物体。
以发射超声波信号的周期为固定周期,且为1秒为例,将终端当前周期接收到的超声波反射信号与1秒前接收到的超声波反射信号进行对比,如果该两个超声波反射信号的波形产生了变化,则判断存在移动物体。如果该两个超声波反射信号的波形没有产生变化,则判断不存在移动物体。
需要说明的是,终端比较的超声波信号是从同一角度发射和接收的信号,如果终端能够移动,则终端对不同角度发射和接收的信号通常不进行比较。
步骤3012、在终端可检测范围内存在移动物体时,获取包括移动物体的图像。
示例的,可以通过终端自带的图像获取模块或者是和终端连接的图像获取模块来获得包括移动物体的图像,该图像获取模块可以为摄像头,该包括移动物体的图像可以为摄像头的获取的终端可检测范围内的图像,且该终端可检测范围内的图像内包括移动物体。
步骤3013、根据包括移动物体的图像,确定移动物体是否处于终端所在的预设范围内。
具体的,根据包括移动物体的图像,确定移动物体是否处于终端所在的预设范围内的方法,可以包括如下步骤:
步骤3013a、检测包括移动物体的图像中,移动物体与预设大小的参考物 的相似度相关值是否小于预设相关值阈值。
其中,该相似度相关值和相似度负相关,也就是,当移动物体与预设大小的参考物的相似度相关值越小的时候,移动物体与预设大小的参考物的相似度越高,两者的相似主要表现为大小的相似。
对于预设相关值阈值本申请实施例不做具体限定,可以根据实际情况来设置预设相关值阈值,实际应用中,该预设相关值阈值可以设置为10。
可选的,将包括移动物体的图像确定为目标图像,在检测目标图像中移动物体与预设大小的参考物的相似度相关值是否小于预设相关值阈值前,可以先在该目标图像中建立图像坐标系,在该图像坐标系中计算出移动物体与该参考物的相似度相关值,示例的,假设该图像坐标系的原点为该目标图像的左上角,在该坐标系中,x轴的正方向为沿水平方向向右的方向,y轴的正方向为沿竖直方向向下的方向,相应的,移动物体与该参考物的相似度相关值计算公式可以为:
Figure PCTCN2017105353-appb-000001
i∈(0,image_width-N),j∈(0,image_height-M);
其中,M为该参考物的高度(单位为1个像素),N为该参考物的宽度(单位为1个像素),M×N代表该参考物大小的像素的矩阵,target(i,j)代表该参考物在坐标为(i,j)的像素点的亮度分量,current(ii,jj)代表目标图像的整体亮度分量。image_width代表目标图像的宽度(单位为1个像素),image_height代表目标图像的高度(单位为1个像素)。DiffAvgpixelval代表移动物体与该参考物的相似度相关值,DiffAvgpixelval和移动物体与该参考物的相似度呈负相关,即DiffAvgpixelval的值越小,表示移动物体与该参考物的相似度越高。ABS(*)表示对括号中内容求绝对值。
将移动物体与该参考物的相似度相关值和预设相关值阈值进行对比,如果移动物体与该参考物的相似度相关值小于预设相关值阈值时,则执行步骤3013b,示例的,如图5所示,假设图5中终端获取的图像中移动物体L1与该参考物的相似度相关值小于预设相关值阈值,此时则可以执行步骤3013b;如果移动物体与该参考物的相似度相关值不小于预设相关值阈值时,此时可 以执行步骤3013c,然后返回步骤301继续检测,示例的,如图6所示,假设图6中终端获取的图像中移动物体L2与该参考物的相似度相关值大于预设相关值阈值时,此时则可以执行步骤301。
步骤3013b、在移动物体与预设大小的参考物的相似度相关值小于预设相关值阈值时,确定移动物体处于终端所在的预设范围内。
步骤3013c、在移动物体与预设大小的参考物的相似度相关值不小于预设相关值阈值时,确定移动物体不处于终端所在的预设范围内。
步骤302、在终端所在的预设范围内存在移动物体时,确定移动物体的数量。
实际应用中,终端所在的预设范围内的移动物体可能有多个,因此需要确定移动物体的数量。
步骤303、在移动物体的数量为1时,将移动物体确定为目标物体。
如果终端范围内只有一个移动物体时,可以将该移动物体确定为目标物体。
步骤304、在移动物体的数量为至少两个时,在至少两个移动物体中选择一个移动物体作为目标物体。
本申请实施例中,在至少两个移动物体中选择目标物体的选择方式可以有多种,示例的,该选择方式可以包括以下方式中的一种或多种,当该选择方式包括以下方式中的多种时,可以为多种方式中的每种方式设定优先级,按照相应的优先级来执行选择过程:
第一种方式、在该至少两个移动物体中选择距离终端最近的物体;第二种方式、在该至少两个移动物体中选择终端的发声方向朝向的物体;第三种方式、在该至少两个移动物体中选择正面(例如人脸)朝向终端的物体。
假设在放置有终端的室内,有小黑和小白两人。其中,小黑位于距离终端5米的地方,小白位于距离终端6米的地方,终端的发声方向背向小黑,朝向小白,小黑的正脸朝向终端,小白背对终端。如果采用上述第一种方式进行选择,则选择小黑作为目标物体;如果采用上述第二种方式进行选择,则选择小白作为目标物体;如果采用上述第三种方式进行选择,则选择小黑作为目标物体。因此,在相同的情况下,采用不同的选择方式,选择出的目 标物体可能不相同。
该目标物体可以是人体,也可以是猫、狗等能够移动的宠物,但是实际应用中,终端也可能将一些可移动的机器识别为目标物体,例如扫地机器人或无人机,但是针对这样的目标物体进行音量调节失去了改善用户体验的初衷,因此,终端上可以安装活体识别模块,在确定目标物体后,对该目标物体进行活体识别,如果该目标物体为活体,则针对目标物体进行音量调节,如果该目标物体不是活体,可以将该目标物体排除后重新执行上述步骤301至304,直至找到活体的目标物体。
步骤305、在终端播放音视频的过程中,确定终端与目标物体的目标距离。
其中,该目标距离为目标物体的中心位置与终端的距离。对于确定终端与目标物体的目标距离的方法,本申请实施例可以通过以下三种方式来实现:
第一种可实现方式,利用双目立体视频算法计算终端与目标物体的目标距离,具体过程可以包括:
步骤A1、采集目标物体的双目立体视频图像。
步骤B1、对双目立体视频图像进行基于图像分割立体匹配的视差估计。
步骤C1、对图像分割立体匹配得到的视差图像进行一致性检查,采用自适应匹配删除不可靠的匹配,减小深度图像的误匹配。
步骤D1、根据视差与深度之间的关系,把视差图像转为深度图像。
步骤E1、采用多边滤波器对该深度图像进行矫正优化。
步骤F1、输出深度图像,得到双目立体视频深度信息。
其中,目标距离D=Depth(x,y),Depth(x,y)表示目标物体的深度信息,(x,y)为目标物体的中心在预设坐标系的坐标值。
第二种可实现方式,采用红外测距方式或激光测距方式确定目标距离,具体过程可以包括:
步骤A2、在终端所在处向目标物体发射一束目标光线,该目标光线为激光或红外光。
步骤B2、接收目标物体反射回来的目标光线。
步骤C2、获取该目标光线的往返时间。
步骤D2、根据该往返时间计算目标物体与终端之间的距离。
其中,目标物体与终端之间的距离可以通过公式D=ct/2来计算,D代表目标距离,c代表目标光线的光速,t代表获取的目标光线的往返时间。
第三种可实现方式,根据相对位置定位方式确定目标距离。
其中,根据相对位置定位方式确定目标距离的方式是一种根据物体相对于参照对象的位移变化来定位的方式。具体可以包括全球定位系统(英文:Global Position System;简称:GPS)定位或者无线保真(英文:Wireless-Fidelity;简称:WIFI)定位等方式。本申请实施例对此不做赘述。
步骤306、根据目标距离确定目标音量。
本申请实施例中的目标音量为使得目标物体在所在位置感到舒适的音量。例如,当目标物体为人时,由于人耳觉得舒适的音量一般为60分贝至75分贝之间,因此可以将目标音量设置为使得人感受到的音量为60分贝至75分贝之间的音量。
对于根据目标距离确定目标音量的方法,本申请实施例可以通过以下两种方式来实现:
第一种可实现方式为:查询预设的距离与音量对应关系,得到目标距离对应的目标音量。
该预设的距离与音量的对应关系可以为预设的距离、位置与音量的关联表,具体的,可以在终端出厂之前,通过实验采集对应的距离、位置和音量的数据,其中,进行该采集实验的实验环境可以为一般的标准环境,可以在面积为50平方米的房间内进行该采集实验,在该房间的长度方向的一端设置一个音箱,设置人作为目标物体,设置目标音量为60分贝进行实验,不断调节目标物体与音箱的距离、位置,记录下在该距离、位置下能使该目标物体感受到的音量为60分贝的对应音量,例如,在目标物体面朝音箱的发声方向,且距离音箱2米时,记录下对应的目标音量;在目标物体面朝音箱的发声方向,且距离音箱3米时,记录下对应的目标音量;在目标物体背对音箱的发声方向,且距离音箱2米时,记录下对应的目标音量;在目标物体背对音箱的发声方向,且距离音箱3米时,记录下对应的目标音量;通过多次调整目标物体与音箱的距离、位置,记录多组数据。根据采集到的数据得出预设的距离、位置与音量的关联表,并将该关联表存储在终端的存储模块。
在获取了目标距离后,可以通过查表的方式,得出目标距离对应的目标音量。
第二种可实现方式为:获取目标物体的位置,根据目标物体的位置和目标距离,采用预设关联算法计算得到目标音量。
具体的,可以在终端出厂之前,通过实验采集对应的距离、位置和音量的数据,其中,进行该采集实验的实验环境可以为一般的标准环境,可以在面积为50平方米的房间内进行该采集实验,在该房间的长度方向的一端设置一个音箱,设置人作为目标物体,设置目标音量为60分贝进行实验,不断调节目标物体与音箱的距离、位置,记录下在该距离、位置下能使该目标物体感受到的音量为60分贝的对应音量,例如,在目标物体面朝音箱的发声方向,且距离音箱2米时,记录下对应的目标音量;在目标物体面朝音箱的发声方向,且距离音箱3米时,记录下对应的目标音量;在目标物体背对音箱的发声方向,且距离音箱2米时,记录下对应的目标音量;在目标物体背对音箱的发声方向,且距离音箱3米时,记录下对应的目标音量;通过多次调整目标物体与音箱的距离、位置,记录多组数据。根据采集到的数据得出预设的距离、位置与音量的预设关联算法,并将该关联算法存储在终端的存储模块。其中,该预设关联算法可以为:V=f(D,T),V为目标音量,D为目标距离,T为目标物体的位置。
在获取了目标距离后,可以将目标物体的位置和目标距离带入该预设关联算法中,计算出目标距离对应的目标音量。
需要说明的是,针对预设关联算法,需要为终端设置一个预设坐标系,则在该算法建立时,采集的位置是基于该坐标系的,而终端在采集目标物体的位置也是基于该预设坐标系的,这样才能保证计算目标音量的准确性。
步骤307、将终端播放的音视频的音量调节至目标音量。
对于具体的调节方法,本申请实施例不做限定,可以参考相关技术来实现。本步骤中的目标音量即为步骤306中根据目标距离得出的目标音量。
步骤308、调节终端的发声方向,使终端的发声方向朝向目标物体。
对于具体的发声方向调节方法,本申请实施例不做限定,可以参考相关技术来实现。示例的,如图7-1和图7-2所示,假设终端为音箱,该音箱包括 发声结构01和移动结构02,移动结构02可以使发声结构01移动,从而使其发声方向调整。例如,如图7-1所示,该移动结构02包括底座021,以及设置在该底座021上能够旋转的转轴022,发声结构01与该转轴022固定连接,在该转轴022的带动下旋转,使其发声方向调整。可选的,底座021中可以设置有空腔,空腔中设置有驱动结构,该驱动结构可以为微型电机,用以驱动转轴转动,实际应用中,该转轴也可以由用户手动调节,本申请实施例对此不作限定。
如图7-2所示,移动结构02的上端和发声结构01的下端可以安装有磁性结构(图7-2未绘出),通过调整两者之间的磁力,可以使得发声结构01悬浮于移动结构02上方,且发声结构01能够旋转,从而调整发声方向。
本申请实施例中,通过调节终端的发声方向,使终端的发声方向朝向目标物体,可以使得目标物体获得更好地视听音效。
实际应用中,本申请实施例还可以通过其他方式确定终端与目标物体的目标距离,例如,在检测到终端的可检测范围内存在至少一个移动物体(检测方法可以参考上述步骤3011)时,确定该终端与各个移动物体的距离,判断该终端与各个移动物体的距离中是否存在小于预设距离阈值的距离,具体的预设距离阈值可以根据实际情况来设置,例如,该预设距离阈值可以设置为3米。当该终端与各个移动物体的距离中存在小于预设距离阈值的距离时,将对应距离小于该预设距离阈值的物体确定为目标物体,并将终端与该目标物体的距离确定为目标距离。
值得说明的是,本申请实施例提供的音量调节方法步骤的先后顺序可以进行适当调整,步骤也可以根据情况进行相应增减,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本申请的保护范围之内,因此不再赘述。
综上所述,本申请实施例提供的音量调节方法,根据终端与目标物体的目标距离来确定目标音量,并将终端播放的音视频的音量调节至目标音量,实现了终端音视频音量的自动调节,无需用户手动调节终端的音量,简化了调节音量的操作过程,使得音量调节操作更加便捷。
图8是根据一示例性实施例示出的一种音量调节装置40的框图,参见图8,该音量调节装置40可以包括:
第一确定模块401,用于在终端播放音视频的过程中,确定终端与目标物体的目标距离,其中,该终端可以为音箱。
第二确定模块402,用于根据目标距离确定目标音量。
第一调节模块403,用于将终端播放的音视频的音量调节至目标音量。
综上所述,本申请实施例提供的音量调节装置,根据终端与目标物体的目标距离来确定目标音量,并将终端播放的音视频的音量调节至目标音量,实现了终端音视频音量的自动调节,无需用户手动调节终端的音量,简化了调节音量的操作过程,使得音量调节操作更加便捷。
可选地,第二确定模块402用于:
查询预设的距离与音量对应关系,得到目标距离对应的目标音量;
或者,获取目标物体的位置,根据目标物体的位置和目标距离,采用预设关联算法计算得到目标音量。
图9是根据一示例性实施例示出的又一种音量调节装置40的框图,参见图9,该音量调节装置40可以包括:第一确定模块401,第二确定模块402,第一调节模块403和第二调节模块404。
第一确定模块401,用于在终端播放音视频的过程中,确定终端与目标物体的目标距离。
第二确定模块402,用于根据目标距离确定目标音量。
第一调节模块403,用于将终端播放的音视频的音量调节至目标音量。
第二调节模块404,用于调节终端的发声方向,使终端的发声方向朝向目标物体。
图10是根据一示例性实施例示出的再一种音量调节装置40的框图,参见图10,该音量调节装置40可以包括:第一确定模块401,第二确定模块402,第一调节模块403,检测模块405,第三确定模块406,第四确定模块407和第五确定模块408。
第一确定模块401,用于在终端播放音视频的过程中,确定终端与目标物体的目标距离。
第二确定模块402,用于根据目标距离确定目标音量。
第一调节模块403,用于将终端播放的音视频的音量调节至目标音量。
检测模块405,用于检测终端所在的预设范围内是否存在移动物体。
第三确定模块406,用于在终端所在的预设范围内存在移动物体时,确定移动物体的数量。
第四确定模块407,用于在移动物体的数量为1时,将移动物体确定为目标物体。
第五确定模块408,用于在移动物体的数量为至少两个时,在至少两个移动物体中选择一个移动物体作为目标物体。
可选地,图11示出的是图10所示实施例提供的一种检测模块405的框图,参见图11,检测模块405可以包括:
判断子模块4051,用于判断终端可检测范围内是否存在移动物体。
获取子模块4052,用于在终端可检测范围内存在移动物体时,获取包括移动物体的图像。
确定子模块4053,用于根据包括移动物体的图像,确定移动物体是否处于终端所在的预设范围内。
可选的,确定子模块4053用于:
检测包括移动物体的图像中,移动物体与预设大小的参考物的相似度相关值是否小于预设相关值阈值,所述相似度相关值与相似度负相关;
在移动物体与该参考物的相似度相关值小于预设相关值阈值时,确定移动物体处于终端所在的预设范围内。
可选的,判断子模块4051用于:
周期性获取终端可检测范围内的图像。
比较当前周期获取的图像与上一周期获取的图像。
在当前周期获取的图像与上一周期获取的图像中存在位置变化的物体时,确定终端可检测范围内存在移动物体,且移动物体为存在位置变化的物体。
可选地,第一确定模块401用于:
利用双目立体视觉算法计算终端与目标物体的目标距离;
或者,采用红外测距方式或激光测距方式确定目标距离;
或者,根据相对位置定位方式确定目标距离。
综上所述,本申请实施例提供的音量调节装置,根据终端与目标物体的目标距离来确定目标音量,并将终端播放的音视频的音量调节至目标音量,实现了终端音视频音量的自动调节,无需用户手动调节终端的音量,简化了调节音量的操作过程,使得音量调节操作更加便捷。
图12是根据一示例性实施例示出的再一种音量调节装置50的框图,例如,装置50可以是具有摄像功能的设备,音量调节装置50可以用于控制音视频播放终端,该音视频播放终端可以为音箱、智能手机、电脑、多媒体播放器、电子阅读器、可穿戴式设备等。优选为音箱。该音箱的结构可以参考图7-1和图7-2所示的结构。
参见图12,该音量调节装置50可以包括:
装置50可以包括以下一个或多个组件:处理组件501,存储器502,电源组件503,多媒体组件504,音频组件505,输入/输出(I/O)接口506,传感器组件506,以及通信组件508。
处理组件501通常控制装置50的整体操作,诸如与显示,数据通信,相机操作和记录操作相关联的操作。处理组件501可以包括一个或多个处理器510来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件501可以包括一个或多个模块,便于处理组件501和其他组件之间的交互。例如,处理组件501可以包括多媒体模块,以方便多媒体组件504和处理组件501之间的交互。
存储器502被配置为存储各种类型的数据以支持在装置50的操作。这些数据的示例包括用于在装置50上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器502可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件503为装置50的各种组件提供电力。电源组件503可以包括电 源管理系统,一个或多个电源,及其他与为装置50生成、管理和分配电力相关联的组件。
多媒体组件504包括在所述装置50和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件504包括一个前置摄像头和/或后置摄像头。当装置50处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件505被配置为输出和/或输入音频信号。例如,音频组件505包括一个麦克风(MIC),当装置50处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器502或经由通信组件508发送。在一些实施例中,音频组件505还包括一个扬声器,用于输出音频信号。
I/O接口506为处理组件501和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件506包括一个或多个传感器,用于为装置50提供各个方面的状态评估。例如,传感器组件506可以检测到装置50的打开/关闭状态,组件的相对定位,例如所述组件为装置50的显示器和小键盘,传感器组件506还可以检测装置50或装置50的一个组件的位置改变,用户与装置50接触的存在或不存在,装置50方位或加速/减速和装置50的温度变化。传感器组件506可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件506还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件506还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件508被配置为便于装置50和其他设备之间有线或无线方式的通信。装置50可以接入基于通信标准的无线网络,如WIFI,2G或3G,或它们的组合。在一个示例性实施例中,通信组件508经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件508还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置50可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器502,上述指令可由装置50的处理器510执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、只读存储器(CD-ROM)、磁带、软盘和光数据存储设备等。
一种非临时性计算机可读存储介质,当所述存储介质中的指令由装置50的处理器执行时,使得装置50能够执行本申请实施例提供的一种音量调节方法
综上所述,本申请实施例提供的音量调节装置,根据终端与目标物体的目标距离来确定目标音量,并将终端播放的音视频的音量调节至目标音量,实现了终端音视频音量的自动调节,无需用户手动调节终端的音量,简化了调节音量的操作过程,使得音量调节操作更加便捷。
图13是根据另一示例性实施例示出的一种音量调节装置60的框图,如图13所示,该音量调节装置60可以为音箱,该音量调节装置60包括:
传感模块601,用于在终端播放音视频的过程中,确定终端与目标物体的目标距离,音视频包括音频和视频中的至少一种。
处理器602,用于接收传感模块601发送的目标距离,并根据目标距离确 定目标音量。
扬声模块603,用于根据处理器602的指令采用目标音量播放音视频。
其中,传感模块601可以具有与上述实施例中第一确定模块401相同或相似的功能。
传感模块601还可以具有与上述实施例中检测模块405相同或相似的功能。
传感模块601还可以具有与上述实施例中获取子模块4052相同或相似的功能。
处理器602可以具有与上述实施例中第二确定模块402相同或相似的功能。该处理器可以为一个或者多个处理器。处理器602还可以具有与上述实施例中第三确定模块406相同或相似的功能。
处理器602还可以具有与上述实施例中第四确定模块407相同或相似的功能。
处理器602还可以具有与上述实施例中第五确定模块408相同或相似的功能。
处理器602还可以具有与上述实施例中判断子模块4051相同或相似的功能。
处理器602还可以具有与上述实施例中确定子模块4053相同或相似的功能。
扬声模块603可以具有与上述实施例中第一调节模块403相同或相似的功能。
综上所述,本申请实施例提供的音量调节装置,根据终端与目标物体的目标距离来确定目标音量,并将终端播放的音视频的音量调节至目标音量,实现了终端音视频音量的自动调节,无需用户手动调节终端的音量,简化了调节音量的操作过程,使得音量调节操作更加便捷。
可选的,处理器602,还可以用于:查询预设的距离与音量对应关系,得到目标距离对应的目标音量;或者,获取目标物体的位置,根据目标物体的位置和目标距离,采用预设关联算法计算得到目标音量。
可选的,如图14所示,音量调节装置60还可以包括:驱动模块604,用 于驱动扬声模块的位置和/或方向变化,以调节终端的发声方向。
示例的,该驱动模块可以为直流电机、磁悬浮组件或者机械导轨等。
可选的,传感模块601还可以用于检测终端所在的预设范围内是否存在移动物体。
处理器602还可以用于在传感模块601检测到终端所在的预设范围内存在移动物体时,确定移动物体的数量;在移动物体的数量为1时,将移动物体确定为目标物体;在移动物体的数量为至少两个时,在至少两个移动物体中选择一个移动物体作为目标物体。
可选的,传感模块601可以包括图像采集模块6011。
处理器602还可以用于判断终端可检测范围内是否存在移动物体。
图像采集模块6011可以用于在处理器判断得到终端可检测范围内存在移动物体时,获取包括移动物体的图像。示例的,该图像采集模块可以为摄像头。
处理器602还可以用于根据图像采集模块获取的包括移动物体的图像,确定移动物体是否处于终端所在的预设范围内。
可选的,处理器602还可以用于检测包括移动物体的图像中,移动物体与预设大小的参考物的相似度相关值是否小于预设相关值阈值,其中,该相似度相关值与相似度负相关;在移动物体与参考物的相似度相关值小于预设相关值阈值时,确定移动物体处于终端所在的预设范围内。
可选的,图像采集模块6011可以用于周期性获取终端可检测范围内的图像。
处理器602还可以用于比较图像采集模块当前周期获取的图像与上一周期获取的图像;在当前周期获取的图像与上一周期获取的图像中存在位置变化的物体时,确定终端可检测范围内存在移动物体,且移动物体为存在位置变化的物体。
可选的,传感模块601可以包括:
图像采集模块,用于利用双目立体视觉算法计算终端与目标物体的目标距离。
或者,红外传感器,用于采用红外测距方式确定目标距离。
或者,激光发生器,用于激光测距方式确定目标距离。
或者,GPS,用于根据相对位置定位方式确定目标距离。
或者,WIFI模块,用于根据相对位置定位方式确定目标距离。
综上所述,本申请实施例提供的音量调节装置,根据终端与目标物体的目标距离来确定目标音量,并将终端播放的音视频的音量调节至目标音量,实现了终端音视频音量的自动调节,无需用户手动调节终端的音量,简化了调节音量的操作过程,使得音量调节操作更加便捷。
本申请实施例还提供了一种计算机可读存储介质,所述存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述音量调节方法步骤,所述方法包括:
在终端播放音视频的过程中,确定所述终端与目标物体的目标距离,所述音视频包括音频和视频中的至少一种;
根据所述目标距离确定目标音量;
将所述终端播放的音视频的音量调节至所述目标音量。
本申请实施例提供的音量调节方法,根据终端与目标物体的目标距离来确定目标音量,并将终端播放的音视频的音量调节至目标音量,实现了终端音视频音量的自动调节,无需用户手动调节终端的音量,简化了调节音量的操作过程,使得音量调节操作更加便捷。
在本申请的一种实现方式中,所述根据所述目标距离确定目标音量,可以包括:
查询预设的距离与音量对应关系,得到所述目标距离对应的目标音量;
或者,获取所述目标物体的位置,根据所述目标物体的位置和所述目标距离,采用预设关联算法计算得到目标音量。
在本申请的一种实现方式中,在所述将所述终端播放的音视频的音量调节至所述目标音量之后,所述方法还可以包括:
调节所述终端的发声方向,使所述终端的发声方向朝向所述目标物体。
在本申请的一种实现方式中,在所述确定所述终端与目标物体的目标距离之前,所述方法还可以包括:
检测所述终端所在的预设范围内是否存在移动物体;
在所述终端所在的预设范围内存在移动物体时,确定所述移动物体的数量;
在所述移动物体的数量为1时,将所述移动物体确定为所述目标物体;
在所述移动物体的数量为至少两个时,在至少两个移动物体中选择一个移动物体作为所述目标物体。
在本申请的一种实现方式中,所述检测所述终端所在的预设范围内是否存在移动物体,可以包括:
判断所述终端可检测范围内是否存在移动物体;
在所述终端可检测范围内存在移动物体时,获取包括所述移动物体的图像;
根据包括所述移动物体的图像,确定所述移动物体是否处于所述终端所在的预设范围内。
在本申请的一种实现方式中,所述根据包括所述移动物体的图像,确定所述移动物体是否处于所述终端所在的预设范围内,可以包括:
检测包括所述移动物体的图像中,所述移动物体与预设大小的参考物的相似度相关值是否小于预设相关值阈值,所述相似度相关值与相似度负相关;
在所述移动物体与所述参考物的相似度相关值小于预设相关值阈值时,确定所述移动物体处于所述终端所在的预设范围内。
在本申请的一种实现方式中,所述判断所述终端可检测范围内是否存在移动物体,可以包括:
周期性获取所述终端可检测范围内的图像;
比较当前周期获取的图像与上一周期获取的图像;
在所述当前周期获取的图像与所述上一周期获取的图像中存在位置变化的物体时,确定所述终端可检测范围内存在移动物体,且所述移动物体为所述存在位置变化的物体。
在本申请的一种实现方式中,所述确定所述终端与目标物体的目标距离,可以包括:
利用双目立体视觉算法计算所述终端与目标物体的目标距离;
或者,采用红外测距方式或激光测距方式确定所述目标距离;
或者,根据相对位置定位方式确定所述目标距离。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
本领域技术人员在考虑说明书及实践这里申请的申请后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由权利要求指出。
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。

Claims (26)

  1. 一种音量调节方法,其特征在于,包括:
    在终端播放音视频的过程中,确定所述终端与目标物体的目标距离,所述音视频包括音频和视频中的至少一种;
    根据所述目标距离确定目标音量;
    将所述终端播放的音视频的音量调节至所述目标音量。
  2. 根据权利要求1所述的方法,其特征在于,
    所述根据所述目标距离确定目标音量,包括:
    查询预设的距离与音量对应关系,得到所述目标距离对应的目标音量;
    或者,获取所述目标物体的位置,根据所述目标物体的位置和所述目标距离,采用预设关联算法计算得到目标音量。
  3. 根据权利要求1所述的方法,其特征在于,在所述将所述终端播放的音视频的音量调节至所述目标音量之后,所述方法还包括:
    调节所述终端的发声方向,使所述终端的发声方向朝向所述目标物体。
  4. 根据权利要求1至3任一所述的方法,其特征在于,
    在所述确定所述终端与目标物体的目标距离之前,所述方法还包括:
    检测所述终端所在的预设范围内是否存在移动物体;
    在所述终端所在的预设范围内存在移动物体时,确定所述移动物体的数量;
    在所述移动物体的数量为1时,将所述移动物体确定为所述目标物体;
    在所述移动物体的数量为至少两个时,在至少两个移动物体中选择一个移动物体作为所述目标物体。
  5. 根据权利要求4所述的方法,其特征在于,
    所述检测所述终端所在的预设范围内是否存在移动物体,包括:
    判断所述终端可检测范围内是否存在移动物体;
    在所述终端可检测范围内存在移动物体时,获取包括所述移动物体的图像;
    根据包括所述移动物体的图像,确定所述移动物体是否处于所述终端所在的预设范围内。
  6. 根据权利要求5所述的方法,其特征在于,
    所述根据包括所述移动物体的图像,确定所述移动物体是否处于所述终端所在的预设范围内,包括:
    检测包括所述移动物体的图像中,所述移动物体与预设大小的参考物的相似度相关值是否小于预设相关值阈值,所述相似度相关值与相似度负相关;
    在所述移动物体与所述参考物的相似度相关值小于预设相关值阈值时,确定所述移动物体处于所述终端所在的预设范围内。
  7. 根据权利要求5所述的方法,其特征在于,
    所述判断所述终端可检测范围内是否存在移动物体,包括:
    周期性获取所述终端可检测范围内的图像;
    比较当前周期获取的图像与上一周期获取的图像;
    在所述当前周期获取的图像与所述上一周期获取的图像中存在位置变化的物体时,确定所述终端可检测范围内存在移动物体,且所述移动物体为所述存在位置变化的物体。
  8. 根据权利要求1至3任一所述的方法,其特征在于,
    所述确定所述终端与目标物体的目标距离,包括:
    利用双目立体视觉算法计算所述终端与目标物体的目标距离;
    或者,采用红外测距方式或激光测距方式确定所述目标距离;
    或者,根据相对位置定位方式确定所述目标距离。
  9. 一种音量调节装置,其特征在于,包括:第一确定模块,用于在终端播放音视频的过程中,确定所述终端与目标物体的目标距离,所述音视频包 括音频和视频中的至少一种;
    第二确定模块,用于根据所述目标距离确定目标音量;
    第一调节模块,用于将所述终端播放的音视频的音量调节至所述目标音量。
  10. 根据权利要求9所述的装置,其特征在于,
    所述第二确定模块,用于:
    查询预设的距离与音量对应关系,得到所述目标距离对应的目标音量;
    或者,获取所述目标物体的位置,根据所述目标物体的位置和所述目标距离,采用预设关联算法计算得到目标音量。
  11. 根据权利要求9所述的装置,其特征在于,所述音量调节装置还包括:
    第二调节模块,用于调节所述终端的发声方向,使所述终端的发声方向朝向所述目标物体。
  12. 根据权利要求9至11任一所述的装置,其特征在于,所述音量调节装置还包括:
    检测模块,用于检测所述终端所在的预设范围内是否存在移动物体;
    第三确定模块,用于在所述终端所在的预设范围内存在移动物体时,确定所述移动物体的数量;
    第四确定模块,用于在所述移动物体的数量为1时,将所述移动物体确定为所述目标物体;
    第五确定模块,用于在所述移动物体的数量为至少两个时,在至少两个移动物体中选择一个移动物体作为所述目标物体。
  13. 根据权利要求12所述的装置,其特征在于,所述检测模块,包括:
    判断子模块,用于判断所述终端可检测范围内是否存在移动物体;
    获取子模块,用于在所述终端可检测范围内存在移动物体时,获取包括 所述移动物体的图像;
    确定子模块,用于根据包括所述移动物体的图像,确定所述移动物体是否处于所述终端所在的预设范围内。
  14. 根据权利要求13所述的装置,其特征在于,
    所述确定子模块用于:
    检测包括所述移动物体的图像中,所述移动物体与预设大小的参考物的相似度相关值是否小于预设相关值阈值,所述相似度相关值与相似度负相关;
    在所述移动物体与所述参考物的相似度相关值小于预设相关值阈值时,确定所述移动物体处于所述终端所在的预设范围内。
  15. 根据权利要求13所述的装置,其特征在于,
    所述判断子模块用于:
    周期性获取所述终端可检测范围内的图像;
    比较当前周期获取的图像与上一周期获取的图像;
    在所述当前周期获取的图像与所述上一周期获取的图像中存在位置变化的物体时,确定所述终端可检测范围内存在移动物体,且所述移动物体为所述存在位置变化的物体。
  16. 根据权利要求9至11任一所述的装置,其特征在于,
    所述第一确定模块,用于:
    利用双目立体视觉算法计算所述终端与目标物体的目标距离;
    或者,采用红外测距方式或激光测距方式确定所述目标距离;
    或者,根据相对位置定位方式确定所述目标距离。
  17. 根据权利要求9所述的装置,其特征在于,所述终端为音箱。
  18. 一种音量调节装置,其特征在于,包括:
    传感模块,用于在终端播放音视频的过程中,确定所述终端与目标物体 的目标距离,所述音视频包括音频和视频中的至少一种;
    处理器,用于接收所述传感模块发送的所述目标距离,并根据所述目标距离确定目标音量;
    扬声模块,用于根据所述处理器的指令采用所述目标音量播放所述音视频。
  19. 根据权利要求18所述的装置,其特征在于,所述处理器,还用于:查询预设的距离与音量对应关系,得到所述目标距离对应的目标音量;或者,获取所述目标物体的位置,根据所述目标物体的位置和所述目标距离,采用预设关联算法计算得到目标音量。
  20. 根据权利要求18所述的装置,其特征在于,所述音量调节装置还包括:驱动模块,用于驱动所述扬声模块的位置和/或方向变化,以调节所述终端的发声方向。
  21. 根据权利要求18至20任一所述的装置,其特征在于,
    所述传感模块还用于检测所述终端所在的预设范围内是否存在移动物体;
    所述处理器还用于在所述传感模块检测到所述终端所在的预设范围内存在移动物体时,确定所述移动物体的数量;在所述移动物体的数量为1时,将所述移动物体确定为所述目标物体;在所述移动物体的数量为至少两个时,在至少两个移动物体中选择一个移动物体作为所述目标物体。
  22. 根据权利要求21所述的装置,其特征在于,所述传感模块包括图像采集模块,
    所述处理器还用于判断所述终端可检测范围内是否存在移动物体;
    所述图像采集模块用于在所述处理器判断得到所述终端可检测范围内存在移动物体时,获取包括所述移动物体的图像;
    所述处理器还用于根据所述图像采集模块获取的包括所述移动物体的图像,确定所述移动物体是否处于所述终端所在的预设范围内。
  23. 根据权利要求22所述的装置,其特征在于,
    所述处理器还用于检测包括所述移动物体的图像中,所述移动物体与预设大小的参考物的相似度相关值是否小于预设相关值阈值,所述相似度相关值与相似度负相关;在所述移动物体与所述参考物的相似度相关值小于预设相关值阈值时,确定所述移动物体处于所述终端所在的预设范围内。
  24. 根据权利要求22所述的装置,其特征在于,
    所述图像采集模块用于周期性获取所述终端可检测范围内的图像;
    所述处理器还用于比较所述图像采集模块当前周期获取的图像与上一周期获取的图像;在所述当前周期获取的图像与所述上一周期获取的图像中存在位置变化的物体时,确定所述终端可检测范围内存在移动物体,且所述移动物体为所述存在位置变化的物体。
  25. 根据权利要求18至21任一所述的装置,其特征在于,所述传感模块包括:
    图像采集模块,用于利用双目立体视觉算法计算所述终端与目标物体的目标距离;
    或者,红外传感器,用于采用红外测距方式确定所述目标距离;
    或者,激光发生器,用于激光测距方式确定所述目标距离;
    或者,全球定位系统GPS,用于根据相对位置定位方式确定所述目标距离;
    或者,无线保真WIFI模块,用于根据相对位置定位方式确定所述目标距离。
  26. 一种计算机可读存储介质,其特征在于,所述存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-8任一所述的方法步骤。
PCT/CN2017/105353 2016-10-11 2017-10-09 音量调节方法及装置 WO2018068689A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610885863.0A CN107920263B (zh) 2016-10-11 2016-10-11 音量调节方法及装置
CN201610885863.0 2016-10-11

Publications (1)

Publication Number Publication Date
WO2018068689A1 true WO2018068689A1 (zh) 2018-04-19

Family

ID=61892561

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/105353 WO2018068689A1 (zh) 2016-10-11 2017-10-09 音量调节方法及装置

Country Status (2)

Country Link
CN (1) CN107920263B (zh)
WO (1) WO2018068689A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218816A (zh) * 2018-11-26 2019-01-15 平安科技(深圳)有限公司 一种基于人脸检测的音量调节方法及装置
CN114071220A (zh) * 2021-11-04 2022-02-18 深圳Tcl新技术有限公司 音效调节方法、装置、存储介质及电子设备
CN114827337A (zh) * 2021-01-19 2022-07-29 博泰车联网(南京)有限公司 音量调整的方法、装置、设备及存储介质

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495652A (zh) * 2018-12-21 2019-03-19 惠州Tcl移动通信有限公司 一种终端设备的音量调节方法、终端设备及存储介质
CN110347365B (zh) * 2019-07-12 2023-04-07 广东美的厨房电器制造有限公司 自动调节播报音量的方法和装置及声音播报设备
CN111782045A (zh) * 2020-06-30 2020-10-16 歌尔科技有限公司 一种设备角度调节方法、装置、智能音箱及存储介质
CN112073706A (zh) * 2020-08-13 2020-12-11 深圳奥比中光科技有限公司 控制定向发声的系统和方法
CN112068512A (zh) * 2020-08-13 2020-12-11 北京小米移动软件有限公司 设备控制方法、设备控制装置及存储介质
CN112235459B (zh) * 2020-09-30 2022-03-04 咪咕音乐有限公司 音量调节方法、电子设备和计算机可读存储介质
CN112637733B (zh) * 2020-12-08 2023-02-28 歌尔科技有限公司 一种自动调节语音设备音量的方法、装置和语音设备
CN113225532B (zh) * 2021-04-30 2022-09-30 重庆天智慧启科技有限公司 一种智能联动视频监控系统和方法
CN113645538B (zh) * 2021-08-04 2023-11-21 北京新科汇智科技发展有限公司 对讲机精准扩音联动系统
CN114125138B (zh) * 2021-10-29 2022-11-01 歌尔科技有限公司 音量调整优化方法、装置、电子设备及可读存储介质
CN114915770A (zh) * 2022-03-22 2022-08-16 青岛海信激光显示股份有限公司 激光投影设备及其控制方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100016014A1 (en) * 2008-07-15 2010-01-21 At&T Intellectual Property I, L.P. Mobile Device Interface and Methods Thereof
CN102185954A (zh) * 2011-04-29 2011-09-14 信源通科技(深圳)有限公司 视频通话中音频调整方法及终端设备
CN103634720A (zh) * 2012-08-21 2014-03-12 联想(北京)有限公司 播放控制的方法及电子设备
CN104378564A (zh) * 2014-11-06 2015-02-25 四川长虹电器股份有限公司 智能电视自动调节音量方法
CN104618796A (zh) * 2015-02-13 2015-05-13 京东方科技集团股份有限公司 一种调节音量的方法及显示设备
CN106851469A (zh) * 2017-02-16 2017-06-13 深圳创维-Rgb电子有限公司 一种调整音箱输出音频的方法和装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009267745A (ja) * 2008-04-24 2009-11-12 Funai Electric Co Ltd テレビジョン受像機
CN101478614A (zh) * 2009-01-19 2009-07-08 深圳华为通信技术有限公司 自适应音量调节的方法、装置及通信终端
JP2013005208A (ja) * 2011-06-16 2013-01-07 Panasonic Corp 音量調整システムおよび音量調整方法
CN103873923A (zh) * 2012-12-12 2014-06-18 联想(北京)有限公司 一种视频处理方法及系统
CN103986994A (zh) * 2014-05-05 2014-08-13 青岛海信电器股份有限公司 一种调整立体声效果的方法及装置
CN105007520A (zh) * 2015-07-13 2015-10-28 华勤通讯技术有限公司 电视节目录制方法、录制设备及录制系统
CN105872770A (zh) * 2016-04-29 2016-08-17 钱涵翀 一种音量调节方法及系统
CN105959793A (zh) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 音量调节方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100016014A1 (en) * 2008-07-15 2010-01-21 At&T Intellectual Property I, L.P. Mobile Device Interface and Methods Thereof
CN102185954A (zh) * 2011-04-29 2011-09-14 信源通科技(深圳)有限公司 视频通话中音频调整方法及终端设备
CN103634720A (zh) * 2012-08-21 2014-03-12 联想(北京)有限公司 播放控制的方法及电子设备
CN104378564A (zh) * 2014-11-06 2015-02-25 四川长虹电器股份有限公司 智能电视自动调节音量方法
CN104618796A (zh) * 2015-02-13 2015-05-13 京东方科技集团股份有限公司 一种调节音量的方法及显示设备
CN106851469A (zh) * 2017-02-16 2017-06-13 深圳创维-Rgb电子有限公司 一种调整音箱输出音频的方法和装置

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218816A (zh) * 2018-11-26 2019-01-15 平安科技(深圳)有限公司 一种基于人脸检测的音量调节方法及装置
CN109218816B (zh) * 2018-11-26 2022-08-12 平安科技(深圳)有限公司 基于人脸检测的音量调节方法、装置、电子设备及存储介质
CN114827337A (zh) * 2021-01-19 2022-07-29 博泰车联网(南京)有限公司 音量调整的方法、装置、设备及存储介质
CN114827337B (zh) * 2021-01-19 2023-08-18 博泰车联网(南京)有限公司 音量调整的方法、装置、设备及存储介质
CN114071220A (zh) * 2021-11-04 2022-02-18 深圳Tcl新技术有限公司 音效调节方法、装置、存储介质及电子设备
CN114071220B (zh) * 2021-11-04 2024-01-19 深圳Tcl新技术有限公司 音效调节方法、装置、存储介质及电子设备

Also Published As

Publication number Publication date
CN107920263A (zh) 2018-04-17
CN107920263B (zh) 2021-10-29

Similar Documents

Publication Publication Date Title
WO2018068689A1 (zh) 音量调节方法及装置
KR102150013B1 (ko) 음향신호를 위한 빔포밍 방법 및 장치
US9075572B2 (en) Media enhancement dock
WO2017059634A1 (zh) 调节显示图像方法及装置
WO2018025458A1 (ja) 情報処理装置、情報処理方法、およびプログラム
CN105120144A (zh) 图像拍摄方法和装置
KR20140104753A (ko) 신체 부위 검출을 이용한 이미지 프리뷰
CN104270565A (zh) 图像拍摄方法、装置及设备
WO2019137081A1 (zh) 一种图像处理方法、图像处理装置及拍照设备
RU2638763C2 (ru) Способ и устройство для улавливания звуков, соответствующих изображениям наблюдения
WO2017177607A1 (zh) 障碍物定位方法、装置及系统
JP2017505466A (ja) 自動ピント合わせ方法、装置、プログラム及び記録媒体
CN105282441A (zh) 拍照方法及装置
US9787939B1 (en) Dynamic viewing perspective of remote scenes
CN104580886A (zh) 拍摄控制方法及装置
WO2016045323A1 (zh) 控制视频画面呈现的方法及装置
WO2018098860A1 (zh) 照片合成方法及装置
CN105554475A (zh) 具有全双工通讯功能的物联网智能设备
KR20150012742A (ko) 영상 촬영 장치 및 이의 촬영 방법
KR20220124244A (ko) 이미지 처리 방법, 전자 기기 및 컴퓨터 판독 가능 저장 매체
JP2016158241A (ja) 撮像装置、撮像アシスト方法及び撮像アシストプログラムを記録した記録媒体
CN109726614A (zh) 3d立体成像方法及装置、可读存储介质、电子设备
KR101701814B1 (ko) 프레이밍 정보를 디스플레이하기 위한 방법 및 장치
CN106550226A (zh) 投影画面校正方法及装置
CN109218709B (zh) 全息内容的调整方法及装置和计算机可读存储介质

Legal Events

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

Ref document number: 17860707

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17860707

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17860707

Country of ref document: EP

Kind code of ref document: A1