CN108933911B - Volume adjusting method, device, equipment and storage medium - Google Patents

Volume adjusting method, device, equipment and storage medium Download PDF

Info

Publication number
CN108933911B
CN108933911B CN201810845307.XA CN201810845307A CN108933911B CN 108933911 B CN108933911 B CN 108933911B CN 201810845307 A CN201810845307 A CN 201810845307A CN 108933911 B CN108933911 B CN 108933911B
Authority
CN
China
Prior art keywords
distance
shooting
volume
picture
acquiring
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
CN201810845307.XA
Other languages
Chinese (zh)
Other versions
CN108933911A (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.)
Fibocom Wireless Inc
Original Assignee
Fibocom Wireless Inc
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 Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN201810845307.XA priority Critical patent/CN108933911B/en
Publication of CN108933911A publication Critical patent/CN108933911A/en
Application granted granted Critical
Publication of CN108933911B publication Critical patent/CN108933911B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The invention relates to a volume adjusting method, a volume adjusting device, volume adjusting equipment and a storage medium. The method comprises the following steps: in the video recording process, acquiring a first distance corresponding to a shot image; determining a first volume corresponding to the first distance according to a corresponding relation between a preset distance and the volume; and adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first volume. The volume adjusting method provided by the application realizes that the volume of the corresponding recorded audio when the shooting equipment records the image is adjusted according to the first volume, so that the shooting equipment can control the volume of the sound corresponding to the shot image in the process of shooting the image, the quality of the shot video is improved, and the shooting effect is enhanced.

Description

