Scene mode control method and device, electronic equipment and storage medium

By detecting the personnel and books in front of the electronic device, combining the bracket status and operation movements, the equipment is automatically controlled to enter the designated scene mode, solving the problem of cumbersome operation of users and improving operation convenience and efficiency.

CN119105814APending Publication Date: 2024-12-10GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310688885.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-09
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

Existing electronic devices require manual operation by users when entering the specified scenario mode, resulting in cumbersome operation by users.

Method used

By detecting whether there are people and books in front of the electronic device, the device can be automatically controlled to enter the designated scene mode to simplify user operations. The specific method includes using a front camera to detect the face and the book, combining an acceleration sensor to determine whether the device is on the bracket, and determining the scene mode according to the book type and operational actions.

Benefits of technology

It realizes that the specified scenario modes such as homework or reading mode can be automatically entered without manual operation by users, improving the convenience and efficiency of user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119105814A_ABST
    Figure CN119105814A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of teaching equipment, and provides a scene mode control method and device, electronic equipment and a storage medium. The scene mode control method comprises the steps of detecting whether a person and a book exist in front of the electronic equipment; and if the person and the book exist in front of the electronic equipment, controlling the electronic equipment to enter a specified scene mode. Through the setting, when a user writes homework, the electronic equipment can detect that a person and a book exist in front of the equipment so as to automatically enter a designated scene mode such as a homework mode, and the whole process does not need manual operation of the user, so that the user operation can be effectively simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of teaching equipment, and in particular to a scene mode control method, device, electronic device and storage medium. Background Art

[0002] At present, in order to assist children in their studies, many parents will buy electronic devices such as tutoring machines or learning tablets for their children to use. When children are doing homework, they can control the electronic devices to enter designated scene modes such as homework mode to provide functions such as troubleshooting. However, electronic devices generally require users to manually operate to enter the corresponding scene mode, which has the problem of cumbersome user operations. Summary of the invention

[0003] In view of this, the embodiments of the present application provide a scene mode control method, device, electronic device and storage medium, which can intelligently control the electronic device to enter the corresponding scene mode and simplify user operations.

[0004] A first aspect of an embodiment of the present application provides a scene mode control method applied to an electronic device, comprising:

[0005] Detecting whether there are people and books in front of the electronic device;

[0006] If there are people and books in front of the electronic device, the electronic device is controlled to enter a specified scene mode.

[0007] In the embodiment of the present application, electronic devices such as tutoring machines can detect in real time whether there are people and books in front of the device, and control the electronic device to enter a specified scene mode when both people and books are detected. Through such a setting, when the user is doing homework, the electronic device can detect that there are people and books in front of the device, and automatically enter the specified scene mode such as homework mode. The whole process does not require manual operation by the user, so it can effectively simplify the user operation.

[0008] In an implementation of the embodiment of the present application, the detecting whether there is a person and a book in front of the electronic device may include:

[0009] Detecting whether there is an obstruction in front of the electronic device;

[0010] If there is an obstruction in front of the electronic device, detecting whether there is a human face in front of the electronic device;

[0011] If there is a human face in front of the electronic device, it is determined that there is a person in front of the electronic device.

[0012] Furthermore, if there is an obstruction in front of the electronic device, detecting whether there is a face in front of the electronic device may include:

[0013] If there is an obstruction in front of the electronic device, detecting whether the electronic device is on the bracket;

[0014] If the electronic device is on the bracket, the camera of the electronic device is started to detect whether there is a human face in front of the electronic device.

[0015] Furthermore, the detecting whether the electronic device is on the bracket may include:

[0016] Detecting the acceleration of the movement of the electronic device;

[0017] Calculating the angle between the orientation of the electronic device and a horizontal plane according to the acceleration;

[0018] If the angle is within a preset angle range, it is determined that the electronic device is on the bracket.

[0019] Furthermore, after detecting whether the electronic device is on the bracket, the method may further include:

[0020] If the electronic device is not on the bracket, information for reminding the user to place the electronic device on the bracket is output.

[0021] In an implementation of the embodiment of the present application, if there is a person and a book in front of the electronic device, controlling the electronic device to enter a specified scene mode may include:

