CN114063964A - Volume compensation optimization method and device, electronic equipment and readable storage medium - Google Patents

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

Info

Publication number
CN114063964A
CN114063964A CN202111277317.6A CN202111277317A CN114063964A CN 114063964 A CN114063964 A CN 114063964A CN 202111277317 A CN202111277317 A CN 202111277317A CN 114063964 A CN114063964 A CN 114063964A
Authority
CN
China
Prior art keywords
pressure level
sound pressure
volume compensation
distance
intelligent camera
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.)
Pending
Application number
CN202111277317.6A
Other languages
Chinese (zh)
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 CN202111277317.6A priority Critical patent/CN114063964A/en
Priority to PCT/CN2021/132596 priority patent/WO2023070791A1/en
Publication of CN114063964A publication Critical patent/CN114063964A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Abstract

The application discloses a volume compensation optimization method, a device, an electronic device and a readable storage medium, which are applied to an intelligent camera, wherein the volume compensation optimization method comprises the following steps: detecting the actual distance between the intelligent camera and a target to be detected, and acquiring the current sound pressure level of a sound system in the intelligent camera; determining a volume compensation value according to the current sound pressure level and the actual distance; and according to the volume compensation value, carrying out volume compensation on a sound system in the intelligent camera. The sound system who has solved intelligent camera among the prior art listens to the poor technical problem of effect.

Description