Volume adjusting method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of video zoom systems, in particular to a volume adjusting method, a device, equipment and a storage medium.
Background
With the development of multimedia technology, video recording equipment with video recording function has been widely used, and the requirement of users for video recording function is higher and higher.
When the current video recording equipment shoots a picture, a user can adjust the resolution of the shot picture through a focusing system of the video recording equipment, so that the picture of the recorded video is clearer. When recording a video, a common video recording device can adopt an automatic or manual mode to adjust the focal length, thereby changing the resolution of a shot picture and further realizing the adjustment of the definition of the picture.
However, the above-mentioned photographing method can only change the resolution of the photographed image, and the photographing effect is not good.
Disclosure of Invention
In view of the above, there is a need to provide a volume adjustment method, apparatus, computer device and storage medium capable of controlling sound during shooting and effectively improving shooting effect.
A method of volume adjustment, the method comprising:
in the video recording process, acquiring a first distance corresponding to a shot image;
determining a first volume corresponding to the first distance according to a corresponding relation between a preset distance and the volume;
and adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first volume.
In one embodiment, the method further comprises:
receiving a first operation instruction input by a user; the first operation instruction is used for adjusting the volume of the recorded audio;
and adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first operation instruction.
In one embodiment, the acquiring the first distance corresponding to the captured image includes:
acquiring a sensor signal acquired by a ranging sensor on the shooting equipment;
and acquiring the first distance according to the sensor signal.
In one embodiment, the acquiring the first distance from the sensor signal includes:
determining a target photographic object in the photographic image;
and acquiring a first distance between the target shooting object and the shooting equipment in the shot image according to the sensor signal.
In one embodiment, the determining the target photographic subject in the photographic image includes:
receiving a first control instruction input by a user; the first control instruction comprises an identification of at least one target shooting object selected by a user;
and determining a target shooting object in the shooting image according to the first control instruction.
In one embodiment, the determining the target photographic subject in the photographic image includes:
and determining a target shooting object in the shooting image by adopting a preset image recognition method.
In one embodiment, the acquiring the first distance corresponding to the captured image includes:
acquiring a picture magnification factor corresponding to the shot image;
and determining a first distance corresponding to the picture magnification according to the corresponding relation between the preset picture magnification and the distance.
In one embodiment, the obtaining of the corresponding picture magnification of the captured image includes:
detecting the resolution of the shot picture;
and acquiring the picture magnification factor corresponding to the shot image according to the resolution.
In one embodiment, the obtaining of the corresponding picture magnification of the captured image includes:
receiving a second operation instruction input by a user;
and determining the picture magnification factor corresponding to the shot image according to the second operation instruction.
In one embodiment, the method further comprises:
acquiring a plurality of second distances between a target shooting object and shooting equipment;
detecting the actual volume corresponding to each second distance;
and establishing a corresponding relation between the distance and the volume according to the plurality of second distances and the actual volume.
A volume adjustment device, the device comprising:
the acquisition module is used for acquiring a first distance corresponding to a shot image in the video recording process;
the determining module is used for determining first volume corresponding to the first distance according to a corresponding relation between a preset distance and the volume;
and the adjusting module is used for adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first volume.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
in the video recording process, acquiring a first distance corresponding to a shot image;
determining a first volume corresponding to the first distance according to a corresponding relation between a preset distance and the volume;
and adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first volume.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
in the video recording process, acquiring a first distance corresponding to a shot image;
determining a first volume corresponding to the first distance according to a corresponding relation between a preset distance and the volume;
and adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first volume.
The application provides a volume adjusting method, a volume adjusting device, volume adjusting equipment and a storage medium. In the video recording process, acquiring a first distance corresponding to a shot image; determining a first volume corresponding to the first distance according to a corresponding relation between a preset distance and the volume; and adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first volume. According to the method, the volume of the corresponding recorded audio when the shooting equipment records the image is adjusted according to the first volume, so that the shooting equipment can control the volume of the corresponding sound of the shot image in the process of shooting the image, the quality of the shot video is improved, and the shooting effect is enhanced.
Drawings
Fig. 1 is a schematic flow chart of a volume adjustment method according to an embodiment;
fig. 2 is a schematic flow chart of another volume adjustment method according to an embodiment;
FIG. 3 is a schematic flowchart of an implementation manner of S101 in the embodiment of FIG. 1;
FIG. 4 is a flowchart illustrating an implementation manner of S302 in the embodiment of FIG. 3;
fig. 5 is a flowchart illustrating a volume adjustment method according to an embodiment;
FIG. 6 is a schematic flow chart illustrating another implementation manner of S101 in the embodiment of FIG. 1;
fig. 7 is a flowchart illustrating a volume adjustment method according to an embodiment;
fig. 8 is a flowchart illustrating a volume adjustment method according to an embodiment;
fig. 9 is a flowchart illustrating a volume adjustment method according to an embodiment;
fig. 10 is a schematic view of a volume adjustment device according to an embodiment;
fig. 11 is a schematic view of a volume adjustment device according to an embodiment;
fig. 12 is a schematic view of a volume adjustment device according to an embodiment;
fig. 13 is a schematic view of a volume adjustment device according to an embodiment;
fig. 14 is a schematic view of a volume adjustment device according to an embodiment;
FIG. 15 is a diagram illustrating an internal architecture of a computer device, according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The volume adjusting method provided by the embodiment of the application can be applied to a video shooting system, and the video shooting system comprises a video shooting terminal and a target object. The video shooting terminal may be a video recording device, a smart phone, a tablet computer, a notebook computer, a desktop computer, or a personal digital assistant, and the like, which have video recording and data processing functions. The target object may be any object to be photographed.
The volume adjusting method, the volume adjusting device, the computer equipment and the storage medium aim at solving the technical problem that the existing shooting video terminal cannot control the volume in the shooting process, so that the shooting quality is reduced, and the shooting effect is poor.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is a flowchart of a volume adjustment method according to an embodiment, where an execution subject of the method is a video terminal, and the method relates to a process in which a shooting device can simultaneously adjust the volume when shooting a picture. As shown in fig. 1, the method comprises the steps of:
s101, in the video recording process, a first distance corresponding to the shot image is obtained.
The first distance is the distance between the target object and the shooting device when the target object is shot. The target object is a subject pre-photographed by a photographer, which may be a person or a scene. The photographing apparatus may be mounted with a distance measuring device that may measure a first distance between the target object and the photographing apparatus; alternatively, the photographing apparatus may measure the first distance based on a focal length, a magnification of a photographed picture, or the like.
In this embodiment, during the process of recording the video, the shooting device may start the distance measuring apparatus, so as to measure the first distance between the shot target object and the shooting device in real time. Alternatively, when the photographing apparatus changes the focal length and the magnification of the photographed picture using the focusing system during recording of the video, the photographing apparatus may also measure the first distance based on the adjusted focal length, the magnification of the photographed picture, and the like.
S102, determining a first volume corresponding to the first distance according to the corresponding relation between the preset distance and the volume.
The first volume refers to the volume of the sound which can be recorded by the shooting equipment at the position of the target object in the shooting picture when the shooting equipment shoots the picture. The volume level may be represented numerically or, alternatively, by a code. The preset correspondence between the distance and the volume may be a correspondence between the distance and the volume in an existing standard, and optionally, may also be a correspondence between a distance obtained by measuring a distance between a photographic object and a photographic device and a sound size corresponding to each distance and a volume. The correspondence between the preset distance and the sound volume may be stored in a database in the photographing apparatus in the form of a list, and optionally, the correspondence between the preset distance and the sound volume may also be stored in a database in the photographing apparatus in the form of a mathematical expression. The correspondence relationship may be stored in advance in a software program in the photographing apparatus by a photographing apparatus manufacturer, or may be obtained by machine learning of the photographing apparatus during photographing.
In this embodiment, when the shooting device records a video, the distance measuring device on the shooting device is started to measure the first distance of the target object to be shot, and meanwhile, the pre-stored corresponding relationship between the preset distance and the volume can be obtained in the database of the shooting device, and then the volume corresponding to the distance with the same value is searched for through a list according to the first distance, or the volume corresponding to the distance with the same value is obtained through calculation.
S103, adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first volume.
When the shooting equipment records images, the image acquisition module of the shooting equipment can record the shot videos, and meanwhile, the audio acquisition module can record the sounds into the shot videos, so that the recorded videos not only have the pictures, but also have the corresponding sounds.
In this embodiment, when the shooting device is ready to shoot a picture, the distance measuring device obtains a first distance from a target object in the picture, the shooting device obtains a first volume corresponding to the first distance according to the first distance, and adjusts the volume of audio recorded by the shooting device according to the first volume, for example, when the first distance is large, it indicates that the shooting object is far from the shooting device, and the first volume is relatively small; when the first distance is smaller, the shooting object is closer to the shooting device, and the first volume is relatively larger, so that the distance can be represented on the picture, and the distance can be represented on the sound.
In the foregoing embodiment, the volume adjusting method provided by the present application includes: in the video recording process, acquiring a first distance corresponding to a shot image; determining a first volume corresponding to the first distance according to a corresponding relation between the preset distance and the volume; and adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first volume. According to the method, the volume of the corresponding recorded audio when the shooting equipment records the image is adjusted according to the first volume, so that the shooting equipment can control the volume of the corresponding sound of the shot image in the process of shooting the image, the quality of the shot video is improved, and the shooting effect is enhanced.
Fig. 2 is a flowchart illustrating another volume adjustment method according to an embodiment. In some scenes, in the process of shooting a video, a user can adjust the volume of the shot video at any time, and the embodiment relates to the process that the user can adjust the volume when the shooting device shoots a picture. As shown in fig. 2, the method comprises the steps of:
s201, receiving a first operation instruction input by a user; the first operation instruction is used for adjusting the volume of the recorded audio.
The first operation instruction refers to instruction information input by a user on the shooting equipment so that the user can adjust the volume in the video recording process, the user can input the instruction information by clicking the touch screen on the shooting equipment, optionally, the user can also press a volume control button arranged on the shooting equipment to input the instruction information, and optionally, the user can also input the instruction information through a voice command. For example, in the process of shooting a picture by a mobile phone, the user can adjust the volume by pressing a volume control button on the mobile phone.
In this embodiment, the shooting device can not only adjust the size, resolution and definition of the shot picture according to the instruction input by the user, but also adjust the volume of the sound corresponding to the shot picture while shooting the picture. The first operation instruction input by the user is used for adjusting the volume of the sound corresponding to the shooting picture.
S202, adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first operation instruction.
In this embodiment, when the shooting device receives a first operation instruction of a user in a process of shooting a video, the shooting device acquires, from the first operation instruction of the user, size information of volume of sound that the user wants to adjust, and transmits the information to an audio acquisition module of the shooting device, the audio acquisition module adds the size information of the volume of the sound to image information acquired by an image acquisition module, and the shooting device synthesizes the acquired audio and image, and finally can play the audio and image through a terminal player. For example, a user shoots a video through a mobile phone, and during shooting, the user can click a button for turning up the volume on a touch screen of the mobile phone to increase the volume of sound of the mobile phone during shooting of the video.
The above embodiment relates to a process of manually adjusting the volume when the shooting device shoots a picture, and the shooting device receives a first operation instruction input by a user; and adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first operation instruction. In the process of shooting the picture, the shooting equipment can adjust the volume of the sound corresponding to the shot picture according to the instruction of the user, so that the user can adjust the volume of the recorded video sound according to the intention of the user in the process of shooting the video, the interactivity between the user and the shooting equipment is enhanced, and the quality of the shot video is improved.
Fig. 3 is a schematic flowchart of an implementation manner of S101 in the embodiment of fig. 1. In some scenes, in the process of shooting a video, the actual distance between a shooting object and the shooting device changes, and then the volume of the recorded video can be controlled according to the change of the actual distance. On the basis of the embodiment in fig. 1, as shown in fig. 3, the step S101 "acquiring the first distance corresponding to the captured image during the video recording process" may include the following steps:
s301, acquiring a sensor signal acquired by a ranging sensor on the shooting equipment.
Wherein, the range finding sensor can contain the sensor of multiple measuring distance, for example infrared ray signal sensor, laser radar signal sensor, bluetooth signal sensor etc. and correspondingly, the sensor signal also can include multiple signal, for example infrared ray signal, laser radar signal, bluetooth signal etc.. The ranging sensor can acquire environmental information in real time according to the received sensor signal. The environment information includes information of all objects in the photographed picture. The present embodiment does not limit the type of the ranging sensor.
In this embodiment, install range sensor on the shooting equipment, when shooting equipment began to shoot the picture, shooting equipment can open range sensor, and range sensor comes perception external environment information through gathering the sensor signal to can realize the collection to the environmental information in the shooting picture.
S302, acquiring a first distance according to the sensor signal.
In this embodiment, when the shooting device starts to shoot a picture, the ranging sensor collects environmental information in the shot picture through signals of the sensor, and then records the environmental information. Then, the shooting device may obtain distance information, i.e., a first distance, between the shooting device and the target object to be shot according to the environment information. For example, if the sensor signal is an infrared signal, the photographing apparatus may calculate the distance between the photographing apparatus and the object in the photographing environment by the time interval between the transmission and reception of the infrared signal and the transmission rate of the infrared signal.
Fig. 4 is a flowchart illustrating an implementation manner of S302 in the embodiment of fig. 3. This embodiment relates to a specific procedure for acquiring the first distance from the sensor signal. On the basis of the embodiment of fig. 3, as shown in fig. 4, the step S302 "acquiring the first distance according to the sensor signal, including" may include the following steps:
s401, determining a target shooting object in the shooting image.
Among them, the shot image may contain various objects to be shot, such as persons, scenes, and the like. The target photographic object is a main object pre-photographed by a user using the photographing apparatus.
In this embodiment, when the shooting device shoots a target shooting object, a user needs to determine the target shooting object in a shooting picture, so that the shooting device can adjust the quality of the shooting picture according to the requirement of the user on the shooting picture. For example, when a user takes a picture, the user determines that a person in the picture is a main object to be taken, and then adjusts the focal length of the picture according to the definition of the person picture.
Alternatively, the user may actively select the target photographic subject, as shown in fig. 5, and the step S401 of determining the target photographic subject in the photographic image may include:
s501, receiving a first control instruction input by a user; the first control instruction includes an identification of at least one target photographic object selected by a user.
The first control instruction refers to instruction information input by a user on the shooting equipment so as to enable the user to actively determine a target shooting object in a shooting picture. The user may input instruction information by clicking the touch screen in the touch screen on the photographing apparatus, and optionally, the user may also input the instruction information by a voice command. For example, a user shoots an activity process of a puppy through a mobile phone, and in the shooting process, the user can mark the puppy with a circle on a display screen of the mobile phone to identify the puppy as a main shooting object of the mobile phone. The first control instruction may include a plurality of identifiers that characterize the target photographic subject.
And S502, determining a target shooting object in the shot image according to the first control instruction.
In this embodiment, the shot picture includes a plurality of shot objects, before the shooting device prepares to shoot the picture, the user needs to select a main shooting object from the plurality of shot objects, and the shooting device can realize a process of selecting the main shooting object by the user through a first control instruction input by the user. For example, when a person is shot by a mobile phone, a user clicks the head of the person on a screen of the mobile phone, and the shooting device determines the clicked position according to the clicking operation of the user, so that a specific object corresponding to the clicked position in a shot picture is identified, and a target shot object is determined.
Alternatively, the photographing apparatus may further automatically determine a target photographic subject, the determining of the target photographic subject in the photographed image, S401, including: and determining a target shooting object in the shooting image by adopting a preset image recognition method.
The image recognition method is a method for processing, analyzing and understanding an image by using a computer to recognize various targets and objects in different modes. In this embodiment, the data processing module in the shooting device may analyze and process the shot image by using a preset image recognition method, so as to recognize main object information that the user wants to shoot, that is, a target shooting object in the shot image. For example, when the current shooting mode is a portrait shooting mode, the shooting device automatically recognizes a person in the shot picture and takes the person as a target shooting object.
S402, acquiring a first distance between a target shooting object in the shot image and the shooting device according to the sensor signal.
In this embodiment, the distance measuring sensor on the shooting device may acquire sensor signals of a plurality of target shooting objects, and after the user determines that the target shooting object in the shooting image is shot, the shooting device may acquire the sensor signal corresponding to the target shooting object. And then, acquiring a first distance between the target shooting object in the shooting image and the shooting equipment by analyzing a sensor signal corresponding to the target shooting object.
In the above embodiment, the photographing apparatus determines a target photographic subject in a photographed image; and acquiring a first distance between a target shooting object in the shot image and the shooting equipment according to the sensor signal. In the process of determining that the object is shot by the target in the shot image, the distance between the object and the shooting equipment is measured by the distance measuring sensor, and the measurement accuracy of the distance measuring sensor is higher, so that the distance accuracy measured by the distance measuring sensor of the shooting equipment is higher, the accuracy of the sound volume determined by the shooting equipment according to the distance is improved, the volume of the recorded video can be controlled according to the distance, the user can sense the distance of the shot object from the sound, and the shooting effect is improved.
Fig. 6 is a schematic flowchart of another implementation manner of S101 in the embodiment of fig. 1. In some scenes, the actual distance between the photographic subject and the photographic apparatus does not change, but the user can change the picture magnification to zoom in the photographic subject as required, which corresponds to zooming in the relative distance between the photographic subject and the photographic apparatus, and this embodiment relates to a method in which the photographic apparatus obtains the first distance according to the picture magnification. On the basis of the embodiment in fig. 1, as shown in fig. 6, in the step S101 "acquiring the first distance corresponding to the captured image during the video recording process", the method may include the following steps:
s601, acquiring the corresponding picture magnification factor of the shot image.
In this embodiment, the shooting device can adjust the magnification of the shot picture when shooting the picture, so as to adjust the definition of the picture. The picture magnification factor can be manually adjusted by a user, and optionally, the picture magnification factor can also be automatically adjusted by the shooting equipment according to the picture quality. For example, when a user takes a picture, the shooting device automatically focuses through a focusing system, so as to adjust the magnification of the shot picture. For another example, when the user takes a picture, the user may manually adjust the size of the taken picture on the touch screen of the photographing apparatus to change the magnification of the picture. When the size of the photographed picture is changed, the photographing apparatus may acquire a picture magnification corresponding to the photographed image.
S602, determining a first distance corresponding to the picture magnification according to the corresponding relation between the preset picture magnification and the distance.
The correspondence between the preset image magnification factor and the distance may be a correspondence between an image magnification factor and a distance in an existing standard, or alternatively, may be a correspondence between an acquired image magnification factor and a distance by measurement. For example, the larger the screen magnification, the smaller the corresponding distance, and the smaller the screen magnification, the larger the corresponding distance. The correspondence between the preset screen magnification and the distance may be stored in a database in the photographing apparatus in the form of a list, or alternatively, the correspondence between the preset screen magnification and the distance may also be stored in a database in the photographing apparatus in the form of a mathematical expression. Which may be pre-stored in a software program in the photographing apparatus by the photographing apparatus manufacturer.
In this embodiment, in the process of recording a video by the shooting device, in order to make a shot picture clear, a user may adjust the size of the shot picture on the shooting device, thereby adjusting the magnification of the shot picture. When the magnification of the picture shot by the shooting equipment is determined, the shooting equipment can acquire the pre-stored corresponding relation between the preset picture magnification and the distance from the database, and then search the distance value corresponding to the picture magnification through a list according to the picture magnification determined by the shooting equipment, or acquire the distance value corresponding to the picture magnification through calculation. And then determining the distance numerical value corresponding to the picture magnification factor determined by the obtained shooting equipment as a first distance corresponding to the picture magnification factor. Finally, the shooting device can determine the corresponding first volume according to the first distance, so that the shooting device can control the volume of the sound in the process of shooting the picture.
Optionally, the capturing device may determine the picture magnification according to the picture quality of the captured picture, as shown in fig. 7, the acquiring the picture magnification corresponding to the captured image may specifically include:
and S701, detecting the resolution of the shot picture.
In the embodiment, the shooting equipment can automatically adjust the resolution of the picture according to the picture definition of the shot picture in the picture shooting process, so that the quality of the shot picture is improved, and the shooting effect is better. When the shooting equipment is ready to shoot the picture, after the resolution of the picture is adjusted through automatic focusing, the shooting equipment can automatically detect the resolution of the shot picture and record the resolution.
And S702, acquiring the corresponding picture magnification factor of the shot image according to the resolution of the picture.
In this embodiment, the image magnification factor may be calculated according to the resolution of the image by using a preset calculation method. Alternatively, the picture magnification factor may also be obtained by searching the corresponding relationship between the resolution of the existing picture and the picture magnification factor.
Optionally, the user may also actively change the screen magnification factor, as shown in fig. 8, the acquiring of the screen magnification factor corresponding to the captured image may specifically include:
and S801, receiving a second operation instruction input by the user.
The second operation instruction refers to instruction information input by a user on the shooting device, so that the user can manually adjust the size of a shot picture, the user can input the instruction information by clicking the touch screen on the shooting device, optionally, the user can also press a hardware button arranged on the shooting device to input the instruction information, and optionally, the user can also input the instruction information through a voice command. For example, a user shoots a video through a mobile phone, and the user can slide a touch screen of the mobile phone by hand to enlarge a picture in the shooting process.
In this embodiment, the shooting device can adjust the size, resolution, definition, and volume of the sound corresponding to the shot picture according to the instruction input by the user while shooting the picture. The second operation instruction input by the user is used for adjusting the size of the shooting picture.
And S802, determining the picture magnification factor corresponding to the shot image according to the second operation instruction.
In this embodiment, when the shooting device receives a second operation instruction of the user in the process of shooting the video, the shooting device may acquire, from the second operation instruction of the user, information that the user wants to adjust the size of the shot picture, that is, the picture magnification of the shot picture.
On the basis of the embodiment of fig. 1, before the shooting of the picture, the shooting device may obtain the corresponding relationship between the preset distance and the sound volume by the following method, as shown in fig. 9, where the method further includes:
and S901, acquiring a plurality of second distances between the target shooting object and the shooting device.
In this embodiment, the shooting device respectively shoots the target shooting objects at different position points, and each distance between the target shooting object at the different position points and the shooting device is a second distance. When the shooting equipment shoots objects aiming at targets on different position points respectively, the distance measuring sensor on the shooting equipment carries out sensor signal acquisition aiming at each second distance between the target shooting object and the shooting equipment respectively, so that numerical value information of each second distance is obtained.
And S902, detecting the actual volume corresponding to each second distance.
In this embodiment, when the shooting device shoots an object for a target at each location point, the distance measuring sensor on the shooting device acquires a signal of the sensor to obtain each second distance, and the audio acquisition module on the shooting device correspondingly acquires the volume of actual sound at each location point, and records a value corresponding to each second distance and a value corresponding to each actual volume.
And S903, establishing a corresponding relation between the distance and the volume according to the plurality of second distances and the actual volume.
In this embodiment, according to the method in the foregoing embodiment, after the shooting device acquires the plurality of second distances and the plurality of actual volumes corresponding to the second distances, the data processing module in the shooting device may establish a corresponding relationship between the distances and the volumes by using a preset calculation method. When the shooting device needs to shoot a picture, the corresponding first volume can be determined according to the first distance, so that the shooting device can control the volume in the shooting process. It should be noted that the plurality of second distances and the plurality of actual volumes may be obtained by using a statistical method of a large number of data points.
In the above embodiment, before the shooting device shoots the picture, the shooting device may obtain a plurality of second distances between the target shooting object and the shooting device; and establishing a corresponding relation between the distance and the volume according to the plurality of second distances and the actual volume. The process is a method for acquiring the corresponding relation between the preset distance and the volume by the shooting equipment, wherein the distance and the volume are acquired under the condition of a large amount of data statistics, so that the corresponding relation between the preset distance and the volume acquired by the method is more accurate and closer to reality, and the shooting effect of the shooting equipment is better.
It should be understood that although the various steps in the flow charts of fig. 2-9 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-9 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential.
Fig. 10 is a schematic view of a volume adjustment device according to an embodiment, and as shown in fig. 10, the device includes: a first obtaining module 11, a determining module 12, and a first adjusting module 13, wherein:
the first obtaining module 11 is configured to obtain a first distance corresponding to a captured image in a video recording process;
the determining module 12 is configured to determine, according to a preset correspondence between a distance and a volume, a first volume corresponding to the first distance;
and the first adjusting module 13 is configured to adjust the volume of the corresponding recorded audio when the shooting device records the image according to the first volume.
In one embodiment, as shown in fig. 11, the apparatus further includes: a receiving module 14 and a second regulating module 15, wherein:
the receiving module 14 is used for receiving a first operation instruction input by a user; the first operation instruction is used for adjusting the volume of the recorded audio;
and the second adjusting module 15 is configured to adjust the volume of the corresponding recorded audio when the shooting device records the image according to the third operation instruction.
In one embodiment, as shown in fig. 12, on the basis of the volume adjusting apparatus shown in fig. 10, the first obtaining module 11 includes:
a first obtaining unit 110, configured to obtain a sensor signal acquired by a ranging sensor on the shooting device;
a second obtaining unit 111, configured to obtain the first distance according to the sensor signal.
In one embodiment, the second obtaining unit 111 is specifically configured to determine a target photographic object in the photographic image; and acquiring a first distance between the target shooting object and the shooting equipment in the shot image according to the sensor signal.
In one embodiment, when the second acquiring unit 111 determines the target photographic subject in the photographic image, the method includes: the second obtaining unit 111 receives a first control instruction input by a user; the first control instruction comprises an identification of at least one target shooting object selected by a user; and determining a target shooting object in the shooting image according to the first control instruction.
In one embodiment, when the second acquiring unit 111 determines the target photographic subject in the photographic image, the method further includes: the second acquiring unit 111 determines a target photographic subject in the photographic image by using a preset image recognition method.
In one embodiment, as shown in fig. 13, on the basis of the volume adjustment apparatus shown in fig. 10, the first obtaining module 11 may further include:
a third obtaining unit 112, configured to obtain a picture magnification factor corresponding to the captured image;
the fourth obtaining unit 113 is configured to determine, according to a correspondence between a preset image magnification factor and a distance, a first distance corresponding to the image magnification factor.
In one embodiment, the third obtaining unit 112 is specifically configured to detect a resolution of the captured picture; and acquiring the picture magnification factor corresponding to the shot image according to the resolution of the picture.
In one embodiment, the third obtaining unit 112 is further specifically configured to receive a second operation instruction input by the user; and determining the picture magnification factor corresponding to the shot image according to the second operation instruction.
In one embodiment, as shown in fig. 14, the volume adjusting apparatus further includes:
a second obtaining module 16, configured to obtain a plurality of second distances between the target photographic object and the photographic device;
a detecting module 17, configured to detect an actual volume corresponding to each of the second distances;
and the establishing module 18 is configured to establish a corresponding relationship between the distance and the volume according to the plurality of second distances and the actual volume.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 15. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data such as sensor signals. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a volume adjustment method.
Those skilled in the art will appreciate that the architecture shown in fig. 15 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
in the video recording process, acquiring a first distance corresponding to a shot image;
determining a first volume corresponding to the first distance according to a corresponding relation between a preset distance and the volume;
and adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first volume.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving a first operation instruction input by a user; the first operation instruction is used for adjusting the volume of the recorded audio;
and adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first operation instruction.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a sensor signal acquired by a ranging sensor on the shooting equipment;
and acquiring the first distance according to the sensor signal.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining a target photographic object in the photographic image;
and acquiring a first distance between the target shooting object and the shooting equipment in the shot image according to the sensor signal.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving a first control instruction input by a user; the first control instruction comprises an identification of at least one target shooting object selected by a user;
and determining a target shooting object in the shooting image according to the first control instruction.
In one embodiment, the processor, when executing the computer program, further implements: and determining a target shooting object in the shooting image by adopting a preset image recognition method.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a picture magnification factor corresponding to the shot image;
and determining a first distance corresponding to the picture magnification according to the corresponding relation between the preset picture magnification and the distance.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
detecting the resolution of the shot picture;
and acquiring the picture magnification factor corresponding to the shot image according to the resolution of the picture.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving a second operation instruction input by a user;
and determining the picture magnification factor corresponding to the shot image according to the second operation instruction.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a plurality of second distances between a target shooting object and shooting equipment;
detecting the actual volume corresponding to each second distance;
and establishing a corresponding relation between the distance and the volume according to the plurality of second distances and the actual volume.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, the computer program, when executed by a processor, further implementing the steps of:
in the video recording process, acquiring a first distance corresponding to a shot image;
determining a first volume corresponding to the first distance according to a corresponding relation between a preset distance and the volume;
and adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first volume.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving a first operation instruction input by a user; the first operation instruction is used for adjusting the volume of the recorded audio;
and adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first operation instruction.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a sensor signal acquired by a ranging sensor on the shooting equipment;
and acquiring the first distance according to the sensor signal.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining a target photographic object in the photographic image;
and acquiring a first distance between the target shooting object and the shooting equipment in the shot image according to the sensor signal.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving a first control instruction input by a user; the first control instruction comprises an identification of at least one target shooting object selected by a user;
and determining a target shooting object in the shooting image according to the first control instruction.
In one embodiment, the computer program when executed by the processor further implements: and determining a target shooting object in the shooting image by adopting a preset image recognition method.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a picture magnification factor corresponding to the shot image;
and determining a first distance corresponding to the picture magnification according to the corresponding relation between the preset picture magnification and the distance.
In one embodiment, the computer program when executed by the processor further performs the steps of:
detecting the resolution of the shot picture;
and acquiring the picture magnification factor corresponding to the shot image according to the resolution of the picture.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving a second operation instruction input by a user;
and determining the picture magnification factor corresponding to the shot image according to the second operation instruction.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a plurality of second distances between a target shooting object and shooting equipment;
detecting the actual volume corresponding to each second distance;
and establishing a corresponding relation between the distance and the volume according to the plurality of second distances and the actual volume.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (11)

