Camera control mechanism and method, electronic equipment and storage medium
By designing a camera control mechanism that includes sliding components, elastic components and electromagnetic components, the privacy leakage problem caused by the camera being turned on in smart home systems is solved, and the camera is automatically turned on and off, improving privacy.
Patent Information
- Application Number
- CN202411869186.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-05-30
AI Technical Summary
If the camera in the smart home system is always on, it will lead to privacy leakage.
A camera control mechanism is designed to realize automatic opening and closing of the camera assembly through the cooperation of the sliding assembly, elastic assembly and electromagnetic assembly. The camera assembly is fixedly connected to the motherboard, which is located inside the display assembly. Through the control of the electromagnetic assembly, the sliding assembly overcomes the elastic force of the elastic component and adjusts the shooting direction of the camera, so that the camera is automatically turned off when not needed, avoiding privacy leakage.
It effectively avoids privacy leakage caused by cameras, improves privacy, and at the same time realizes automatic control of the camera, making it convenient for users to use.
Smart Images

Figure CN120075564A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things devices, and particularly to a camera control mechanism, a camera control method, an electronic device, and a storage medium. Background Art
[0002] With the progress of technology and the improvement of people's living standards, smart home systems have gradually entered people's daily lives. In particular, as a centralized control device, a ten-inch central control, most smart central controls basically have cameras; in this case, if criminals control the cameras and the cameras are always in the open state, it is easy to leak privacy and the privacy is poor. Summary of the Invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide a camera control mechanism, a camera control method, an electronic device, and a storage medium that overcome the above problems or at least partially solve the above problems.
[0004] To solve the above problems, in the first aspect of the present invention, embodiments of the present invention disclose a camera control mechanism. A camera assembly is fixedly connected to a main board, the main board is located inside a display screen assembly, the display screen assembly is provided with a first through hole, and the first through hole is in the shooting direction of the camera assembly; the camera control mechanism includes:
[0005] A sliding assembly is arranged inside the display screen assembly, between the first through hole and the camera assembly; a second through hole is arranged on the sliding assembly;
[0006] An elastic assembly is arranged at one end of the sliding assembly;
[0007] An electromagnetic assembly is arranged at the other end of the sliding assembly; when energized, it drives the sliding assembly to move in a direction against the elastic force of the elastic assembly, so that the second through hole and the first through hole are in the shooting direction of the camera assembly.
[0008] Optionally, the sliding assembly includes: a bracket seat, a sliding rod, and a sliding cover,
[0009] The bracket seat is arranged inside the display screen assembly;
[0010] The sliding rod is located on the fixed seat and slides on the bracket seat; one end of the sliding rod is connected to the elastic assembly, and the other end is connected to the electromagnetic assembly;
[0011] The sliding cover is connected to the sliding rod, and the sliding rod and the sliding cover form a receiving cavity, and the camera assembly is located in the receiving cavity.
[0012] Optionally, there are at least two annular grooves axially provided on the sliding rod, and the sliding cover abuts against the annular grooves.
[0013] Optionally, the sliding cover is of a U-shaped structure, and the sides of the U-shaped structure form an interference fit with the annular grooves.
[0014] Optionally, the electromagnetic assembly includes:
[0015] An energized coil is arranged at the other end of the sliding rod.
[0016] Optionally, the electromagnetic assembly further includes:
[0017] A magnetic member is fixed at the other end of the sliding rod and is used to move in a direction close to the energized coil when the energized coil is energized.
[0018] Optionally, one end of the sliding rod is of a boss structure;
[0019] The elastic assembly is sleeved on the sliding rod and is located between the boss structure and the support seat.
[0020] Optionally, it further includes:
[0021] A light-emitting assembly is located on the display screen assembly and is used to emit light when the electromagnetic assembly is energized.
[0022] In the second aspect of the present invention, an embodiment of the present invention discloses a camera control method, which is applied to a camera control mechanism. The camera assembly is fixedly connected to the main board, the main board is located inside the display screen assembly, the display screen assembly is provided with a first through hole, and the first through hole is located in the shooting direction of the camera assembly; the camera control mechanism includes: a sliding assembly, which is arranged inside the display screen assembly and is located between the first through hole and the camera assembly; a second through hole is provided on the sliding assembly; an elastic assembly, which is arranged at one end of the sliding assembly; an electromagnetic assembly, which is arranged at the other end of the sliding assembly, and the method includes:
[0023] In response to a camera-on instruction, control the electromagnetic assembly to be energized; the electromagnetic assembly is used to drive the sliding assembly to move in a direction against the elastic force of the elastic assembly when energized, so that the second through hole and the first through hole are in the shooting direction of the camera assembly.
[0024] Optionally, the method further includes:
[0025] In response to a camera-off instruction, control the electromagnetic assembly to be de-energized.
[0026] In the third aspect of the present invention, an embodiment of the present invention discloses an electronic device, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, the steps of the camera control method described above are implemented.
[0027] In the fourth aspect of the present invention, an embodiment of the present invention discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the camera control method described above are implemented.
[0028] Embodiments of the present invention have the following advantages:
[0029] In embodiments of the present invention, a camera assembly is fixedly connected to a main board, the main board is located inside a display screen assembly, the display screen assembly is provided with a first through hole, and the first through hole is located in the shooting direction of the camera assembly; a sliding assembly is arranged inside the display screen assembly and is located between the first through hole and the camera assembly; a second through hole is arranged on the sliding assembly; an elastic assembly is arranged at one end of the sliding assembly; an electromagnetic assembly is arranged at the other end of the sliding assembly and is used for driving the sliding assembly to move in a direction overcoming the elastic force of the elastic assembly when powered on, so that the second through hole and the first through hole are in the shooting direction of the camera assembly. The camera assembly is fixedly installed on the main board and is always in a straight line with the first through hole on the display screen assembly. Then, through the interaction between the elastic assembly and the electromagnetic assembly on both sides of the sliding assembly, the sliding assembly realizes corresponding sliding, so that the second through hole and the first through hole are in the shooting direction of the camera assembly, enabling the camera assembly to be opened and collect external information. At other times, the second through hole is not in the shooting direction of the camera assembly, so that the camera assembly is blocked by the sliding assembly, closing the camera assembly and preventing it from collecting external information, that is, preventing it from collecting user information, which can avoid privacy leakage caused by the camera and improve privacy. Description of the Drawings
[0030] Figure 1 is an exploded view of the structure of a camera control mechanism of the present invention;
[0031] Figure 2 is a schematic diagram of the closed state of the camera assembly of a camera control mechanism of the present invention;
[0032] Figure 3 is a schematic diagram of the opened state of the camera assembly of a camera control mechanism of the present invention;
[0033] Figure 4 is a flowchart of the steps of an embodiment of a camera control method of the present invention;
[0034] Figure 5 is a flowchart of steps of another embodiment of the camera control method of the present invention;
[0035] Figure 6 is a block diagram of the structure of an electronic device provided by an embodiment of the present invention;
[0036] Figure 7 is a block diagram of the structure of a storage medium provided by an embodiment of the present invention.
[0037] Description of reference numerals:
[0038] 100 - camera assembly, 200 - display screen assembly, 210 - first through hole, 300 - sliding assembly, 310 - bracket seat, 320 - sliding rod, 321 - annular groove, 322 - boss structure, 330 - sliding cover, 340 - second through hole, 400 - elastic assembly, 500 - electromagnetic assembly, 510 - energized coil, 520 - magnetic part. Detailed implementation manners
[0039] To make the above - mentioned objects, features, and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific implementation manners.
[0040] Referring to Figure 1 , an exploded view of the structure of a camera control mechanism of the present invention is shown. The camera assembly 100 is fixedly connected to the main board, the main board is located inside the display screen assembly 200, the display screen assembly 200 is provided with a first through hole 210, and the first through hole 210 is located in the shooting direction of the camera assembly 100.
[0041] Camera components can be applied to camera components on home appliances such as smart homes and home security systems. For example: Smart home cameras usually come with Wi-Fi (mobile hotspot) connection capabilities and can be connected to devices such as smartphones and tablets for remote monitoring, recording, alarming, etc. Indoor surveillance cameras are installed inside the home to monitor home security, and many products come with features such as motion detection, night vision, and two-way audio. Outdoor surveillance cameras are installed outside the home and have waterproof, dustproof, and weather-resistant characteristics, suitable for areas such as the front door and yard of the home. Door lock cameras can achieve video intercom and front door monitoring. Video doorbells are equipped with high-definition cameras and microphones / speakers, allowing users to have voice or video calls with visitors at the door through their mobile phones, enhancing home security. Doorbells with face recognition function: Some advanced video doorbells also support face recognition, which can identify the identity of visitors and enhance security. Smart refrigerators are equipped with built-in cameras to monitor the food storage situation inside the refrigerator. The in-refrigerator camera can help users view the food storage status inside the refrigerator, usually linked with a mobile phone APP (application program), facilitating remote viewing of the food list, inventory management, and even automatically reminding users to purchase ingredients. Cameras in cleaning robots (such as floor cleaning robots) are used for environmental perception, path planning, etc. The floor cleaning robot camera is used for navigation and obstacle avoidance. By combining the camera and sensors, it helps the robot efficiently clean every corner of the home. Visual perception cameras can monitor changes in light, temperature, etc. in the home. The smart home system automatically adjusts the environment by analyzing image or video data, such as adjusting the lighting or temperature control. Cameras in health monitoring devices are used to capture users' physiological data. The smart weighing scale camera is used to capture the user's posture or help the user record weight changes. The smart mirror camera can monitor the user's skin condition, facial changes, etc., and provide beauty or health advice. Cameras in smart TVs are used for face recognition, video calls, voice control, etc. The built-in camera with video call function can be used for video calls or remote meetings on the TV, enhancing the home entertainment experience. It can also perform face recognition to automatically identify different family members and adjust the viewing mode and content recommendations. Smart washing machines and dryers are equipped with built-in cameras to better identify the washing and drying processes. The laundry monitoring camera can monitor the washing and drying status in real time, helping users check the washing situation of the clothes. Some devices can also automatically identify the type of clothes and select the most suitable washing program.
[0042] The camera module can be fixedly connected to the mainboard of the device. When the camera module is turned on, it samples environmental information and transmits it to the processor on the mainboard through the transmission lines on the mainboard for the processor to use. The mainboard is located inside the display module. While protecting the mainboard through the display module, the mainboard also transmits corresponding signals to the display module to make the display module show corresponding visual content, and users can perform human-computer interaction through the display module. The mainboard is the core platform for connecting and coordinating various internal hardware components of the device. The main functions and roles of the mainboard are as follows:
[0043] 1. Provide connection and support for hardware components
[0044] There are multiple slots, interfaces, and ports on the mainboard, allowing other hardware components (such as processors, memory, graphics cards, hard drives, optical drives, etc.) to be inserted and connected to the computer system. The main hardware components include:
[0045] Central Processing Unit (CPU): The mainboard provides slots (usually LGA or PGA slots) to install the CPU.
[0046] Memory (RAM): There are memory slots on the mainboard for installing RAM.
[0047] Graphics card: For computers that require additional graphics processing capabilities, the mainboard provides PCI Express (PCIe) slots to insert independent graphics cards.
[0048] Storage devices: The mainboard has SATA interfaces (for connecting traditional HDD or SSD hard drives) and M.2 interfaces (for connecting faster NVMe SSDs).
[0049] 2. Power management
[0050] The mainboard receives power from the power supply unit (PSU) through the power interface and distributes it to each hardware component. It ensures that all parts of the computer receive a stable power supply to work properly.
[0051] 3. Data transfer and communication
[0052] The chipset on the mainboard is responsible for processing and managing data transfer between different hardware. It determines the performance of the computer, including data storage speed, graphics card performance, etc. The chipset also manages communication with the CPU, memory, hard drive, and graphics card.
[0053] 4. Input / Output (I / O) interfaces
[0054] The mainboard provides various input / output interfaces for the computer to facilitate the connection of external devices:
[0055] USB Interface: Connects external devices (such as mice, keyboards, printers, external hard drives, etc.).
[0056] Audio Interface: Connects audio devices such as speakers, microphones, headphones, etc.
[0057] Video Output Interface: Includes HDMI, DisplayPort, VGA, etc., for connecting to monitors.
[0058] Network Interface: The Ethernet port is used for wired network connections.
[0059] 5. Integrated Hardware
[0060] Integrated Graphics Card: Some motherboards have basic graphics card functions built-in, suitable for ordinary users who do not require high-performance graphics processing.
[0061] Integrated Sound Card: Provides basic audio functions and reduces the need for external sound cards.
[0062] Integrated Network Interface: Most motherboards come with an Ethernet network card, supporting wired network connections.
[0063] 6. Expandability
[0064] The motherboard provides various expansion slots (such as PCI, PCIe slots), allowing users to install other hardware devices according to their needs, such as:
[0065] Discrete Graphics Card: Improves graphics processing capabilities, suitable for requirements such as gaming and video editing.
[0066] Sound cards, network cards, expansion memory cards, etc.
[0067] 7. BIOS / UEFI (Basic Input / Output System)
[0068] There is a small storage chip (usually EEPROM) built into the motherboard, storing the BIOS or UEFI program. BIOS / UEFI is the first program when the computer boots up. It is responsible for starting the hardware, detecting hardware components, and loading the operating system. Users can also perform some basic settings on the computer's hardware through BIOS / UEFI (such as boot order, clock speed, memory settings, etc.).
[0069] 8. Thermal Management
[0070] There are usually multiple thermal interfaces on the motherboard for connecting fans or liquid cooling systems to help maintain the internal temperature of the device within the normal range.
[0071] 9. Provide Clock Signals
[0072] The main board provides a synchronized clock signal for each component inside the device, ensuring that they work correctly according to the timing sequence. This is very important for the stability of the device and the accuracy of the data.
[0073] A first through hole is provided on the display screen assembly. The first through hole is located in the shooting direction of the camera assembly, that is, the camera assembly can collect external information through the first through hole. The size of the first through hole can be set according to the parameters of the camera, the deployment position, the design requirements, etc. The embodiments of the present invention do not make specific limitations on this.
[0074] The camera control mechanism may specifically include the following component parts:
[0075] The sliding component 300 is arranged inside the display screen assembly 200, between the first through hole 210 and the camera assembly 100; a second through hole 340 is provided on the sliding component 300;
[0076] The elastic component 400 is arranged at one end of the sliding component 300;
[0077] The electromagnetic component 500 is arranged at the other end of the sliding component 300; it is used to drive the sliding component 300 to move in the direction of overcoming the elastic force of the elastic component 400 when powered on, so that the second through hole 340 and the first through hole 210 are in the shooting direction of the camera assembly 100.
[0078] The camera control mechanism may be at least composed of the sliding component 300, the elastic component 400 and the electromagnetic component 500. The sliding component 300 is arranged inside the display screen assembly 200. The inside of the display screen assembly 200 is the side of the display screen assembly 200 close to the main board. The sliding component 300 is located between the first through hole 210 and the camera assembly 100. And the sliding component 300 can slide along its own axial direction.
[0079] The elastic component 400 and the electromagnetic component 500 are respectively arranged at both ends of the sliding component 300, and respectively apply acting forces to both ends of the sliding component 300. The elastic force of the elastic component 400 is determined based on its own physical parameters. The electromagnetic component 500 controls the acting force through an electrical signal. When the electromagnetic component 500 is powered on, the electromagnetic component 500 generates a magnetic force when powered on, drives the sliding component 300 to overcome the elastic force of the elastic component 400, and attracts the sliding component 300 to move in the direction of overcoming the elastic force of the elastic component 400, that is, attracts the sliding component 300 to slide towards the electromagnetic component 500. During the movement, the second through hole 340 and the first through hole 210 are in the shooting direction of the camera assembly 100, thereby turning on the camera assembly 100, and the camera assembly 100 can collect the external environment.
[0080] In an alternative embodiment of the present invention, the sliding assembly 300 includes: a bracket base 310, a sliding rod 320, and a sliding cover 330.
[0081] The bracket base 310 is disposed inside the display screen assembly 200.
[0082] The sliding rod 320 is located on the fixed seat and slides on the bracket base 310; one end of the sliding rod 320 is connected to the elastic assembly 400, and the other end is connected to the electromagnetic assembly 500.
[0083] The sliding cover 330 is connected to the sliding rod 320, and the sliding rod 320 and the sliding cover 330 form a receiving cavity, and the camera assembly 100 is located in the receiving cavity.
[0084] The bracket base 310 is the basis of the sliding assembly 300, and the sliding rod 320 and the sliding cover 330 are directly or indirectly mounted on the bracket base 310. One end of the sliding rod 320 is connected to the elastic assembly 400, and the other end is connected to the electromagnetic assembly 500. The sliding rod 320 is located on the fixed seat. Due to the interaction of the elastic assembly 400 and the electromagnetic assembly 500, the sliding rod 320 slides on the bracket base 310. The sliding cover 330 is connected to the sliding rod 320, and the sliding rod 320 and the sliding cover 330 form a receiving cavity, and the camera assembly 100 can be located in the receiving cavity, and the acquisition direction of the camera can face the first through hole 210 and the second through hole 340.
[0085] Specifically, at least two annular grooves 321 are provided in the axial direction of the sliding rod 320, and the sliding cover 330 abuts against the annular grooves 321.
[0086] At least two annular grooves 321 can be provided in the axial direction of the sliding rod 320. The width of the annular grooves 321 matches that of the sliding cover 330, and the sliding cover 330 abuts against the annular grooves 321 to realize the fixed connection between the sliding rod 320 and the sliding cover 330.
[0087] Further, the sliding cover 330 is of a U-shaped structure, and the sides of the U-shaped structure form an interference fit with the annular grooves 321. The sliding cover 330 is of a U-shaped structure, and the two sides are respectively connected to different annular grooves 321. The sides of the U-shaped structure form an interference fit with the annular grooves 321 to ensure that when the sliding rod 320 moves, the sliding cover 330 can be driven to move.
[0088] In an alternative embodiment of the present invention, the electromagnetic assembly 500 includes: an energized coil 510 disposed at the other end of the sliding rod 320.
[0089] The electromagnetic component 500 may include an energized coil 510. The energized coil 510 is disposed at the other end of the sliding rod 320. The energized coil 510 is a coil wound by a wire (usually copper wire or aluminum wire) in a certain manner. When an electric current passes through the coil, a magnetic field will be generated around it, thereby driving the sliding rod 320 to move. The intensity of the magnetic field is related to the magnitude of the current, the number of turns of the coil, and the shape. Generally, the more closely the coil is wound and the more turns it has, the stronger the generated magnetic field. The direction of the magnetic field can be determined by the right-hand rule: If the right hand holds the coil and the thumb points in the direction of the current, then the direction in which the four fingers are bent is the direction of the magnetic field. The specific parameters of the energized coil 510 can be determined according to the actual situation, and the embodiments of the present invention do not make specific limitations thereon. These parameters may include: the number of turns of the coil: the more turns, the greater the inductance value of the coil and the stronger the generated magnetic field. However, increasing the number of turns will increase the resistance of the coil, and these factors need to be balanced. The shape and size of the coil: the size of the coil and the winding method (such as spiral, helical shape, honeycomb structure, etc.) will affect its inductance characteristics and the distribution of the magnetic field. The wire material: the material of the wire (such as copper, aluminum, silver, etc.) will affect the conduction efficiency of the current, and thus affect the performance of the inductor and electromagnetic device. The insulating layer: an insulating layer is required between the wires to prevent short circuits.
[0090] Further, the electromagnetic component 500 further includes: a magnetic member 520 fixed to the other end of the sliding rod 320, and configured to move in a direction close to the energized coil 510 when the energized coil 510 is energized.
[0091] A magnetic member 520 may also be fixed to the other end of the sliding rod 320. When the energized coil 510 is energized, the magnetic member 520 and the magnetic field of the energized coil 510 drive the magnetic member 520 to move based on the principle of attraction between opposite poles, and the movement of the magnetic member 520 drives the sliding rod 320 to move.
[0092] The magnetic component 520 can be a permanent magnet, which is a material capable of maintaining a certain magnetic field strength without an external power source. A permanent magnet is formed because the electrons' spin and orbital motion within its internal atoms or molecules are arranged in a certain direction, creating a stable macroscopic magnetic field. The magnetism of a permanent magnet originates from the microscopic magnetic domains within the material. The electron spin and orbital magnetic moments align with each other at the atomic level to form a macroscopic magnetic field. The key characteristic of a permanent magnet is its ability to maintain this magnetic field without external energy input. Magnetic domain: A microscopic region within a permanent magnet where the atomic magnetic moments of each domain point in the same direction, and the macroscopic magnetism of the entire magnet comes from the arrangement of these magnetic domains. Magnetization process: When a certain material is magnetized, an external magnetic field causes the internal magnetic domains to rearrange. When the external magnetic field is removed, these magnetic domains remain arranged, and the material thus retains its magnetism. The parameters of the permanent magnet can be selected according to actual needs, and the embodiments of the present invention do not limit this, including: Residual magnetic induction intensity (Br): Represents the residual magnetic field strength of the permanent magnet, usually measured in teslas (T). The larger the value, the stronger the magnetism. Coercive force (Hc): Refers to the reverse magnetic field strength, indicating the external magnetic field strength required to demagnetize the permanent magnet. The larger the coercive force, the less likely the permanent magnet is to lose its magnetism. Maximum energy product (BHmax): Represents the maximum magnetic energy density that the permanent magnet can provide. The larger this value, the stronger the energy storage ability of the permanent magnet in a magnetic field. Temperature coefficient: The magnetism of a magnetic material changes with temperature, and the temperature coefficient represents the ratio of the magnetic induction intensity change with temperature.
[0093] In an alternative embodiment of the present invention, one end of the sliding rod 320 is a boss structure 322; the elastic component 400 is sleeved on the sliding rod 320 and is located between the boss structure 322 and the bracket seat 310.
[0094] One end of the sliding rod 320 is a boss structure 322, and the diameter of the boss structure 322 is larger than the outer diameter of the elastic component 400, which can abut against the elastic component 400. The elastic component 400 is sleeved on the sliding rod 320 and is located between the boss structure 322 and the bracket seat 310. When the electromagnetic component 500 is energized to drive the sliding rod 320 to move, the elastic component 400 is compressed; when the electromagnetic component 500 is de-energized, the elastic force is released to reset the sliding rod 320.
[0095] Specifically, the elastic component 400 can be a cylindrical helical spring. The sliding rod 320 is located inside the cylindrical helical spring, and both ends of the cylindrical helical spring are respectively abutted against the boss structure 322 and the bracket seat 310. The cylindrical helical spring bears compressive force. The cylindrical helical spring is a spring with equal pitch, and there is a certain gap between the coils of the spring. When subjected to an external load, the spring contracts and deforms, storing deformation energy. The cylindrical helical spring includes: Spring body: The main part of the cylindrical helical spring is wound in a spiral shape by an elastic material such as steel wire. Its main feature is a cylindrical cross-section, usually circular, rectangular or elliptical. Spring end: The two ends of the cylindrical helical spring usually undergo processing to enable better connection with equipment or devices. The straight end is flattened by pressing the end of the spring to facilitate installation. The coiled end is formed by coiling the two ends of the spring into a circular ring to enhance its fixation. The cylindrical helical spring generally uses materials with good elasticity and fatigue resistance. Common materials include: Carbon steel (such as 65Mn): Commonly used for low to medium strength springs, with good elasticity and wear resistance. Stainless steel (such as 304, 316, etc.): Used in occasions requiring corrosion resistance and oxidation resistance, suitable for humid environments, chemical environments, etc. Alloy steel (such as T9, T10, etc.): Used for springs that need to bear large loads or high temperature environments. High-elastic alloy materials (such as tungsten alloy, nickel alloy, etc.): Used in special high-temperature and high-pressure environments.
[0096] In an alternative embodiment of the present invention, the camera control mechanism further includes: a light-emitting component located on the display screen component 200, and is configured to emit light when the electromagnetic component 500 is powered on.
[0097] A light-emitting component can be provided on the display screen component 200. When the electromagnetic component 500 is powered on, the light-emitting component is turned on to emit light, so that the user can observe whether the light-emitting component emits light and then determine whether the camera component 100 is turned on and used, thereby further improving privacy.
[0098] Specifically, the light-emitting component can be an LED (Light Emitting Diode). When current flows through the LED chip, electrons and holes recombine in the semiconductor material, releasing energy and radiating it in the form of light. Depending on the semiconductor material, the LED can emit different colors of light.
[0099] The working process of the LED: Current passes through the semiconductor: When current passes through the LED, electrons flow from the negative electrode to the positive electrode, passing through the semiconductor material. Electron-hole recombination: In the semiconductor, electrons and holes (electron-deficient positions) combine, releasing energy. Light emission: This energy is emitted in the form of photons. Different types of semiconductor materials (such as gallium nitride GaN, aluminum gallium nitride AlGaN, gallium arsenide GaAs, etc.) determine the wavelength (i.e., color) of the light emitted by the LED.
[0100] The light-emitting color of the LED can be various. Red LED: Aluminum gallium indium phosphide (AlGaInP) is usually used as the material. Green LED: Gallium nitride (GaN) is used as the light-emitting material. Blue LED: Gallium nitride (GaN) or other synthetic materials are mainly used. White LED: White light is generated by combining a blue LED with a phosphor.
[0101] To enable those skilled in the art to clearly understand the operation of the camera control mechanism, an exemplary description of the operation process of the camera control mechanism is as follows: There are holes for installing electromagnetic coils and a bracket for the sliding rod 320 on the display screen assembly 200; the energized coil 510 can be installed in the electromagnetic coil installation hole on the display screen assembly 200; there is also a bracket seat 310 for the sliding rod 320 on the display screen assembly 200 to support the sliding rod 320; the sliding cover 330 and the sliding rod 320 are tightly connected, and when the sliding rod slides, it drives the sliding cover 330 to move together; an elastic member is sleeved on one end of the sliding rod 320 and is normally pushed to both sides; the magnetic member 520 is installed in the hole of the sliding rod 320; as Figure 2 shown, when there is an electrical signal in the electromagnetic coil, the sliding rod 320 receives an electromagnetic force to the left. When the electromagnetic force is greater than the thrust of the elastic member, the sliding cover 330 moves to the left together with the sliding rod 320. As Figure 3 shown, when the second through hole 340 on the sliding cover 330 and the first through hole 210 on the display component are in a straight line, the camera component 100 can be used; when the camera component 100 is opened, the light-emitting component will light up synchronously, so that users can more clearly find out whether the camera component 100 has been abnormally controlled or has an abnormality.
[0102] The embodiment of the present invention is fixedly connected to the main board through the camera assembly, the main board is located on the inner side of the display screen assembly, the display screen assembly is provided with a first through hole, the first through hole is located in the shooting direction of the camera assembly; the sliding assembly is arranged on the inner side of the display screen assembly and is located between the first through hole and the camera assembly; the sliding assembly is provided with a second through hole; the elastic assembly is arranged at one end of the sliding assembly; the electromagnetic assembly is arranged at the other end of the sliding assembly; and is used to drive the sliding assembly to move in the direction of overcoming the elastic force of the elastic assembly when power is turned on, so that the second through hole and the first through hole are in the shooting direction of the camera assembly. The camera assembly is fixedly mounted on the mainboard and is always in a straight line with the first through hole on the display assembly. Then, the elastic assembly and the electromagnetic assembly on both sides of the sliding assembly interact with each other, so that the sliding assembly can slide accordingly, so that the second through hole and the first through hole are in the shooting direction of the camera assembly, and the camera assembly is turned on to collect external information. At other times, the second through hole is not in the shooting direction of the camera assembly, so that the camera assembly is blocked by the sliding assembly, and the camera assembly is turned off, and it is impossible to collect external information, that is, it is impossible to collect user information, so that privacy leakage caused by the camera can be avoided and privacy is improved.
[0103] Reference Figure 4 , showing a flow chart of steps of a camera control method embodiment of an embodiment of the present invention, the camera control method is applied to a camera control mechanism, the camera assembly is fixedly connected to the main board, the main board is located inside the display screen assembly, the display screen assembly is provided with a first through hole, the first through hole is located in the shooting direction of the camera assembly; the camera control mechanism includes: a sliding assembly, arranged inside the display screen assembly, located between the first through hole and the camera assembly; a second through hole is provided on the sliding assembly; an elastic assembly, arranged at one end of the sliding assembly; an electromagnetic assembly, arranged at the other end of the sliding assembly. The specific structure of the camera control mechanism can refer to the above embodiment, which will not be repeated here.
[0104] The camera control method comprises:
[0105] Step 401, in response to a camera start instruction, control the electromagnetic component to be energized; the electromagnetic component is used to drive the sliding component to move in the direction of overcoming the elastic force of the elastic component when energized, so that the second through hole and the first through hole are in the shooting direction of the camera component.
[0106] The device can, in response to a camera activation instruction, control the electromagnetic component to be powered on. When the electromagnetic component is powered on, it generates a magnetic force that drives the sliding component to overcome the elastic force of the elastic component and attracts the sliding component to move in the direction of overcoming the elastic force of the elastic component, that is, attracts the sliding component to slide towards this end of the electromagnetic component. During the movement, the second through-hole and the first through-hole are in the shooting direction of the camera component, thereby turning on the camera component, and the camera component can collect the external environment.
[0107] In the embodiment of the present invention, the camera component is fixedly connected to the main board, the main board is located inside the display screen component, the display screen component is provided with a first through-hole, and the first through-hole is in the shooting direction of the camera component; a sliding component is arranged inside the display screen component, between the first through-hole and the camera component; a second through-hole is arranged on the sliding component; an elastic component is arranged at one end of the sliding component; an electromagnetic component is arranged at the other end of the sliding component; and when powered on, it drives the sliding component to move in the direction of overcoming the elastic force of the elastic component, so that the second through-hole and the first through-hole are in the shooting direction of the camera component. The camera component is fixedly installed on the main board and is always in a straight line with the first through-hole on the display screen component. Then, by controlling the electromagnetic component to be powered on; when the electromagnetic component is powered on, it drives the sliding component to move in the direction of overcoming the elastic force of the elastic component, so that the sliding component realizes the corresponding sliding, so that the second through-hole and the first through-hole are in the shooting direction of the camera component, turning on the camera component, and enabling the collection of external information. At other times, the second through-hole is not in the shooting direction of the camera component, so that the camera component is blocked by the sliding component, turning off the camera component and preventing the collection of external information, that is, preventing the collection of user information, and can avoid the occurrence of privacy leakage caused by the camera, improving privacy.
[0108] Refer to Figure 5 , which shows a flowchart of the steps of another embodiment of the camera control method according to the embodiment of the present invention. The camera control method is applied to a camera control mechanism. The camera component is fixedly connected to the main board, the main board is located inside the display screen component, the display screen component is provided with a first through-hole, and the first through-hole is in the shooting direction of the camera component; the camera control mechanism includes: a sliding component arranged inside the display screen component, between the first through-hole and the camera component; a second through-hole is arranged on the sliding component; an elastic component is arranged at one end of the sliding component; an electromagnetic component is arranged at the other end of the sliding component. For the specific structure of the camera control mechanism, reference can be made to the above embodiment, which will not be elaborated here.
[0109] The camera control method includes:
[0110] Step 501: In response to a camera activation instruction, control the electromagnetic component to be powered on; the electromagnetic component is configured to drive the sliding component to move in a direction against the elastic force of the elastic component when powered on, so that the second through-hole and the first through-hole are in the shooting direction of the camera component.
[0111] When the device needs to activate the camera component to collect data from the external environment, a camera activation instruction can be generated. The camera activation instruction can be initiated by the controller inside the device or by the user through relevant operations. In response to the camera activation instruction, the electromagnetic component can be controlled to be powered on. Specifically, the energized coil can be powered on. When the electromagnetic component is powered on, a magnetic force is generated, driving the sliding component to move in a direction against the elastic force of the elastic component, that is, attracting the sliding component to slide towards the electromagnetic component. During the movement, the second through-hole and the first through-hole are in the shooting direction of the camera component, thus turning on the camera component. The camera component can collect data from the external environment.
[0112] Step 502: In response to a camera deactivation instruction, control the electromagnetic component to be powered off.
[0113] When the camera component is not needed, a camera deactivation instruction can be generated. In response to the camera deactivation instruction, the electromagnetic component is controlled to be powered off, and the electromagnetic component loses its acting force on the sliding component. Under the elastic force of the elastic component to restore its original length, the sliding component slides towards the end away from the electromagnetic component, so that the second through-hole is not in the shooting direction of the camera component, and the camera component cannot obtain external environment information, that is, the camera component is turned off.
[0114] The determination of not needing to use the camera component can be made when the camera component fails to detect a detection target such as a face within a preset time. It can also be determined when the user issues a relevant command.
[0115] In an embodiment of the present invention, a camera assembly is fixedly connected to a main board, the main board is located inside a display screen assembly, the display screen assembly is provided with a first through hole, and the first through hole is located in the shooting direction of the camera assembly; a sliding assembly is arranged inside the display screen assembly and is located between the first through hole and the camera assembly; a second through hole is arranged on the sliding assembly; an elastic assembly is arranged at one end of the sliding assembly; an electromagnetic assembly is arranged at the other end of the sliding assembly and is used for driving the sliding assembly to move in a direction against the elastic force of the elastic assembly when powered on, so that the second through hole and the first through hole are in the shooting direction of the camera assembly. The camera assembly is fixedly installed on the main board and is always in a straight line with the first through hole on the display screen assembly. Then, the electromagnetic assembly is controlled to be powered on; when the electromagnetic assembly is powered on, it drives the sliding assembly to move in a direction against the elastic force of the elastic assembly, so that the sliding assembly realizes corresponding sliding, so that the second through hole and the first through hole are in the shooting direction of the camera assembly, and the camera assembly is opened to collect external information. At other times, the electromagnetic assembly is controlled to be powered off, and the sliding assembly returns to its initial position, and the second through hole is not in the shooting direction of the camera assembly, so that the camera assembly is blocked by the sliding assembly, and the camera assembly is closed and cannot collect external information, that is, it cannot collect the user's information, which can avoid the occurrence of privacy leakage caused by the camera and improve privacy.
[0116] Further, the sliding assembly includes: a bracket seat, a sliding rod and a sliding cover.
[0117] The bracket seat is arranged inside the display screen assembly.
[0118] The sliding rod is located on the fixed seat and slides on the bracket seat; one end of the sliding rod is connected to the elastic assembly, and the other end is connected to the electromagnetic assembly.
[0119] The sliding cover is connected to the sliding rod, and the sliding rod and the sliding cover form a receiving cavity, and the camera assembly is located in the receiving cavity.
[0120] Optionally, at least two annular grooves are arranged on the axial direction of the sliding rod, and the sliding cover abuts against the annular grooves.
[0121] Optionally, the sliding cover is of a U-shaped structure, and the sides of the U-shaped structure form an interference fit with the annular grooves.
[0122] Optionally, the electromagnetic assembly includes:
[0123] A power-on coil is arranged at the other end of the sliding rod.
[0124] Optionally, the electromagnetic assembly further includes:
[0125] A magnetic part is fixed to the other end of the sliding rod and is configured to move in a direction close to the energized coil when the energized coil is energized.
[0126] Optionally, one end of the sliding rod has a boss structure;
[0127] The elastic component is sleeved on the sliding rod and is located between the boss structure and the support seat.
[0128] Optionally, the camera control mechanism further includes:
[0129] A light-emitting component is located on the display screen component and is configured to emit light when the electromagnetic component is energized.
[0130] It should be noted that for the above embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequences, because according to the embodiments of the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential for the embodiments of the present invention.
[0131] Referring to Figure 6 , the embodiments of the present invention further provide an electronic device, including:
[0132] A processor 601 and a storage medium 602, where the storage medium 602 stores a computer program executable by the processor 601. When the electronic device is controlled to run, the processor 601 executes the computer program to implement the camera control method according to any one of the embodiments of the present invention.
[0133] The camera control method is applied to a camera control mechanism. A camera component is fixedly connected to a main board, the main board is located inside the display screen component, and the display screen component is provided with a first through hole, and the first through hole is in the shooting direction of the camera component; the camera control mechanism includes: a sliding component, which is arranged inside the display screen component and is located between the first through hole and the camera component; a second through hole is provided on the sliding component; an elastic component, which is arranged at one end of the sliding component; an electromagnetic component, which is arranged at the other end of the sliding component, and the method includes:
[0134] In response to a camera activation instruction, control the electromagnetic component to be energized; the electromagnetic component is configured to drive the sliding component to move in a direction overcoming the elastic force of the elastic component when energized, so that the second through hole and the first through hole are in the shooting direction of the camera component.
[0135] Optionally, the method further includes:
[0136] In response to a camera off command, controlling the power-off of the electromagnetic component.
[0137] Optionally, the sliding component includes: a bracket base, a sliding rod, and a sliding cover,
[0138] The bracket base is disposed inside the display screen assembly;
[0139] The sliding rod is located on the fixed seat and slides on the bracket base; one end of the sliding rod is connected to the elastic component, and the other end is connected to the electromagnetic component;
[0140] The sliding cover is connected to the sliding rod, and the sliding rod and the sliding cover form a receiving cavity, and the camera assembly is located in the receiving cavity.
[0141] Optionally, at least two annular grooves are provided in the axial direction of the sliding rod, and the sliding cover abuts against the annular grooves.
[0142] Optionally, the sliding cover is of a U-shaped structure, and the sides of the U-shaped structure form an interference fit with the annular grooves.
[0143] Optionally, the electromagnetic component includes:
[0144] An energized coil, disposed at the other end of the sliding rod.
[0145] Optionally, the electromagnetic component further includes:
[0146] A magnetic member, fixed to the other end of the sliding rod, for moving in a direction close to the energized coil when the energized coil is energized.
[0147] Optionally, one end of the sliding rod is of a boss structure;
[0148] The elastic component is sleeved on the sliding rod and is located between the boss structure and the bracket base.
[0149] Optionally, it further includes:
[0150] A light-emitting component, located on the display screen assembly, for emitting light when the electromagnetic component is energized.
[0151] In an embodiment of the present invention, a camera component is fixedly connected to a main board, the main board is located inside a display screen component, the display screen component is provided with a first through hole, and the first through hole is in the shooting direction of the camera component; a sliding component is arranged inside the display screen component and is located between the first through hole and the camera component; a second through hole is arranged on the sliding component; an elastic component is arranged at one end of the sliding component; an electromagnetic component is arranged at the other end of the sliding component; when powered on, the electromagnetic component drives the sliding component to move in a direction against the elastic force of the elastic component, so that the second through hole and the first through hole are in the shooting direction of the camera component. The camera component is fixedly installed on the main board and is always in a straight line with the first through hole on the display screen component. Then, through the interaction between the elastic component and the electromagnetic component on both sides of the sliding component, the sliding component realizes corresponding sliding, so that the second through hole and the first through hole are in the shooting direction of the camera component, and the camera component is opened to collect external information. At other times, the second through hole is not in the shooting direction of the camera component, so that the camera component is blocked by the sliding component, and the camera component is closed and cannot collect external information, that is, it cannot collect the user's information, which can avoid the occurrence of privacy leakage caused by the camera and improve privacy.
[0152] Among them, the memory may include a random access memory (Random Access Memory, abbreviated as RAM), or may also include a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located far from the aforementioned processor.
[0153] The aforementioned processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, abbreviated as CPU), a network processor (Network Processor, abbreviated as NP), etc.; it may also be a digital signal processor (Digital Signal Processing, abbreviated as DSP), an application specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), a field programmable gate array (Field-Programmable Gate Array, abbreviated as FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0154] Refer to Figure 7, an embodiment of the present invention also provides a computer-readable storage medium 701. A computer program is stored on the storage medium 701, and when the computer program is run by a processor, it executes the camera control method according to any one of the embodiments of the present invention. The camera control method is applied to a camera control mechanism. The camera component is fixedly connected to the main board, and the main board is located inside the display screen component. The display screen component is provided with a first through hole, and the first through hole is in the shooting direction of the camera component; the camera control mechanism includes: a sliding component, which is arranged inside the display screen component and is located between the first through hole and the camera component; a second through hole is arranged on the sliding component; an elastic component, which is arranged at one end of the sliding component; an electromagnetic component, which is arranged at the other end of the sliding component. The method includes:
[0155] In response to a camera-on instruction, control the electromagnetic component to be energized; the electromagnetic component is used to drive the sliding component to move in a direction against the elastic force of the elastic component when energized, so that the second through hole and the first through hole are in the shooting direction of the camera component.
[0156] Optionally, the method further includes:
[0157] In response to a camera-off instruction, control the electromagnetic component to be de-energized.
[0158] Optionally, the sliding component includes: a bracket seat, a sliding rod and a sliding cover.
[0159] The bracket seat is arranged inside the display screen component;
[0160] The sliding rod is located on the fixed seat and slides on the bracket seat; one end of the sliding rod is connected to the elastic component, and the other end is connected to the electromagnetic component;
[0161] The sliding cover is connected to the sliding rod, and the sliding rod and the sliding cover form a receiving cavity, and the camera component is located in the receiving cavity.
[0162] Optionally, at least two annular grooves are arranged in the axial direction of the sliding rod, and the sliding cover abuts against the annular grooves.
[0163] Optionally, the sliding cover is of a U-shaped structure, and the sides of the U-shaped structure form an interference fit with the annular grooves.
[0164] Optionally, the electromagnetic component includes:
[0165] An energized coil, which is arranged at the other end of the sliding rod.
[0166] Optionally, the electromagnetic component further includes:
[0167] A magnetic component is fixed to the other end of the sliding rod and is configured to move in a direction closer to the energized coil when the energized coil is energized.
[0168] Optionally, one end of the sliding rod is a boss structure;
[0169] The elastic component is sleeved on the sliding rod and is located between the boss structure and the support base.
[0170] Optionally, it further includes:
[0171] A light-emitting component is located on the display screen component and is configured to emit light when the electromagnetic component is energized.
[0172] In an embodiment of the present invention, a camera component is fixedly connected to a main board, the main board is located inside the display screen component, the display screen component is provided with a first through hole, and the first through hole is in the shooting direction of the camera component; a sliding component is arranged inside the display screen component and is located between the first through hole and the camera component; a second through hole is provided on the sliding component; an elastic component is arranged at one end of the sliding component; an electromagnetic component is arranged at the other end of the sliding component; and is configured to drive the sliding component to move in a direction overcoming the elastic force of the elastic component when energized, so that the second through hole and the first through hole are in the shooting direction of the camera component. The camera component is fixedly installed on the main board and is always in a straight line with the first through hole on the display screen component. Then, through the interaction of the elastic component and the electromagnetic component on both sides of the sliding component, the sliding component realizes corresponding sliding, so that the second through hole and the first through hole are in the shooting direction of the camera component, enabling the camera component to be opened and collect external information. At other times, the second through hole is not in the shooting direction of the camera component, so that the camera component is blocked by the sliding component, closing the camera component and preventing it from collecting external information, that is, preventing it from collecting user information, which can avoid the occurrence of privacy leakage caused by the camera and improve privacy.
[0173] Each embodiment in this specification is described in a progressive manner. The key point of each embodiment is the difference from other embodiments. The same or similar parts among the embodiments can be referred to each other.
[0174] Those skilled in the art should understand that the embodiments of the present invention can be provided as methods, apparatuses, or computer program products. Therefore, the embodiments of the present invention can take the form of all-hardware embodiments, all-software embodiments, or embodiments combining software and hardware aspects. Moreover, the embodiments of the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) that contain computer-usable program code.
[0175] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be realized by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing terminal devices to generate a machine, so that the instructions executed by the processors of the computer or other programmable data processing terminal devices generate means for realizing the functions specified in Figure 1 one or more of the processes and / or blocks Figure 1 or multiple blocks.
[0176] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including instruction means, and the instruction means realizes the functions specified in Figure 1 one or more of the processes and / or blocks Figure 1 or multiple blocks.
[0177] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to generate a computer-implemented process. Thus, the instructions executed on the computer or other programmable terminal device provide steps for realizing the functions specified in Figure 1 one or more of the processes and / or blocks Figure 1 or multiple blocks.
[0178] Although the preferred embodiments of the embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they know the basic creative concepts. Therefore, the appended claims are intended to be construed as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0179] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or terminal device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or terminal device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising the said element.
[0180] The above has introduced in detail a camera control mechanism, a camera control method, an electronic device and a storage medium provided by the present invention. Specific examples are used in this text to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.
Claims
1. A camera control mechanism, characterized in that: The camera assembly is fixedly connected to the main board, the main board is located inside the display screen assembly, the display screen assembly is provided with a first through hole, and the first through hole is located in the shooting direction of the camera assembly; the camera control mechanism includes: A sliding assembly is arranged inside the display assembly and between the first through hole and the camera assembly; a second through hole is arranged on the sliding assembly; An elastic component, arranged at one end of the sliding component; The electromagnetic component is arranged at the other end of the sliding component; it is used to drive the sliding component to move in the direction of overcoming the elastic force of the elastic component when powered on, so that the second through hole and the first through hole are in the shooting direction of the camera component.
2. The camera control mechanism according to claim 1, characterized in that: The sliding assembly includes: a bracket seat, a sliding rod and a sliding cover, The bracket seat is arranged inside the display screen assembly; The sliding rod is located on the fixing seat and slides on the bracket seat; one end of the sliding rod is connected to the elastic component, and the other end is connected to the electromagnetic component; The sliding cover is connected to the sliding rod, the sliding rod and the sliding cover form a receiving cavity, and the camera assembly is located in the receiving cavity.
3. The camera control mechanism according to claim 2, characterized in that: At least two annular grooves are arranged in the axial direction of the sliding rod, and the sliding cover abuts against the annular grooves.
4. The camera control mechanism according to claim 3, characterized in that: The sliding cover is a U-shaped structure, and the edge of the U-shaped structure forms an interference fit with the annular groove.
5. The camera control mechanism according to claim 2, characterized in that: The electromagnetic assembly comprises: The energized coil is arranged at the other end of the sliding rod.
6. The camera control mechanism according to claim 5, characterized in that: The electromagnetic assembly further comprises: The magnetic member is fixed to the other end of the sliding rod and is used to move toward the direction close to the energized coil when the energized coil is energized.
7. The camera control mechanism according to claim 2, characterized in that: One end of the sliding rod is a boss structure; The elastic component is sleeved on the sliding rod and is located between the boss structure and the bracket seat.
8. The camera control mechanism according to claim 1, characterized in that: Also includes: The light-emitting component is located on the display screen component and is used to emit light when the electromagnetic component is powered on.
9. A camera control method, characterized in that: Applied to a camera control mechanism, the camera assembly is fixedly connected to a mainboard, the mainboard is located inside a display screen assembly, the display screen assembly is provided with a first through hole, and the first through hole is located in the shooting direction of the camera assembly; the camera control mechanism comprises: a sliding assembly, which is provided inside the display screen assembly and between the first through hole and the camera assembly; a second through hole is provided on the sliding assembly; an elastic assembly, which is provided at one end of the sliding assembly; and an electromagnetic assembly, which is provided at the other end of the sliding assembly. The method comprises: In response to a camera start-up instruction, the electromagnetic component is controlled to be energized; when energized, the electromagnetic component is used to drive the sliding component to move in a direction that overcomes the elastic force of the elastic component, so that the second through hole and the first through hole are in the shooting direction of the camera component.
10. The method according to claim 9, characterized in that The method further comprises: In response to a camera shutdown instruction, the electromagnetic component is controlled to be powered off.
11. An electronic device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the camera control method as described in any one of claims 9 to 10.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the camera control method according to any one of claims 9 to 10 are implemented.