Volume compensation 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 compensation 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 compensation optimization method, a volume compensation 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 compensation optimization method, which is applied to an intelligent camera, and the volume compensation optimization method includes:
detecting the actual distance between the intelligent camera and a target to be detected, and acquiring the current sound pressure level of a sound system in the intelligent camera;
determining a volume compensation value according to the current sound pressure level and the actual distance;
and according to the volume compensation value, carrying out volume compensation on a sound system in the intelligent camera.
Optionally, the step of determining a volume compensation value according to the current sound pressure level and the actual distance includes:
acquiring a preset appropriate distance corresponding to the current sound pressure level;
judging whether the preset proper distance is matched with the actual distance;
if the preset proper distance is not matched with the actual distance, determining a volume compensation value according to the current sound pressure level and the actual distance;
and if the preset proper distance is matched with the actual distance, the sound system in the intelligent camera is not subjected to volume compensation.
Optionally, the step of determining a volume compensation value according to the current sound pressure level and the actual distance includes:
determining a proper sound pressure level at the actual distance according to a mapping relation between the sound pressure level and the distance;
calculating the difference between the current sound pressure level and the proper sound pressure level to obtain a sound pressure level difference;
and calculating the volume compensation value according to the sound pressure level difference value.
Optionally, the step of calculating the volume compensation value according to the sound pressure level difference value includes:
judging whether the sound pressure level difference value is smaller than a preset sound pressure level threshold value or not;
if the sound pressure level difference value is not smaller than the preset sound pressure level threshold, calculating a ratio between the sound pressure level difference value and the preset sound pressure level threshold to obtain the volume compensation value;
and if the sound pressure level difference value is smaller than the preset sound pressure level threshold value, not performing volume compensation on a sound system in the intelligent camera.
Optionally, the step of determining an appropriate sound pressure level at the actual distance according to the mapping relationship between the sound pressure level and the distance includes:
inquiring a preset sound pressure level corresponding to the actual distance according to the mapping relation between the sound pressure level and the distance;
detecting the current human body posture of the target to be detected through the intelligent camera, and determining sound pressure level compensation according to the current human body posture;
and determining the proper sound pressure level according to the sound pressure level compensation and the preset sound pressure level.
Optionally, the step of detecting the actual distance between the intelligent camera and the target to be detected includes:
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 step of detecting the current human body posture of the target to be detected by the intelligent camera includes:
acquiring a shot image of the intelligent camera on the target to be detected;
classifying the shot images according to a preset image classification model to obtain image classification labels;
and determining the current human body posture according to the image classification label.
The application still provides a volume compensation optimization device, the volume compensation optimization device is applied to intelligent camera, the volume compensation optimization device includes:
the detection and acquisition module is used for detecting the actual distance between the intelligent camera and the target to be detected and acquiring the current sound pressure level of a sound system in the intelligent camera;
the compensation determining module is used for determining a volume compensation value according to the current sound pressure level and the actual distance;
and the volume compensation module is used for carrying out volume compensation on the sound system in the intelligent camera according to the volume compensation value.
Optionally, the compensation determining module is further configured to:
acquiring a preset appropriate distance corresponding to the current sound pressure level;
judging whether the preset proper distance is matched with the actual distance;
if the preset proper distance is not matched with the actual distance, determining a volume compensation value according to the current sound pressure level and the actual distance;
and if the preset proper distance is matched with the actual distance, the sound system in the intelligent camera is not subjected to volume compensation.
Optionally, the compensation determining module is further configured to:
determining a proper sound pressure level at the actual distance according to a mapping relation between the sound pressure level and the distance;
calculating the difference between the current sound pressure level and the proper sound pressure level to obtain a sound pressure level difference;
and calculating the volume compensation value according to the sound pressure level difference value.
Optionally, the compensation determining module is further configured to:
judging whether the sound pressure level difference value is smaller than a preset sound pressure level threshold value or not;
if the sound pressure level difference value is not smaller than the preset sound pressure level threshold, calculating a ratio between the sound pressure level difference value and the preset sound pressure level threshold to obtain the volume compensation value;
and if the sound pressure level difference value is smaller than the preset sound pressure level threshold value, not performing volume compensation on a sound system in the intelligent camera.
Optionally, the compensation determining module is further configured to:
inquiring a preset sound pressure level corresponding to the actual distance according to the mapping relation between the sound pressure level and the distance;
detecting the current human body posture of the target to be detected through the intelligent camera, and determining sound pressure level compensation according to the current human body posture;
and determining the proper sound pressure level according to the sound pressure level compensation and the preset sound pressure level.
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:
acquiring a shot image of the intelligent camera on the target to be detected;
classifying the shot images according to a preset image classification model to obtain image classification labels;
and determining the current human body posture according to the image classification label.
The present application further provides an electronic device, the electronic device including: a memory, a processor and a program of the volume compensation 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 compensation 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 a volume compensation optimization method is stored, and when executed by a processor, the program for implementing the volume compensation optimization method implements the steps of the volume compensation 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 volume compensation optimization method as described above.
The application provides a volume compensation optimization method, a device, an electronic device and a readable storage medium, namely, the actual distance between an intelligent camera and a target to be detected is detected, the current sound pressure level of a sound system in the intelligent camera is obtained, a volume compensation value is determined according to the current sound pressure level and the actual distance, the volume compensation value required by the current volume is determined according to the current volume and the actual distance, the sound system in the intelligent camera is subjected to volume compensation according to the volume compensation value, the purpose of performing volume compensation on the current sound pressure level sent by the sound system in the intelligent camera according to the actual distance between the target to be detected and the intelligent camera is realized, the sound sent by the sound system in the intelligent camera is matched with the actual distance, and the target to be detected can be better listened, the technical defect that when the user intelligence is closer to the camera, the sound of listening to is generally large, and when the user is farther from the intelligent camera, the sound of listening to is generally small is overcome, so that 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 needed to be 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 exercise.
Fig. 1 is a schematic flow chart of a first embodiment of a volume compensation optimization method according to the present application;
FIG. 2 is a schematic flow chart illustrating a volume compensation optimization method according to a second embodiment of the present disclosure;
fig. 3 is a schematic device structure diagram of a hardware operating environment related to a volume compensation 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 comprehensible, embodiments accompanied with 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 compensation optimization method, referring to fig. 1, the volume compensation optimization method includes:
step S10, detecting the actual distance between the intelligent camera and the target to be detected, and acquiring the current sound pressure level of the sound system in the intelligent camera;
in this embodiment, it should be noted that the volume compensation optimization method is applied to an intelligent camera, and the intelligent camera is provided with a sound system, where 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 1 and a room 2 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 the actual distance between the intelligent camera and a target to be detected and acquiring the current sound pressure level of a sound system in the intelligent camera, specifically, detecting the actual distance between the intelligent camera and the target to be detected through an infrared device on the intelligent camera and acquiring the current sound pressure level of the sound system in the intelligent camera.
Wherein, the step of detecting the actual distance between the intelligent camera and the target to be detected further comprises:
shooting the target to be detected through the intelligent camera to obtain a shot image, and detecting the actual distance between the intelligent camera and the target to be detected through the shot image and the focal length of the intelligent camera.
Step S20, determining a volume compensation value according to the current sound pressure level and the actual distance;
in this embodiment, a volume compensation value is determined according to the current sound pressure level and the actual distance, specifically, a target sound pressure level corresponding to the actual distance is queried according to a mapping relationship between the sound pressure level and the distance, and then the volume compensation value is determined according to a difference between the current sound pressure level and the target sound pressure level.
Wherein the step of determining a volume compensation value according to the current sound pressure level and the actual distance comprises:
step S21, acquiring a preset appropriate distance corresponding to the current sound pressure level;
in this embodiment, the preset appropriate distance corresponding to the current sound pressure level is obtained, and specifically, the preset appropriate distance corresponding to the current sound pressure level is queried according to a mapping relationship between the sound pressure level and the distance, where it should be noted that in this embodiment of the application, a sound test is performed on the intelligent camera in advance, so as to determine the mapping relationship between the sound pressure level and the distance corresponding to a sound system in the intelligent camera.
Step S22, judging whether the preset proper distance is matched with the actual distance;
in this embodiment, it is determined whether the preset suitable distance matches the actual distance, specifically, whether a difference between the preset suitable distance and the actual matrix is within a preset error range, and if the difference between the preset suitable distance and the actual matrix is within the preset error range, it is determined that the preset suitable distance matches the actual distance; and if the difference value between the preset proper distance and the actual matrix is not within a preset error range, judging that the preset proper distance is not matched with the actual distance.
Step S23, if the preset proper distance is not matched with the actual distance, determining a volume compensation value according to the current sound pressure level and the actual distance;
and step S24, if the preset appropriate distance is matched with the actual distance, the sound system in the intelligent camera is not subjected to volume compensation.
In this embodiment, specifically, if the preset suitable distance is not matched with the actual distance, a suitable sound pressure level corresponding to the actual distance is queried according to a mapping relationship between a sound pressure level and the distance, and then a volume compensation value is determined according to a difference between the current sound pressure level and the suitable sound pressure level; and if the preset proper distance is matched with the actual distance, the sound system in the intelligent camera is not subjected to volume compensation.
Wherein the step of determining a volume compensation value according to the current sound pressure level and the actual distance comprises:
step A10, determining a proper sound pressure level at the actual distance according to the mapping relation between the sound pressure level and the distance;
in this embodiment, specifically, according to a mapping relationship between a sound pressure level and a distance, a preset sound pressure level corresponding to the actual distance is queried, and the preset sound pressure level is used as an appropriate sound pressure level.
Wherein the step of determining the appropriate sound pressure level at the actual distance according to the mapping relationship between the sound pressure level and the distance comprises:
step A11, inquiring a preset sound pressure level corresponding to the actual distance according to the mapping relation between the sound pressure level and the distance;
step A12, detecting the current human body posture of the target to be detected through the intelligent camera, and determining sound pressure level compensation according to the current human body posture;
step a13, determining the suitable sound pressure level according to the sound pressure level compensation and the preset sound pressure level.
In this embodiment, it should be noted that, since the ear of the human being listens to the sound, and 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, when the object to be detected is in different human postures, the determination of the appropriate sound pressure level will be affected. The preset sound pressure level is a suitable sound pressure level corresponding to the actual distance under the standard human posture, wherein the standard human posture can be set to be a standing posture, and other human postures are non-standard human postures, such as a lying posture that the head faces the intelligent camera, a lying posture that the head is far away from the intelligent camera, a deep squatting posture and the like.
Specifically, according to the mapping relation between the sound pressure level and the distance, inquiring a corresponding preset sound pressure level of the actual distance under a standard human body posture; detecting the current human body posture of the target to be detected through the intelligent camera, and inquiring sound pressure level compensation corresponding to the current human body posture according to the mapping relation between the current human body posture and the volume compensation value; and determining the proper sound pressure level according to the sound pressure level compensation and the preset sound pressure level. Therefore, the purpose of determining the proper sound pressure level of the target to be detected at the actual distance according to the current human body posture of the target to be detected is achieved, the accuracy of determining the proper sound pressure level of the target to be detected at the actual distance is improved, and the accuracy of volume compensation is further improved.
Wherein, the sound pressure level compensation may be a specific sound pressure level compensation value, or may be a specific sound pressure level compensation coefficient, and the step of determining the suitable sound pressure level according to the sound pressure level compensation and the preset sound pressure level includes:
and when the sound pressure level compensation is a sound pressure level compensation value, summing the sound pressure level compensation and the preset sound pressure level to obtain a proper sound pressure level.
And when the sound pressure level compensation is a sound pressure level compensation coefficient, multiplying the sound pressure level compensation and the preset sound pressure level to obtain a proper sound pressure level.
Step A20, calculating the difference between the current sound pressure level and the proper sound pressure level to obtain a sound pressure level difference;
step A30, calculating the volume compensation value according to the sound pressure level difference value.
In this embodiment, specifically, a difference between the current sound pressure level and the suitable sound pressure level is calculated to obtain a sound pressure level difference, and a ratio between the sound pressure level difference and a preset sound pressure level threshold is calculated to obtain a volume compensation value, where the preset sound pressure level threshold is a sound pressure level change value corresponding to a preset volume change case.
Wherein the step of calculating the volume compensation value according to the sound pressure level difference comprises:
step A31, judging whether the sound pressure level difference value is smaller than a preset sound pressure level threshold value;
step A32, if the sound pressure level difference is not less than the preset sound pressure level threshold, calculating a ratio between the sound pressure level difference and the preset sound pressure level threshold to obtain the volume compensation value;
step A33, if the sound pressure level difference is smaller than the preset sound pressure level threshold, not performing volume compensation on the sound system in the intelligent camera.
In this embodiment, specifically, it is determined whether the sound pressure level difference is smaller than a preset sound pressure level threshold, and if the sound pressure level difference is not smaller than the preset sound pressure level threshold, it is verified that the sound pressure level difference is not smaller than a sound pressure level change value required for changing a volume by one, and then a ratio between the sound pressure level difference and the preset sound pressure level threshold is calculated to obtain the volume compensation value; if the sound pressure level difference value is smaller than the preset sound pressure level threshold value, the sound pressure level difference value is proved to be smaller than a sound pressure level change value required by one volume change, and further, the sound system in the intelligent camera does not need to be subjected to volume compensation.
And step S30, according to the volume compensation value, carrying out volume compensation on the sound system in the intelligent camera.
In this embodiment, specifically, the volume compensation value is compensated to a microphone and a speaker of a sound system in the smart camera.
The embodiment of the application provides a volume compensation optimization method, a device, an electronic device and a readable storage medium, namely, an actual distance between an intelligent camera and a target to be detected is detected, a current sound pressure level of a sound system in the intelligent camera is obtained, a volume compensation value is determined according to the current sound pressure level and the actual distance, a volume compensation value required by the current volume is determined according to the current volume and the actual distance, then, the sound system in the intelligent camera is subjected to volume compensation according to the volume compensation value, the purpose of performing volume compensation on the current sound pressure level sent by the sound system in the intelligent camera according to the actual distance between the target to be detected and the intelligent camera is achieved, the sound sent by the sound system in the intelligent camera is matched with the actual distance, and a better listening effect can be given to the target to be detected, the technical defect that when the user intelligence is closer to the camera, the sound of listening to is generally large, and when the user is farther from the intelligent camera, the sound of listening to is generally small is overcome, so that the listening effect of the sound system of the intelligent camera is improved.
Example two
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 detecting the actual distance between the intelligent camera and the target to be detected comprises:
step S11, measuring the distance between the intelligent camera and the target to be detected through the infrared device on the intelligent camera to obtain a measured distance;
in this embodiment, infrared rays are emitted to the target to be detected through the infrared ray device on the intelligent camera, infrared rays reflected by the target to be detected are received, a time interval from the emission of the infrared rays by the infrared ray device to the reception of the infrared rays reflected by the target to be detected is further determined, and the distance between the intelligent camera and the target to be detected is calculated according to the time interval to obtain the measurement distance.
Step S12, 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 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, 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 the standard human body posture, directly taking the measured distance as an actual distance, if the current human body posture is not consistent with the standard human body posture, inquiring a distance compensation value corresponding to the current human body posture according to the mapping relation between the human body posture and the distance compensation, the standard human body posture is a human body posture that the head of the human body is not far away from the camera, such as a standing posture or a lying posture that the head faces the camera, and the like, and the non-standard human body posture is a human body posture that the head of the human body is far away from the camera, such as a lying posture that the head is far away from the camera, and the like.
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 S121, 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 S122, 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 S123, 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.
Step a13, 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, or may 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 purpose of measuring an actual distance between a target to be detected and an intelligent camera according to a human body posture, and 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; 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. The distance measured by the infrared device is compensated by detecting the human body posture of the target to be detected in consideration of listening to the human ears, 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 compensation is eliminated, and the accuracy of volume compensation is improved.
EXAMPLE III
The embodiment of the present application further provides a volume compensation optimization device, the volume compensation optimization device is applied to the intelligent camera, the volume compensation optimization device includes:
the detection and acquisition module is used for detecting the actual distance between the intelligent camera and the target to be detected and acquiring the current sound pressure level of a sound system in the intelligent camera;
the compensation determining module is used for determining a volume compensation value according to the current sound pressure level and the actual distance;
and the volume compensation module is used for carrying out volume compensation on the sound system in the intelligent camera according to the volume compensation value.
Optionally, the compensation determining module is further configured to:
acquiring a preset appropriate distance corresponding to the current sound pressure level;
judging whether the preset proper distance is matched with the actual distance;
if the preset proper distance is not matched with the actual distance, determining a volume compensation value according to the current sound pressure level and the actual distance;
and if the preset proper distance is matched with the actual distance, the sound system in the intelligent camera is not subjected to volume compensation.
Optionally, the compensation determining module is further configured to:
determining a proper sound pressure level at the actual distance according to a mapping relation between the sound pressure level and the distance;
calculating the difference between the current sound pressure level and the proper sound pressure level to obtain a sound pressure level difference;
and calculating the volume compensation value according to the sound pressure level difference value.
Optionally, the compensation determining module is further configured to:
judging whether the sound pressure level difference value is smaller than a preset sound pressure level threshold value or not;
if the sound pressure level difference value is not smaller than the preset sound pressure level threshold, calculating a ratio between the sound pressure level difference value and the preset sound pressure level threshold to obtain the volume compensation value;
and if the sound pressure level difference value is smaller than the preset sound pressure level threshold value, not performing volume compensation on a sound system in the intelligent camera.
Optionally, the compensation determining module is further configured to:
inquiring a preset sound pressure level corresponding to the actual distance according to the mapping relation between the sound pressure level and the distance;
detecting the current human body posture of the target to be detected through the intelligent camera, and determining sound pressure level compensation according to the current human body posture;
and determining the proper sound pressure level according to the sound pressure level compensation and the preset sound pressure level.
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:
acquiring a shot image of the intelligent camera on the target to be detected;
classifying the shot images according to a preset image classification model to obtain image classification labels;
and determining the current human body posture according to the image classification label.
The volume compensation optimization device provided by the invention adopts the volume compensation optimization method in the first embodiment or the second embodiment, so that the technical problem that the sound system of the intelligent camera has poor listening effect is solved. Compared with the prior art, the beneficial effects of the volume compensation optimization device provided by the embodiment of the invention are the same as those of the volume compensation optimization method provided by the embodiment, and other technical features of the volume compensation optimization device are the same as those disclosed by the embodiment method, which are not repeated herein.
EXAMPLE five
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 execute the volume compensation 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 apparatus (e.g., a central processing unit, a graphic processor, etc.) that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage apparatus 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 by 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, etc.; 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 to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. 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 device provided by the invention adopts the volume compensation optimization method in the first embodiment or the second embodiment, so that the technical problem that the sound system of the intelligent camera has poor listening effect is solved. 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 compensation 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 six
The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for performing the method of volume compensation optimization in the first embodiment.
The computer readable storage medium provided by the embodiments of the present invention may be, for example, a USB flash disk, but is 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 the electronic device, cause the electronic device to: detecting the actual distance between the intelligent camera and a target to be detected, and acquiring the current sound pressure level of a sound system in the intelligent camera; determining a volume compensation value according to the current sound pressure level and the actual distance; and according to the volume compensation value, carrying out volume compensation on a sound system in the intelligent camera.
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 which 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 instructions for executing the volume compensation 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 present invention are the same as the beneficial effects of the volume compensation optimization method provided by the first embodiment or the second embodiment, and are not described herein again.
EXAMPLE seven
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the volume compensation optimization method as described above.
The computer program product solves the technical problem that the listening effect of the sound system of the intelligent camera is poor. 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 compensation optimization method provided by the first embodiment or the second 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 (10)