[0022] If there are a person and a book in front of the electronic device, detecting the type of the book;

[0023] If the type of the book belongs to the type corresponding to the scene mode, the electronic device is controlled to enter the scene mode.

[0024] In an implementation of the embodiment of the present application, if there is a person and a book in front of the electronic device, controlling the electronic device to enter a specified scene mode may include:

[0025] If there is a person and a book in front of the electronic device, detecting the operation action of the person;

[0026] If the operation action is an action corresponding to the scene mode, the electronic device is controlled to enter the scene mode.

[0027] A second aspect of an embodiment of the present application provides a scene mode control device applied to an electronic device, comprising:

[0028] A detection module, used to detect whether there are people and books in front of the electronic device;

[0029] The mode control module is used to control the electronic device to enter a specified scene mode if there are people and books in front of the electronic device.

[0030] A third aspect of an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the scene mode control method provided in the first aspect of the embodiment of the present application is implemented.

[0031] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the scene mode control method provided in the first aspect of the embodiment of the present application is implemented.

[0032] A fifth aspect of the embodiments of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the scene mode control method provided in the first aspect of the embodiments of the present application.

[0033] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 is a flow chart of a scene mode control method provided by an embodiment of the present application;

[0035] Figure 2 is a schematic diagram of an electronic device provided in an embodiment of the present application being installed on a bracket;

[0036] Figure 3 This is a schematic diagram of an operation flow of the scene mode control method provided in an embodiment of the present application;

[0037] Figure 4 is a structural framework diagram of a scene mode control device provided in an embodiment of the present application;

[0038] Figure 5 It is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structures, technologies, etc. are proposed, so as to thoroughly understand the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, the detailed description of well-known systems, devices, circuits and methods is omitted to prevent unnecessary details from hindering the description of the present application. In addition, in the description of the present application specification and the attached claims, the terms "first", "second", "third" etc. are only used to distinguish the description, and cannot be interpreted as indicating or suggesting relative importance.

[0040] Electronic devices such as tutoring machines and learning tablets can provide high-quality learning resources and have rich functions such as dictation, recitation, translation, question search and point reading. When users use such electronic devices in specified scenarios, they can control the electronic devices to enter the corresponding scene mode to provide auxiliary learning functions suitable for the scene. For example, when users are doing homework, they can control the electronic devices to enter the homework mode to provide users with functions such as troubleshooting. However, current electronic devices generally require users to manually operate to enter the corresponding scene mode, which has the problem of cumbersome user operations.

[0041] To address this problem, the embodiments of the present application provide a scene mode control method, device, electronic device, and storage medium, which can intelligently control the electronic device to enter the corresponding scene mode and simplify user operations. For more specific technical implementation details of the embodiments of the present application, please refer to the various embodiments described below.

[0042] It should be understood that the execution subjects of the various method embodiments of the present application are various types of electronic devices, such as mobile phones, tablet computers, wearable devices, learning machines, tutoring machines, learning tablets, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), large-screen TVs, etc. The embodiments of the present application do not impose any restrictions on the specific types of the electronic devices.

[0043] See also Figure 1 , shows a scene mode control method provided by an embodiment of the present application, comprising:

[0044] 101. Detect whether there are people and books in front of electronic equipment.

[0045] The execution subject of the embodiment of the present application can be an electronic device with teaching functions such as a tutoring machine or a learning tablet. When a user uses an electronic device, the electronic device can detect in real time whether there are people and books in front. In actual operation, the front image can be captured by the front camera of the electronic device, and the image can be analyzed and processed to identify whether there are people and books in the image at the same time. Among them, various portrait detection algorithms or face detection algorithms can be used to identify people, and book target detection algorithms based on deep learning can be used to identify books.

[0046] In an implementation of the embodiment of the present application, the detecting whether there is a person and a book in front of the electronic device may include:

[0047] (1) Detect whether there is an obstruction in front of the electronic device;

[0048] (2) If there is an obstruction in front of the electronic device, detecting whether there is a human face in front of the electronic device;

