Electronic device and control method thereof
By introducing sound detection parts and sound pick-up hole detection functions into electronic devices, the problem of inconvenient shooting operation in the folded state is solved, and a convenient shooting operation experience is achieved.
Patent Information
- Application Number
- CN202310839019.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-07
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2043-07-07
AI Technical Summary
When the electronic device is folded to a certain angle, the start/end button is located in the screen area during the shooting process, and the user needs to operate sideways, which leads to inconvenient operation and affects the shooting experience.
Design an electronic device, including the main body of the device, a display screen, a camera module and a sound detection piece. By detecting whether the first sound pick-up hole is blocked, the camera module is controlled to start or stop shooting, thereby avoiding the user from triggering the start/end buttons in the screen area.
It realizes that shooting can be started or stopped without side-facing operation in the folded state of the electronic device, improving the user's shooting convenience and experience.
Smart Images

Figure CN116708658B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of communication equipment, and specifically relates to an electronic device and a control method thereof. Background Art
[0002] With the rise of foldable electronic devices in recent years, they have brought different shooting experiences to users. For example, the screen of an electronic device can be folded to different angles and rotated to make it equivalent to an adjustable tripod. In this case, users can take hands-free selfies without the help of other devices or others, and can also unlock more shooting angles.
[0003] During the actual shooting process, the user can fold the upper and lower parts of the electronic device to a certain angle, and hold the lower part of the electronic device. The upper screen is used to display the preview image. At this time, the electronic device can be used as a DV camera for shooting. However, since the shooting start / end button is located in the lower screen area of the electronic device and cannot face the user directly, the user needs to turn sideways to operate during the shooting process, which is inconvenient and results in a poor shooting experience for the user. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an electronic device and a control method thereof, which can solve the problem that the current electronic device is inconvenient to operate during shooting when folded to a certain angle.
[0005] In order to solve the above technical problems, this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides an electronic device, including a device body, a display screen, a camera module and a sound detection component, wherein the device body is provided with a first sound pickup hole, the display screen is arranged on the device body, the camera module and the sound detection component are both arranged in a receiving space surrounded by the device body and the display screen, the sound detection component is connected to the first sound pickup hole to detect whether the first sound pickup hole is blocked, the device body includes a first main body portion and a second main body portion rotatably connected, the display screen includes a first part and a second part connected, the first main body portion can be rotated relative to the second main body portion so that the angle between the first part and the second part changes,
[0007] When there is an included angle between the first part and the second part, the camera module is in an on state, and the first sound pickup hole is blocked, the camera module starts shooting or stops shooting.
[0008] In a second aspect, an embodiment of the present application further provides a control method of an electronic device, which is applied to the above-mentioned electronic device, including:
[0009] There is an angle between the first part and the second part, and when the camera module is in an on state, detecting whether the first sound pickup hole is blocked;
[0010] When the first sound pickup hole is blocked, the camera module is controlled to start or stop shooting.
[0011] In a third aspect, an embodiment of the present application further provides a control device for an electronic device, which is applied to the control method described in the second aspect, and the device includes:
[0012] A detection module, used for detecting whether the first sound pickup hole is blocked when an angle is formed between the first part and the second part and the camera module is in an on state;
[0013] The control module is used to control the camera module to start or stop shooting when the first sound pickup hole is blocked.
[0014] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the second aspect are implemented.
[0015] In a fifth aspect, an embodiment of the present application further provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the second aspect are implemented.
[0016] In a sixth aspect, an embodiment of the present application further provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the second aspect.
[0017] In a seventh aspect, an embodiment of the present application further provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the second aspect.
[0018] In the embodiment of the present application, when there is an angle between the first part and the second part, the camera module is in the open state, and it is necessary to start or end shooting, the user only needs to cover the first sound pickup hole. At this time, the signal amplitude detected by the sound detection component is significantly smaller than before the first sound pickup hole is blocked. According to the change of the signal, the camera module can be controlled to start or stop shooting, thereby avoiding the user from triggering the start / end button located in the screen area, thereby improving the convenience of user shooting. Therefore, the present application can solve the problem of inconvenience in operation during shooting of current electronic devices when folded to a certain angle. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application;
[0020] Figure 2 A schematic diagram of a portion of the structure of an electronic device disclosed in an embodiment of the present application;
[0021] Figure 3 A partial structural diagram of an electronic device disclosed in another embodiment of the present application;
[0022] Figure 4 A partial structural diagram of an electronic device disclosed in yet another embodiment of the present application;
[0023] Figure 5 A flowchart of a control method of an electronic device disclosed in an embodiment of the present application;
[0024] Figure 6 A schematic diagram of a time axis of a method for controlling an electronic device disclosed in an embodiment of the present application;
[0025] Figure 7 A structural block diagram of an electronic device disclosed in an embodiment of the present application;
[0026] Figure 8 A schematic diagram of the hardware structure of an electronic device disclosed in an embodiment of the present application.
[0027] Description of reference numerals:
[0028] 100-device body, 110-first sound pickup hole, 120-first main body, 130-second main body, 140-sound outlet hole, 150-second sound pickup hole;
[0029] 200 - display screen, 210 - first part, 220 - second part. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0031] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0032] The electronic device and the control method thereof provided in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0033] refer to Figures 1 to 4 The embodiment of the present application discloses an electronic device, including a device body 100, a display screen 200, a camera module and a sound detection component. The device body 100 is provided with a first sound pickup hole 110, the display screen 200 is arranged on the device body 100, the camera module and the sound detection component are both arranged in a receiving space surrounded by the device body 100 and the display screen 200, and the sound detection component is connected to the first sound pickup hole 110 to detect whether the first sound pickup hole 110 is blocked, that is, the sound detection component is used to detect the sound signal transmitted into the first sound pickup hole 110, and judge whether the first sound pickup hole 110 is blocked according to the change amplitude of the sound signal. The device body 100 includes a first main body 120 and a second main body 130 that are rotatably connected, and the display screen 200 includes a first part 210 and a second part 220 that are connected. The first main body 120 can rotate relative to the second main body 130 to change the angle between the first part 210 and the second part 220, that is, the angle between the first part 210 and the second part 220 can be any angle between 0° and 180°. When the angle is 0°, the electronic device is in a folded state; when the angle is 90°, the first main body 120 is perpendicular to the second main body 130; when the angle is 180°, the display screen 200 is in an unfolded state, and its effective display area is large, and it has a good viewing effect. Optionally, the display screen 200 can be a flexible display screen, so that the angle between the first part 210 and the second part 220 can be flexibly changed. When there is an angle (ie, a non-zero angle) between the first portion 210 and the second portion 220 , the camera module is in an on state, and the first sound pickup hole 110 is blocked, the camera module starts shooting or stops shooting.
[0034] In an embodiment of the present application, when there is an angle between the first part 210 and the second part 220, the camera module is in the on state, and it is necessary to start or end shooting, the user only needs to block the first sound pickup hole 110. At this time, the signal amplitude detected by the sound detection component is significantly smaller than before the first sound pickup hole 110 is blocked. The camera module can be controlled to start or stop shooting according to the signal change, thereby avoiding the user from triggering the start / end button located in the screen area, thereby improving the convenience of user shooting. Therefore, the present application can solve the problem of inconvenience in operating the current electronic device during shooting when it is folded to a certain angle. Optionally, the angle here can be 60° to 120°, and the embodiment of the present application is not specifically limited.
[0035] In an optional embodiment, the accommodating space includes a first accommodating cavity and a second accommodating cavity, the first main body 120 and the first part 210 form the first accommodating cavity, the second main body 130 and the second part 220 form the second accommodating cavity, the camera module is arranged in the first accommodating cavity, the sound detection element is arranged in the second accommodating cavity, the first sound pickup hole 110 is opened at one end of the second main body 130 away from the first main body 120, and there is an angle between the first part 210 and the second part 220. When the camera module is in the open state, the first part 210 is used to display the preview picture. During the shooting process of the camera module, the first part 210 is used to provide an effective display picture, the second part 220 and the second main body 130 serve as a support frame to play a supporting role. When the user holds the support frame, since the first sound pickup hole 110 is opened at one end of the second main body 130 away from the first main body 120, the first sound pickup hole 110 is closer to the user's eyes, which is convenient for the user to accurately cover the first sound pickup hole 110. Of course, the first sound pickup hole 110 can also be opened at the end of the second main body 130 close to the first main body 120. In this case, a touchable mark can be set around the first sound pickup hole 110 to facilitate the user to determine the position of the first sound pickup hole 110. However, this will not only affect the aesthetics of the electronic device, but also the convenience of operation is not as good as opening the first sound pickup hole 110 at the end of the second main body 130 away from the first main body 120.
[0036] Further optionally, the first sound pickup hole 110 is opened on the end surface of the second main body 130 away from the first main body 120. When there is an angle between the first part 210 and the second part 220, and the camera module is in the on state, the first part 210 is used to display the preview screen. At this time, the first sound pickup hole 110 is facing the user, which is conducive to the user to clearly see the first sound pickup hole 110 and accurately cover the first sound pickup hole 110.
[0037] Optionally, the sound detection component can be an additional sound sensor or audio analyzer, etc.; in other embodiments, the sound detection component is a microphone of the electronic device, and when the camera module is in a closed state, the microphone is used to obtain sound signals through the first sound pickup hole 110. That is to say, when the camera module is not working, the microphone is used as an acoustic device to obtain sounds in the external environment for calls, etc.; when the camera module is working, the microphone is used as a sound detection component to detect whether the first sound pickup hole 110 is blocked. It can be seen that the sound detection component in the present application is an existing structure in the electronic device. By reusing the existing structure in the electronic device, the effect of one thing serving two purposes is achieved, and there is no need to set up a separate sound detection component, which is conducive to saving the production cost of the electronic device, and at the same time can reduce the difficulty of the internal structural layout of the electronic device.
[0038] Optionally, the sound detection component can be used to detect sounds in the external environment, so as to detect whether the first sound pickup hole 110 is blocked; or, in another optional embodiment, the device body 100 is also provided with a sound outlet hole 140, and the electronic device also includes a sound-generating device, which can be used to emit ultrasonic signals, and the sound-generating device is arranged in the accommodation space, and the sound-generating device is connected to the sound outlet hole 140, and the sound detection component can be used to detect ultrasonic signals. When there is an angle between the first part 210 and the second part 220, and the camera module is in the open state, the sound detection component is used to detect the ultrasonic signal emitted by the electronic device itself, so that the sound detection component can detect specific sound signals in a targeted manner, thereby improving the detection accuracy of the sound detection component.
[0039] In addition, in the above embodiment, when the device body 100 is also provided with a sound outlet hole 140 and the electronic device also includes a sound-emitting device, the user can not only cover the first sound pickup hole 110, but also cover the sound outlet hole 140 to reduce the ultrasonic signal transmitted from the sound outlet hole 140, thereby making the amplitude of the sound signal detected by the sound detection component significantly smaller than before the sound outlet hole 140 is blocked, thereby providing users with more choices to enhance the user experience.
[0040] Optionally, the sound outlet hole 140 and the first sound pickup hole 110 can be set at any interval, and the distance between the two can be relatively far. In this case, the ultrasonic signal detected by the sound detection component is relatively weak. When the sound in the external environment is relatively loud, the detection accuracy of the sound detection component is relatively poor. Based on this, in other embodiments, the sound outlet hole 140 is arranged adjacent to the first sound pickup hole 110. In this case, the distance between the sound outlet hole 140 and the first sound pickup hole 110 is relatively close, and the ultrasonic signal detected by the sound detection component is relatively strong, which is conducive to further improving the detection accuracy of the sound detection component.
[0041] Optionally, the sound-generating device can be an additional device, such as a buzzer, etc.; in another optional embodiment, the sound-generating device is a speaker of an electronic device, and when the camera module is in a closed state, the speaker is used to emit sound signals through the sound outlet 140. When the camera module is not working, the speaker is used as an acoustic device for making calls, listening to music, etc.; when the camera module is working, the speaker is used as a sound-generating device for emitting ultrasonic signals. It can be seen that the sound-generating device in the present application is an existing structure in an electronic device. By reusing the existing structure in the electronic device, the effect of one thing serving two purposes is achieved, and there is no need to set up a separate sound-generating device, which is conducive to saving the production cost of the electronic device, and at the same time can reduce the difficulty of the structural layout inside the electronic device.
[0042] In another optional embodiment, the device body 100 is also provided with a second sound pickup hole 150 spaced apart from the first sound pickup hole 110, and the second sound pickup hole 150 here is not connected to the sound detection part. The electronic device also includes a microphone, which is connected to the second sound pickup hole 150, and has an angle between the first part 210 and the second part 220. When the camera module is in a shooting state, the microphone is used to obtain sound signals through the second sound pickup hole 150. When the camera module is working, the sound detection part detects whether the first sound pickup hole 110 is blocked through the first sound pickup hole 110, and the second sound pickup hole 150 is always connected to the external environment to obtain sound signals in the external environment, so as to avoid the video obtained by the camera module having no sound when the first sound pickup hole 110 is blocked, thereby improving the integrity of the sound pickup during the camera module recording process, and then improving the user experience.
[0043] refer to Figure 5 Based on the electronic device provided in the embodiment of the present application, the embodiment of the present application further provides a control method of the electronic device, which is applied to the electronic device in any of the above embodiments, and the control method includes:
[0044] S100, when there is an angle between the first portion 210 and the second portion 220 and the camera module is in an on state, detecting whether the first sound pickup hole 110 is blocked.
[0045] In this step, a sound detection component can be used to detect whether the first sound pickup hole 110 is blocked. Optionally, the sound detection component can be a microphone of the electronic device. Specifically, when the camera module is not working, the microphone is used as an acoustic device to obtain sounds in the external environment such as calls; when the camera module is working, the microphone is used as a sound detection component to detect whether the first sound pickup hole 110 is blocked. In this case, the sound detection component is an existing structure in the electronic device. By reusing the existing structure, a dual-purpose effect is achieved without the need to set up a separate sound detection component, which is beneficial to saving the production cost of the electronic device and can reduce the difficulty of the internal structural layout of the electronic device.
[0046] S200: When the first sound pickup hole 110 is blocked, control the camera module to start or stop shooting.
[0047] In the embodiment of the present application, when there is an angle between the first part 210 and the second part 220, the camera module is in the open state, and it is necessary to start or end shooting, the user only needs to cover the first sound pickup hole 110. At this time, the signal amplitude detected by the sound detection component is significantly smaller than before the first sound pickup hole 110 is blocked. According to the change of the signal, the camera module can be controlled to start or stop shooting, thereby avoiding the user from triggering the start / end button located in the screen area, thereby improving the convenience of user shooting. Therefore, the present application can solve the problem of inconvenience in operation during shooting of current electronic devices when folded to a certain angle.
[0048] In an optional embodiment, the step S200 of detecting whether the first sound pickup hole 110 is blocked specifically includes:
[0049] S210: Obtain a first signal parameter.
[0050] S220: When the first signal parameter is less than the second signal parameter, and the difference between the second signal parameter and the first signal parameter is greater than a preset value, it is determined that the first sound pickup hole 110 is blocked, wherein the first signal parameter is a parameter of a current sound signal transmitted from the first sound pickup hole 110, and the second signal parameter is a parameter of a sound signal transmitted from the first sound pickup hole 110 before the current sound signal.
[0051] In this solution, by comparing the first signal parameter and the second signal parameter, when the difference between the second signal parameter and the first signal parameter is equal to or less than the preset value, it indicates that the first sound pickup hole 110 is not blocked; when the difference between the second signal parameter and the first signal parameter is greater than the preset value, it indicates that the first sound pickup hole 110 is blocked. In other words, by judging the size of the parameter change value of the sound signal transmitted from the first sound pickup hole 110, it is accurately judged whether the first sound pickup hole 110 is blocked, and then the working state of the camera module is controlled.
[0052] It should be noted that the above-mentioned preset value can be a specific value or a specific range of values, and the embodiments of the present application do not impose any specific limitation.
[0053] Optionally, the first signal parameter may be a parameter of a sound signal transmitted from the first sound pickup hole 110 at the current moment, and the second signal parameter may be a parameter of a sound signal transmitted from the first sound pickup hole 110 at the previous moment; or, in other embodiments, step S210 specifically includes:
[0054] S211. Obtain a first parameter.
[0055] S212. Obtain a first signal parameter according to the first parameter.
[0056] The step S200 of detecting whether the first sound pickup hole 110 is blocked further includes:
[0057] S230: Obtain a second parameter.
[0058] S240. Obtain a second signal parameter according to the second parameter, wherein the first parameter is a parameter of the sound signal transmitted from the first sound pickup hole 110 in the current time period, and the first parameter may be an rms value (i.e., root mean square value) of the sound signal amplitude in the current time period; and the second parameter is a parameter of the sound signal transmitted from the first sound pickup hole 110 in the previous time period, and the second parameter may be an rms value (i.e., root mean square value) of the sound signal amplitude in the previous time period.
[0059] The specific durations of the current time period and the previous time period in this step can be adjusted according to actual needs and are not specifically limited here.
[0060] This solution calculates the rms value of the sound signal amplitude within a certain time period, and compares the rms value in the current time period with the rms value in the previous time period. When the difference between the two is greater than a preset value, it is determined that the first sound pickup hole 110 is blocked, thereby accurately controlling the working state of the camera module to avoid sudden loud noise in the external environment or sudden silence in the external environment, which causes a large difference in the change amplitude of the second signal parameter and the first signal parameter, resulting in false triggering.
[0061] Specific reference Figure 6, time t0 is the time when there is a certain angle between the first part 210 and the second part 220 of the display screen 200 of the electronic device, and the camera module is in the on state, by setting a time period T, taking the rms value of the sound signal amplitude in the time period, assuming that the current time is t, the control system of the electronic device retains the rms value of the sound signal amplitude in the previous time period, that is, the rms value of the sound signal amplitude in the time period t(n-2)~t(n-1); the user blocks the first sound pickup hole 110 at time t, and the rms value of the sound signal amplitude in the time period will become smaller, and the rms value of the sound signal amplitude in the time period t(n-1)~t(n) is compared with the rms value of the sound signal amplitude in the time period t(n-2)~t(n-1). When the rms value decreases by a preset value, it is determined that the user blocks the first sound pickup hole 110, and the user wants the camera module to start or stop shooting.
[0062] In another optional embodiment, in the step of detecting whether the first sound pickup hole 110 is blocked:
[0063] Within a preset time period, when the first signal parameter is smaller than the second signal parameter, and the difference between the second signal parameter and the first signal parameter is greater than a preset value at least twice, it is determined that the first sound pickup hole 110 is blocked.
[0064] In this scheme, within a preset time period, when the first signal parameter is less than the second signal parameter, and the difference between the second signal parameter and the first signal parameter is greater than the preset value only once, it may be caused by the sudden increase or decrease of the sound in the external environment, and is not caused by the first sound pickup hole 110 being blocked; when the first signal parameter is less than the second signal parameter, and the difference between the second signal parameter and the first signal parameter is greater than the preset value at least twice, it is determined that the first sound pickup hole 110 is blocked due to human operation, thereby reducing the probability of false touch, and then accurately controlling the working state of the camera module.
[0065] In another optional embodiment, the electronic device also includes a sound-generating device, which can be used to emit ultrasonic signals. Optionally, the sound-generating device can be a speaker of the electronic device. When the camera module is not working, the speaker is used as an acoustic device for making calls, listening to music, etc. When the camera module is working, the speaker is used as a generating device to emit ultrasonic signals. The sound-generating device is an existing structure in the electronic device. By reusing the existing structure to achieve a dual-purpose effect, there is no need to set up a separate sound-generating device, which is beneficial to saving the production cost of the electronic device and reducing the difficulty of the internal structural layout of the electronic device. The sound detection component can be used to detect ultrasonic signals. Step S210 specifically includes:
[0066] S213, controlling the sound-generating device to emit an ultrasonic signal.
[0067] S214 , eliminating sound signals in frequency bands other than the ultrasonic frequency band from the current sound signal transmitted from the first sound pickup hole 110 to obtain a first target sound signal.
[0068] In this step, not only the ultrasonic signal emitted by the sound-emitting device but also the sound signal in the external environment is transmitted into the first sound pickup hole 110. At this time, the sound signals in frequency bands other than the ultrasonic frequency band in the current sound signal transmitted into the first sound pickup hole 110 need to be eliminated, that is, the sound signals in the external environment transmitted into the first sound pickup hole 110 are eliminated, and the ultrasonic signal emitted by the remaining sound-emitting device is used so that the sound detection component can accurately detect the ultrasonic signal emitted by the sound-emitting device.
[0069] S215. Acquire a first signal parameter according to the first target acoustic signal.
[0070] In this solution, the sound detection component has the function of specifically detecting a specific sound signal, namely, an ultrasonic signal emitted by a sound-emitting device, thereby improving the detection accuracy of the sound detection component.
[0071] In a further optional embodiment, after controlling the camera module to start shooting in step S200, the method further includes:
[0072] S300: Obtain the working mode of the camera module.
[0073] S400: When the working mode is the video recording mode, obtain a video recording sound signal.
[0074] It should be noted that when the camera module is in the photo mode, it is only necessary to preview the image without obtaining the sound signal. Only when the camera module is in the video mode, it is necessary not only to preview the image but also to obtain the video sound signal.
[0075] S500: Eliminate ultrasonic frequency band signals from the video recording sound signal to obtain a second target sound signal.
[0076] In this solution, the first sound pickup hole 110 not only transmits the ultrasonic signal emitted by the sound-emitting device, but also transmits the sound signal in the external environment. When the working mode of the camera module is the video recording mode, it is necessary to eliminate the ultrasonic frequency band in the current sound signal transmitted into the first sound pickup hole 110, and retain the sound signal in the external environment transmitted into the first sound pickup hole 110, so as to avoid the ultrasonic frequency band from affecting the current video, thereby improving the sound clarity of the video.
[0077] In the control method provided in the embodiment of the present application, the execution subject may be a control device. In the embodiment of the present application, the control device of the electronic device provided in the embodiment of the present application is described by taking the control device executing the control method as an example.
[0078] The control device of the electronic device disclosed in the embodiment of the present application can control the camera module to start or stop shooting when the first sound pickup hole 110 is blocked according to the detection module, thereby avoiding the user from triggering the start / end button located in the screen area, thereby improving the convenience of user shooting.
[0079] The control device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0080] The control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0081] Alternatively, if Figure 7 As shown, an embodiment of the present application also provides an electronic device 300, including a processor 310 and a memory 320, wherein the memory 320 stores programs or instructions that can be executed on the processor 310, and when the program or instructions are executed by the processor 310, the various steps of the above-mentioned control method are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0082] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0083] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0084] The electronic device 400 includes but is not limited to components such as a radio frequency unit 410, a network module 420, an audio output unit 430, an input unit 440, a sensor 450, a display unit 460, a user input unit 470, an interface unit 480, a memory 490, and a processor 401.
[0085] Those skilled in the art will appreciate that the electronic device 400 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 401 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0086] Among them, the processor 401 is used to detect whether the first sound pickup hole 110 is blocked when there is an angle between the first part 210 and the second part 220 and the camera module is in the on state. The processor 401 is also used to control the camera module to start or stop shooting when the first sound pickup hole 110 is blocked, thereby avoiding the user from triggering the start / end button located in the screen area, thereby improving the convenience of user shooting.
[0087] It should be understood that in the embodiment of the present application, the input unit 440 may include a graphics processor (GPU) 441 and a microphone 442, and the graphics processor 441 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 460 may include a display panel 461, and the display panel 461 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 470 includes a touch panel 471 and at least one of other input devices 472. The touch panel 471 is also called a touch screen. The touch panel 471 may include two parts: a touch detection device and a touch controller. Other input devices 472 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0088] The memory 490 can be used to store software programs and various data. The memory 490 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 490 may include a volatile memory or a non-volatile memory, or the memory 490 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 490 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0089] The processor 401 may include one or more processing units; optionally, the processor 401 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 401.
[0090] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned control method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0091] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0092] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0093] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0094] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0095] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0096] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0097] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An electronic device, characterized in that: The device comprises a device body, a display screen, a camera module and a sound detection component, wherein the device body is provided with a first sound pickup hole, the display screen is arranged on the device body, the camera module and the sound detection component are both arranged in a receiving space surrounded by the device body and the display screen, the sound detection component is connected to the first sound pickup hole to detect whether the first sound pickup hole is blocked, the device body comprises a first main body part and a second main body part which are rotatably connected, the display screen comprises a first part and a second part which are connected, the first main body part can rotate relative to the second main body part so that the angle between the first part and the second part changes, When there is an included angle between the first part and the second part, the camera module is in an on state, and the first sound pickup hole is blocked, the camera module starts shooting or stops shooting.
2. The electronic device according to claim 1, characterized in that: The accommodating space includes a first accommodating cavity and a second accommodating cavity, the first main body and the first part form the first accommodating cavity, the second main body and the second part form the second accommodating cavity, the camera module is arranged in the first accommodating cavity, the sound detection component is arranged in the second accommodating cavity, and the first sound pickup hole is opened at one end of the second main body away from the first main body. There is an angle between the first part and the second part, and when the camera module is in an on state, the first part is used to display a preview image.
3. The electronic device according to claim 1, characterized in that: The sound detection component is a microphone of the electronic device, When the camera module is in a closed state, the microphone is used to obtain sound signals through the first sound pickup hole.
4. The electronic device according to claim 1, characterized in that: The device body is also provided with a sound outlet hole, and the electronic device further comprises a sound-generating device, which can be used to emit ultrasonic signals. The sound-generating device is arranged in the accommodating space, and the sound-generating device is connected to the sound outlet hole. The sound detection component can be used to detect the ultrasonic signal.
5. The electronic device according to claim 4, characterized in that: The sound outlet hole is arranged adjacent to the first sound pickup hole.
6. The electronic device according to claim 4, characterized in that: The sound-generating device is a speaker of the electronic device, When the camera module is in a closed state, the speaker is used to emit sound signals through the sound outlet.
7. The electronic device according to claim 1, characterized in that: The device body is further provided with a second sound pickup hole spaced apart from the first sound pickup hole, and the electronic device further comprises a microphone, which is connected to the second sound pickup hole. There is an angle between the first part and the second part, and when the camera module is in a shooting state, the microphone is used to obtain a sound signal through the second sound pickup hole.
8. A control method for an electronic device, applied to the electronic device according to any one of claims 1 to 7, characterized in that: include: There is an angle between the first part and the second part, and when the camera module is in an on state, detecting whether the first sound pickup hole is blocked; When the first sound pickup hole is blocked, the camera module is controlled to start or stop shooting.
9. The control method according to claim 8, characterized in that: The detecting whether the first sound pickup hole is blocked specifically includes: Obtaining a first signal parameter; When the first signal parameter is smaller than the second signal parameter, and the difference between the second signal parameter and the first signal parameter is greater than a preset value, it is determined that the first sound pickup hole is blocked. The first signal parameter is a parameter of a current sound signal transmitted from the first sound pickup hole, and the second signal parameter is a parameter of a sound signal transmitted from the first sound pickup hole before the current sound signal.
10. The control method according to claim 9, characterized in that: The obtaining of the first signal parameter specifically includes: Get the first parameter; Acquire the first signal parameter according to the first parameter; The detecting whether the first sound pickup hole is blocked also includes: Get the second parameter; acquiring the second signal parameter according to the second parameter, The first parameter is a parameter of the sound signal transmitted from the first sound pickup hole in a current time period, and the second parameter is a parameter of the sound signal transmitted from the first sound pickup hole in a previous time period.
11. The control method according to claim 9, characterized in that: In the step of detecting whether the first sound pickup hole is blocked: Within a preset time period, when the first signal parameter is smaller than the second signal parameter, and the difference between the second signal parameter and the first signal parameter is greater than a preset value at least twice, it is determined that the first sound pickup hole is blocked.
12. The control method according to claim 9, characterized in that: The electronic device further includes a sound generating device, which can be used to emit an ultrasonic signal, and the sound detecting element can be used to detect the ultrasonic signal. The obtaining of the first signal parameter specifically includes: Controlling the sound-generating device to emit an ultrasonic signal; Eliminating the sound signals in frequency bands other than the ultrasonic frequency band in the current sound signal transmitted from the first sound pickup hole to obtain a first target sound signal; A first signal parameter is acquired according to the first target acoustic signal.
13. The control method according to claim 12, characterized in that: After the camera module is controlled to start shooting, the method further includes: Obtaining the working mode of the camera module; When the working mode is a video recording mode, obtaining a video recording sound signal; The ultrasonic frequency band signal in the video recording sound signal is eliminated to obtain a second target sound signal.
Citation Information
Patent Citations
Method and device for controlling sound effect
CN103501375A
Mobile phone with automatic mute function in calling
CN201947343U
Collapsible seeing and hearing combination equipment of taking photograph is shielded to double -end more
CN206164629U