1. A volume compensation optimization method is applied to an intelligent camera and comprises the following steps:
detecting the actual distance between the intelligent camera and a target to be detected, and acquiring the current sound pressure level of a sound system in the intelligent camera;
determining a volume compensation value according to the current sound pressure level and the actual distance;
and according to the volume compensation value, carrying out volume compensation on a sound system in the intelligent camera.
2. The volume compensation optimization method of claim 1, wherein the step of determining a volume compensation value according to the actual distance from the current sound pressure level comprises:
acquiring a preset appropriate distance corresponding to the current sound pressure level;
judging whether the preset proper distance is matched with the actual distance;
if the preset proper distance is not matched with the actual distance, determining a volume compensation value according to the current sound pressure level and the actual distance;
and if the preset proper distance is matched with the actual distance, the sound system in the intelligent camera is not subjected to volume compensation.
3. The volume compensation optimization method of claim 2, wherein the step of determining a volume compensation value according to the current sound pressure level and the actual distance comprises:
determining a proper sound pressure level at the actual distance according to a mapping relation between the sound pressure level and the distance;
calculating the difference between the current sound pressure level and the proper sound pressure level to obtain a sound pressure level difference;
and calculating the volume compensation value according to the sound pressure level difference value.
4. The volume compensation optimization method of claim 3, wherein the step of calculating the volume compensation value according to the sound pressure level difference comprises:
judging whether the sound pressure level difference value is smaller than a preset sound pressure level threshold value or not;
if the sound pressure level difference value is not smaller than the preset sound pressure level threshold, calculating a ratio between the sound pressure level difference value and the preset sound pressure level threshold to obtain the volume compensation value;
and if the sound pressure level difference value is smaller than the preset sound pressure level threshold value, not performing volume compensation on a sound system in the intelligent camera.
5. The volume compensation optimization method of claim 3, wherein the step of determining the proper sound pressure level at the actual distance according to the mapping relationship between the sound pressure level and the distance comprises:
inquiring a preset sound pressure level corresponding to the actual distance according to the mapping relation between the sound pressure level and the distance;
detecting the current human body posture of the target to be detected through the intelligent camera, and determining sound pressure level compensation according to the current human body posture;
and determining the proper sound pressure level according to the sound pressure level compensation and the preset sound pressure level.
6. The volume compensation optimization method of claim 1, 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.
7. The volume compensation optimization method according to claim 5 or 6, wherein the step of detecting the current human body posture of the object to be detected through the intelligent camera comprises:
acquiring a shot image of the intelligent camera on the target to be detected;
classifying the shot images according to a preset image classification model to obtain image classification labels;
and determining the current human body posture according to the image classification label.
8. The utility model provides a volume compensation optimizing apparatus which characterized in that is applied to intelligent camera, volume compensation optimizing apparatus includes:
the detection and acquisition module is used for detecting the actual distance between the intelligent camera and the target to be detected and acquiring the current sound pressure level of a sound system in the intelligent camera;
the compensation determining module is used for determining a volume compensation value according to the current sound pressure level and the actual distance;
and the volume compensation module is used for carrying out volume compensation on the sound system in the intelligent camera according to the volume compensation value.
9. 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 content of the first and second substances,
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 compensation optimization method of any one of claims 1 to 7.
10. A readable storage medium having stored thereon a program for implementing a volume compensation optimization method, the program being executed by a processor to implement the steps of the volume compensation optimization method according to any one of claims 1 to 7.
CN202111277317.6A 2021-10-29 2021-10-29 Volume compensation optimization method and device, electronic equipment and readable storage medium Pending CN114063964A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111277317.6A CN114063964A (en) 2021-10-29 2021-10-29 Volume compensation optimization method and device, electronic equipment and readable storage medium
PCT/CN2021/132596 WO2023070791A1 (en) 2021-10-29 2021-11-24 Volume compensation optimization method and apparatus, electronic device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111277317.6A CN114063964A (en) 2021-10-29 2021-10-29 Volume compensation optimization method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114063964A true CN114063964A (en) 2022-02-18