[0049] (3) If there is a face in front of the electronic device, it is determined that there is a person in front of the electronic device.

[0050] Since the execution of the face detection algorithm requires a great amount of calculation, in order to avoid the consumption of equipment resources caused by continuous detection of faces when there is no person in front of the electronic device, before starting the face detection, it is possible to first detect whether there is an obstruction in front of the electronic device. When there is an obstruction, the face detection is started to further determine whether the obstruction is a person. When there is no obstruction, it means that there is definitely no person in front of the electronic device, so there is no need to start the face detection. Specifically, when detecting whether there is an obstruction in front of the electronic device, an infrared pair tube or a range sensor can be used, as well as a detection method based on direct measurement of flight time (dtof) or a detection method based on indirect measurement of flight time (itof), etc. The embodiment of the present application does not limit the specific method of detecting the obstruction. If it is detected that there is an obstruction in front of the electronic device, the front camera of the electronic device can be turned on to start the face detection function. If a face is detected, it can be determined that there is a person in front of the electronic device. If no face is detected, the face detection process can be maintained until a face is detected or no obstruction is detected in front of the electronic device.

[0051] Furthermore, if there is an obstruction in front of the electronic device, detecting whether there is a face in front of the electronic device may include:

[0052] (1) If there is an obstruction in front of the electronic device, detect whether the electronic device is on the bracket;

[0053] (2) If the electronic device is on the bracket, the camera of the electronic device is activated to detect whether there is a human face in front of the electronic device.

[0054] For the scenario where the user is doing homework, the electronic device is generally placed on a bracket, that is, the electronic device is in bracket mode. Moreover, when the electronic device is not placed on the bracket, it is generally placed horizontally on the desktop. At this time, when the front camera is turned on, the image captured is usually the ceiling image, and the face image cannot be captured. For this reason, before turning on the camera to detect the face, a bracket mode detection step can be added. Specifically, when it is detected that there is an obstruction in front of the electronic device, it is further detected whether the electronic device is on the bracket. If the electronic device is on the bracket, the camera is turned on to capture the face; if the electronic device is not on the bracket, the camera is not turned on. At this time, other preset processing steps can be executed, such as no processing, or reminding the user to place the electronic device on the bracket, and so on.

[0055] Furthermore, the detecting whether the electronic device is on the bracket may include:

[0056] (1) Detect the acceleration of electronic equipment;

[0057] (2) Calculate the angle between the orientation of the electronic device and the horizontal plane based on the acceleration;

[0058] (3) If the angle is within a preset angle range, it is determined that the electronic device is on the bracket.

[0059] In actual operation, the acceleration of the electronic device's movement can be detected using devices such as an acceleration sensor, and then logical operations can be performed based on the acceleration to calculate the angle between the orientation of the electronic device and the horizontal plane. Among them, the specific method for calculating the angle between the orientation of an object and the horizontal plane based on the acceleration parameters of an object can refer to the prior art and will not be repeated here. If it is detected that the angle is within a preset angle range (the angle range represents the range of the angle between the orientation of the electronic device and the horizontal plane when it is placed on the bracket, for example, it can be between 70° and 80°), it can be determined that the electronic device is on the bracket. Conversely, if it is detected that the angle is not within the angle range, it can be determined that the electronic device is not on the bracket. Figure 2 As shown, it is a schematic diagram of an electronic device installed on a bracket. Figure 2 It can be seen that when the electronic device is mounted on the bracket, an angle A is formed between its orientation and the horizontal plane, and the angle A is generally between 70° and 80°. In addition, other methods can be used to detect whether the electronic device is on the bracket. For example, a communication interface that is connected to each other can be added between the electronic device and the bracket. When the electronic device detects that the communication interface is connected, it can be determined that the electronic device is on the bracket.

[0060] Furthermore, after detecting whether the electronic device is on the bracket, the following steps may be further included:

[0061] If the electronic device is not on the bracket, information is output to remind the user to place the electronic device on the bracket.

