Photographing control method and device, head-mounted device and storage medium
By opening the camera to capture a preview image during the user's first action in the head-mounted device and immediately capturing the current image during the second action, the problem of long image acquisition time intervals is solved, achieving more efficient image acquisition and snapshot effects.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
- Filing Date
- 2024-11-04
- Publication Date
- 2026-05-08
AI Technical Summary
Existing head-mounted devices have long time intervals when acquiring images, resulting in a time lag between image acquisition and user intent, which is particularly problematic during snapshot operations.
By opening the camera to capture preview image data during the user's first operation and immediately capturing the current image during the second operation, the operation interval is shortened, improving the timeliness and accuracy of image acquisition.
It significantly shortens the time interval of the image acquisition process, improves the timeliness of image acquisition and the accuracy of snapshots, and adapts to the wearing needs of different users.
Smart Images

Figure CN122002120A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of consumer electronics products, specifically to a photo-taking control method, device, head-mounted device, and storage medium. Background Technology
[0002] Among related technologies, head-mounted devices such as smart glasses and AR glasses are gradually entering users' lives, providing them with an immersive experience.
[0003] Currently, most head-mounted devices are equipped with image acquisition devices, such as cameras. When acquiring images, the user issues a acquisition command to acquire the image. However, in related technologies, the image acquisition time interval is relatively long (about 500ms), which may result in a large time difference between the acquired image and the image that the user wants to acquire. This is especially true for operations such as snapshots, where the image acquisition effect is poor. Summary of the Invention
[0004] This application provides a photo-taking control method, device, head-mounted device, and storage medium, which can improve the above-mentioned technical problems and adapt to different users.
[0005] In a first aspect, embodiments of this application provide a photo-taking control method applied to a head-mounted device. The head-mounted device includes a camera and a control unit, the control unit being configured to receive a user's photo-taking command. The method includes: in response to a first operation by the user on the control unit, opening the camera and acquiring preview image data; detecting whether the user performs a second operation on the control unit; if so, in response to the second operation by the user on the control unit, acquiring the current image.
[0006] Secondly, embodiments of this application also provide a photo-taking control device applied to a head-mounted device. The head-mounted device includes a camera and a control unit, which is configured to receive a user's photo-taking command. The device includes a preview module, a detection module, and an image acquisition module. The preview module is used to open the camera and acquire preview image data in response to a first operation by the user on the control unit. The detection module is used to detect whether the user performs a second operation on the control unit. The image acquisition module is used to acquire the current image in response to the second operation by the user on the control unit.
[0007] Thirdly, embodiments of this application also provide a head-mounted device, including a control unit, a camera, a processor, and a memory. The processor is electrically connected to the camera and the control unit; the memory is coupled to the processor; the memory stores instructions, which, when executed by the processor, cause the processor to perform the aforementioned method.
[0008] Fourthly, embodiments of this application also provide a computer-readable storage medium storing program code, which can be called by a processor to execute the aforementioned method.
[0009] The photo-taking control method, device, head-mounted device, and storage medium provided in this application, when a user performs a photo-taking operation, acquire a preview image upon detecting the user's first operation, and then perform an image acquisition operation upon detecting the user's second operation. Since the time spent on the first and second operations is very short, the time interval of the entire image acquisition process is shorter, resulting in higher timeliness of image acquisition and greater accuracy for operations such as snapshots.
[0010] These or other aspects of this application will become more apparent from the description of the following embodiments. Attached Figure Description
[0011] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0012] Figure 1 This is a schematic diagram of the structure of a smart glasses according to an embodiment of this application.
[0013] Figure 2 This is a partial structural schematic diagram of a smart glasses according to an embodiment of this application.
[0014] Figure 3 This is a schematic diagram of the structure of an indicator light for smart glasses, as shown in an embodiment of this application.
[0015] Figure 4 This is a flowchart of a photo-taking control method provided in an embodiment of this application.
[0016] Figure 5 This is a flowchart of another photo-taking control method provided in the embodiments of this application.
[0017] Figure 6 This is a flowchart of another photo-taking control method provided in the embodiments of this application.
[0018] Figure 7 This is a structural block diagram of a photo-taking control device provided in an embodiment of this application.
[0019] Figure 8 This is a structural block diagram of another photographic control device provided in the embodiments of this application.
[0020] Figure 9 This is a structural block diagram of another photographic control device provided in the embodiments of this application.
[0021] Figure 10 This is a structural block diagram of another photographic control device provided in the embodiments of this application.
[0022] Figure 11 This is a structural block diagram of a head-mounted device provided in an embodiment of this application.
[0023] Figure 12 This is a structural block diagram of a computer-readable storage medium provided in an embodiment of this application. Detailed Implementation
[0024] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0025] In related technologies, eyeglasses typically incorporate a hinge mechanism in the frame for easy storage. This allows the temples to fold down for storage and rotate to the desired angle for the user. However, due to differences in head shape, head circumference, and interpupillary distance among users, the rotation angle will vary. Therefore, the hinge mechanism needs to remain suspended at any rotation angle to accommodate different users' wearing needs. Based on this, the inventors of this application have proposed hinge mechanisms, eyeglass frames, eyeglasses, and smart glasses according to various embodiments of this application, aiming to improve the aforementioned deficiencies and enhance the applicability of eyeglass frames. The embodiments of this application are described in detail below with reference to the accompanying drawings.
[0026] In related technologies, head-mounted devices are beginning to incorporate image sensors. The process for these sensors to take photos is as follows: user interaction triggers the photo capture; the image sensor then opens a preview screen and responds to the user's action to take the picture. In other words, the user's action triggers the preview, and then the photo is taken according to the established procedure. This entire process takes approximately 500ms, and the duration is fixed. This time interval is acceptable when the user is taking photos in a fixed scene, but for scenarios requiring quick snapshots, this interval may cause some crucial shots to be missed, resulting in poor capture capabilities.
[0027] Figure 1 A head-mounted device is shown, which may be smart glasses. The smart glasses may include a frame 30, a display unit 70, and an optical engine 60.
[0028] The frame 30 includes temples 50, a frame 40, and a hinge mechanism 100. The frame 40 is used to mount the lenses 20, and the temples 50 are connected to the frame 40 and used for wearing by the user. It should be noted that the frame 40 and temples 50 can be made of various materials such as metal, plastic, and ceramic, and are not limited here. The frame 40 may include two independent frame structures for mounting two separate display units 70, corresponding to the user's left and right eyes respectively.
[0029] There may be two temples 50, which are respectively located on opposite sides of the frame 40 and connected to the frame 40. The two temples 50 are arranged in a roughly symmetrical structure and are hinged to the frame 40 via a pivot mechanism 100 for easy storage of the temples 50. The end of the temple 50 away from the frame 40 is bent to form an ear hook 55, which is suitable for hanging on the user's ear.
[0030] An optical engine 60 is disposed on the temple 50 and is used to modulate image light to project an image onto the display unit 70. The optical engine 60 can be any type of optical engine system, and no specific limitation is made here. There can be one, two, or multiple optical engines 60. In this embodiment, there is one optical engine 60, which is disposed on one temple 50 and mounted on the top of the temple 50. The display unit 70 is disposed on the frame 40. The display unit 70 can be a semi-transparent mirror 20. For example, the display unit 70 can transmit visible light except for red light and can reflect red light. The image light modulated by the optical engine 60 can use red light. When the image light is projected onto the display unit 70, it is reflected into the human eye, and the user can view the content projected by the optical engine 60. At the same time, non-red visible light in the ambient light can pass through the display unit 70 and enter the human eye, so the user can see objects in the environment while viewing the content projected by the optical engine 60. In another embodiment, a regular lens 20 may be disposed on the frame 40, and a display unit 70 may be disposed on the frame 40 and located in front of the lens 20, forming a display interface independent of the lens 20. No specific limitations are made here.
[0031] The smart glasses 10 may also include a flexible printed circuit board (FPC) with one end electrically connected to the optomechanical unit 60 and the other end electrically connected to the display unit 70, so as to form a signal transmission path between the optomechanical unit 60 and the display unit 70, wherein the flexible printed circuit board may be routed along the temple 50.
[0032] It should be noted that the smart glasses 10 provided in this embodiment can be smart glasses 10 based on Virtual Reality (VR) technology. VR is a computer simulation system that can create and allow users to experience virtual worlds. It uses a computer to generate a simulated environment, immersing the user in that environment. Virtual reality technology utilizes real-life data, generates electronic signals through computer technology, and combines these signals with various output devices to transform them into phenomena that people can perceive. These phenomena can be real objects or substances invisible to the naked eye, represented through three-dimensional models.
[0033] It could also be smart glasses 10 based on Augmented Reality (AR) technology, a technology that cleverly integrates virtual information with the real world, overlaying virtual content onto real-world scenes. It uses computer technology to generate virtual information, such as visual images and sounds; then it applies this virtual information to the real world. Virtual reality technology not only displays information from the real world but can also simultaneously display virtual information, with the two types of information complementing and overlaying each other.
[0034] It can also be a smart glasses 10 based on Mixed Reality (MR) technology, which introduces real-world scene information into the virtual environment, and builds an interactive feedback information loop between the virtual world, the real world and the user to enhance the realism of the user experience.
[0035] The smart glasses also include a camera 90, a motherboard 80, and a power supply (not shown in the figure). The camera 90, power supply, and motherboard 80 are all electrically connected. The camera 90 can be located on the frame 40 or the temple 30, which is not limited here. The number of cameras 90 can be one or more, and the camera 90 can be a telephoto camera 90, a panoramic camera 90, a wide-angle camera 90, a macro camera 90, etc., which is not limited here.
[0036] The head-mounted device also includes a processor (not shown) and a memory (not shown). The processor and memory are electrically connected and mounted on the motherboard 80. The processor is also electrically connected to the camera 90. The memory stores control commands. The processor can call the control commands and execute the corresponding operations, such as controlling the camera 90 to turn on or off, or controlling the camera 90 to capture images or record videos.
[0037] The head-mounted device also includes a control unit 41, which is operated by the user to receive photo-taking commands from the user and then control the camera 90 to take a picture. The control unit 41 can be located in the frame or temples of the glasses; there is no limitation on this. In one embodiment, the control unit 41 can be a button located in the frame or temples of the glasses. Figure 2 The diagram illustrates the structure of a button with a touch sensor 42 on its surface for detecting user touch operations. The button is also electrically connected to a processor for detecting user press operations. When a user presses the button, they first touch the button; therefore, the touch and press operations occur consecutively within a very short time interval.
[0038] The head-mounted device may also include indicator lights 43, which are electrically connected to the processor and the power supply. Under the control of the processor, the indicator lights 43 can be turned on or off. The indicator lights 43 can also be normally open, normally closed, or flashing under the control of the processor. The number of indicator lights 43 can be one or more. When there are multiple indicator lights 43, they can be configured to be turned on or off together, or they can be configured to be partially turned on or off. This embodiment does not limit this. The indicator lights 43 can be monochrome lights or white lights.
[0039] The head-mounted device may also include a light sensor 44, electrically connected to the processor. The light sensor 44 is used to acquire ambient light intensity to determine whether it is suitable for taking a picture or whether the area in front of the camera 90 is obstructed. The light sensor 44 can be positioned close to the camera 90, allowing the light intensity data detected by the light sensor 44 to more closely approximate the shooting environment of the camera 90. This is merely one example. Figure 3 An arrangement of an indicator light 43 and a light sensor 44 is shown. Both the indicator light 43 and the light sensor 44 are housed within a frame 40. The frame 40 begins with a light aperture 46. The indicator light 43 and the light sensor 44 are arranged side-by-side, with light guided through the light aperture 46. To improve the light guiding effect of the light aperture 46, a light guide post 45 can be provided within the light aperture 46. The light guide post 45 is used to direct the light generated by the indicator light 43 outwards and also to guide ambient light into the light sensor 44. The advantage of this arrangement is that it avoids interference from the light generated by the indicator light 43 to the light sensor 44. Furthermore, to further prevent interference from the light generated by the indicator light 43 to the light sensor 44, the indicator light 43 and the light sensor can be configured to operate separately.
[0040] Figure 4 A flowchart of a photo-taking control method is shown, which can be applied to the aforementioned head-mounted device. The photo-taking control method includes steps S110-S130:
[0041] Step S110: In response to the user's first operation on the control unit, turn on the camera and acquire preview image data.
[0042] When a user performs the first operation on the control unit, it indicates that the user may want to capture images. Therefore, the camera is turned on at this time to capture and preview image data first, so that the camera can capture images more quickly in the future, thus improving the timeliness of image acquisition.
[0043] In a more specific embodiment, the first operation can be a user's touch operation on the control unit. When the user's hand touches the control unit, the control unit receives the touch signal, determines that the user has performed the first operation, and then opens the camera to capture preview image data, which can be sent to the processor. In other embodiments, the first operation can also be a user's body part (e.g., a finger) approaching the control unit. In this case, the head-mounted device can be equipped with a proximity sensor near the control unit. When the proximity sensor detects the user's finger approaching, it determines that the user has performed the first operation on the control unit. Of course, the first operation can also be other operations, which are not limited in this embodiment.
[0044] In some embodiments, the head-mounted device can also communicate with a user's mobile terminal (such as a mobile phone), transmitting the preview image data to the user's mobile terminal after the camera captures the preview image data. In other embodiments, the head-mounted device has a display unit, on which the preview image data can also be displayed. In still other embodiments, the preview image data may not be displayed, but only transmitted to a processor.
[0045] Step S120: Detect whether the user performs a second operation on the control unit.
[0046] The second operation is different from the first operation. The detection of whether the user performs the second operation on the control unit can be performed by the control unit itself. In a more specific embodiment, the control unit is a button, the first operation is a touch operation on the button, and the second operation can be a pressing operation on the button. The touch operation and the pressing operation are two consecutive operations performed by the user when pressing the button, with a very short interval between the two operations.
[0047] In other embodiments, the second operation can also be other operations. For example, the control unit can also be a sliding structure, and the second operation can be a sliding operation by the user on the control unit. Here, this embodiment does not limit it.
[0048] When it is detected that the user performs a second operation on the control unit, step S130 is executed.
[0049] Step S130: In response to the user's second operation on the control unit, acquire the current image.
[0050] When the system detects that the user is performing a second operation on the control unit, it indicates that the user needs to acquire an image, and the current image is acquired immediately.
[0051] During step S130, i.e., the image acquisition process, because head-mounted devices have a lower penetration rate than mobile terminal devices such as smartphones, not most people are aware that head-mounted devices also have image acquisition capabilities. Therefore, when image acquisition is being performed, others in the vicinity may not be aware that the user is taking images, potentially compromising their privacy. Therefore, in some embodiments, if a second operation is detected on the control unit, a prompting operation can also be performed during step S130. This prompting operation is used to inform other people in the vicinity that the user of the head-mounted device is currently taking a photo and should be mindful of privacy.
[0052] The prompts can be issued through various means such as voice, image, and photoelectric signals; this embodiment is not limited to any particular method. For example, in a more specific implementation, the head-mounted device also includes an indicator light, and the prompt can be to control the activation of the indicator light. That is, the indicator light illuminates when image acquisition is being performed, notifying other people in the vicinity that image acquisition is in progress. The indicator light can provide prompts by flashing or by remaining constantly lit; this is not limited to this method.
[0053] In another, more specific implementation, the prompting operation can also be prompted by voice broadcast.
[0054] It should be noted that the prompting operation can be performed before image acquisition in step S130, or it can be performed synchronously with the image acquisition process, or it can be performed after image acquisition. This embodiment does not limit this.
[0055] The advantages of this photo-taking control method are: because the user's first and second operations are consecutive and the interval is extremely short, the camera is opened and a preview image is captured immediately after the user performs the first operation, and the current image is captured immediately after the second operation is executed. This significantly reduces the image acquisition efficiency during the snapshot process. Compared to the user triggering image acquisition through a single second operation, because the camera has already been opened and preview image data has been captured during the first operation, the photo-taking control method provided in this embodiment can capture the current image more quickly when the second operation is triggered. In application scenarios such as snapshot capture, it can more quickly and accurately capture the image needed by the user.
[0056] Based on the above-described photo control method, this application embodiment also provides another photo control method, see below. Figure 5The photo-taking control method provided in this embodiment may further include the following steps S210-S250. It should be understood that the photo-taking control method in this embodiment has the same or corresponding implementation steps as the above embodiments. For a detailed description of these same or corresponding implementation steps, please refer to the content provided in the above embodiments; this embodiment will not repeat them.
[0057] Step S210: In response to the user's first operation on the control unit, turn on the camera and acquire preview image data.
[0058] Step S220: Detect whether the user performs a second operation on the control unit.
[0059] If the user performs a second operation on the control unit, proceed to step S230.
[0060] Step S230: Detect the current light intensity and determine that the light intensity is greater than or equal to a preset threshold.
[0061] Light intensity can be obtained through a light sensor installed on the head-mounted device. Light intensity can reflect whether the current environment is conducive to taking pictures, or whether the camera is obstructed under the current light intensity. The preset threshold is a preset threshold for light intensity. This preset threshold can be set at the factory or by the user. This embodiment does not limit this.
[0062] When the current light intensity is greater than or equal to the preset threshold, it indicates that the current environment is suitable for taking pictures, and step S240 can be executed. When the current light intensity is less than the preset threshold, it indicates that the current environment is not suitable for taking pictures, and step S250 can be executed.
[0063] Step S240: In response to the user's second operation on the control unit, acquire the current image.
[0064] Step S250: Issue a prompt message.
[0065] The prompt message is used to inform the user that the current environment is not suitable for taking photos. The prompt message can be delivered through various means such as voice, image, and photoelectric display; this embodiment does not limit the specific method. For example, in a more specific embodiment, the prompt message can be displayed as text on the display screen. In another more specific embodiment, the prompt message can be delivered via voice broadcast.
[0066] In a more specific implementation, in step S230, if the light intensity acquired by the light sensor is lower than a preset threshold, there are two possibilities: one is that the ambient light intensity in the current environment is insufficient; the other is that the ambient light intensity in the current environment is sufficient, but the light sensor and the camera are obstructed by foreign objects, resulting in insufficient light intensity values acquired by the light sensor. For these two different situations, different prompts can be provided to help the user understand the reason for the insufficient light intensity and take appropriate action. The head-mounted device can be equipped with multiple light sensors, at least one of which is located near the camera to acquire the light intensity in the direction directly facing the camera, and at least one of which is used to acquire the ambient light intensity at other locations on the head-mounted device. When the ambient light intensity at other locations is greater than or equal to the preset threshold, while the light intensity in the direction directly facing the camera is less than the preset threshold, it indicates that there are foreign objects obstructing the light sensor and the camera. When the ambient light intensity at other locations is less than the preset threshold, and the light intensity in the direction directly facing the camera is also less than the preset threshold, it indicates that the current environment is not suitable for image acquisition.
[0067] For example, in a more specific implementation, the reason why the light intensity obtained by the light sensor is lower than the preset threshold is that the ambient light intensity in the current environment is insufficient. At this time, the prompt message can remind the user that the current environment is not suitable for taking pictures or to turn on the flash, etc.
[0068] For example, in a more specific implementation, if the reason why the light intensity obtained by the light sensor is lower than a preset threshold is that the light sensor and the front of the camera are blocked by foreign objects, then the prompt message can remind the user to remove the foreign objects in front of the light sensor and the camera.
[0069] The advantages of the above-described image capture control method are as follows: Since the user's first and second operations are consecutive and the interval is extremely short, the camera is opened and a preview image is captured immediately after the user performs the first operation, and the current image is captured immediately after the second operation is executed. This significantly reduces the image capture efficiency during the snapshot process. Compared to a single second operation triggering image capture, because the camera has already been opened and preview image data captured during the first operation, the image capture control method provided in this embodiment can capture the current image more quickly when the second operation is triggered. In application scenarios such as snapshot capture, it can capture the image needed by the user more quickly and accurately. Furthermore, before image capture, the ambient light level of the camera's environment can be detected to determine whether the current environment is suitable for image capture and prompt the user so that they can take the appropriate action.
[0070] Based on the above-described photo control method, this application embodiment also provides another photo control method, see below. Figure 6 The photo-taking control method provided in this embodiment may further include the following steps S310-S360. It should be understood that the photo-taking control method in this embodiment has the same or corresponding implementation steps as the above embodiments. For a detailed description of these same or corresponding implementation steps, please refer to the content provided in the above embodiments; this embodiment will not repeat them.
[0071] Step S310: In response to the user's first operation on the control unit, turn on the camera and acquire preview image data.
[0072] Step S320: Detect whether the user performs a second operation on the control unit.
[0073] If the user performs a second operation on the control unit, proceed to step S230.
[0074] Step S330: Detect the current light intensity and determine that the light intensity is greater than or equal to a preset threshold.
[0075] If the light intensity is greater than or equal to the preset threshold, proceed to step S340.
[0076] Step S340: Detect the duration of the user's second operation on the control unit and determine whether the duration is greater than or equal to the preset duration.
[0077] The duration of the second operation can be timed and obtained from the time the second operation is triggered. For example, in a more specific embodiment, the control unit is a button, and the second operation is the user's pressing operation on the control unit. At this time, the duration of the user's second operation on the control unit can be the duration of the user holding the button in a pressed state. When the duration of the user's second operation on the control unit is less than or equal to the preset duration, step S350 is executed. When the duration of the user's second operation on the control unit is greater than the preset duration, step S360 is executed.
[0078] Determining the user's desired camera operation based on the duration of the second operation performed by the user on the control unit simplifies the user's workflow. Users only need to control the duration of the second operation to easily select between image capture and video recording. The preset duration can be, for example, 3-5 seconds, but other values are also possible. The preset duration can be pre-set at the factory by the head-mounted device or user-defined; this embodiment does not limit this. Under normal operating conditions, the duration of the second operation on the control unit is usually shorter than the preset duration, so this setting will not affect image capture.
[0079] Step S350: Acquire the current image.
[0080] Step S360: Perform the recording operation.
[0081] The advantages of the aforementioned photo-taking control method are as follows: Since the user's first and second operations are consecutive and the interval is extremely short, the camera is opened and a preview image is captured immediately after the user performs the first operation, and the current image is captured immediately after the second operation is executed. This significantly reduces the image acquisition efficiency during the snapshot process. Compared to a single second operation triggering image acquisition, because the camera has already opened and captured preview image data during the first operation, the photo-taking control method provided in this embodiment can capture the current image more quickly when the second operation is triggered. In application scenarios such as snapshot capture, it can more quickly and accurately capture the image needed by the user. Furthermore, by detecting the duration of the second operation, the camera can be controlled to capture images or record video based on different durations, simplifying the user's operation.
[0082] See Figure 7 This embodiment also provides a photo-taking control device 400, which can be applied to the aforementioned head-mounted device. The head-mounted device includes a camera and a control unit, which is configured to receive a user's photo-taking command. The device 400 includes a preview module 410, a detection module 420, and an image acquisition module 430. The preview module 410 is used to open the camera and acquire preview image data in response to a first operation by the user on the control unit. The detection module 420 is used to detect whether the user performs a second operation on the control unit. The image acquisition module 430 is used to acquire the current image in response to the second operation by the user on the control unit.
[0083] In some implementations, the image acquisition module 430 is also used to detect the duration of the user's second operation on the control unit. When the duration is less than or equal to a preset duration, the current image is acquired; when the duration is greater than the preset duration, a recording operation is performed.
[0084] In some implementations, see Figure 8 The camera control device 400 may further include a light detection module 440, which detects the current light intensity and determines that the light intensity is greater than or equal to a preset threshold. In some embodiments, see [reference needed]. Figure 9 The camera control device 400 may also include a prompt module 450, which is used to issue a prompt message.
[0085] In some implementations, see Figure 10 The camera control device 400 also includes a prompting operation module 460, which is used to prompt that image acquisition is in progress. In a more specific embodiment, the prompting operation module 460 is used to control the indicator light to turn on or off.
[0086] The photo-taking control device 400 provided in this embodiment significantly reduces the image acquisition efficiency during the snapshot process because the user's first and second operations are consecutive and have a very short interval. The camera is opened and a preview image is captured immediately after the user performs the first operation, and the current image is captured immediately after the second operation is executed. Compared to a user triggering image acquisition through a single second operation, the photo-taking control method provided in this embodiment can capture the current image more quickly when the second operation is triggered, since the camera has already been opened and preview image data has been captured during the first operation. This allows for faster and more accurate acquisition of the image needed by the user in scenarios such as snapshot capture.
[0087] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described apparatus and unit can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0088] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.
[0089] Please see Figure 11 This embodiment also provides a head-mounted device 500, and the aforementioned photo-taking control method can be applied to the head-mounted device 500 of this embodiment. The head-mounted device 500 includes a camera 507, a control unit 508, an indicator light 505, a light sensor 506, and one or more (only one is shown in the figure) processors 502 and memory 504 coupled to each other.
[0090] The camera 507, control unit 508, indicator light 505, and light sensor 506 are all electrically connected to the processor 502 and can perform predetermined operations under the control of the processor 502. Specifically, the camera 507 is used for image acquisition or video recording, the control unit 508 is used to receive user commands to take photos, the indicator light 505 can be turned on or off to alert other users in the surrounding environment that image acquisition is in progress, and the light sensor 506 is used to collect ambient light intensity.
[0091] The memory 504 stores a program that can execute the contents of the foregoing embodiments, and the processor 302 can execute the program stored in the memory 504.
[0092] The processor 502 may include one or more processing cores. The processor 502 connects to various parts within the electronic device 500 using various interfaces and lines, and performs various functions and processes data of the electronic device 500 by running or executing instructions, programs, code sets, or instruction sets stored in the memory 504, and by calling data stored in the memory 504. Optionally, the processor 502 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 502 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and Modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 502 and may be implemented separately using a communication chip.
[0093] The memory 504 may include random access memory (RAM) or read-only memory (ROM). The memory 504 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 504 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), instructions for implementing the various method embodiments described below, etc. The data storage area may also store data created by the electronic device 500 during use (such as phonebooks, audio and video data, chat log data, etc.). It is understood that the head-mounted device 500 in this application may be a wearable device (e.g., a head-mounted device (HMD) such as electronic glasses, electronic clothing, electronic bracelets, electronic necklaces, electronic tattoos, electronic devices 500, or smartwatches).
[0094] See Figure 12This application provides a structural block diagram of a computer-readable storage medium. The computer-readable medium 1000 stores program code that can be called by a processor to execute the photographing control method described in any of the above method embodiments. The computer-readable storage medium 1000 can be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 1000 includes a non-volatile computer-readable storage medium. The computer-readable storage medium 1000 has storage space for program code 1100 that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code 1100 can be compressed, for example, in a suitable form.
[0095] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for controlling photo capture, characterized in that, The method is applied to a head-mounted device, the head-mounted device including a camera and a control unit configured to receive a user's photo-taking command; the method includes: In response to the user's first operation on the control unit, the camera is turned on to acquire preview image data; Detect whether the user performs a second operation on the control unit; If so, in response to the user's second operation on the control unit, the current image is acquired.
2. The photo-taking control method according to claim 1, characterized in that, If so, in response to a second operation by the user on the control unit, the current image is acquired; including: If so; detect the current light intensity and determine that the light intensity is greater than or equal to a preset threshold; If the light intensity is greater than or equal to a preset threshold, the current image is acquired in response to a second operation by the user on the control unit.
3. The photo-taking control method according to claim 2, characterized in that, If the light intensity is less than the preset threshold, a prompt message will be issued.
4. The photo-taking control method according to claim 1, characterized in that, If the method detects that a user performs a second operation on the control unit, the method further includes: Follow the prompts.
5. The photo-taking control method according to claim 4, characterized in that, The head-mounted device also includes indicator lights; The execution prompt operation includes: Turn on the indicator light.
6. The photo-taking control method according to claim 1, characterized in that, If so, in response to a second operation by the user on the control unit, the current image is acquired; include: The duration of the user's second operation on the control unit is detected; When the duration is less than or equal to the preset duration, the current image is captured; When the duration exceeds the preset duration, a recording operation is performed.
7. The photo-taking control method according to any one of claims 1-6, characterized in that, The control unit includes buttons disposed on the head-mounted device. The first operation is a touch operation on the buttons, and the second operation is a press operation on the buttons.
8. A camera control device, characterized in that, An application to a head-mounted device, the head-mounted device including a camera and a control unit configured to receive a user's photo-taking command; the device includes... The preview module is used to respond to the user's first operation on the control unit by turning on the camera and acquiring preview image data; The detection module is used to detect whether the user performs a second operation on the control unit; as well as An image acquisition module is used to acquire a current image in response to a second operation by the user on the control unit.
9. A head-mounted device, characterized in that, include: Control Department; Camera; The processor is electrically connected to the camera and the control unit; as well as A memory coupled to the processor; The memory stores instructions that, when executed by the processor, cause the processor to perform the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains program code that can be invoked by a processor to execute the method as described in any one of claims 1-7.