Family

ID=80236142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111277317.6A Pending CN114063964A (en) 2021-10-29 2021-10-29 Volume compensation optimization method and device, electronic equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN114063964A (en)
WO (1) WO2023070791A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115938389A (en) * 2023-03-10 2023-04-07 科大讯飞(苏州)科技有限公司 Volume compensation method and device for media source in vehicle and vehicle

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331371A (en) * 2016-09-14 2017-01-11 维沃移动通信有限公司 Volume adjustment method and mobile terminal
CN107885329A (en) * 2015-05-19 2018-04-06 广东欧珀移动通信有限公司 A kind of rotating camera adjusting method and user terminal
CN109639893A (en) * 2018-12-14 2019-04-16 Oppo广东移动通信有限公司 Play parameter method of adjustment, device, electronic equipment and storage medium
CN112631542A (en) * 2020-12-21 2021-04-09 深圳酷派技术有限公司 Audio adjusting method and device, storage medium and electronic equipment
CN112637733A (en) * 2020-12-08 2021-04-09 歌尔科技有限公司 Method and device for automatically adjusting volume of voice equipment and voice equipment
GB2589720A (en) * 2019-10-30 2021-06-09 Fujitsu Client Computing Ltd Information processing apparatus, program, and information processing system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105679346A (en) * 2015-12-31 2016-06-15 深圳还是威健康科技有限公司 Method and apparatus for controlling radio set
JP7147671B2 (en) * 2019-04-11 2022-10-05 トヨタ自動車株式会社 Information processing system and information processing program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107885329A (en) * 2015-05-19 2018-04-06 广东欧珀移动通信有限公司 A kind of rotating camera adjusting method and user terminal
CN106331371A (en) * 2016-09-14 2017-01-11 维沃移动通信有限公司 Volume adjustment method and mobile terminal
CN109639893A (en) * 2018-12-14 2019-04-16 Oppo广东移动通信有限公司 Play parameter method of adjustment, device, electronic equipment and storage medium
GB2589720A (en) * 2019-10-30 2021-06-09 Fujitsu Client Computing Ltd Information processing apparatus, program, and information processing system
CN112637733A (en) * 2020-12-08 2021-04-09 歌尔科技有限公司 Method and device for automatically adjusting volume of voice equipment and voice equipment
CN112631542A (en) * 2020-12-21 2021-04-09 深圳酷派技术有限公司 Audio adjusting method and device, storage medium and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115938389A (en) * 2023-03-10 2023-04-07 科大讯飞(苏州)科技有限公司 Volume compensation method and device for media source in vehicle and vehicle