[0062] If it is detected that the electronic device is not on the bracket, the camera will not be turned on at this time, and the electronic device can turn on functions such as interactive reminders. Specifically, the electronic device can output corresponding prompt information through voice or text display, so as to remind the user to place the electronic device on the bracket for use. At the same time, the electronic device can also monitor the power status of the device and remind the user to charge when it is found that the power is low. The electronic device can also turn on the alarm reminder function according to the user's agreed operation time or the historically stored operation time pattern, and intelligently remind the user to start doing homework when the operation time arrives.

[0063] 102. If there is a person or a book in front of the electronic device, control the electronic device to enter a specified scene mode.

[0064] If the electronic device detects that there are people and books in front of it at the same time, it can be determined with a high probability that the user is doing homework or reading a book, so as to control the electronic device to enter a specified scene mode such as a homework mode or a reading mode. In addition, in order to improve the accuracy of scene mode control, it can also be judged in combination with the user's working time pattern. For example, when it is detected that there are people and books in front of the electronic device at the same time, and the current time is within the user's regular working time range, the electronic device is controlled to enter the corresponding scene mode.

[0065] In addition, after controlling the electronic device to enter the work mode or other specified scene modes, the electronic device can activate the silent protection function. When the user is doing homework, the electronic device will protect the user with a black screen. When the user asks questions, the electronic device can answer them immediately, thereby effectively improving the efficiency of the user's homework.

[0066] In an implementation of the embodiment of the present application, if there are a person and a book in front of the electronic device, controlling the electronic device to enter a specified scene mode may include:

[0067] (1) If there is a person and a book in front of the electronic device, detect the type of the book;

[0068] (2) If the type of the book belongs to the type corresponding to the scene mode, control the electronic device to enter the scene mode.

[0069] In order to further improve the accuracy of scene mode control, when it is detected that there are people and books in front of the electronic device at the same time, the type of the book can continue to be detected, such as textbooks, exercise books, test papers, extracurricular books or other book types, etc. The electronic device can pre-set the book type corresponding to each scene mode, for example, the homework mode corresponds to textbooks, exercise books and test papers, the interactive mode corresponds to extracurricular books and other book types, and so on. Through such settings, after detecting the type of book in the current scene, the user's current real usage scenario can be more accurately judged, thereby further improving the accuracy of scene mode control. For example, if the detected book type is an exercise book, it can be judged that the user is currently doing homework, so the electronic device is controlled to enter the homework mode; if the detected book type is an extracurricular book, it can be judged that the user is not currently doing homework, and the electronic device will not be controlled to enter the homework mode at this time, but the electronic device can be controlled to enter the interactive mode, and so on.

[0070] In actual operation, a reflector can be installed on the front camera of the electronic device to form a smart eye. The electronic device can capture the page image of the book through the smart eye, and then analyze and process the page image to identify the type of the book. Exemplarily, page-by-page electronic scans of common textbooks on the market can be collected in advance, and these electronic scans are stored in the designated server as textbook page images. After the current page image of the book is captured, it can be determined whether it is a textbook by image search. Alternatively, the frame question number technology can be used to first collect a batch of sample page images containing questions, mark the question number and other features, and then train the corresponding neural network model, and then input the current page image into the neural network model for processing, so as to identify whether the current page image contains questions. If the current page image contains questions, it can be determined that the type of book is an exercise book or a test paper.

[0071] In another implementation of the embodiment of the present application, if there are a person and a book in front of the electronic device, controlling the electronic device to enter a specified scene mode may include:

[0072] (1) If there is a person or a book in front of the electronic device, the person's operating actions are detected;

[0073] (2) If the operation action is an action corresponding to the scene mode, the electronic device is controlled to enter the scene mode.