1. A method of volume adjustment, the method comprising:
in the video recording process, acquiring a first distance corresponding to a shot image, wherein the first distance corresponding to the shot image is the distance between a shot object and shooting equipment;
when the distance between the shooting object and the shooting device changes, the acquiring of the first distance corresponding to the shot image includes:
acquiring a sensor signal acquired by a ranging sensor on the shooting equipment;
acquiring the first distance according to the sensor signal;
when the distance between the shooting object and the shooting device does not change, the acquiring of the first distance corresponding to the shot image comprises:
acquiring a picture magnification factor corresponding to the shot image;
determining a first distance corresponding to the picture magnification factor according to the corresponding relation between the preset picture magnification factor and the distance;
determining a first volume corresponding to the first distance according to a corresponding relation between a preset distance and the volume;
and adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first volume.
2. The method of claim 1, further comprising:
receiving a first operation instruction input by a user; the first operation instruction is used for adjusting the volume of the recorded audio;
and adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first operation instruction.
3. The method of claim 1, wherein said obtaining the first distance from the sensor signal comprises:
determining a target photographic object in the photographic image;
and acquiring a first distance between the target shooting object and the shooting equipment in the shot image according to the sensor signal.
4. The method of claim 3, wherein the determining the target photographic subject in the photographic image comprises:
receiving a first control instruction input by a user; the first control instruction comprises an identification of at least one target shooting object selected by a user;
and determining a target shooting object in the shooting image according to the first control instruction.
5. The method of claim 3, wherein the determining the target photographic subject in the photographic image comprises:
and determining a target shooting object in the shooting image by adopting a preset image recognition method.
6. The method of claim 1, wherein the obtaining of the corresponding frame magnification factor of the captured image comprises:
detecting the resolution of the shot picture;
and acquiring the picture magnification factor corresponding to the shot image according to the resolution of the picture.
7. The method of claim 1, wherein the obtaining of the corresponding frame magnification factor of the captured image comprises:
receiving a second operation instruction input by a user;
and determining the picture magnification factor corresponding to the shot image according to the second operation instruction.
8. The method according to any one of claims 1-7, further comprising:
acquiring a plurality of second distances between a target shooting object and shooting equipment;
detecting the actual volume corresponding to each second distance;
and establishing a corresponding relation between the distance and the volume according to the plurality of second distances and the actual volume.
9. A volume adjustment device, characterized in that the device comprises:
the acquisition module is used for acquiring a first distance corresponding to a shot image in the video recording process; when the distance between the shooting object and the shooting device changes, the acquiring of the first distance corresponding to the shot image includes: acquiring a sensor signal acquired by a ranging sensor on the shooting equipment; acquiring the first distance according to the sensor signal; when the actual distance between the shooting object and the shooting device does not change, the acquiring of the first distance corresponding to the shot image includes: acquiring a picture magnification factor corresponding to the shot image; determining a first distance corresponding to the picture magnification factor according to the corresponding relation between the preset picture magnification factor and the distance;
the determining module is used for determining first volume corresponding to the first distance according to a corresponding relation between a preset distance and the volume;
and the adjusting module is used for adjusting the volume of the corresponding recorded audio when the shooting equipment records the image according to the first volume.
10. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 8 when executing the computer program.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN201810845307.XA 2018-07-27 2018-07-27 Volume adjusting method, device, equipment and storage medium Active CN108933911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810845307.XA CN108933911B (en) 2018-07-27 2018-07-27 Volume adjusting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810845307.XA CN108933911B (en) 2018-07-27 2018-07-27 Volume adjusting method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108933911A CN108933911A (en) 2018-12-04
CN108933911B true CN108933911B (en) 2021-12-07