Also Published As

Publication number Publication date
WO2023070791A1 (en) 2023-05-04

Similar Documents

Publication Publication Date Title
CN110865898B (en) Method, device, medium and equipment for converging crash call stack
CN108362310B (en) Method and device for determining geomagnetic accuracy, storage medium and terminal
CN114125659A (en) Volume real-time compensation method, electronic device and readable storage medium
CN114063964A (en) Volume compensation optimization method and device, electronic equipment and readable storage medium
CN112863545B (en) Performance test method, device, electronic equipment and computer readable storage medium
CN114089945A (en) Volume real-time adjustment method, electronic device and readable storage medium
CN114302278A (en) Headset wearing calibration method, electronic device and computer-readable storage medium
CN111345928A (en) Head posture monitoring method and device, storage medium and electronic equipment
CN111176744A (en) Electronic equipment control method, device, terminal and storage medium
CN108845261B (en) Electric quantity prompting method and terminal equipment
CN114499709B (en) Antenna radio test method and device, electronic equipment and storage medium
CN114125138B (en) Volume adjustment optimization method and device, electronic equipment and readable storage medium
CN115495038A (en) Audio adjusting method and device, electronic equipment and readable storage medium
CN110941455B (en) Active wake-up method and device and electronic equipment
CN115279134A (en) Equipment fan rotating speed control method and device, electronic equipment and readable storage medium
CN114942150A (en) Steering wheel corner sensor CAN bus message simulation method and device
CN111680754B (en) Image classification method, device, electronic equipment and computer readable storage medium
CN114760557A (en) Earphone state adjusting method and device, electronic equipment and readable storage medium
CN111859502A (en) Method and related equipment for positioning drawing review result
CN115914925A (en) Earphone noise reduction method and device, electronic equipment and readable storage medium
CN114781567B (en) Detection equipment installation method and device, electronic equipment and readable storage medium
CN114610264A (en) Volume optimization method and device, electronic equipment and readable storage medium
CN111125465B (en) Information display quantity adjusting method and device, electronic equipment and readable medium
CN115112839A (en) Air quality detection method and device, electronic equipment and readable storage medium
CN113851128A (en) Intelligent voice equipment awakening method and device, electronic equipment and readable storage medium

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