[0074] In order to further improve the accuracy of scene mode control, when it is detected that there are both a person and a book in front of the electronic device, the operation action of the person can be continued to be detected. If the operation action belongs to the action corresponding to the specified scene mode, the electronic device is controlled to enter the scene mode, otherwise the electronic device will not be controlled to enter the scene mode. By analyzing the continuous multi-frame images taken in real time, the operation actions of the person in the image can be identified, such as writing actions, flipping actions or sitting actions, etc. The electronic device can pre-set the actions corresponding to each scene mode, for example, the operation mode corresponds to writing actions and flipping actions, the interactive mode corresponds to sitting actions and other actions, and so on. Through such settings, after the operation actions of the person in the current scene are detected, the user's current real use scene can be more accurately judged, thereby further improving the accuracy of scene mode control. For example, if the detected operation action is a writing action or a flipping action, it can be judged that the user is currently doing homework, so the electronic device is controlled to enter the operation mode; if the detected operation action is a sitting action or other actions, it can be judged that the user is not currently doing homework, and the electronic device will not be controlled to enter the operation mode at this time, but the electronic device can be controlled to enter the interactive mode, and so on.

[0075] In the embodiment of the present application, electronic devices such as tutoring machines can detect in real time whether there are people and books in front of the device, and control the electronic device to enter a specified scene mode when both people and books are detected. Through such a setting, when the user is doing homework, the electronic device can detect that there are people and books in front of the device, and automatically enter the specified scene mode such as homework mode. The whole process does not require manual operation by the user, so it can effectively simplify the user operation.

[0076] To facilitate understanding of the scene mode control method provided in the embodiment of the present application, actual application scenarios are listed below. Figure 3 FIG. 1 is a schematic diagram of an operation flow of a scene mode control method provided in an embodiment of the present application. Figure 3 In the process, the electronic device first performs an occlusion detection to detect whether there is an obstruction in front of the device; if there is no obstruction, the occlusion detection step is maintained, and if there is an obstruction, it is determined whether the electronic device is in the stand mode; if it is not in the stand mode, the non-stand mode processing sub-process is executed, for example, an interactive reminder can be turned on to instruct the user to place the electronic device on the stand, etc.; if it is in the stand mode, the front camera is turned on for face detection; if no face is detected, the face detection step is maintained, and if a face is detected, the book detection operation is started; if no book is detected, the book detection step is maintained, and if a book is detected, the electronic device is controlled to enter the operating mode. It should be noted that Figure 3There is no specific requirement for the order in which occlusion detection and bracket mode detection are performed, and there is no specific requirement for the order in which face detection and book detection are performed.

[0077] To sum up, the embodiment of the present application can more accurately judge the user's current actual usage scenario by detecting whether there are people and books in front of the electronic device at the same time, thereby intelligently controlling the electronic device to enter the corresponding scene mode, thereby improving the accuracy and convenience of scene mode control.

[0078] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0079] A scene mode control method is mainly described above, and a scene mode control device will be described below.

[0080] See also Figure 4 , an embodiment of a scene mode control device in an embodiment of the present application includes:

[0081] A detection module 401 is used to detect whether there is a person or a book in front of the electronic device;

[0082] The mode control module 402 is used to control the electronic device to enter a specified scene mode if there is a person and a book in front of the electronic device.

[0083] In one implementation of the embodiment of the present application, the detection module may include:

[0084] An obstruction detection unit, used to detect whether there is an obstruction in front of the electronic device;

[0085] A face detection unit, configured to detect whether there is a face in front of the electronic device if there is an obstruction in front of the electronic device;

[0086] The person determining unit is used to determine that there is a person in front of the electronic device if there is a face in front of the electronic device.

[0087] Furthermore, the face detection unit may include:

[0088] a bracket detection subunit, used to detect whether the electronic device is on the bracket if there is an obstruction in front of the electronic device;

[0089] The face detection subunit is used to activate the camera of the electronic device to detect whether there is a face in front of the electronic device if the electronic device is on the bracket.

[0090] Furthermore, the bracket detection subunit may include:

[0091] An acceleration detection subunit, used to detect the acceleration of the movement of the electronic device;

[0092] An angle calculation subunit, used to calculate the angle between the orientation of the electronic device and the horizontal plane according to the acceleration;

[0093] The bracket determination subunit is used to determine that the electronic device is on the bracket if the angle is within a preset angle range.

[0094] Furthermore, the bracket detection subunit may also include:

[0095] The information reminder subunit is used to output information for reminding the user to place the electronic device on the bracket if the electronic device is not on the bracket.

[0096] In an implementation of the embodiment of the present application, the mode control module may include:

