Microphone support adjusting method and device, terminal and readable medium
Technical Field
The embodiment of the invention relates to an image processing technology, in particular to a microphone support adjusting method, a microphone support adjusting device, a microphone support adjusting terminal and a readable medium.
Background
Nowadays, microphones are widely applied to places such as conference speaking, stage performance, karaoke and the like, the height and angle of the existing microphone bracket adjustment still need to be manually adjusted by a user, so that the operation is inconvenient, the time consumption is long, and the user experience is influenced to a certain extent; in addition, in the stage performance process such as phase sound or singing, the performer adjusts the microphone, which affects the performance continuity and thus the watching effect of the audience.
Disclosure of Invention
In view of this, embodiments of the present invention provide a microphone stand adjustment method, apparatus, terminal and readable medium, which implement automatic adjustment of a microphone stand and improve user experience.
In a first aspect, an embodiment of the present invention provides a microphone stand adjustment method, including:
receiving an adjusting instruction, and rotationally acquiring a first user image according to the adjusting instruction;
matching the first user image with a first standard image, determining an adjusting height according to the matched first user image, and adjusting the height of the microphone bracket according to the adjusting height;
and when the height adjustment is finished, rotatably acquiring a second user image, determining a second rotation angle according to the second user image, and adjusting the angle of the microphone bracket according to the second rotation angle.
Optionally, the rotationally acquiring the first user image according to the adjustment instruction includes:
and acquiring a first user image once per unit angle of rotation by taking the initial position as a starting point according to the adjusting instruction until the rotation is finished to the end position.
Optionally, the matching the first user image with the first standard image, and determining the height adjustment according to the matched first user image, includes:
matching the first user image with a standard face image, and judging whether a first user image matched with the standard face image exists or not;
if yes, determining a first rotation angle and a distance between the first rotation angle and a user according to the matched first user image;
and determining the adjusting height according to the first rotating angle and the distance between the first rotating angle and the user.
Optionally, the determining a first rotation angle and a distance between the first rotation angle and the user according to the matched first user image includes:
determining a first rotation angle according to the matched acquisition angle of the first user image;
and determining the distance between the user and the first user image according to the matched depth information of the first user image.
Optionally, the determining a second rotation angle according to the second user image includes:
matching the second user image with a standard mouth shape image, and judging whether a second user image matched with the standard mouth shape image exists or not;
and if so, determining a second rotation angle according to the matched second user image.
In a second aspect, an embodiment of the present invention provides a microphone stand adjustment apparatus, including:
the first image acquisition module is used for receiving an adjustment instruction and rotationally acquiring a first user image according to the adjustment instruction;
the height adjusting determining module is used for matching the first user image with a first standard image, determining the height to be adjusted according to the matched first user image, and adjusting the height of the microphone bracket according to the height to be adjusted;
the second image acquisition module is used for acquiring a second user image in a rotating mode when the height adjustment is finished;
and the second rotation angle determining module is used for determining a second rotation angle according to the second user image and adjusting the angle of the microphone bracket according to the second rotation angle.
Optionally, the height adjustment determining module includes:
the face matching submodule is used for matching the first user image with a standard face image and judging whether a first user image matched with the standard face image exists or not;
the angle and distance determining submodule is used for determining a first rotation angle and a distance between the first rotation angle and a user according to the matched first user image if the first user image matched with the standard face image exists;
and the height adjustment determination submodule is used for determining the height adjustment according to the first rotation angle and the distance between the user and the first rotation angle.
Optionally, the second rotation angle determining module includes:
the mouth shape matching submodule is used for matching the second user image with a standard mouth shape image and judging whether a second user image matched with the standard mouth shape image exists or not;
and the second rotation angle determining submodule is used for determining a second rotation angle according to the matched second user image if the second user image matched with the standard mouth shape image exists.
In a third aspect, an embodiment of the present invention provides a terminal, including:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a microphone stand adjustment method as in any of the embodiments of the invention.
In a fourth aspect, the present invention provides a readable medium, on which a computer program is stored, where the computer program is executed by a processor to implement the microphone stand adjustment method according to any one of the embodiments of the present invention.
According to the microphone support adjusting method, the microphone support adjusting device, the microphone support adjusting terminal and the readable medium, the first user images acquired in a rotating mode are matched with the first standard image, and the adjusting height is determined according to the matched first user images and is used for adjusting the height of the microphone support; and after the height adjustment is finished, rotatably acquiring a second user image, and determining a second rotation angle according to the second image for angle adjustment of the microphone bracket. The height adjustment of the microphone is realized through the matching operation of the first user image, the angle adjustment of the microphone is realized through the processing of the second user image, the automatic adjustment of the microphone support is realized, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description will be given below of the drawings required for the embodiments or the technical solutions in the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a microphone stand adjustment method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a process of adjusting the height of a microphone stand according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating an angle adjustment process of a microphone stand according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a microphone stand adjustment device according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described through embodiments with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present 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
Fig. 1 is a flowchart of a microphone stand adjustment method according to an embodiment of the present invention, where the present embodiment is applicable to a microphone stand adjustment situation, and the method may be implemented by a terminal, and may specifically be implemented by software and/or hardware in the terminal.
Referring to fig. 1, the microphone stand adjusting method includes the steps of:
and S110, receiving an adjusting instruction, and rotationally acquiring a first user image according to the adjusting instruction.
The adjusting instruction can be generated by pressing a physical key of the terminal; the adjustment may also be generated by operating a control terminal connected to the terminal, for example, by operating a remote controller connected to the terminal, or by installing a terminal control application in an intelligent terminal such as a mobile phone, a tablet, a computer, or a bracelet, and performing operations such as clicking in the control application; the adjustment instruction may also be generated after the terminal detects that the user is present in the preset range through the distance sensor, where the distance sensor may be an infrared sensor, an ultrasonic sensor, or a temperature sensor.
After receiving the adjustment instruction, the terminal may rotationally acquire the first user image through the image acquisition device, and specifically, may rotationally acquire a plurality of first user images within a preset angle range through the image acquisition device. Wherein, the image acquisition device can be a camera. The image acquisition device can be arranged at any position of the microphone bracket, and preferably can be arranged at the top end position of the microphone bracket. The image acquisition device can also be used as an accessory of the microphone bracket, is arranged at a position different from the microphone bracket and is used for rotationally acquiring the first user image. For example, can put on the stage when the microphone support, the image acquisition device is installed at the stage entrance, and the user can carry out the rotatory collection of first user's image when entering for the altitude mixture control of microphone support has shortened microphone adjust time, has improved regulation efficiency, has promoted user experience.
Optionally, the acquiring the first user image in a rotating manner according to the adjustment instruction includes:
and acquiring a first user image once per unit angle of rotation by taking the initial position as a starting point according to the adjusting instruction until the rotation is finished to the end position.
The initial position and the end position may be preset positions of the terminal, for example, a position where the acquisition direction of the image acquisition device is vertically downward may be defined as the initial position, and a position where the acquisition direction of the image acquisition device is vertically upward may be defined as the end position; the initial position and the terminal position can be set by a user in a self-defined way through a reserved setting entrance.
The unit angle can be a terminal preset angle, and can also be set by a user in a self-defined way through a preset entrance; the unit angle is related to the precision of the height adjustment, and the smaller the numerical value of the unit angle is, the higher the precision of the height adjustment is; the unit angle may be a fixed value, for example, 10 °, 15 °, or 30 °, or may be a variable value, for example, the unit angle is larger near the initial position and the end position, and the unit angle is smaller at the middle position between the initial position and the end position, which not only ensures the acquisition efficiency, but also ensures that the acquired first user image includes information matched with the first standard image, thereby improving the accuracy of adjusting the height.
A plurality of first user images are obtained through rotation collection, and a foundation is laid for subsequently processing the first user images and determining the adjustment height of the microphone support.
And S120, matching the first user image with the first standard image, determining the adjustment height according to the matched first user image, and adjusting the height of the microphone bracket according to the adjustment height.
The acquisition angle of the first user image matched with the first standard image can be obtained by determining the first user image matched with the first standard image, so that the relation between the height of the user and the height of the microphone support can be judged, and the subsequent height adjustment of the microphone support is facilitated. For example, when the image collector is located at the top end of the microphone bracket, if the collection angle of the matched first user image is an elevation angle, the height of the user is higher than that of the microphone bracket, and the height of the microphone bracket needs to be increased; if the collection angle of the matched first user image is the depression angle, the height of the user is lower than the height of the microphone support, and the height of the microphone support needs to be reduced.
Optionally, matching the first user image with the first standard image, and determining an adjustment height according to the matched first user image, includes:
matching the first user image with the standard face image, and judging whether the first user image matched with the standard face image exists or not; if yes, determining a first rotation angle and a distance between the first rotation angle and a user according to the matched first user image; and determining the adjusting height according to the first rotating angle and the distance between the first rotating angle and the user.
The standard face image can be a standard image obtained after processing based on a multi-sample face image, and whether the image contains face information or not can be determined by matching with the standard face image. And if the first user image is matched with the standard face image, the fact that the first user image contains the face information of the user is proved. When a plurality of first user images are matched with the standard face image, the image with the face information located at the center position of the first user image can be determined as the first user image which is finally matched.
Optionally, determining the first rotation angle and the distance between the first rotation angle and the user according to the matched first user image includes:
determining a first rotation angle according to the matched acquisition angle of the first user image; and determining the distance between the user and the matched first user image according to the depth information of the matched first user image.
The acquisition angle of the matched first user image can be understood as the angle between the initial position and the acquisition position. When the collection angle is an acute angle, the collection angle is equal to the first rotation angle; when the collection angle is an obtuse angle, an angle obtained by subtracting 90 ° from the collection angle may be used as the first rotation angle. The first user image can be acquired by an image acquisition device capable of acquiring depth, and the distance between the image acquisition device and a user can be determined according to the depth information of the first user image.
Fig. 2 is a schematic diagram of a process for adjusting the height of a microphone stand according to an embodiment of the present invention. The initial position of the image acquisition device 210 is a position where the acquisition direction is vertically downward, the end position of the image acquisition device 210 is a position where the acquisition direction is vertically upward, the image acquisition device 210 can rotate counterclockwise from the initial position to the end position, and the first user image is acquired once per rotation unit angle. And matching the plurality of first user images with the standard face image, obtaining an acquisition angle theta according to the matched first user images, and taking the theta as a first rotation angle. The distance L from the acquisition device to the user is determined from the depth information of the matched first user image, and the adjustment height H may be L × sin θ. After H is obtained, the H can be corrected according to the empirical value so as to carry out more reasonable adjustment.
S130, when the height adjustment is completed, rotatably collecting a second user image, determining a second rotation angle according to the second user image, and adjusting the angle of the microphone support according to the second rotation angle.
When the height of the microphone support is adjusted, the microphone is located near the head of a user, the microphone support is adjusted only by adjusting the angle of the microphone support, the microphone is located near the mouth of the user, the microphone support can be adjusted, and user experience is improved. The image acquisition device is used for acquiring the second user image in a rotating mode, and can be the same as the image acquisition device for acquiring the first user image or different acquisition devices arranged at different positions. When the image acquisition device is the same image acquisition device, the target position of the microphone is near the mouth of the user, so the mouth position of the user needs to be identified for the acquired user image, and before acquiring the second user image, the acquisition magnification ratio needs to be adjusted, specifically, the magnification ratio can be improved, so that the visual field range of the acquired image is reduced, and the processing of the second user image is facilitated.
Optionally, determining the second rotation angle according to the second user image includes:
matching the second user image with the standard mouth shape image, and judging whether a second user image matched with the standard mouth shape image exists or not; and if so, determining a second rotation angle according to the matched second user image.
The standard mouth image may be a standard image obtained by processing a multi-sample mouth image, and whether the mouth is included in the image may be determined by matching the standard mouth image with the standard mouth image. And if the second user image is matched with the standard mouth shape image, the second user image is proved to contain the mouth of the user. When there are a plurality of second user images matching the standard mouth shape image, an image in which the mouth is positioned at the center of the second user image may be determined as the finally matching second user image.
The second rotation angle may be determined according to the matching acquisition angle of the second user image, and collectively may be determined according to a difference between the acquisition angle of the second user image and the original angle of the microphone. Wherein the acquisition angle of the second user image may be understood as the angle between the initial position and the acquisition position.
fig. 3 is a schematic diagram of an angle adjustment process of a microphone stand according to an embodiment of the present invention, where an initial position acquired by the image acquisition device 310 is a position where the acquisition direction is vertically downward, a final position acquired by the image acquisition device 310 is a position where the acquisition direction is vertically upward, the image acquisition device 310 may rotate counterclockwise from the initial position to the final position, and acquire a second user image every unit angle of rotation, match a plurality of second user images with a standard mouth-shaped image, obtain an acquisition angle α 2 according to the matched second user images, and obtain an original angle of the microphone as α 1, where a value of the second rotation angle is a difference between α 1 and α 2, and adjust an angle of the microphone stand according to the second rotation angle.
In the microphone stand adjusting method provided by this embodiment, each first user image acquired by rotation is matched with a first standard image, and an adjusting height is determined according to the matched first user image for adjusting the height of the microphone stand; and after the height adjustment is finished, rotatably acquiring a second user image, and determining a second rotation angle according to the second image for angle adjustment of the microphone bracket. The height adjustment of the microphone is realized through the matching operation of the first user image, the angle adjustment of the microphone is realized through the processing of the second user image, the automatic adjustment of the microphone support is realized, and the user experience is improved.
Example two
Fig. 4 is a schematic structural diagram of a microphone stand adjusting device according to a second embodiment of the present invention, which is applicable to microphone stand adjustment.
Referring to fig. 4, the microphone stand adjusting device in the present embodiment includes:
the first image acquisition module 410 is configured to receive an adjustment instruction, and rotationally acquire a first user image according to the adjustment instruction;
an adjusting height determining module 420, configured to match the first user image with the first standard image, determine an adjusting height according to the matched first user image, and adjust the height of the microphone stand according to the adjusting height;
the second image acquisition module 430 is used for acquiring a second user image in a rotating manner when the height adjustment is completed;
and a second rotation angle determining module 440, configured to determine a second rotation angle according to the second user image, and adjust the angle of the microphone holder according to the second rotation angle.
Optionally, the first image capturing module 410 is specifically configured to:
and acquiring a first user image once per unit angle of rotation by taking the initial position as a starting point according to the adjusting instruction until the rotation is finished to the end position.
Optionally, the height determining module 420 includes:
the face matching sub-module is used for matching the first user image with the standard face image and judging whether the first user image matched with the standard face image exists or not;
the angle and distance determining submodule is used for determining a first rotation angle and a distance between the first rotation angle and a user according to the matched first user image if the first user image matched with the standard face image exists;
and the adjusting height determining submodule is used for determining the adjusting height according to the first rotating angle and the distance between the user and the first rotating angle.
Optionally, the second rotation angle determining module 430 includes:
the mouth shape matching submodule is used for matching the second user image with the standard mouth shape image and judging whether the second user image matched with the standard mouth shape image exists or not; and the second rotation angle determining submodule is used for determining a second rotation angle according to the matched second user image if the second user image matched with the standard mouth shape image exists.
Optionally, the first image capturing module 410 and the second image capturing module 430 may be the same image capturing module or different image capturing modules. When the first image capturing module 410 and the second image capturing module 430 are the same image capturing module, before capturing the second user image, the capturing magnification needs to be adjusted, specifically, the magnification may be increased, so that the field of view of the captured image is reduced, which is beneficial to matching the second user image with the standard mouth-shaped image.
The microphone stand adjusting device provided by the present embodiment is the same as the microphone stand adjusting method provided by the first embodiment, and technical details not described in the present embodiment can be referred to in the first embodiment.
EXAMPLE III
The embodiment provides a terminal which can be used for microphone bracket adjustment. Fig. 5 is a schematic structural diagram of a terminal according to a third embodiment of the present invention. Referring to fig. 5, the terminal includes:
one or more processors 510;
a memory 520 for storing one or more programs;
when executed by the one or more processors 510, the one or more programs cause the one or more processors 510 to implement a microphone stand adjustment method as set forth in one embodiment.
In FIG. 5, a processor 510 is illustrated as an example; the processor 510 and the memory 520 may be connected by a bus or other means, such as by a bus in FIG. 5.
The memory 520 is a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the microphone stand adjustment method in the embodiment of the present invention. The processor 510 executes various functional applications and data processing of the terminal by executing software programs, instructions and modules stored in the memory 520, that is, implements the above-described microphone stand adjustment method.
The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 520 may further include memory located remotely from the processor 510, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The terminal and the method for adjusting the microphone stand according to the first embodiment belong to the same inventive concept, and technical details that are not described in detail in the first embodiment can be referred to in the first embodiment.
Example four
The present embodiment provides a readable medium, on which a computer program is stored, which when executed by a processor implements a microphone stand adjustment method as set forth in an embodiment.
The readable medium provided by the embodiment and the method for adjusting the microphone stand provided by the first embodiment belong to the same inventive concept, and technical details which are not described in detail in the embodiment can be referred to the first embodiment, and the first embodiment have the same beneficial effects.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.