Family

ID=64444254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810845307.XA Active CN108933911B (en) 2018-07-27 2018-07-27 Volume adjusting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108933911B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111107214A (en) * 2019-12-09 2020-05-05 西安易朴通讯技术有限公司 Volume adjusting method and device
CN113992836A (en) * 2020-07-27 2022-01-28 中兴通讯股份有限公司 Volume adjusting method and device for zoom video and video shooting equipment
CN112689221B (en) * 2020-12-18 2023-05-30 Oppo广东移动通信有限公司 Recording method, recording device, electronic equipment and computer readable storage medium
CN114827448A (en) * 2021-01-29 2022-07-29 华为技术有限公司 Video recording method and electronic equipment
CN115134513A (en) * 2021-03-29 2022-09-30 北京小米移动软件有限公司 Shooting method and device
CN114125138B (en) * 2021-10-29 2022-11-01 歌尔科技有限公司 Volume adjustment optimization method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102473172A (en) * 2009-07-24 2012-05-23 数字标记公司 Improved audio/video methods and systems
CN105843584A (en) * 2016-04-01 2016-08-10 乐视控股(北京)有限公司 Method and device for adjusting recording volume
CN107105183A (en) * 2017-04-28 2017-08-29 宇龙计算机通信科技(深圳)有限公司 recording volume adjusting method and device
CN107750451A (en) * 2015-07-27 2018-03-02 三星电子株式会社 For stablizing the method and electronic installation of video

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120166042A1 (en) * 2009-12-11 2012-06-28 Noritaka Kokido Sound output device for electric vehicle

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102473172A (en) * 2009-07-24 2012-05-23 数字标记公司 Improved audio/video methods and systems
CN107750451A (en) * 2015-07-27 2018-03-02 三星电子株式会社 For stablizing the method and electronic installation of video
CN105843584A (en) * 2016-04-01 2016-08-10 乐视控股(北京)有限公司 Method and device for adjusting recording volume
CN107105183A (en) * 2017-04-28 2017-08-29 宇龙计算机通信科技(深圳)有限公司 recording volume adjusting method and device

