Image processing method, apparatus, device, and storage medium
By deploying multiple image acquisition devices on wearable devices and performing image cropping and merging, the problem of incomplete images was solved, achieving wider field of view and higher quality image acquisition.
Patent Information
- Application Number
- CN202510654269.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-20
- Publication Date
- 2026-11-24
AI Technical Summary
Wearable devices have shortcomings in image acquisition quality, especially due to the position of the image acquisition device and the way it is worn, resulting in incomplete images or the inability to capture the entire field of view.
Multiple image acquisition devices are deployed at different locations on the wearable device to acquire multiple images, which are then cropped and merged to generate a combined field of view image.
It expands the field of view of the image, repairs or completes the visual content in the image, and improves the image quality.
Smart Images

Figure CN123160705A_ABST
Abstract
Description
Technical Field
[0001] The exemplary embodiments disclosed herein generally relate to the field of computers, and particularly to image processing methods, apparatus, devices, computer-readable storage media, and computer-executable instructions products. Background Technology
[0002] With the rapid development of wearable device technologies (such as watches, glasses, headphones, bracelets, rings, etc.), wearable devices are gradually expanding from single-function devices to multi-functional ones. For example, some products are also gradually expanding to include functions such as photography and image-based human-computer interaction. However, the image acquisition quality of wearable devices still needs improvement. Summary of the Invention
[0003] In a first aspect of this disclosure, an image processing method is provided. The method includes: in response to an image acquisition command for a wearable device, acquiring a plurality of first images by a plurality of image acquisition devices deployed at corresponding locations on the wearable device, each first image including visual content acquired under a first field of view corresponding to the respective image acquisition device; cropping the plurality of first images to obtain a plurality of cropped first images; and generating a second image by merging the cropped plurality of first images, the second image including visual content corresponding to a combined field of view of the plurality of first fields of view.
[0004] In a second aspect of this disclosure, an apparatus for image processing is provided. The apparatus includes: an acquisition module configured to acquire a plurality of first images by a plurality of image acquisition devices deployed at corresponding locations on a wearable device in response to an image acquisition command for a wearable device, each first image including visual content acquired under a first field of view corresponding to the respective image acquisition device; a cropping module configured to crop the plurality of first images to obtain cropped plurality of first images; and a merging module configured to generate a second image by merging the cropped plurality of first images, the second image including visual content corresponding to a combined field of view of the plurality of first fields of view.
[0005] In a third aspect of this disclosure, a wearable device is provided. The device includes: a controller configured to perform the method of the first aspect; and a plurality of image acquisition units configured to perform image acquisition under the control of the controller.
[0006] In a fourth aspect of this disclosure, an electronic device is provided. The device includes at least one processor; and at least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor. When executed by the at least one processor, the instructions cause the device to perform the method of the first aspect.
[0007] In a fifth aspect of this disclosure, a computer-readable storage medium is provided. The computer-readable storage medium stores computer-executable instructions that can be executed by a processor to implement the method of the first aspect.
[0008] In a sixth aspect of this disclosure, a computer program product is provided, including computer-executable instructions, wherein when executed by a processor, the computer-executable instructions implement the method according to a first aspect of this disclosure.
[0009] It should be understood that the content described in this content section is not intended to limit the key or essential features of the embodiments of this disclosure, nor is it intended to restrict the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0010] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. In the drawings, the same or similar reference numerals denote the same or similar elements, wherein:
[0011] Figure 1 A schematic diagram is shown of an example environment in which embodiments of the present disclosure may be implemented;
[0012] Figure 2 A flowchart illustrating an image processing procedure according to some embodiments of the present disclosure is shown;
[0013] Figure 3 A schematic diagram illustrating an example scenario of image processing according to some embodiments of the present disclosure is shown;
[0014] Figures 4A to 4E Schematic diagrams of example images according to some embodiments of the present disclosure are shown respectively;
[0015] Figure 5 A schematic diagram of an example architecture of a wearable device according to some embodiments of the present disclosure is shown;
[0016] Figure 6 A schematic structural block diagram of an example apparatus for image processing according to some embodiments of the present disclosure is shown; and
[0017] Figure 7 A block diagram of an electronic device capable of implementing several embodiments of the present disclosure is shown. Detailed Implementation
[0018] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0019] In the description of embodiments of this disclosure, the term "comprising" and similar terms should be understood as open-ended inclusion, i.e., "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.
[0020] In this document, unless explicitly stated otherwise, performing a step in response to A does not mean that the step is performed immediately after A, but may include one or more intermediate steps.
[0021] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.
[0022] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure through appropriate means in accordance with relevant laws and regulations, and user authorization should be obtained.
[0023] For example, in response to receiving a user's active request, a prompt message is sent to the user to clearly inform the user that the requested operation will require the acquisition and use of the user's personal information, thereby enabling the user to choose whether to provide personal information to the software or hardware such as electronic devices, applications, servers or storage media that perform the operation of the technical solution disclosed herein, based on the prompt message.
[0024] As an optional but non-restrictive implementation, in response to a user's active request, a prompt message can be sent to the user, such as a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0025] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0026] As used in this paper, the term "model" refers to a model that learns the relationship between inputs and outputs from training data, enabling it to generate corresponding outputs for a given input after training. Model generation can be based on machine learning techniques. Deep learning is a machine learning algorithm that processes inputs and provides corresponding outputs using multiple layers of processing units. A neural network model is an example of a deep learning-based model. In this paper, "model" may also be referred to as a "machine learning model," "learning model," "machine learning network," or "learning network," and these terms are used interchangeably.
[0027] A neural network is a machine learning network based on deep learning. A neural network processes input and provides a corresponding output, typically consisting of an input layer, an output layer, and one or more hidden layers between the input and output layers. Neural networks used in deep learning applications often include many hidden layers, thus increasing the network's depth. The layers of a neural network are connected sequentially, so that the output of the previous layer is provided as the input to the next layer. The input layer receives the input to the neural network, while the output layer's output serves as the final output. Each layer of a neural network includes one or more nodes (also called processing nodes or neurons), each node processing the input from the layer above.
[0028] Figure 1 A schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented is shown. Figure 1 In environment 100, wearable device 110 is equipped with multiple image acquisition devices 112, which can be deployed at corresponding locations on wearable device 110. Wearable device 110 can control at least one of the multiple image acquisition devices 112 to acquire images. For example, the multiple image acquisition devices 112 may include image acquisition device 112-1, image acquisition device 112-2, ..., image acquisition device 112-M, etc., where M is a positive integer. For ease of description, the multiple image acquisition devices are collectively referred to as image acquisition devices 112 in this document.
[0029] In some embodiments, the wearable device 110 may also be equipped with an audio acquisition device (e.g., a microphone or microphone array) or an audio player. The wearable device 110 may use the audio acquisition device to acquire audio, or it may use the audio player to play audio. Of course, the wearable device 110 may also be equipped with any other suitable components, and the embodiments of this disclosure are not limited thereto.
[0030] In some embodiments, wearable device 110 may include various portable electronic devices that can be worn directly on the body of user 140 or integrated into the clothing or accessories of user 140, such as watches, bracelets, glasses, headphones, clothing, rings, or necklaces, etc. As an example, wearable device 110 may include two headphones, each of which may be equipped with an image acquisition device 114 (e.g., a camera). It is understood that the wearable device 110 described above is merely exemplary, and wearable device 110 can be implemented as any suitable wearable portable electronic device.
[0031] In some embodiments, the wearable device 110 can communicate with the terminal device 120 to control the wearable device 110 or support the functions of the wearable device 110. In some examples, the user 140 can send control commands to the wearable device 110 through the terminal device 120 to control the wearable device 110. As an example, the user 140 can control the image acquisition unit 112 or audio acquisition unit of the wearable device 110 through the terminal device 120. In some examples, the wearable device 110 can transmit data with the terminal device 120; for example, the wearable device 110 can transmit acquired images or audio to the terminal device 120, or receive audio, images, video, etc., from the terminal device 120. In some embodiments, the wearable device 110 can also communicate directly with the server 130, or indirectly with the server 130 through the terminal device 120, to support the functions of the wearable device 110. For example, the wearable device 110 can utilize the server 130 to process voice or images to support the human-computer interaction functions of the wearable device 110.
[0032] In some embodiments, the wearable device 110 may also utilize one or more machine learning models 150 to support interaction with the user 140. For example, the one or more machine learning models 150 may include machine learning model 150-1, machine learning model 150-2, ..., machine learning model 150-N, etc., where N is a positive integer. For ease of description, the one or more machine learning models are collectively referred to as machine learning model 150 herein. In some examples, the wearable device 110 may utilize machine learning model 150 for speech recognition. In other examples, the wearable device 110 may utilize machine learning model 150 to process acquired images or speech. In some embodiments, such as Figure 1As shown, the one or more machine learning models 150 can be deployed on a server 130 associated with the wearable device 110. The wearable device 110 can call the machine learning model 150 through the server 130 to support interaction with the user 140 based on the model output of the machine learning model 150. Of course, the one or more machine learning models 150 can also be deployed locally on the wearable device 110 or on a terminal device 120 associated with the wearable device 110. The wearable device 110 can call the local machine learning model 150 to support interaction with the user 140, or the wearable device 110 can call the machine learning model 150 through the terminal device 120 to support interaction with the user 140.
[0033] Machine learning model 150 can be of different types. In some embodiments, one or more machine learning models 150 may be built based on a language model (LM). The machine learning model used is a content-generating model, capable of generating corresponding outputs based on model inputs. In some embodiments, the language model-based machine learning model can handle textual modal model inputs (e.g., natural language and / or machine language) and / or non-textual modal model inputs (e.g., images, speech, video, etc.), and can generate the desired output based on the model inputs and prompt words. Here, prompt words are used to guide the machine learning model to generate outputs that address the user needs indicated by the model inputs. In applications supporting user question answering, user 140's input can be provided to machine learning model 150 as at least a part of the model inputs (other parts may include prompt words). This user input is considered a question. Based on the model outputs, corresponding responses can be generated and provided to user 140.
[0034] In some embodiments, one or more machine learning models 150 may be speech-related models, including speech recognition (ASR) models and text-to-speech (TTS) models. The input to an ASR model is speech, and the output is text. The input to a TTS model is text, and the output is the corresponding speech.
[0035] In some embodiments, terminal device 120 can be any type of mobile terminal, fixed terminal, or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, personal communication system (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio receivers, e-book devices, gaming devices, or any combination thereof, including accessories and peripherals of these devices or any combination thereof. In some embodiments, terminal device 120 can also support any type of user-facing interface (such as "wearable" circuitry). Server 130 can be various types of computing systems / servers capable of providing computing power, including but not limited to mainframes, edge computing nodes, computing devices in cloud environments, etc. Server 130 can, for example, be implemented in a cloud environment.
[0036] It should be understood that the structure and function of environment 100 are described for illustrative purposes only and do not imply any limitation on the scope of this disclosure.
[0037] As mentioned above, with the rapid development of wearable device technologies (such as watches, glasses, headphones, bracelets, rings, etc.), wearable devices are gradually expanding from single functions to multiple functions. Some wearable device products are gradually expanding to include functions such as photography and image-based human-computer interaction. However, due to limitations in the placement of image acquisition devices and the specific wearing methods of wearable devices, the image acquisition quality of wearable devices needs to be improved.
[0038] Taking headphones as an example, while retaining audio input and output functions, some products are also attempting to expand image capture capabilities by deploying image acquisition devices to broaden the headphone's interaction methods. However, on the one hand, headphones are easily obstructed by the wearer's face, hair, or clothing, resulting in incomplete images. On the other hand, because headphones are located to the side of the wearer's face, they can usually only capture visual content on one side of the wearer's face, failing to capture the entire visual content within the wearer's field of vision.
[0039] In view of this, embodiments of the present disclosure propose an improved image processing scheme. In this improved scheme, a wearable device includes multiple image acquisition units, which are respectively deployed at corresponding locations on the wearable device. Each image acquisition unit has a first field of view corresponding to its deployment location. If an image acquisition command for the wearable device is detected, the multiple image acquisition units acquire multiple first images. Each first image includes visual content acquired by the image acquisition unit under the corresponding first field of view. The multiple first images are cropped to obtain multiple cropped first images. Then, a second image is generated by merging the multiple cropped first images. The second image includes visual content corresponding to a combined field of view of the multiple first fields of view.
[0040] In the embodiments of this disclosure, multiple images acquired by multiple image acquisition devices are cropped and merged to form an image corresponding to the combined field of view of the multiple image acquisition devices. This not only expands the field of view corresponding to the image but also, to a certain extent, repairs or completes visual content in the image (e.g., blurred, overlapping, or occluded visual content), thus improving image quality.
[0041] The following description will continue with reference to the accompanying drawings, which will provide some exemplary embodiments of this disclosure. Figure 2 A flowchart of an image processing procedure 200 according to some embodiments of the present disclosure is shown. The procedure 200 may be implemented at a wearable device 110, or it may be implemented by a terminal device 120 or a server 130.
[0042] In box 210, if an image acquisition command for the wearable device 110 is detected, multiple image acquisition units 112 deployed at corresponding locations on the wearable device 110 acquire multiple first images. In other words, the wearable device 110 may include multiple image acquisition units 112, each deployed at a corresponding location on the wearable device 110. If an image acquisition command is received, each of the multiple image acquisition units 112 acquires a corresponding first image. Each first image includes visual content acquired within a first field of view corresponding to the respective image acquisition unit 112.
[0043] The first field of view can be understood as the range of visual content that the corresponding image acquisition device 112 can capture. Since multiple image acquisition devices 112 are deployed at corresponding locations on the wearable device 110, each image acquisition device 112 has its own corresponding first field of view. The first image acquired by each image acquisition device 112 includes the visual content within its corresponding field of view. In some examples, the first field of view corresponding to the image acquisition device 112 can be indicated by the field of view angle; for example, the field of view of a camera can be described by the horizontal and vertical field of view angles. Of course, the field of view of the image acquisition device 112 can also be described by other parameters, and the embodiments of this disclosure are not limited thereto.
[0044] In some embodiments, the wearable device 110 may include a first earpiece and a second earpiece, with a first image acquisition device deployed on the first earpiece and a second image acquisition device deployed on the second earpiece. If an image acquisition command is detected, a pair of first images are acquired by the first and second image acquisition devices. As an example, Figure 3 A schematic diagram of an example scenario 300 of image processing according to some embodiments of the present disclosure is shown. Figure 4A A schematic diagram of example image 400A according to some embodiments of the present disclosure is shown. Figure 4B A schematic diagram of example image 400B according to some embodiments of the present disclosure is shown. Figure 3 As shown, example scenario 300 illustrates the head 310 (simplified diagram) of user 140, and an image acquisition device 320 (i.e., the first image acquisition device) deployed on a first earpiece and an image acquisition device 330 (i.e., the second image acquisition device) deployed on a second earpiece. The first and second earpieces are worn on the head 310 of user 140. The image acquisition device 320 has a field of view A, and can acquire visual content within the field of view corresponding to the field of view A to obtain, for example... Figure 4A The image shown is 400A (i.e., a first image). The image acquisition unit 330 has a field of view B. The image acquisition unit 330 can acquire the visual content within the field of view corresponding to the field of view B, obtaining, for example... Figure 4B The image shown is 400B (also known as another first image).
[0045] In some embodiments, the wearable device 110 may also include eyeglasses. Multiple image acquisition devices 112 may be deployed on the frame or two temples of the eyeglasses. If an image acquisition command is detected, multiple images can be acquired using the multiple image acquisition devices 112 on the eyeglasses. Of course, the wearable device 110 is not limited to headphones and eyeglasses, but can be any other suitable wearable device. The embodiments of this disclosure do not limit the type of wearable device.
[0046] In practical applications, image acquisition can be triggered in various ways. In some embodiments, the wearable device 110 can determine that it has received an image acquisition command in response to a predetermined operation (e.g., tapping, touching, long pressing, etc.) by the user 140. That is, the user 140 can directly operate the wearable device 110 to trigger taking a picture. Alternatively or additionally, the user 140 can control the wearable device 110 to take a picture via voice command. The wearable device 110 can determine that it has received an image acquisition command in response to detecting the voice command.
[0047] In some embodiments, user 140 may trigger an image acquisition operation via terminal device 120 or an attached device of terminal device 120. In response to the triggering of the image acquisition operation, terminal device 120 may send an image acquisition command to wearable device 110 based on the communication connection (e.g., Bluetooth or WIFI) between terminal device 120 and wearable device 110. Wearable device 110 may, in response to receiving the image acquisition command from terminal device 120, control multiple image acquisition devices 112 to acquire multiple first images. It should be understood that the above-described triggering methods for image acquisition operations are merely exemplary, and any appropriate method can be selected to trigger the image acquisition operation according to actual needs. The embodiments of this disclosure do not specifically limit this.
[0048] Returning to the combination process 200, in block 220, cropping is performed on the multiple first images to obtain multiple cropped first images. In some embodiments, the cropping of the first images can be implemented in the wearable device 110. For one of the multiple first images, the wearable device 110 can determine the region to be cropped in the first image (sometimes referred to herein as the first region). Then, the wearable device 110 can perform cropping on the region to be cropped in the first image to obtain the cropped first image. It is understood that the first image can be any one of the multiple first images, and the wearable device 110 can repeat the above process to obtain multiple cropped first images.
[0049] In some examples, the area to be cropped may include visual content formed by the wearer of the wearable device 110 (e.g., user 140) occluding the corresponding image collector 112. In this case, the area to be cropped may also be referred to as the "occluded area". Here, the wearer occluding the corresponding image collector 112 may include the wearer's body (e.g., face, hair, etc.) occluding the image collector 112, or it may include other objects associated with the wearer occluding the image collector 112, such as clothing worn by the wearer, accessories worn by the wearer, or items carried by the wearer (e.g., umbrella), etc.
[0050] As an example, region 414 in image 400A includes the visual content formed by the face occlusion image capture device 320 of user 140 (actually, the face image of user 140), and region 424 in image 400B includes the visual content formed by the face occlusion image capture device 330 of user 140. Wearable device 110 can determine region 414 as the region to be cropped in image 400A, and can determine region 424 as the region to be cropped in image 400B. Then, wearable device 110 can crop region 414 from image 400A, and wearable device 110 can also crop region 424 from image 400B.
[0051] Alternatively or additionally, the region to be cropped may also include multiple overlapping visual contents in the first image. In this case, the region to be cropped may also be referred to as the "overlapping region". As an example, combining Figure 4A and Figure 4B As shown, the visual content in region 412 and the visual content in region 422 are the overlapping visual content in images 400A and 400B. The wearable device 110 can crop region 412 from image 400A, or the wearable device 110 can crop region 422 from image 400B.
[0052] In some examples, cropping the first image may include cutting out a corresponding image region from the first image. This not only removes the visual content within the corresponding image region, but also results in the cropped first image excluding the corresponding image region, thus reducing the size of the cropped first image. Alternatively, cropping the first image can also be broadly understood as including removing visual content within the corresponding image region while retaining the corresponding image region. As an example, wearable device 110 may remove visual content from regions 412 and 414 of image 400A to obtain, for example... Figure 4C The cropped image 400C is shown. Wearable device 110 can remove visual content from region 424 of image 400B to obtain, for example... Figure 4D The cropped image shown is 400D.
[0053] In some embodiments, the wearable device 110 can use a trained machine learning model 150-1 to crop multiple first images to obtain multiple cropped first images. Specifically, the wearable device 110 can determine prompt word information for the machine learning model 150-1 based on the multiple first images. The wearable device 110 can obtain multiple cropped first images by providing the prompt word information to the machine learning model 150-1. Using the machine learning model 150-1 can improve the accuracy and processing efficiency of image cropping.
[0054] In some embodiments, cropping of the first image can also be implemented at the terminal device 120. After acquiring multiple first images, the wearable device 110 can send the multiple first images to the terminal device 120. After receiving the multiple first images from the wearable device 110, the terminal device 120 can crop the multiple first images to obtain cropped multiple first images. As an example, the terminal device 120 can determine the region to be cropped (e.g., occluded or overlapping regions) in each of the multiple first images based on predetermined rules. Then, the terminal device 120 can crop the corresponding region from each first image to obtain the cropped first image. As another example, a machine learning model 150-1 can be deployed at the terminal device 120. The terminal device 120 can use the machine learning model 150-1 to perform cropping on the multiple first images to obtain cropped multiple first images. It is understood that cropping of the first image can also be performed through the server 130. The embodiments of this disclosure are not limited in this respect.
[0055] In some embodiments, the wearable device 110 may perform a first cropping (also referred to as initial cropping or coarse cropping) on multiple first images to obtain multiple first images after the first cropping. The wearable device 110 may send the multiple first images after the first cropping to the terminal device 120. After the terminal device 120 receives the multiple first images after the first cropping from the wearable device 110, the terminal device 120 may perform a second cropping (also referred to as further cropping or fine cropping) on the multiple first images after the first cropping to obtain multiple first images after the second cropping.
[0056] In some examples, the computing power provided by wearable device 110 may be less than that provided by terminal device 120. In this case, wearable device 110 can use a first cropping strategy with relatively low computing power requirements to perform coarse cropping on multiple first images, obtaining multiple coarsely cropped first images. Wearable device 110 can then send the coarsely cropped first images to terminal device 120. Terminal device 120 can then use a second cropping strategy with relatively high computing power requirements to perform fine cropping on the multiple first images, obtaining multiple finely cropped first images. Thus, by cooperating with terminal device 120, wearable device 110 not only improves the cropping efficiency of the first images but also enhances the precision of the cropping.
[0057] Alternatively or additionally, wearable device 110 can determine the cropping region (e.g., occluded or overlapping region) of each first image based on predetermined rules. Wearable device 110 can perform coarse cropping on each first image to obtain a coarsely cropped first image. Wearable device 110 can send multiple coarsely cropped first images to terminal device 120. Terminal device 120 can use machine learning model 150-1 to perform fine cropping on the multiple coarsely cropped first images to obtain multiple finely cropped first images, thereby improving the cropping precision of the first images. It is understood that the above cropping method for the first image is merely exemplary. In practical application scenarios, any appropriate cropping method can be selected to crop the first image according to actual needs.
[0058] Combination Figure 2 As shown in box 230, a second image is generated by merging multiple cropped first images. The second image includes visual content corresponding to a combined field of view of the multiple first fields of view. In some examples, the combined field of view may include all or part of the field of view of the multiple first fields of view. In other examples, the combined field of view may include all or part of the field of view of the multiple first fields of view, as well as the field of view outside the multiple first fields of view.
[0059] In some embodiments, if multiple first images are cropped using the wearable device 110, after obtaining the cropped first images, the wearable device 110 can send the cropped first images to a terminal device 120 communicatively connected to the wearable device 110. The terminal device 120 can then merge the cropped first images to generate a second image. In some embodiments, if multiple first images are cropped using the terminal device 120, after obtaining the cropped first images, the terminal device 120 can directly merge the cropped first images to generate a second image. The terminal device 120 has relatively sufficient computing power resources; using the terminal device 120 to generate the second image is beneficial for improving the generation quality and efficiency of the second image.
[0060] In some embodiments, terminal device 120 can use a trained machine learning model 150-2 to merge multiple cropped first images to obtain a second image. In some examples, machine learning model 150-2 can be deployed locally on terminal device 120 or on server 130. If machine learning model 150-2 is deployed on server 130, terminal device 120 can send the multiple cropped first images to server 130. Server 130 can use machine learning model 150-2 to merge the multiple cropped first images to obtain the second image. Terminal device 120 can then receive the second image from server 130.
[0061] As an example, combined Figure 4C , Figure 4D and Figure 4E As shown, terminal device 120 can merge image 400C and image 400D to obtain the following result: Figure 4E The example image 400E (i.e., the second image) is shown. It is evident that image 400E includes the visual content from images 400A and 400B. It is understood that if the combined field of view includes multiple visual ranges outside the first field of view, the second image may include visual content outside the multiple first images. For example, machine learning model 150-2 can be used to determine the predicted visual content corresponding to the multiple visual ranges outside the first field of view based on the cropped multiple first images. It should also be noted that although the terminal device 120 or server 130 is used to merge the cropped multiple first images in the above example, if the wearable device 110 has sufficient computing power resources, it can also be used to merge the cropped multiple first images.
[0062] In some embodiments, the terminal device 120 may also present at least one of a plurality of first images or second images in an interactive interface with the user 140. For example, the terminal device 120 may be deployed with an application related to the wearable device 110, such as an application used to support human-computer interaction of the wearable device 110. After receiving a plurality of first images, the terminal device 120 may present the plurality of uncropped first images in the interactive interface of the application. After obtaining a second image, the terminal device 120 may also present the second image in the interactive interface.
[0063] In some embodiments, the terminal device 120 may also store at least one of a plurality of first images or second images in association with the user 140. As an example, the terminal device 120 may save a plurality of uncropped first and second images in its photo album. As another example, the terminal device 120 may utilize an application to support human-computer interaction with the wearable device 110. In this case, the terminal device 120 may save a plurality of uncropped first and second images in an application-related folder to facilitate the user 140's access to the first or second images through the application.
[0064] In this manner, in the embodiments of this disclosure, multiple images acquired by multiple image acquisition devices are cropped and merged to form an image corresponding to the combined field of view of the multiple image acquisition devices. This not only expands the field of view corresponding to the image but also, to a certain extent, repairs or completes visual content in the image (e.g., blurred, overlapping, or occluded visual content), thus improving image quality.
[0065] Figure 5A schematic diagram of an example architecture of a wearable device 110 according to some embodiments of the present disclosure is shown. Figure 5 As shown, the wearable device 110 includes a controller 510 and a plurality of image acquisition units 112. The plurality of image acquisition units 112 are configured to perform image acquisition under the control of the controller. The plurality of image acquisition units 112 may include image acquisition unit 112-1, image acquisition unit 112-2, ..., image acquisition unit 112-M, etc. The controller 510 is configured to perform the method described above.
[0066] Embodiments of this disclosure also provide corresponding apparatus for implementing the above methods or processes. Figure 6 A schematic structural block diagram of an example apparatus 600 for image processing according to certain embodiments of the present disclosure is shown. Apparatus 600 may be implemented as or included in a wearable device 110, a terminal device 120, or a server 130. Various modules / components in apparatus 600 may be implemented by hardware, software, firmware, or any combination thereof.
[0067] like Figure 6 As shown, the device 600 includes: an acquisition module 610 configured to acquire multiple first images by multiple image acquisition devices deployed at corresponding locations on the wearable device in response to an image acquisition command for the wearable device, each first image including visual content acquired under a first field of view corresponding to the corresponding image acquisition device; a cropping module 620 configured to crop the multiple first images to obtain multiple cropped first images; and a merging module 630 configured to generate a second image by merging the multiple cropped first images, the second image including visual content corresponding to a combined field of view of the multiple first fields of view.
[0068] In some embodiments, the cropping module 620 is further configured to: for a first image among a plurality of first images, determine a first region of the first image, the first region including visual content formed by the wearer of the wearable device occluding the corresponding image acquisition device, or at least one of the overlapping visual content among the plurality of first images; and perform cropping on the first region of the first image to obtain a cropped first image.
[0069] In some embodiments, the device 600 is implemented as or included in a terminal device that is communicatively connected to a wearable device, and the cropping module is further configured to: receive a plurality of first images from the wearable device; and crop the plurality of first images through the terminal device to obtain a plurality of cropped first images.
[0070] In some embodiments, the cropping module 620 is further configured to: perform cropping on a plurality of first images using a trained first machine learning model to obtain a plurality of cropped first images.
[0071] In some embodiments, the device 600 is implemented as or included in a terminal device that is communicatively connected to a wearable device, and the merging module 630 is further configured to generate a second image by merging multiple cropped first images through the terminal device.
[0072] In some embodiments, the merging module 630 is further configured to: merge multiple cropped first images using a trained second machine learning model to obtain a second image.
[0073] In some embodiments, the wearable device includes a first earphone and a second earphone, and the plurality of image acquisition devices include at least a first image acquisition device deployed on the first earphone and a second image acquisition device deployed on the second earphone, and the acquisition module 610 is further configured to: in response to an image acquisition command, acquire a pair of first images by the first image acquisition device and the second image acquisition device.
[0074] In some embodiments, the device 600 is implemented as or included in a terminal device associated with a wearable device, and the device 600 further includes at least one of the following: a presentation module configured to present at least one of a plurality of first images or second images in an interactive interface with a user, or a storage module configured to store at least one of the plurality of first images or second images in association with a user.
[0075] The units and / or modules included in device 600 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units and / or modules can be implemented using software and / or firmware, such as machine-executable instructions stored on a storage medium. In addition to or as an alternative to machine-executable instructions, some or all of the units and / or modules in device 600 can be implemented at least partially by one or more hardware logic components. By way of example and not limitation, exemplary types of hardware logic components that can be used include field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.
[0076] Figure 7 A block diagram of an electronic device 700 in which one or more embodiments of the present disclosure may be implemented is shown. It should be understood that... Figure 7 The electronic device 700 shown is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein. Figure 7 The illustrated electronic device 700 may include or be implemented as Figure 1 Wearable device 110, terminal device 120 or server 130, or Figure 6 Device 600.
[0077] like Figure 7 As shown, electronic device 700 is in the form of a general-purpose electronic device. Components of electronic device 700 may include, but are not limited to, one or more processors or processing units 710, memory 720, storage device 730, one or more communication units 740, one or more input devices 750, and one or more output devices 760. Processor 710 may be a physical or virtual processor and is capable of performing various processes according to computer-executable instructions stored in memory 720. In a multiprocessor system, multiple processors execute computer-executable instructions in parallel to improve the parallel processing capability of electronic device 700.
[0078] Electronic device 700 typically includes multiple computer storage media. Such media can be any accessible media that is accessible to electronic device 700, including but not limited to volatile and non-volatile media, removable and non-removable media. Memory 720 can be volatile memory (e.g., registers, cache, random access memory (RAM)), non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. Storage device 730 can be removable or non-removable media and can include machine-readable media, such as flash drives, disks, or any other media that can be used to store information and / or data and can be accessed within electronic device 700.
[0079] Electronic device 700 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not explicitly stated... Figure 7 As shown, disk drives for reading from or writing to removable, non-volatile disks (e.g., "floppy disks") and optical disk drives for reading from or writing to removable, non-volatile optical disks can be provided. In these cases, each drive can be connected to a bus (not shown) via one or more data media interfaces. Memory 720 may include computer program product 725 having one or more computer-executable instruction modules configured to perform various methods or actions of various embodiments of this disclosure.
[0080] The communication unit 740 enables communication with other electronic devices via a communication medium. Additionally, the functionality of the components of the electronic device 700 can be implemented using a single computing cluster or multiple computing machines capable of communicating via communication connections. Therefore, the electronic device 700 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network node.
[0081] Input device 750 can be one or more input devices, such as a mouse, keyboard, trackball, etc. Output device 760 can be one or more output devices, such as a monitor, speaker, printer, etc. Electronic device 700 can also communicate with one or more external devices (not shown) via communication unit 740 as needed. These external devices include storage devices, display devices, etc., and can communicate with one or more devices that enable user interaction with electronic device 700, or with any device that enables electronic device 700 to communicate with one or more other electronic devices (e.g., network card, modem, etc.). Such communication can be performed via input / output (I / O) interface (not shown).
[0082] According to an exemplary implementation of this disclosure, a computer-readable storage medium is provided that stores computer-executable instructions thereon, wherein the computer-executable instructions are executed by a processor to implement the methods described above. According to an exemplary implementation of this disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable storage medium and includes computer-executable instructions, which are executed by a processor to implement the methods described above.
[0083] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-executable instructions.
[0084] These computer-executable instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-executable instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable storage medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0085] Computer-executable instructions can be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions that execute on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0086] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer-executable instruction products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, executable instruction, or portion of instructions, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0087] Various implementations of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is chosen to best explain the principles, practical applications, or improvements to technology in the market, or to enable others skilled in the art to understand the various implementations disclosed herein.
Claims
1. An image processing method, comprising: In response to an image acquisition command for a wearable device, multiple first images are acquired by multiple image acquisition devices deployed at corresponding locations on the wearable device, each first image including visual content acquired under a first field of view corresponding to the respective image acquisition device; The plurality of first images are cropped to obtain a plurality of cropped first images; as well as A second image is generated by merging multiple cropped first images, the second image including visual content corresponding to a combined field of view of multiple first fields of view.
2. The method of claim 1, wherein cropping the plurality of first images comprises: For the first image among the plurality of first images, A first region of the first image is determined, the first region including visual content formed by the wearer of the wearable device occluding the corresponding image collector, or at least one of the visual content overlapping in the plurality of first images; as well as The first region in the first image is cropped to obtain the cropped first image.
3. The method of claim 1, wherein the method is implemented in a terminal device communicatively connected to the wearable device, and wherein cropping the plurality of first images comprises: Receive the plurality of first images from the wearable device; as well as Multiple cropped first images are obtained by cropping the multiple first images using the terminal device.
4. The method of claim 1, wherein cropping the plurality of first images comprises: The trained first machine learning model is used to perform cropping on the plurality of first images to obtain the plurality of cropped first images.
5. The method of claim 1, wherein the method is implemented in a terminal device communicatively connected to the wearable device, and wherein generating the second image comprises: The second image is generated by merging the cropped first images using the terminal device.
6. The method of claim 1, wherein generating the second image comprises: The second image is obtained by merging the cropped first images using a trained second machine learning model.
7. The method of claim 1, wherein the wearable device comprises a first earphone and a second earphone, and the plurality of image acquisition devices comprises at least a first image acquisition device deployed on the first earphone and a second image acquisition device deployed on the second earphone, and The multiple first images acquired by the multiple image acquisition devices include: In response to the image acquisition command, a pair of first images are acquired by the first image acquisition device and the second image acquisition device.
8. The method of claim 1, wherein the method is implemented in a terminal device associated with the wearable device, and the method further comprises at least one of the following: Presenting at least one of the plurality of first images or second images in the user interface, or At least one of the plurality of first images or second images is stored in association with the user.
9. A wearable device, comprising: The controller is configured to perform the method according to any one of claims 1 to 8; as well as Multiple image acquisition devices are configured to perform image acquisition under the control of the controller.
10. An apparatus for image processing, comprising: The acquisition module is configured to acquire multiple first images by multiple image acquisition devices deployed at corresponding locations on the wearable device in response to an image acquisition command for the wearable device, each first image including visual content acquired under a first field of view corresponding to the respective image acquisition device; The cropping module is configured to perform cropping on the plurality of first images to obtain a plurality of cropped first images; as well as The merging module is configured to generate a second image by merging multiple cropped first images, the second image including visual content corresponding to a combined field of view of the multiple first fields of view.
11. An electronic device, comprising: At least one processor; as well as At least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor, the instructions causing the electronic device to perform the method according to any one of claims 1 to 8 when executed by the at least one processor.
12. A computer-readable storage medium having stored thereon computer-executable instructions that can be executed by a processor to implement the method according to any one of claims 1 to 8.
13. A computer program product comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the method according to any one of claims 1 to 8.