[0097] a book type detection unit, configured to detect the type of the book if there are a person and a book in front of the electronic device;

[0098] The first mode control unit is configured to control the electronic device to enter the scene mode if the type of the book belongs to the type corresponding to the scene mode.

[0099] In another implementation of the embodiment of the present application, the mode control module may include:

[0100] an operation action detection unit, used for detecting the operation action of the person if there is a person and a book in front of the electronic device;

[0101] The second mode control unit is used to control the electronic device to enter the scene mode if the operation action belongs to the action corresponding to the scene mode.

[0102] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the scene mode control method described in any of the above embodiments is implemented.

[0103] An embodiment of the present application also provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the scene mode control method described in any of the above embodiments.

[0104] Figure 5 is a schematic diagram of an electronic device provided by an embodiment of the present application. Figure 5As shown, the electronic device 5 of this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50. When the processor 50 executes the computer program 52, the steps in the above-mentioned embodiments of the scene mode control method are implemented, for example Figure 1 Alternatively, when the processor 50 executes the computer program 52, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 4 Functions of modules 401 to 402 are shown.

[0105] The computer program 52 may be divided into one or more modules / units, which are stored in the memory 51 and executed by the processor 50 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 52 in the electronic device 5.

[0106] The processor 50 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0107] The memory 51 may be an internal storage unit of the electronic device 5, such as a hard disk or memory of the electronic device 5. The memory 51 may also be an external storage device of the electronic device 5, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the electronic device 5. The memory 51 is used to store the computer program and other programs and data required by the electronic device. The memory 51 may also be used to temporarily store data that has been output or is to be output.

[0108] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0109] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0110] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0111] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0112] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0113] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0114] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0115] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0116] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A scene mode control method, applied to an electronic device, characterized in that: The method comprises: Detecting whether there are people and books in front of the electronic device; If there are people and books in front of the electronic device, the electronic device is controlled to enter a specified scene mode.

2. The method according to claim 1, characterized in that The detecting whether there is a person and a book in front of the electronic device includes: Detecting whether there is an obstruction in front of the electronic device; If there is an obstruction in front of the electronic device, detecting whether there is a human face in front of the electronic device; If there is a human face in front of the electronic device, it is determined that there is a person in front of the electronic device.

3. The method according to claim 2, characterized in that If there is an obstruction in front of the electronic device, detecting whether there is a face in front of the electronic device includes: If there is an obstruction in front of the electronic device, detecting whether the electronic device is on the bracket; If the electronic device is on the bracket, the camera of the electronic device is started to detect whether there is a human face in front of the electronic device.

4. The method according to claim 3, characterized in that The detecting whether the electronic device is on the bracket includes: Detecting the acceleration of the movement of the electronic device; Calculating the angle between the orientation of the electronic device and a horizontal plane according to the acceleration; If the angle is within a preset angle range, it is determined that the electronic device is on the bracket.

5. The method according to claim 3, characterized in that After detecting whether the electronic device is on the bracket, the method further includes: If the electronic device is not on the bracket, information for reminding the user to place the electronic device on the bracket is output.

6. The method according to any one of claims 1 to 5, characterized in that: If there are a person and a book in front of the electronic device, controlling the electronic device to enter a specified scene mode includes: If there are a person and a book in front of the electronic device, detecting the type of the book; If the type of the book belongs to the type corresponding to the scene mode, the electronic device is controlled to enter the scene mode.

7. The method according to any one of claims 1 to 5, characterized in that: If there are a person and a book in front of the electronic device, controlling the electronic device to enter a specified scene mode includes: If there is a person and a book in front of the electronic device, detecting the operation action of the person; If the operation action is an action corresponding to the scene mode, the electronic device is controlled to enter the scene mode.

8. A scene mode control device, applied to electronic equipment, characterized in that: The device comprises: A detection module, used to detect whether there are people and books in front of the electronic device; The mode control module is used to control the electronic device to enter a specified scene mode if there are people and books in front of the electronic device.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the scene mode control method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the scene mode control method according to any one of claims 1 to 7 is implemented.