Also Published As

Publication number Publication date
CN108933911A (en) 2018-12-04

Similar Documents

Publication Publication Date Title
CN108933911B (en) Volume adjusting method, device, equipment and storage medium
CN103197491B (en) The method of fast automatic focusing and image collecting device
EP2953347B1 (en) Photographing control method and apparatus
KR101990073B1 (en) Method and apparatus for shooting and storing multi-focused image in electronic device
US9996934B2 (en) Device with an adaptive camera array
KR20150061277A (en) image photographing apparatus and photographing method thereof
EP2426909B1 (en) Determination of reliability of positional information associated with a photographed image
CN109561257B (en) Picture focusing method, device, terminal and corresponding storage medium
CN113364965A (en) Shooting method and device based on multiple cameras and electronic equipment
CN109068118B (en) Baseline distance adjusting method and device of double-camera module and double-camera module
CN105338237A (en) Image processing method and device
CN112188089A (en) Distance acquisition method and device, focal length adjustment method and device, and distance measurement assembly
CN113453022B (en) Image display method and device, television and storage medium
CN106370883B (en) Speed measurement method and terminal
CN113014820A (en) Processing method and device and electronic equipment
US20160037052A1 (en) Depth-Segmenting Peak Tracking Autofocus
CN112165579A (en) Standard shooting method, system, computer equipment and storage medium
CN112672045B (en) Shooting mode setting method and device and electronic equipment
CN117522942A (en) Depth distance measuring method, depth distance measuring device, electronic equipment and readable storage medium
CN114268743B (en) Image acquisition method, device, equipment and storage medium
US9584725B2 (en) Method and terminal device for shooting control
CN104866163B (en) Image display method, device and electronic equipment
CN111435971B (en) Image acquisition parameter configuration method and device, terminal and readable storage medium
CN114244999A (en) Automatic focusing method and device, camera equipment and storage medium
KR20150106621A (en) Terminal and service providing device, control method thereof, computer readable medium having computer program recorded therefor and image searching system

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