CN114125138B - Volume adjustment optimization method and device, electronic equipment and readable storage medium - Google Patents

Volume adjustment optimization method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN114125138B
CN114125138B CN202111277327.XA CN202111277327A CN114125138B CN 114125138 B CN114125138 B CN 114125138B CN 202111277327 A CN202111277327 A CN 202111277327A CN 114125138 B CN114125138 B CN 114125138B
Authority
CN
China
Prior art keywords
position interval
interval
volume
intelligent camera
actual
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202111277327.XA
Other languages
Chinese (zh)
Other versions
CN114125138A (en
Inventor
杨华泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202111277327.XA priority Critical patent/CN114125138B/en
Priority to PCT/CN2021/132376 priority patent/WO2023070785A1/en
Publication of CN114125138A publication Critical patent/CN114125138A/en
Application granted granted Critical
Publication of CN114125138B publication Critical patent/CN114125138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/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
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/60Receiver circuitry for the reception of television signals according to analogue transmission standards for the sound signals
    • H04N5/602Receiver circuitry for the reception of television signals according to analogue transmission standards for the sound signals for digital sound signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • Multimedia (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a volume adjustment optimization method, a device, an electronic device and a readable storage medium, wherein the volume adjustment optimization method comprises the following steps: detecting an actual position interval of a target to be detected relative to the intelligent camera, and acquiring a current volume interval of a sound system in the intelligent camera; acquiring a proper position interval corresponding to the current volume interval according to the mapping relation between the volume interval and the position interval; and adjusting the volume of the sound system in the intelligent camera according to the actual position interval and the proper position interval. The sound system who has solved intelligent camera among the prior art listens to the poor technical problem of effect.

Description

Volume adjustment optimization method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of sound processing technologies, and in particular, to a volume adjustment optimization method and apparatus, an electronic device, and a readable storage medium.
Background
Along with the high-speed development of science and technology, more and more intelligent product is applied to the family environment, at present, can install sound system on the intelligent camera usually, and this sound system includes microphone and speaker, can realize the conversation between the family, but, when user's intelligence is nearer from the camera, the sound of listening to is great usually, and when the user is far away from the intelligent camera, the sound of listening to is less usually, and that is, the sound system of intelligent camera listens to the effect relatively poor.
Disclosure of Invention
The present application mainly aims to provide a volume adjustment optimization method, a volume adjustment optimization device, an electronic device, and a readable storage medium, and aims to solve the technical problem in the prior art that a sound system of an intelligent camera has a poor listening effect.
In order to achieve the above object, the present application provides a volume adjustment optimization method, which is applied to an intelligent camera, and the volume adjustment optimization method includes:
detecting an actual position interval of a target to be detected relative to the intelligent camera, and acquiring a current volume interval of a sound system in the intelligent camera;
acquiring a proper position interval corresponding to the current volume interval according to the mapping relation between the volume interval and the position interval;
and adjusting the volume of the sound system in the intelligent camera according to the actual position interval and the proper position interval.
The application still provides a volume adjustment optimizing apparatus, volume adjustment optimizing apparatus is applied to intelligent camera, volume adjustment optimizing apparatus includes:
the detection and acquisition module is used for detecting the actual position interval of the target to be detected relative to the intelligent camera and acquiring the current volume interval of a sound system in the intelligent camera;
the query module is used for acquiring a proper position interval corresponding to the current volume interval according to the mapping relation between the volume interval and the position interval;
and the volume adjusting module is used for adjusting the volume of the sound system in the intelligent camera according to the actual position interval and the proper position interval.
The present application further provides an electronic device, the electronic device is an entity device, the electronic device includes: a memory, a processor and a program of the volume adjustment optimization method stored on the memory and executable on the processor, which program, when executed by the processor, may implement the steps of the volume adjustment optimization method as described above.
The present application also provides a readable storage medium, which is a computer readable storage medium, on which a program for implementing the volume adjustment optimization method is stored, and when the program is executed by a processor, the method implements the steps of the volume adjustment optimization method as described above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the method for volume adjustment optimization as described above.
The application provides a volume adjustment optimization method, a volume adjustment optimization device, electronic equipment and a readable storage medium, and the method comprises the steps of firstly detecting an actual position interval of a target to be detected relative to an intelligent camera, and acquiring a current volume interval of a sound system in the intelligent camera; according to the method, the appropriate position interval corresponding to the current volume interval is obtained according to the mapping relation between the volume interval and the position interval, the volume of the sound system in the intelligent camera is adjusted according to the actual position interval and the appropriate position interval, so that the current volume interval sent by the sound system in the intelligent camera is adjusted according to the matching degree of the actual position interval and the appropriate position interval, the purpose of adjusting the current volume interval sent by the sound system in the intelligent camera is achieved, the sound interval sent by the sound system in the intelligent camera is matched with the actual distance interval, the better listening effect of the target to be detected can be achieved, the technical defects that when the user intelligence is close to the camera, the listened sound is generally large, and when the user is far from the intelligent camera, the listened sound is generally small are overcome, and therefore the listening effect of the sound system of the intelligent camera is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
Fig. 1 is a schematic flow chart illustrating a volume adjustment optimization method according to a first embodiment of the present disclosure;
FIG. 2 is a schematic flow chart illustrating a volume adjustment optimizing method according to a second embodiment of the present application;
fig. 3 is a schematic device structure diagram of a hardware operating environment related to a volume adjustment optimization method in an embodiment of the present application.
The objectives, features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention more comprehensible, embodiments accompanying figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
In a first embodiment of the volume adjustment and optimization method, referring to fig. 1, the volume adjustment and optimization method includes:
step S10, detecting an actual position interval of a target to be detected relative to the intelligent camera, and acquiring a current volume interval of a sound system in the intelligent camera;
in this embodiment, it should be noted that the volume adjustment optimization method is applied to an intelligent camera, where a sound system is deployed in the intelligent camera, and the sound system includes a speaker and a microphone, and is used to implement a call of the intelligent camera in different monitoring areas. For example, in a home residence, a call between a room of 1 building and a room of 2 buildings monitored by an intelligent camera can be realized.
The current sound pressure level is the sound pressure level of sound emitted by the current sound system, wherein the sound pressure level is a parameter for describing the volume, and the unit is decibel. The target to be detected is a target person of a sound system service in the intelligent camera.
The method comprises the steps of detecting an actual position interval of a target to be detected relative to an intelligent camera, acquiring a current volume interval of a sound system in the intelligent camera, specifically, detecting an actual distance between the target to be detected and the intelligent camera, determining the actual position interval of the target to be detected according to the actual distance, and acquiring the current volume interval of the sound system in the intelligent camera. The current volume interval is a sound pressure level range corresponding to the current volume of the sound system, for example, assuming that the current volume is 2 grids, the corresponding sound pressure level range is 40db to 45 db.
Before the step of obtaining the appropriate position interval corresponding to the current volume interval according to the mapping relationship between the volume interval and the position interval, the volume adjustment optimization method further includes:
step A10, collecting sound pressure level data of a sound system in the intelligent camera at a preset position point;
and A20, establishing a mapping relation between the volume interval and the position interval according to the sound pressure level data.
In this embodiment, it should be noted that the preset location point is a suitable listening location point of a sound with a corresponding suitable sound pressure level. The sound pressure level data comprises a suitable sound pressure level corresponding to each preset location point.
Specifically, sound pressure level data of a sound system in the intelligent camera at least one preset position point is collected, the sound pressure level data is further divided into at least one volume interval, the distance between the preset position point corresponding to each volume interval and the position point of the intelligent camera is further obtained, the position interval corresponding to each volume interval is determined according to the distance between the preset position point corresponding to each volume interval, and the mapping relation between the volume intervals and the position intervals is established by correspondingly storing each volume interval and the corresponding position interval. For example, the sound pressure level range corresponding to the first grid volume (volume interval) is 30 db to 35 db, the distances between the corresponding position points are (0.5, 1,1.6,2.3, 3), the position interval corresponding to the first grid volume is 0 m to 3 m, for example, the sound pressure level range corresponding to the second grid volume (volume interval) is 35 db to 40db, the distances between the corresponding position points are (3, 3.7,4.5,5.4, 6.5), and the position interval corresponding to the first grid volume is 3 m to 6.5 m.
Step S20, acquiring a proper position interval corresponding to the current volume interval according to the mapping relation between the volume interval and the position interval;
in this embodiment, according to a mapping relationship between a volume interval and a position interval, the current volume interval is used as an index, and a suitable position interval corresponding to the current volume interval is queried.
And S30, adjusting the volume of the sound system in the intelligent camera according to the actual position interval and the proper position interval.
In this embodiment, if the actual position interval is inconsistent with the appropriate position interval, the volume of the sound system in the smart camera is adjusted from the current volume interval to a target volume interval corresponding to the actual position interval.
Wherein, according to the actual position interval and the proper position interval, the step of adjusting the volume of the sound system in the intelligent camera comprises the following steps:
step S31, judging whether the actual position interval is consistent with the proper position interval;
step S32, if the actual position interval is consistent with the proper position interval, the volume of a sound system in the intelligent camera is not adjusted;
and S33, if the actual position interval is inconsistent with the proper position interval, adjusting the volume of the sound system in the intelligent camera to a first proper volume interval corresponding to the actual position interval.
In this embodiment, specifically, it is determined whether the actual position interval and the suitable position interval are consistent; if the actual position interval is consistent with the proper position interval, the current volume interval is proved to be matched with the actual position interval, and further, the volume of a sound system in the intelligent camera is not adjusted; and if the actual position interval is inconsistent with the proper position interval, calculating the volume interval lattice number between the current volume interval and a target volume interval corresponding to the actual distance interval, and adjusting the volume of the sound system in the intelligent camera to the target volume interval from the current volume interval according to the volume interval lattice number. For example, if the current volume interval is 1 grid volume, the corresponding sound pressure level range is 30 db to 35 db, the target volume interval is 2 grid volume, and the corresponding sound pressure level range is 35 db to 40db, the volume interval grid number is 1, and then the volume adjustment can be completed by increasing 1 grid volume on the basis of the current volume interval.
The embodiment of the application provides a volume adjustment optimization method, a volume adjustment optimization device, electronic equipment and a readable storage medium, and the method comprises the steps of firstly detecting an actual position interval of a target to be detected relative to an intelligent camera, and acquiring a current volume interval of a sound system in the intelligent camera; according to the method, the appropriate position interval corresponding to the current volume interval is obtained according to the mapping relation between the volume interval and the position interval, the volume of the sound system in the intelligent camera is adjusted according to the actual position interval and the appropriate position interval, so that the current volume interval sent by the sound system in the intelligent camera is adjusted according to the matching degree of the actual position interval and the appropriate position interval, the purpose of adjusting the current volume interval sent by the sound system in the intelligent camera is achieved, the sound interval sent by the sound system in the intelligent camera is matched with the actual distance interval, the better listening effect of the target to be detected can be achieved, the technical defects that when the user intelligence is close to the camera, the listened sound is generally large, and when the user is far from the intelligent camera, the listened sound is generally small are overcome, and therefore the listening effect of the sound system of the intelligent camera is improved.
Example two
Further, based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents to the first embodiment described above may be referred to the above description, and are not repeated herein. On this basis, the step of detecting the actual position interval of the target to be detected relative to the intelligent camera comprises the following steps:
step B10, detecting the actual distance between the intelligent camera and the target to be detected, and determining the actual position interval according to the actual distance;
in this embodiment, an actual distance between the intelligent camera and the target to be detected is detected, the actual position interval is determined according to the actual distance, specifically, the distance between the intelligent camera and the target to be detected is measured through an infrared device on the intelligent camera to obtain a measured distance, the measured distance is used as the actual distance, and then the actual position interval where the actual distance is located is queried according to the size of the actual distance.
Wherein the step of detecting the actual distance between the intelligent camera and the target to be detected comprises:
step B11, measuring the distance between the intelligent camera and the target to be detected through an infrared device on the intelligent camera to obtain a measured distance;
in this embodiment, the distance between the intelligent camera and the target to be detected is measured by the infrared device on the intelligent camera to obtain the measured distance, specifically, infrared rays are transmitted to the target to be detected by the infrared device on the intelligent camera and reflected infrared rays of the target to be detected are received, so as to determine a time interval from the transmission of infrared rays by the infrared device to the reception of infrared rays reflected by the target to be detected, and the distance between the intelligent camera and the target to be detected is calculated according to the time interval to obtain the measured distance.
Step B12, detecting the current human body posture of the target to be detected through the intelligent camera, and determining a distance compensation value according to the current human body posture;
in this embodiment, it should be noted that, since the ear of the human being listens to the sound, the actual distance measured by the infrared ray is the distance from the point on the object to be detected closest to the camera to the intelligent camera, and then the volume compensation is directly performed according to the distance measured by the infrared device, there will be a certain error.
Detecting a current human body posture of the target to be detected through the intelligent camera, determining a distance compensation value according to the current human body posture, specifically, detecting the current human body posture of the target to be detected through the intelligent camera, if the current human body posture is consistent with a standard human body posture, directly taking the measured distance as an actual distance, and if the current human body posture is inconsistent with the standard human body posture, inquiring the distance compensation value corresponding to the current human body posture according to a mapping relation between the human body posture and the distance compensation, wherein the standard human body posture is a human body posture that a human body head is not far away from the camera, such as a standing posture or a lying posture that the head is towards the camera, and the nonstandard human body posture is a human body posture that the human body head is far away from the camera, such as a lying posture that the head is far away from the camera.
The step of detecting the current human body posture of the target to be detected through the intelligent camera comprises the following steps of:
step H10, acquiring a shot image of the intelligent camera on the target to be detected;
in this embodiment, the target to be detected is photographed by the intelligent camera to obtain a photographed image.
Step H20, classifying the shot images according to a preset image classification model to obtain image classification labels;
in this embodiment, it should be noted that the preset image classification model is a machine learning model for classifying the human body posture image, and the preset image classification model may be a convolutional neural network model. The preset image classification model may be a multi-classification model.
And H30, determining the current human body posture according to the image classification label.
In this embodiment, according to a preset image classification model, feature extraction is performed on a pixel matrix corresponding to the shot image to obtain shot image features, so that the shot image features are fully connected to obtain an image classification label; and taking the human body posture corresponding to the image classification label as the current human body posture.
And B13, calculating the actual distance according to the distance compensation value and the measured distance.
In this embodiment, it should be noted that the distance compensation value may be a specific distance value, and may also be a compensation coefficient.
Calculating the actual distance according to the distance compensation value and the measured distance, and specifically, summing the distance compensation value and the measured distance to obtain the actual distance; or the product of the distance compensation value and the measurement matrix is obtained to obtain the actual distance.
The embodiment of the application provides a method for determining an actual distance interval according to an actual distance between a target to be detected and an intelligent camera, namely, firstly, measuring the distance between the intelligent camera and the target to be detected through an infrared device on the intelligent camera to obtain a measured distance, further detecting the current human body posture of the target to be detected through the intelligent camera, determining a distance compensation value according to the current human body posture, and calculating the actual distance according to the distance compensation value and the measured distance, wherein the human ear listening to sound is considered, and the distance measured through the infrared device is compensated by detecting the human body posture of the target to be detected, so that the accuracy of measuring the distance between the target to be detected and the intelligent camera is improved, the distance measurement error of the human body posture for volume adjustment is eliminated, further, the actual position interval is determined according to the actual distance with higher accuracy, and the accuracy of determining the actual position interval where the target to be detected is located can be improved.
EXAMPLE III
Further, based on the first embodiment and the second embodiment of the present application, in another embodiment of the present application, the same or similar contents to those in the first embodiment may refer to the above description, and are not repeated herein. On this basis, the step of detecting the actual position interval of the target to be detected relative to the intelligent camera comprises the following steps:
and C10, detecting the actual rotation angle of the intelligent camera relative to the target to be detected, and determining the actual position interval according to the actual rotation angle.
In this embodiment, it should be noted that the intelligent camera follows the target to be detected, and when the target to be detected moves, the intelligent camera rotates along with the target to be detected.
In this embodiment, an actual rotation angle of the intelligent camera relative to the target to be detected is detected, and the actual position interval is determined according to the actual rotation angle, specifically, an angle of the intelligent camera relative to a rotation reference is measured to obtain the actual rotation angle of the intelligent camera relative to the target to be detected, and then the actual position interval is determined according to the size of the actual rotation angle. Wherein the rotation reference may be set to a horizontal line or a vertical line.
Wherein, the step of detecting the actual rotation angle of the intelligent camera relative to the target to be detected comprises:
step C11, measuring the rotation angle of the intelligent camera relative to a rotation reference to obtain a measured rotation angle;
in this embodiment, it should be noted that an angle sensor is disposed on the intelligent camera, and the angle sensor can measure a rotation angle of the intelligent camera relative to a rotation reference, so as to obtain a measured rotation angle.
Step C12, detecting the current human body posture of the target to be detected through the intelligent camera, and determining an angle compensation value according to the current human body posture;
detecting the current human body posture of the target to be detected through the intelligent camera, directly taking the measured rotating angle as an actual rotating angle if the current human body posture is consistent with a standard human body posture, and inquiring an angle compensation value corresponding to the current human body posture according to a mapping relation between the human body posture and the angle compensation if the current human body posture is inconsistent with the standard human body posture, wherein the standard human body posture is a human body posture that the head of a human body is the center of an image shot by the intelligent camera, the intelligent camera focuses on the head of the human body at the moment, and a correct corresponding relation exists between the rotating angle and an actual distance interval under the standard human body posture. For example, assume that when the center of an image captured by the smart camera is a human leg, the human posture is a lying posture, and at this time, the human leg is within the corresponding distance interval, but the head of the human is not necessarily within the corresponding distance interval, and then the measured rotation angle needs to be compensated to obtain an actual rotation angle when the center of the image captured by the smart camera in the lying posture is the head of the human. For the specific implementation of detecting the current human body posture of the target to be detected by the intelligent camera, reference may be made to the contents in step H10 to step H30, which are not described herein again.
And step C13, calculating the actual rotation angle according to the angle compensation value and the measured rotation angle.
In this embodiment, it should be noted that the angle compensation value may be a specific angle value, or may be a compensation coefficient.
Calculating the actual rotation angle according to the angle compensation value and the measured rotation angle, and specifically, summing the angle compensation value and the measured rotation angle to obtain the actual rotation angle; or the product of the angle compensation value and the measured rotation angle is obtained to obtain the actual rotation angle.
The embodiment of the application provides a method for determining an actual position interval according to an actual rotation angle of an intelligent camera relative to a target to be detected, namely, measuring the rotation angle of the intelligent camera relative to a rotation reference to obtain a measured rotation angle; detecting the current human body posture of the target to be detected through the intelligent camera, and determining an angle compensation value according to the current human body posture; and calculating the actual rotation angle according to the angle compensation value and the measured rotation angle. The human ear listening to the sound is considered, the measurement rotating angle is compensated by detecting the human body posture of the target to be detected, so that the accuracy of measuring the actual rotating angle of the intelligent camera relative to the target to be detected during volume adjustment is improved, the rotating angle measurement error of the human body posture for volume adjustment is eliminated, the actual position interval is determined according to the actual rotating angle with higher accuracy, and the accuracy of determining the actual position interval where the target to be detected is located can be improved.
Example four
Further, referring to fig. 2, based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents to the first embodiment described above may be referred to the above description, and are not repeated again in the following. On this basis, the step of adjusting the volume of the sound system in the intelligent camera according to the actual position interval and the suitable position interval includes:
d10, detecting the current human body posture of the target to be detected through the intelligent camera;
step D20, judging whether the actual position interval is matched with the proper position interval or not according to the current human body posture;
in this embodiment, specifically, the current human body posture of the target to be detected is detected through the intelligent camera, and then whether the current human body posture is consistent with a standard human body posture is judged, and if the current human body posture is consistent with the standard human body posture, whether the actual position interval is matched with the appropriate position interval is judged by judging whether the actual position interval is consistent with the appropriate position interval; if the current human body posture is inconsistent with the standard human body posture, adjusting the actual position interval to a compensated position interval according to position interval compensation corresponding to the current human body posture, and judging whether the actual position interval is matched with the proper position interval by judging whether the compensated position interval is consistent with the proper position interval. It should be noted that the standard human body posture is a human body posture of a tester at a preset position point when a position interval is divided, for example, a standing posture can be set as the standard human body posture. When the current human body posture is different from the standard human body posture, the accuracy of position determination may be affected, and further, in the embodiment of the application, a mapping table between the human body posture and the position interval compensation is established in advance, and the position interval compensation corresponding to the current human body posture can be queried according to the mapping table between the human body posture and the position interval compensation.
Wherein the step of determining whether the actual position interval and the proper position interval are matched by determining whether the actual position interval and the proper position interval are consistent comprises:
judging whether the actual position interval is consistent with the proper position interval, and if so, judging that the actual position interval is matched with the proper position interval; and if the actual position interval is inconsistent with the proper position interval, judging that the actual position interval is not matched with the proper position interval.
Wherein, the step of judging whether the actual position interval is matched with the proper position interval by judging whether the compensated position interval is consistent with the proper position interval comprises:
judging whether the compensated position interval is consistent with the proper position interval or not, and if so, judging that the actual position interval is matched with the proper position interval; and if the compensated position interval is inconsistent with the proper position interval, judging that the actual position interval is not matched with the proper position interval.
Step D30, if the actual position interval is matched with the proper position interval, the sound volume of a sound system in the intelligent camera is not adjusted;
step D40, if the actual position interval is not matched with the proper position interval, determining a target position interval according to the current human body posture and the actual position interval;
and D50, adjusting the volume of the sound system in the intelligent camera to a second proper volume interval corresponding to the target position interval.
In this embodiment, specifically, if the actual position interval matches the appropriate position interval, the volume of the sound system in the smart camera is not adjusted; if the actual position interval is not matched with the proper position interval, acquiring a compensated position interval determined according to the position interval compensation corresponding to the current human body posture and the actual position interval, taking the compensated position interval as a target position interval, inquiring a volume interval corresponding to the target position interval according to a mapping relation between the position interval and the volume interval, obtaining a second proper volume interval, and adjusting the volume of a sound system in the intelligent camera to the second proper volume interval.
The embodiment of the application provides a method for adjusting volume according to human body posture, namely, detecting the current human body posture of a target to be detected through an intelligent camera; judging whether the actual position interval is matched with the proper position interval or not according to the current human body posture; if the actual position interval is matched with the proper position interval, the volume of a sound system in the intelligent camera is not adjusted; the influence of different human body postures on the position interval is considered, the accuracy of judging whether the actual position interval is matched with the proper position interval is improved, and when the actual position interval is not matched with the proper position interval, a target position interval is determined according to the current human body posture and the actual position interval; and adjusting the volume of the sound system in the intelligent camera to a second appropriate volume interval corresponding to the target position interval instead of directly adjusting the volume according to the volume interval corresponding to the actual position interval, so that the situation that the volume is not adjusted accurately due to different postures of the human body is avoided, and the accuracy of volume adjustment is improved.
EXAMPLE five
The embodiment of the present application further provides a volume adjustment optimizing apparatus, the volume adjustment optimizing apparatus is applied to the intelligent camera, the volume adjustment optimizing apparatus includes:
the detection and acquisition module is used for detecting the actual position interval of the target to be detected relative to the intelligent camera and acquiring the current volume interval of a sound system in the intelligent camera;
the query module is used for acquiring a proper position interval corresponding to the current volume interval according to the mapping relation between the volume interval and the position interval;
and the volume adjusting module is used for adjusting the volume of the sound system in the intelligent camera according to the actual position interval and the proper position interval.
Optionally, the volume adjusting module is further configured to:
judging whether the actual position interval is consistent with the proper position interval or not;
if the actual position interval is consistent with the proper position interval, the sound system in the intelligent camera is not adjusted in volume;
and if the actual position interval is inconsistent with the proper position interval, adjusting the volume of a sound system in the intelligent camera to a first proper volume interval corresponding to the actual position interval.
Optionally, the detecting and acquiring module is further configured to:
detecting the actual distance between the intelligent camera and the target to be detected, and determining the actual position interval according to the actual distance; and/or
And detecting the actual rotation angle of the intelligent camera relative to the target to be detected, and determining the actual position interval according to the actual rotation angle.
Optionally, the detecting and acquiring module is further configured to:
measuring the distance between the intelligent camera and the target to be detected through an infrared device on the intelligent camera to obtain a measured distance;
detecting the current human body posture of the target to be detected through the intelligent camera, and determining a distance compensation value according to the current human body posture;
and calculating the actual distance according to the distance compensation value and the measured distance.
Optionally, the detecting and acquiring module is further configured to:
measuring the rotation angle of the intelligent camera relative to a rotation reference to obtain a measured rotation angle;
detecting the current human body posture of the target to be detected through the intelligent camera, and determining an angle compensation value according to the current human body posture;
and calculating the actual rotation angle according to the angle compensation value and the measured rotation angle.
Optionally, the volume adjustment module is further configured to:
detecting the current human body posture of the target to be detected through the intelligent camera;
judging whether the actual position interval is matched with the proper position interval or not according to the current human body posture;
if the actual position interval is matched with the proper position interval, the volume of a sound system in the intelligent camera is not adjusted;
if the actual position interval is not matched with the proper position interval, determining a target position interval according to the current human body posture and the actual position interval;
and adjusting the volume of the sound system in the intelligent camera to a second appropriate volume interval corresponding to the target position interval.
Optionally, the volume adjustment optimizing device is further configured to:
collecting sound pressure level data of a sound system in the intelligent camera at a preset position point;
and establishing a mapping relation between the volume interval and the position interval according to the sound pressure level data.
The volume adjustment optimization device provided by the invention adopts the volume adjustment optimization method in the embodiment, and solves the technical problem that the sound system of the intelligent camera has poor listening effect. Compared with the prior art, the beneficial effects of the volume adjustment optimization device provided by the embodiment of the invention are the same as the beneficial effects of the volume adjustment optimization method provided by the embodiment, and other technical features of the volume adjustment optimization device are the same as those disclosed by the embodiment method, which are not described herein again.
Example six
An embodiment of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the volume adjustment optimization method in the first embodiment.
Referring now to FIG. 3, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device may include a processing means (e.g., a central processing unit, a graphic processor, etc.) that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage means into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other through a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, and the like; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is understood that implementing or having all of the illustrated systems is not a requirement. More or fewer systems may alternatively be implemented or provided.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The electronic equipment provided by the invention adopts the volume adjustment optimization method in the embodiment, and solves the technical problem that the sound system of the intelligent camera has poor listening effect. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as the beneficial effects of the volume adjustment optimization method provided by the first embodiment, and other technical features of the electronic device are the same as those disclosed in the embodiment method, which are not repeated herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
EXAMPLE seven
The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for performing the method for volume adjustment optimization in the first embodiment.
Embodiments of the present invention provide a computer readable storage medium, such as a USB flash drive, but are not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer-readable storage medium carries one or more programs which, when executed by an electronic device, cause the electronic device to: detecting an actual position interval of a target to be detected relative to the intelligent camera, and acquiring a current volume interval of a sound system in the intelligent camera; acquiring a proper position interval corresponding to the current volume interval according to the mapping relation between the volume interval and the position interval; and adjusting the volume of the sound system in the intelligent camera according to the actual position interval and the proper position interval.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer readable storage medium provided by the invention stores the computer readable program instruction for executing the volume adjustment optimization method, and solves the technical problem that the sound system of the intelligent camera has poor listening effect. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the invention are the same as the beneficial effects of the volume adjustment optimization method provided by the embodiment, and details are not repeated herein.
Example eight
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the method for volume adjustment optimization as described above.
The computer program product solves the technical problem that a sound system of an intelligent camera is poor in listening effect. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present invention are the same as the beneficial effects of the volume adjustment optimization method provided by the above embodiment, and are not described herein again.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (9)

1. A volume adjustment optimization method is applied to an intelligent camera and comprises the following steps:
detecting an actual position interval of a target to be detected relative to the intelligent camera, and acquiring a current volume interval of a sound system in the intelligent camera;
acquiring a proper position interval corresponding to the current volume interval according to the mapping relation between the volume interval and the position interval;
according to the actual position interval and the proper position interval, volume adjustment is carried out on a sound system in the intelligent camera;
wherein, according to the actual position interval and the proper position interval, the step of adjusting the volume of the sound system in the intelligent camera comprises the following steps:
detecting the current human body posture of the target to be detected through the intelligent camera;
judging whether the actual position interval is matched with the proper position interval or not according to the current human body posture;
if the actual position interval is matched with the proper position interval, the volume of a sound system in the intelligent camera is not adjusted;
if the actual position interval is not matched with the proper position interval, determining a target position interval according to the current human body posture and the actual position interval;
adjusting the volume of a sound system in the intelligent camera to a second appropriate volume interval corresponding to the target position interval;
wherein, the step of judging whether the actual position interval is matched with the proper position interval according to the current human body posture comprises the following steps:
if the current human body posture is inconsistent with the standard human body posture, adjusting the actual position interval to be a compensated position interval according to the position interval compensation corresponding to the current human body posture;
and judging whether the actual position interval is matched with the proper position interval or not by judging whether the compensated position interval is consistent with the proper position interval or not.
2. The method for optimizing volume adjustment according to claim 1, wherein after the step of determining whether the actual position interval and the proper position interval match by determining whether the compensated position interval and the proper position interval coincide, the method further comprises:
if the current human body posture is consistent with the standard human body posture, judging whether the actual position interval is consistent with the proper position interval or not;
if the actual position interval is consistent with the proper position interval, judging that the actual position interval is matched with the proper position interval, and not adjusting the volume of a sound system in the intelligent camera;
and if the actual position interval is inconsistent with the proper position interval, judging that the actual position interval is not matched with the proper position interval, and adjusting the volume of the sound system in the intelligent camera to a first proper volume interval corresponding to the actual position interval.
3. The volume adjustment optimization method according to claim 1, wherein the step of detecting an actual position interval of the object to be detected relative to the intelligent camera comprises:
detecting the actual distance between the intelligent camera and the target to be detected, and determining the actual position interval according to the actual distance; and/or
And detecting the actual rotation angle of the intelligent camera relative to the target to be detected, and determining the actual position interval according to the actual rotation angle.
4. The volume adjustment optimization method according to claim 3, wherein the step of detecting the actual distance between the smart camera and the target to be detected comprises:
measuring the distance between the intelligent camera and the target to be detected through an infrared device on the intelligent camera to obtain a measured distance;
detecting the current human body posture of the target to be detected through the intelligent camera, and determining a distance compensation value according to the current human body posture;
and calculating the actual distance according to the distance compensation value and the measured distance.
5. The volume adjustment optimization method according to claim 3, wherein the step of detecting the actual rotation angle of the smart camera with respect to the target to be detected comprises:
measuring the rotation angle of the intelligent camera relative to a rotation reference to obtain a measured rotation angle;
detecting the current human body posture of the target to be detected through the intelligent camera, and determining an angle compensation value according to the current human body posture;
and calculating the actual rotation angle according to the angle compensation value and the measured rotation angle.
6. The method for optimizing volume adjustment according to claim 1, wherein before the step of obtaining the proper position interval corresponding to the current volume interval according to the mapping relationship between the volume interval and the position interval, the method for optimizing volume adjustment further comprises:
collecting sound pressure level data of a sound system in the intelligent camera at a preset position point;
and establishing a mapping relation between the volume interval and the position interval according to the sound pressure level data.
7. The utility model provides a volume adjustment optimizing device which characterized in that is applied to intelligent camera, volume adjustment optimizing device includes:
the detection and acquisition module is used for detecting the actual position interval of the target to be detected relative to the intelligent camera and acquiring the current volume interval of a sound system in the intelligent camera;
the query module is used for acquiring a proper position interval corresponding to the current volume interval according to the mapping relation between the volume interval and the position interval;
the volume adjusting module is used for adjusting the volume of the sound system in the intelligent camera according to the actual position interval and the proper position interval;
wherein the volume adjustment module is further configured to:
detecting the current human body posture of the target to be detected through the intelligent camera;
judging whether the actual position interval is matched with the proper position interval or not according to the current human body posture;
if the actual position interval is matched with the proper position interval, the volume of a sound system in the intelligent camera is not adjusted;
if the actual position interval is not matched with the proper position interval, determining a target position interval according to the current human body posture and the actual position interval;
adjusting the volume of a sound system in the intelligent camera to a second proper volume interval corresponding to the target position interval;
wherein, the step of judging whether the actual position interval is matched with the proper position interval according to the current human body posture comprises the following steps:
if the current human body posture is inconsistent with the standard human body posture, adjusting the actual position interval to be a compensated position interval according to the position interval compensation corresponding to the current human body posture;
and judging whether the actual position interval is matched with the proper position interval or not by judging whether the compensated position interval is consistent with the proper position interval or not.
8. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the volume adjustment optimization method of any one of claims 1 to 6.
9. A readable storage medium having stored thereon a program for implementing a volume adjustment optimization method, the program being executed by a processor to implement the steps of the volume adjustment optimization method according to any one of claims 1 to 6.
CN202111277327.XA 2021-10-29 2021-10-29 Volume adjustment optimization method and device, electronic equipment and readable storage medium Active CN114125138B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111277327.XA CN114125138B (en) 2021-10-29 2021-10-29 Volume adjustment optimization method and device, electronic equipment and readable storage medium
PCT/CN2021/132376 WO2023070785A1 (en) 2021-10-29 2021-11-23 Volume adjustment optimization method and apparatus, electronic device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111277327.XA CN114125138B (en) 2021-10-29 2021-10-29 Volume adjustment optimization method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114125138A CN114125138A (en) 2022-03-01
CN114125138B true CN114125138B (en) 2022-11-01

Family

ID=80379654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111277327.XA Active CN114125138B (en) 2021-10-29 2021-10-29 Volume adjustment optimization method and device, electronic equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN114125138B (en)
WO (1) WO2023070785A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618796A (en) * 2015-02-13 2015-05-13 京东方科技集团股份有限公司 Volume adjusting method and display equipment
CN105430501A (en) * 2015-12-03 2016-03-23 青岛海信电器股份有限公司 Volume adjustment method and system
CN109764889A (en) * 2018-12-06 2019-05-17 深圳前海达闼云端智能科技有限公司 Blind guiding method and device, storage medium and electronic equipment
CN112655000A (en) * 2020-04-30 2021-04-13 华为技术有限公司 In-vehicle user positioning method, vehicle-mounted interaction method, vehicle-mounted device and vehicle

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107885329B (en) * 2015-05-19 2021-04-16 Oppo广东移动通信有限公司 Rotary camera adjusting method and user terminal
CN107920263B (en) * 2016-10-11 2021-10-29 杭州萤石网络股份有限公司 Volume adjusting method and device
CN106851469A (en) * 2017-02-16 2017-06-13 深圳创维-Rgb电子有限公司 It is a kind of to adjust the method and apparatus that audio amplifier exports audio
CN108628572B (en) * 2018-04-10 2020-03-31 平安科技(深圳)有限公司 Method and device for adjusting volume by robot, computer equipment and storage medium
CN108632466B (en) * 2018-04-28 2021-01-08 维沃移动通信有限公司 Volume compensation method and mobile terminal
CN109062533B (en) * 2018-07-13 2021-06-15 Oppo广东移动通信有限公司 Sound production control method, sound production control device, electronic device, and storage medium
CN108933911B (en) * 2018-07-27 2021-12-07 深圳市广和通无线股份有限公司 Volume adjusting method, device, equipment and storage medium
CN109639893A (en) * 2018-12-14 2019-04-16 Oppo广东移动通信有限公司 Play parameter method of adjustment, device, electronic equipment and storage medium
CN111510905A (en) * 2020-05-04 2020-08-07 宋彦震 Method for adaptively adjusting sound size of player based on user distance
CN112601115B (en) * 2020-12-10 2023-10-31 深圳康佳电子科技有限公司 Volume adjusting method of intelligent television, storage medium and intelligent television

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618796A (en) * 2015-02-13 2015-05-13 京东方科技集团股份有限公司 Volume adjusting method and display equipment
CN105430501A (en) * 2015-12-03 2016-03-23 青岛海信电器股份有限公司 Volume adjustment method and system
CN109764889A (en) * 2018-12-06 2019-05-17 深圳前海达闼云端智能科技有限公司 Blind guiding method and device, storage medium and electronic equipment
CN112655000A (en) * 2020-04-30 2021-04-13 华为技术有限公司 In-vehicle user positioning method, vehicle-mounted interaction method, vehicle-mounted device and vehicle

Also Published As

Publication number Publication date
WO2023070785A1 (en) 2023-05-04
CN114125138A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
CN111783392B (en) Drawing examination result display method and related equipment
CN114063964A (en) Volume compensation optimization method and device, electronic equipment and readable storage medium
CN109061611B (en) Proximity sensor calibration method and related device
CN114125659A (en) Volume real-time compensation method, electronic device and readable storage medium
CN110765182B (en) Data statistical method and device, electronic equipment and storage medium
CN112863545B (en) Performance test method, device, electronic equipment and computer readable storage medium
JP7472281B2 (en) Electronic device and focusing method
CN114125138B (en) Volume adjustment optimization method and device, electronic equipment and readable storage medium
CN114089945A (en) Volume real-time adjustment method, electronic device and readable storage medium
CN111294704B (en) Audio processing method, device and storage medium
CN113421588A (en) Method and device for detecting abnormal sound of household appliance, electronic equipment and storage medium
CN116597340B (en) High altitude parabolic position prediction method, electronic device and readable storage medium
CN115713616B (en) House source space model generation method and device, terminal equipment and storage medium
CN111782903A (en) Analysis report generation method and related equipment
WO2023142266A1 (en) Remote interaction method, remote interaction device and computer storage medium
CN115495038A (en) Audio adjusting method and device, electronic equipment and readable storage medium
CN114499709B (en) Antenna radio test method and device, electronic equipment and storage medium
CN115550619A (en) Projection correction method and device, electronic equipment and readable storage medium
CN114302278A (en) Headset wearing calibration method, electronic device and computer-readable storage medium
CN114264365A (en) Wind noise detection method and device, terminal equipment and storage medium
CN110941455B (en) Active wake-up method and device and electronic equipment
CN110933305B (en) Electronic equipment and focusing method
CN116074870A (en) Signal fault monitoring method, device, system and storage medium
WO2020048213A1 (en) Fingertip detection method, fingertip detection means, fingertip detection device, and medium
CN111859502A (en) Method and related equipment for positioning drawing review result

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant