Search

CN-121985084-A - Earphone control method, earphone and storage medium

CN121985084ACN 121985084 ACN121985084 ACN 121985084ACN-121985084-A

Abstract

The application discloses a control method of an earphone, the earphone and a storage medium, which relate to the technical field of communication and are applied to the earphone, wherein the earphone comprises a video module; and if the face shielding area meets the preset shielding condition, outputting shielding prompt information of the earphone. Through the image acquisition and the shielding area judgment logic of the video module, the linkage of shielding state detection and response process triggering is realized, so that the earphone can output shielding prompt according to the shielding condition of the actual face of the user, shielding is not found after shooting is completed, and shooting experience is improved.

Inventors

  • ZENG KAI
  • AN KANG
  • ZHANG HAIHONG

Assignees

  • 歌尔科技有限公司

Dates

Publication Date
20260505
Application Date
20260105

Claims (10)

  1. 1. The control method of the earphone is characterized by being applied to the earphone, wherein the earphone is provided with a video module, and the control method of the earphone comprises the following steps: Responding to an image acquisition process for detecting the face shielding state, and determining a face shielding area according to the video image acquired by the video module; and if the face shielding area meets the preset shielding condition, outputting shielding prompt information of the earphone.
  2. 2. The method for controlling headphones as recited in claim 1, wherein the step of determining the face shielding area from the video image captured by the video module comprises: determining a detection direction corresponding to an earphone unit where the video module is located; And if the video image has a shielding region, performing skin color region segmentation and connected region detection on the video image based on the detection direction to obtain the face shielding region of the video image.
  3. 3. The method for controlling headphones as recited in claim 2, wherein if there is an occlusion region in the video image, performing skin color region segmentation and connected region detection on the video image based on the detection direction, and obtaining the face occlusion region of the video image comprises: extracting a skin tone mask of the video image; detecting pixel points of the skin tone mask line by taking the detection direction as a reference to obtain initial pixel points; and executing an area generation algorithm by taking the initial pixel points as seed points to obtain the face shielding area.
  4. 4. The method for controlling an earphone according to claim 1, wherein before the step of determining a face shielding area from the video image captured by the video module in response to the image capturing process for detecting the face shielding state, the method for controlling an earphone further comprises: If the preset image acquisition conditions are met, triggering the image acquisition process: Wherein, the preset image acquisition conditions at least comprise: detecting that an earphone unit of the earphone is in a wearing state; Receiving a voice instruction for image acquisition; Receiving a starting instruction of a client; And receiving an image acquisition instruction sent by the client.
  5. 5. The method for controlling an earphone according to claim 1, wherein the step of outputting the occlusion prompt information of the earphone if the face occlusion area satisfies a preset occlusion condition comprises: if the face shielding area meets a preset shielding condition, determining a shielding position corresponding to the face shielding area; And outputting shielding prompt information and shielding range adjustment information based on the earphone unit corresponding to the shielding position.
  6. 6. The method for controlling an earphone according to any one of claims 1 to 5, wherein, before the step of outputting the occlusion prompt information of the earphone if the face occlusion area satisfies a preset occlusion condition, the method for controlling an earphone further comprises: acquiring the occupation area of the face shielding area in the video image and/or acquiring the image overlapping range between earphone units of the earphone; And if the occupied area is larger than a preset area and/or the face shielding area is larger than the image overlapping range, judging that the face shielding area meets the preset shielding condition.
  7. 7. The method for controlling an earphone according to claim 1, wherein after the step of determining a face shielding area from the video image captured by the video module in response to the image capturing process for detecting the face shielding state, the method for controlling an earphone further comprises: If the face shielding area meets a preset shielding condition, acquiring an enlarged image acquired by the video module based on a preset magnification; And outputting shielding prompt information of the earphone if the face shielding area in the amplified image meets the target shielding condition, wherein if the face shielding area in the amplified image does not meet the target shielding condition, the preset magnification is determined to be the current image acquisition magnification of the earphone.
  8. 8. The method for controlling an earphone according to claim 1, wherein the step of determining the face shielding area from the video image captured by the video module in response to the image capturing process for detecting the face shielding state comprises: Responding to an image acquisition process for detecting a face shielding state, and acquiring wearing history information of the earphone, wherein the wearing history information at least comprises shielding probability and shielding range of an earphone unit; updating an occlusion detection threshold of the earphone unit according to the occlusion probability and the occlusion range; and if the detected shielding area in the video image is larger than the shielding detection threshold, determining the face shielding area based on the skin color area segmentation and the connected area detection mode.
  9. 9. An earphone comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the earphone control method according to any one of claims 1 to 8.
  10. 10. A storage medium, characterized in that the storage medium is a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method of controlling a headset according to any one of claims 1 to 8.

Description

Earphone control method, earphone and storage medium Technical Field The present application relates to the field of communications technologies, and in particular, to a method for controlling an earphone, and a storage medium. Background The earphone with the camera can be used for photographing and video recording besides daily music playing and call processing, and is suitable for multiple requirements such as daily debris recording, outdoor exploration, real-time video sharing and the like. The earphone is worn and needs to be attached to the ear area, so that the face area of a user is inevitably easy to shoot when shooting, and the user can usually find shooting shielding problems when looking at a shot image or video after shooting is finished, so that shooting experience is affected. The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present application and is not intended to represent an admission that the foregoing is prior art. Disclosure of Invention The application mainly aims to provide a control method of an earphone, the earphone and a storage medium, and aims to solve the technical problem that shielding is found after image shooting is completed and shooting experience is affected. In order to achieve the above object, the present application provides a method for controlling an earphone, which is applied to an earphone, wherein the earphone is provided with a video module, and the method comprises: Responding to an image acquisition process for detecting the face shielding state, and determining a face shielding area according to the video image acquired by the video module; and if the face shielding area meets the preset shielding condition, outputting shielding prompt information of the earphone. In one embodiment, the step of determining the face shielding area according to the video image acquired by the video module includes: determining a detection direction corresponding to an earphone unit where the video module is located; And if the video image has a shielding region, performing skin color region segmentation and connected region detection on the video image based on the detection direction to obtain the face shielding region of the video image. In an embodiment, if there is an occlusion region in the video image, performing skin color region segmentation and connected region detection on the video image based on the detection direction, and obtaining the face occlusion region of the video image includes: extracting a skin tone mask of the video image; detecting pixel points of the skin tone mask line by taking the detection direction as a reference to obtain initial pixel points; and executing an area generation algorithm by taking the initial pixel points as seed points to obtain the face shielding area. In an embodiment, before the step of determining the face shielding area according to the video image acquired by the video module, the method for controlling the earphone further includes: If the preset image acquisition conditions are met, triggering the image acquisition process: Wherein, the preset image acquisition conditions at least comprise: detecting that an earphone unit of the earphone is in a wearing state; Receiving a voice instruction for image acquisition; Receiving a starting instruction of a client; And receiving an image acquisition instruction sent by the client. In an embodiment, the step of outputting the shielding prompt information of the earphone if the face shielding area meets a preset shielding condition includes: if the face shielding area meets a preset shielding condition, determining a shielding position corresponding to the face shielding area; And outputting shielding prompt information and shielding range adjustment information based on the earphone unit corresponding to the shielding position. In an embodiment, before the step of outputting the occlusion prompt information of the earphone if the face occlusion area meets a preset occlusion condition, the method for controlling the earphone further includes: acquiring the occupation area of the face shielding area in the video image and/or acquiring the image overlapping range between earphone units of the earphone; And if the occupied area is larger than a preset area and/or the face shielding area is larger than the image overlapping range, judging that the face shielding area meets the preset shielding condition. In an embodiment, after the step of determining the face shielding area according to the video image acquired by the video module in response to the image acquisition process of detecting the face shielding state, the method for controlling the earphone further includes: If the face shielding area meets a preset shielding condition, acquiring an enlarged image acquired by the video module based on a preset magnification; And outputting shielding prompt information of the earphone if the face shielding area in the amplifi