Method and apparatus for detecting color of dental feature, electronic device, and storage medium
By acquiring and correcting the color values of oral features and reference objects in tooth color detection, the problem of inaccurate tooth color detection is solved, achieving higher detection accuracy and confidence.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- GUANGZHOU STARS PULSE CO LTD
- Filing Date
- 2025-01-20
- Publication Date
- 2026-07-23
AI Technical Summary
Current tooth color detection technology is not accurate enough, and the confidence level of the test results is not high.
By acquiring oral cavity features and reference objects in the target image, an electronic device is used to determine the first color value of the oral cavity features and the second color value of the reference objects. The first color value is then corrected based on the second color value to obtain the target color information of the oral cavity features.
It improves the accuracy and confidence of tooth color detection and reduces the impact of factors such as ambient light on the results.
Smart Images

Figure CN2025073382_23072026_PF_FP_ABST
Abstract
Description
Methods, devices, electronic equipment, and storage media for color detection of oral features Technical Field
[0001] This application relates to the field of oral care technology, specifically to a method, device, electronic device, and storage medium for detecting the color of oral features. Background Technology
[0002] As people pay increasing attention to oral health and aesthetics, the demand for tooth color testing is growing. Tooth color not only affects appearance but is also closely related to oral health. Currently, tooth color testing suffers from inaccuracies and low reliability of results. Summary of the Invention
[0003] This application discloses a method, apparatus, electronic device, and storage medium for color detection of oral features, which improves the accuracy of color detection of oral features and increases the confidence of the detection results.
[0004] This application discloses a color detection method for oral cavity features, applied to an electronic device, the method comprising:
[0005] Acquire a target image, which includes oral cavity features and reference objects;
[0006] Determine the first color value corresponding to the oral cavity feature and the second color value corresponding to the reference object;
[0007] The first color value is corrected based on the second color value to obtain the target color information corresponding to the oral cavity feature.
[0008] This application discloses a color detection method for oral cavity features, the method comprising:
[0009] An oral care device acquires a target image captured by a camera, the target image including oral features and reference objects; the oral care device includes a care component, a handle, and a camera, the camera being mounted on the handle, the care component being within the field of view of the camera, and the reference objects including at least a portion of the care component;
[0010] The oral care device sends the target image to the terminal device;
[0011] The terminal device determines the first color value corresponding to the oral cavity feature and the second color value corresponding to the reference object based on the target image;
[0012] The terminal device corrects the first color value based on the second color value to obtain the target color information corresponding to the oral cavity feature.
[0013] The embodiment of the present application discloses a color detection device of oral features, applied to an electronic device, the device comprises:
[0014] An image acquisition module is configured to acquire a target image, wherein the target image comprises oral features and a reference object.
[0015] A color determination module is configured to determine a first color value corresponding to the oral features and a second color value corresponding to the reference object according to the target image.
[0016] A correction module is configured to correct the first color value according to the second color value to obtain target color information corresponding to the oral features.
[0017] The embodiment of the present application discloses a color detection system of oral features, comprising an oral care device and a terminal device, wherein the oral care device comprises a care piece, a handle and a camera, the camera is arranged on the handle, and the care piece is within the visual angle range of the camera.
[0018] The oral care device is configured to acquire a target image collected by the camera, wherein the target image comprises oral features and a reference object, the reference object comprises at least part of the care piece, and the target image is sent to the terminal device.
[0019] The terminal device is configured to determine a first color value corresponding to the oral features and a second color value corresponding to the reference object according to the target image, and correct the first color value according to the second color value to obtain target color information corresponding to the oral features.
[0020] The embodiment of the present application discloses an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer program is executed by the processor to make the processor realize the method of any one of the above embodiments.
[0021] The embodiment of the present application discloses a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to make the processor realize the method of any one of the above embodiments.
[0022] The embodiment of the present application discloses a computer program product, comprising a computer program, and the computer program is executed by a processor to make the processor realize the method of any one of the above embodiments.
[0023] The embodiments of this application disclose a method, apparatus, system, electronic device, and storage medium for color detection of oral features. The electronic device acquires a target image including oral features and a reference object, determines a first color value corresponding to the oral feature and a second color value corresponding to the reference object, and corrects the first color value based on the second color value to obtain the target color information corresponding to the oral feature. By acquiring a target image including oral features and a reference object, the electronic device can correct the first color value based on the second color value corresponding to the reference object, which can reduce the adverse effects of ambient light and other factors on the color of oral features in the target image, thus improving the accuracy of color detection of oral features. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the 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.
[0025] Figure 1 shows an application scenario of a color detection method for oral features in one embodiment;
[0026] Figure 2 is a flowchart of a color detection method for oral features in one embodiment;
[0027] Figure 3 is a schematic diagram of the target image in one embodiment;
[0028] Figure 4 is a schematic diagram of the structure of an oral care device in one embodiment;
[0029] Figure 5 is a flowchart of an electronic device reminding a user to replace the toothbrush head in one embodiment;
[0030] Figure 6 is a flowchart of a color detection method for oral features in another embodiment;
[0031] Figure 7A is a schematic diagram of the image acquisition interface in one embodiment;
[0032] Figure 7B is a schematic diagram of the image acquisition interface in another embodiment;
[0033] Figure 7C is a schematic diagram of the image acquisition interface in another embodiment;
[0034] Figure 8 is a flowchart of determining the first color value corresponding to the oral cavity feature and the second color value corresponding to the reference object in one embodiment;
[0035] Figure 9A is a schematic diagram of the division of the tooth region in one embodiment;
[0036] Figure 9B is a schematic diagram of the division of the tooth region in another embodiment;
[0037] Figure 9C is a schematic diagram of the division of the tooth region in another embodiment;
[0038] Figure 10A is a schematic diagram illustrating the teeth whitening levels in one embodiment;
[0039] Figure 10B is a schematic diagram illustrating the teeth whitening levels in another embodiment;
[0040] Figure 11 is a flowchart of a color detection method for oral features in another embodiment;
[0041] Figure 12 is a flowchart of obtaining the standard color value corresponding to the reference object in one embodiment;
[0042] Figure 13 is a schematic diagram of the interface showing the simulated effect image in one embodiment;
[0043] Figure 14 is a flowchart of a color detection method for oral features in another embodiment;
[0044] Figure 15 is a block diagram of a color detection device for oral features in one embodiment;
[0045] Figure 16 is a structural block diagram of an electronic device in one embodiment. Detailed Implementation
[0046] 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 skilled in the art without creative effort are within the scope of protection of this application.
[0047] It should be noted that the terms "comprising" and "having," and any variations thereof, in the embodiments and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the steps or units listed, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.
[0048] It is understood that the terms "first," "second," etc., used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of this application, a first color value may be referred to as a second color value, and similarly, a second color value may be referred to as a first color value. Both the first color value and the second color value are color values, but they are not the same color value. The term "multiple" as used in this application refers to two or more. The term "and / or" as used in this application refers to one of the solutions, or any combination of multiple solutions.
[0049] Figure 1 illustrates an application scenario of a color detection method for oral features in one embodiment. As shown in Figure 1, this color detection method for oral features can be applied to electronic devices, including but not limited to oral care devices 110 and terminal devices 120.
[0050] The oral care device 110 may include, but is not limited to, electric toothbrushes, water flossers, etc. The oral care device 110 may include a brush head 112 and a handle 114, which are detachably connected. Taking an electric toothbrush as an example, the brush head 112 can be a brush head, which may consist of a handle and bristles.
[0051] In some embodiments, a motor may be provided in the handle 114 of the oral care device 110. During the operation of the oral care device 110, the motor can be controlled to run, thereby driving the care component 112 to move and perform oral care operations, thus realizing the oral care function of the oral care device 110. For example, the oral care device 110 is an electric toothbrush. The electric toothbrush can control the motor to run, thereby driving the brush head to vibrate and / or swing, and cleaning the oral cavity.
[0052] In some embodiments, the oral care device 110 may include a camera that may be mounted on the handle 114, the camera being able to capture a target image for color detection.
[0053] In some embodiments, the oral care device 110 may include a display device 116, which may be disposed on the handle 114, and the display device 116 may include, but is not limited to, a display screen.
[0054] Terminal device 120 may include, but is not limited to, mobile phones, wearable devices (such as smart glasses, smartwatches, etc.), tablet computers, etc. Terminal device 120 may also be a control terminal used in conjunction with oral care device 110.
[0055] Optionally, the terminal device 120 may establish a communication connection with the oral care device 110, which may include, but is not limited to, one or more of Bluetooth communication connection, Wi-Fi communication connection, radio frequency communication connection, cellular network connection, etc.
[0056] In some embodiments, the terminal device 120 may include a camera that can be used to acquire a target image for color detection.
[0057] In related technologies, electronic devices identify the color of oral features such as teeth by capturing images through cameras. However, due to the influence of factors such as ambient light during image capture, the color of oral features in the image may differ significantly from the actual color of the oral features, resulting in inaccurate color detection of oral features based on the captured images.
[0058] In this embodiment, an electronic device (such as an oral care device 110 or a terminal device 120) can acquire a target image, which may include oral features and a reference object. The electronic device can determine a first color value corresponding to the oral features and a second color value corresponding to the reference object based on the target image, and can correct the first color value based on the second color value to obtain target color information corresponding to the oral features.
[0059] In some embodiments, the electronic device can use a standard color value corresponding to a reference object as a benchmark to determine the distance between the second color value of the reference object in the target image and the standard color value. This distance can reflect the difference between the color of the reference object in the target image and the true color of the reference object, and thus can also reflect the difference between the color of the oral cavity feature in the target image and the true color of the oral cavity feature. The electronic device can correct the first color value based on this distance to obtain a corrected color value, thereby obtaining the target color information corresponding to the oral cavity feature.
[0060] By using the second color value corresponding to the reference object to correct the first color value, the adverse effects of factors such as ambient light on the color of oral cavity features in the target image can be reduced, thereby improving the accuracy of color detection of oral cavity features.
[0061] As shown in Figure 2, in one embodiment, a color detection method for oral cavity features is provided, which can be applied to the above-mentioned electronic device. The method may include the following steps:
[0062] Step 210: Obtain the target image, which includes oral cavity features and reference objects.
[0063] In some embodiments, when the electronic device triggers a color detection function, a target image can be acquired for color detection. This color detection function may refer to the function of detecting the color of oral features, which can be parts of the oral cavity that affect aesthetics and / or oral health. For example, oral features may include, but are not limited to, one or more of teeth, gums, and tongue. By detecting the color of oral features such as teeth, gums, and tongue, users can better understand the aesthetics and / or oral health of their mouths, thus meeting their diverse needs.
[0064] Electronic devices can capture real-time target images via cameras. These target images can also be images pre-stored in the electronic device or the cloud. The electronic device can retrieve the pre-stored target images from the memory or the cloud.
[0065] The target image may include oral cavity features and a reference object. The reference object may refer to an object used as a reference for color detection of oral cavity features. The reference object may have characteristics such as being easy to obtain, having relatively simple colors, and / or being easy to identify.
[0066] For example, FIG3 is a schematic diagram of a target image in one embodiment. As shown in FIG3, the target image 300 may include oral cavity features 310 and reference objects 320. For example, oral cavity features 310 may be teeth, and reference objects 320 may be the head of a toothbrush.
[0067] In some embodiments, the reference object may be at least a portion of an oral care product. This oral care product may be an electronic oral care device or a non-electronic product that assists the user in oral care. For example, the oral care product may include, but is not limited to, one or more of oral care devices, toothpaste, mouthwash, mouthwash cups, and dental floss. Using at least a portion of the oral care product as a reference object in the context of oral care is more convenient and efficient, allowing the user to perform color detection of oral features at any time during oral care, thus improving operational convenience.
[0068] When the reference object is an electronic type of oral care device, and the electronic device is a terminal device (such as a mobile phone, tablet computer, central control device, smart home device, testing device, etc.) that can establish a communication connection with the oral care device, the terminal device uses at least a part of the oral care device as a reference object, and the oral care device can establish a communication connection with the electronic device (i.e., the terminal device) and transmit data with the electronic device.
[0069] When a terminal device performs color detection on oral features, it can transmit data through a communication connection with an oral care device to acquire information from the device, such as color information, thereby improving the accuracy of color detection. Alternatively, after color detection of oral features, the terminal device can generate an oral care plan based on the target color information corresponding to the oral features and transmit this plan to the oral care device. When at least a portion of the oral care device is used as a reference, the device can be activated and a communication connection established with the terminal device. This allows data transmission between the two devices, as well as color detection of oral features, to occur simultaneously, improving the timeliness of information interaction.
[0070] In some embodiments, the reference object may be at least a portion of an oral care product that can be used less than a target number of times. The number of times an oral care product can be used refers to the number of times it can be used within its service life. If the number of uses of an oral care product is less than the target number, it indicates that the oral care product is a product with limited uses; that is, the reference object has a limited service life and is used within a limited number of times or a limited time. It is a consumable item or consumable that is discarded after a single use or replaced periodically. Exemplarily, the oral care product may be a component of an oral care device (e.g., the brush head of an electric toothbrush), toothpaste (e.g., the toothpaste tube, toothpaste cap, etc.), mouthwash (e.g., the mouthwash bottle cap), dental floss (e.g., the dental floss handle), etc., but is not limited to these.
[0071] It should be noted that the recommended number of uses may vary depending on the oral care product. The target number of uses may differ depending on the product type; different oral care products may have the same or different target number of uses, as they have different usage cycles related to their specific characteristics. This can be determined through the product instructions or recommendations provided with the oral care product; no specific limit is set here.
[0072] Since oral care products are consumables with a limited number of uses, users will replace them regularly. This reduces the likelihood of the product's true color changing due to prolonged use, ensuring the accuracy of color detection of oral features by using at least a portion of the product as a reference.
[0073] In some embodiments, at least a portion of the reference object may be a single color, and / or the reference object may include a marking feature.
[0074] Optionally, at least a portion of the reference object may be a single color, including but not limited to white, pink, gray, blue, etc. Since at least a portion of the reference object is a single color, the electronic device can identify this single color through the target image and correct the color of the oral cavity features based on this single color, thereby improving the accuracy of color detection of oral cavity features.
[0075] Furthermore, in the reference object, the area corresponding to the single color portion can be greater than the area threshold, thereby ensuring that the area of the single color is large, reducing the difficulty of color detection by electronic devices, and improving the accuracy and efficiency of color detection of oral features by electronic devices.
[0076] Optionally, the reference object may include a marker feature, which refers to a feature that can be accurately identified by the electronic device. This marker feature may include, but is not limited to, one or more of the following: a marker pattern, a marker shape, marker text, or the object's form. By recognizing the marker feature of the reference object, the electronic device can accurately identify the reference object, or determine that the reference object has a standard color for comparison. The marker feature can be linked to the standard color, thereby ensuring the accuracy of subsequent color detection of oral features.
[0077] In some implementations, the marker features are also used to characterize whether the reference object is a target reference object, so as to more accurately convey to the user whether the detection result is accurate. When the identified reference object does not include the marker features, but the identified color is roughly similar to the pre-stored standard color, it can also be considered that the reference object has a standard color, and thus the oral cavity features are detected based on the reference object. Optionally, the electronic device can output a prompt message, which can be used to inform the user that the reference object does not meet the requirements, the color detection result is for reference only, and the color detection result may be inaccurate.
[0078] Because the color detection function for oral features cannot strictly limit the reference object used by the user to a pre-defined target, it's impossible to avoid the possibility that the user might use other products as the reference object. For example, when the reference object is a care device's handle, the care device and the device's handle are interchangeable. Users might use non-original care devices during oral care, which typically lack the original device's markings. However, these non-original care devices can still be used as reference objects for color detection of oral features, thus ensuring the normal operation of the color detection function in more scenarios. The electronic device's output prompts can alert users to non-standard reference objects and inaccurate detection results, allowing them to better understand the detection process.
[0079] Step 220: Based on the target image, determine the first color value corresponding to the oral cavity features and the second color value corresponding to the reference object.
[0080] After acquiring a target image, the electronic device can identify the target image to determine the first color value corresponding to the oral cavity feature and the second color value corresponding to the reference object. The first color value corresponding to the oral cavity feature refers to the color value of the oral cavity feature in the target image; the second color value corresponding to the reference object refers to the color value of the reference object in the target image.
[0081] For example, the first color value and the second color value can be represented using color spaces such as RGB (red-green-blue) and YUV (lightness-chrominance), but are not limited to these.
[0082] In one implementation, the electronic device can determine a first image region corresponding to oral cavity features and a second image region corresponding to a reference object in a target image. It can determine a first color value corresponding to the oral cavity features based on the pixel values of each pixel in the first image region, and determine a second color value corresponding to the reference object based on the pixel values of each pixel in the second image region.
[0083] Optionally, if at least a portion of the reference object is a single color, then the second color value can be the color value of at least a portion of the reference object in the target image.
[0084] Step 230: Correct the first color value according to the second color value to obtain the target color information corresponding to the oral cavity features.
[0085] The electronic device can use the second color value corresponding to the reference object as a basis to correct the first color value corresponding to the oral cavity feature, thereby obtaining the target color information corresponding to the oral cavity feature. This target color information can be the color detection result obtained after color detection of the oral cavity feature.
[0086] In some embodiments, the reference object can be a pre-selected oral care product. The electronic device can pre-store the standard color value corresponding to the reference object, which may refer to the actual color of the reference object. The standard color value corresponding to the reference object can be used as a benchmark to determine the distance between the second color value of the reference object in the target image and the standard color value. This distance reflects the difference between the color of the reference object in the target image and its actual color, and thus also reflects the difference between the color of the oral cavity feature in the target image and its actual color. The electronic device can correct the first color value based on this distance to obtain the corrected color value, thereby obtaining the target color information corresponding to the oral cavity feature.
[0087] In some embodiments, the electronic device may pre-build a color detection model, and input the first color value corresponding to the oral cavity feature and the second color value corresponding to the reference object into the color detection model. The color detection model may correct the first color value corresponding to the oral cavity feature based on the second color value corresponding to the reference object, and output the target color information corresponding to the oral cavity feature.
[0088] Optionally, the electronic device can also input the target image into the color detection model. This model determines a first color value corresponding to the oral cavity features in the target image and a second color value corresponding to a reference object. It then corrects the first color value based on the second color value and outputs the target color information corresponding to the oral cavity features. The color detection model can be learned from multiple sample image pairs. Each sample image pair may include a first sample image and a second sample image. The first sample image can be an image containing oral cavity features and a reference object, captured by a camera in different environments. The second sample image can be an image obtained after color adjustment processing of the first sample image. The colors of the oral cavity features and the reference object in the second sample image are very close to the true colors. The color detection model has the ability to accurately detect the true colors corresponding to oral cavity features based on images captured in different environments.
[0089] It should be noted that the model architecture of the color detection model is not limited here. For example, the oral cavity detection model can be a deep neural network, convolutional neural network, random forest, long short-term memory network, etc., but is not limited to these. Electronic devices can improve the accuracy of the detected target color information by detecting the target color information corresponding to oral cavity features through the color detection model.
[0090] Optionally, the target color information may include the corrected first color value and / or the target color level.
[0091] Multiple color levels can be preset, each with a different range of color values. These color levels can be set according to actual needs; for example, they can be set according to color levels defined in dentistry, flexibly set according to user needs, or based on empirical values. For instance, gum color can be divided into multiple color levels, which can be based on the health of the gums, with different color levels representing different gum health conditions.
[0092] The electronic device corrects the first color value corresponding to the oral cavity features. After obtaining the corrected first color value, it compares this corrected first color value with the color value range corresponding to each pre-set color level, and determines the target color level corresponding to the color value range in which the corrected first color value lies. The electronic device can output this target color level, allowing users to more intuitively understand the specific color of the oral cavity features, as well as the aesthetics and / or oral health status, thus improving the user experience.
[0093] In this embodiment of the application, by acquiring a target image including oral cavity features and a reference object, the first color value can be corrected according to the second color value corresponding to the reference object. This can reduce the adverse effects of factors such as ambient light on the color of oral cavity features in the target image and improve the accuracy of color detection of oral cavity features.
[0094] In some embodiments, the reference object may be at least a portion of an oral care product, which may include an oral care device; that is, the reference object may be at least a portion of the oral care device. Further, the oral care device includes a care piece and a handle, and the reference object may include at least a portion of the care piece and / or at least a portion of the handle.
[0095] In users' oral care scenarios, oral care devices are usually an indispensable part, and their colors are typically quite simple. Therefore, at least a portion of the oral care device can be used as a reference for color detection of oral features. This allows for color detection of oral features while the user is using the device, making the color detection function more convenient and improving the user experience. Furthermore, since users don't change their oral care devices too frequently, the accuracy of the reference determined by the electronic device can be improved, thereby enhancing the accuracy of color detection of oral features.
[0096] Furthermore, at least a portion of the brush head may be a single color. After the electronic device acquires a target image containing the brush head and oral cavity features, it can identify the target image, determine the second color value (such as the color value of the single color) corresponding to the brush head and the first color value corresponding to the oral cavity features, and correct the first color value corresponding to the oral cavity features based on the second color value corresponding to the brush head, thereby obtaining accurate target color information corresponding to the oral cavity features.
[0097] In some embodiments, the electronic device may be a terminal device with a camera, such as a mobile phone, tablet computer, central control unit, smart home product, etc. The electronic device and the reference object are separate and independent devices, representing two independent products.
[0098] In some embodiments, the above-described electronic device may include an oral care device, with the reference object being a part of the electronic device. For example, FIG4 is a schematic diagram of the structure of an oral care device in one embodiment. As shown in FIG4, the oral care device 110 may include a care piece 112, a handle 114, and a camera 400, which may be mounted on the handle 114. The care piece 112 may be within the field of view of the camera 400 (the range shown by the dashed line in FIG4). When a user wants to use the color detection function for oral features, the care piece 112 can be placed near the mouth or on the lips. At this time, the camera 400 can capture both the care piece 112 and oral features (such as teeth). The camera 400 can simultaneously acquire a target image containing both oral features and the care piece 112. At least the portion of the care piece 112 captured serves as a reference object, enabling color calibration of the oral features. In some embodiments, a display screen may also be provided on the handle 114, which can display the target image captured by the camera 400. The user can view the captured target image to ensure that both oral features and the care piece 112 are captured. Furthermore, the camera 400 of the oral care device 110 can easily capture target images containing at least a portion of the care device and oral features. Users do not need to adopt a specific posture or angle for image capture, simplifying user operation and ensuring the accuracy of the captured target image, thereby guaranteeing the accuracy of color detection of oral features. For example, the camera is positioned near the end of the handle connected to the care device, thus ensuring that the camera and care device are close to each other and relatively fixed in position. By selecting an appropriate FOV (Field of View) for the camera, the care device can be placed within the camera's field of view.
[0099] In some embodiments, the oral care device can also send the target image captured by the camera to a terminal device. The terminal device corrects the first color value corresponding to the oral cavity feature based on the second color value corresponding to the reference object in the target image to obtain the target color information corresponding to the oral cavity feature. Thus, when using the color detection function for oral cavity features, the user does not need to hold the oral care device in one hand and the terminal device in the other to take a picture. They only need to place the oral care device near the mouth or on the lips, and the camera on the oral care device can capture a target image containing the oral care device and the oral cavity feature, simplifying the user operation.
[0100] In some embodiments, users can also insert the care piece of the oral care device into their mouth and take pictures with a camera, enabling color detection of oral features in more locations.
[0101] Optionally, oral care devices may include toothbrushes, and the reference object may be at least a portion of the toothbrush head. Since the toothbrush head has a limited number of uses, users will replace it regularly, thus avoiding changes in the actual color of the reference object due to prolonged use. Furthermore, during brushing, the electronic device's camera can more easily capture target images containing both the brush head and oral cavity features, improving the convenience of image acquisition.
[0102] In some embodiments, the electronic device may also remind the user to replace the brush head. As shown in Figure 5, the above method may further include the following steps:
[0103] Step 502: Identify the brush state corresponding to the brush bristles contained in the target image.
[0104] The electronic device can acquire a target image containing the brush head and identify the state of the brush bristles in the target image. The state of the brush bristles can be used to indicate the damage of the brush bristles. The state of the brush bristles may include, but is not limited to, one or more of the following: the degree of curvature of the brush bristles, the length of the brush bristles, the forking of the brush bristles, the uniformity of the arrangement of the brush bristles, and the color of the brush bristles.
[0105] As an optional implementation, the electronic device can input the target image into a brush hair recognition model. The model identifies the brush hair state corresponding to the brush hairs within the target image. The model can first locate a third image region corresponding to the brush hairs in the target image and extract image features (such as edge features, texture features, color features, etc.) from this third image region. Based on these image features, the model analyzes the brush hair state corresponding to the brush hairs. Optionally, the brush hair recognition model can be trained on a large number of sample brush hair images, with each sample image labeled with its corresponding brush hair state, thereby enabling the model to accurately identify brush hair states.
[0106] Step 504: If the bristle condition meets the replacement conditions, output a replacement reminder message. The replacement reminder message is used to prompt you to replace the toothbrush head.
[0107] After obtaining the status of the brush bristles, the electronic device can determine whether the status of the brush bristles meets the replacement conditions. These update conditions refer to the conditions used to determine whether the brush head needs to be replaced. If the status of the brush bristles meets the update conditions, a replacement reminder message can be output to remind the user to replace the toothbrush head.
[0108] Optionally, the replacement conditions may include, but are not limited to, one or more of the following:
[0109] (1) The degree of curvature of the bristles is greater than the first degree threshold.
[0110] The degree of bristle curvature describes changes in bristle shape. This curvature can be expressed as the curvature angle or the proportion of curly bristles to the total bristle count. If the curvature exceeds a certain threshold, it indicates a significant change in bristle shape, which will affect cleaning performance, necessitating brush head replacement.
[0111] (2) The length of the brush bristles is less than the preset length threshold.
[0112] If the length of the bristles is less than the preset length threshold, it means that the bristle length has changed significantly, which may be due to bristle breakage, affecting the cleaning effect and potentially causing damage to the oral cavity. Therefore, the brush head needs to be replaced.
[0113] (3) The proportion of bristles with forked bristles is greater than the preset proportion threshold.
[0114] When a brush head is used frequently, the ends of the bristles may split. The electronic device can identify the number of split bristles in the target image and calculate the proportion of these split bristles to the total number of bristles. If the proportion of split bristles exceeds a preset threshold, it indicates that there are too many split bristles in the brush head, which will affect the cleaning effect, and therefore the brush head needs to be replaced.
[0115] (4) The uniformity of the bristle arrangement is less than the preset uniformity threshold.
[0116] The uniformity of bristle arrangement can be used to describe the overall neatness and uniformity of the bristle arrangement. For example, the uniformity of bristle arrangement can be analyzed based on the texture features of the bristles in the target image. If the uniformity of bristle arrangement is less than a preset uniformity threshold, it indicates that there are problems with missing brush rows or uneven arrangement of bristles, which will affect the cleaning effect, and therefore the brush head needs to be replaced.
[0117] (5) The degree of change in the color of the bristles is greater than the second degree threshold.
[0118] The degree of color change in the bristles can be used to describe the extent of color variation in the bristles. The electronic device can pre-store the original color information of the bristles and compare the color information of the bristles in the target image with this original color information to determine the degree of color change. If the degree of color change exceeds a second threshold, it indicates a serious fading or discoloration problem, suggesting that the brush head has been used for a long time and will affect the cleaning effect; therefore, the brush head needs to be replaced.
[0119] In some embodiments, the electronic device may output the replacement reminder information in one or more ways. For example, it may output the replacement reminder information by playing audio or by displaying it.
[0120] As an optional implementation, the electronic device may include a speaker, which can play audio data corresponding to the replacement reminder information, such as playing voice data corresponding to the target reminder information.
[0121] As another alternative implementation, when the electronic device is an oral care device, the oral care device may also play the replacement reminder information by bone conduction. The oral care device may include a motor, and the oral care device may control the operation of the motor to make the motor vibrate and generate a sound that matches the replacement reminder information. When the user places the oral care device in the mouth (such as placing the care piece on the teeth), the sound is transmitted to the user's ear through bone conduction, so that the user hears the replacement reminder information.
[0122] By playing replacement reminders through speakers or bone conduction, users can receive accurate and timely replacement reminders even when the oral care device is placed in their mouth.
[0123] As another optional implementation, the electronic device may also include a display screen, which can display replacement reminder information. Furthermore, the replacement reminder information displayed on the screen may include, but is not limited to, text and images. By displaying the replacement reminder information on the screen, users can see the information more intuitively, improving the user experience.
[0124] In this embodiment, the electronic device can identify the state of the brush bristles in the target image and output a replacement reminder when the brush bristle state meets the replacement conditions. This can promptly remind the user to replace the toothbrush head, ensuring the cleaning effect of the toothbrush. It can also avoid inaccurate color detection of oral features due to the brush head not being replaced for a long time, thus ensuring the accuracy of color detection of oral features.
[0125] As shown in Figure 6, in another embodiment, a color detection method for oral cavity features is provided, which may include the following steps:
[0126] Step 602: In response to the color detection operation, display the image acquisition interface corresponding to the camera.
[0127] The electronic device can provide color detection functionality for oral features. Users can provide this color detection function to perform color detection on one or more oral features. When the user triggers the color detection function, the electronic device can respond to the color detection operation and display the image acquisition interface corresponding to the camera. The electronic device can acquire the target image through the image acquisition interface and perform color detection on the oral features based on the target image.
[0128] The image acquisition interface can provide the function of acquiring target images in real time through a camera, and can also provide the function of selecting pre-stored target images in the memory.
[0129] In some embodiments, the image acquisition interface includes a first guidance component, which can be used to guide the shooting area corresponding to the oral cavity features. Optionally, the first guidance component may include, but is not limited to, one or more of the following: a guide frame, guide text, and guide pattern. For example, Figure 7A is a schematic diagram of an image acquisition interface in one embodiment. As shown in Figure 7A, the image acquisition interface 710 may include a first guidance component 712, which can be a guide frame for the oral cavity position, used to guide the user to place the oral cavity within the area corresponding to the guide frame. By guiding the user's shooting posture through the first guidance component 712, the camera can capture a more accurate target image, ensuring the accuracy of subsequent color detection of the oral cavity features.
[0130] In some embodiments, the image acquisition interface may further include a second guidance component, which can be used to guide the shooting area corresponding to the reference object. Optionally, the second guidance component may include, but is not limited to, one or more of the following: a guidance frame, guidance text, and guidance pattern. For example, Figure 7B is a schematic diagram of an image acquisition interface in another embodiment. As shown in Figure 7B, the image acquisition interface 710 may include a first guidance component 712 and a second guidance component 714. The first guidance component 712 may be a guidance frame for the oral cavity position, which can be used to guide the user to place the oral cavity in the area corresponding to the guidance frame; the second guidance component 714 may be a guidance frame for the brush head position, which can be used to guide the user to place the brush head in the area corresponding to the guidance frame. By guiding the user's shooting posture through the first guidance component 712 and the second guidance component 714, the camera can capture a more accurate target image, ensuring the accuracy of subsequent color detection of oral cavity features.
[0131] In some embodiments, the first guiding component may include multiple oral feature guiding parts, each of which can be used to guide a shooting area corresponding to an oral feature. For example, the first guiding component may include a tooth guiding part corresponding to teeth, a tongue guiding part corresponding to tongue, etc. The tooth guiding part corresponding to teeth can be used to guide a shooting area corresponding to teeth, and the tongue guiding part corresponding to tongue can be used to guide a shooting area corresponding to tongue, etc. Exemplarily, FIG7C is a schematic diagram of an image acquisition interface in another embodiment. As shown in FIG7C, the first guiding part in the image acquisition interface 710 may include a tooth guiding part 716 corresponding to teeth and a tongue guiding part 718 corresponding to tongue. The tooth guiding part 716 is used to guide the user to place teeth in the area indicated by the tooth guiding part 716, and the tongue guiding part 718 can be used to guide the user to place tongue in the area indicated by the tongue guiding part 718.
[0132] Optionally, for the same oral cavity feature, there may be one or multiple oral cavity feature guides. In the case of multiple oral cavity feature guides for the same feature, these guides can be used to guide the user to identify the corresponding shooting areas for different parts of the feature. For example, as shown in Figure 7C, the image acquisition interface 710 includes two tooth guides 716, one corresponding to the upper teeth area and the other to the lower teeth area, further improving the guidance effect on the user's shooting posture.
[0133] In the above implementation, multiple oral cavity feature guiding parts can accurately guide the user's photo-taking posture, enabling the camera to capture a more accurate target image and ensuring the accuracy of subsequent color detection of oral cavity features.
[0134] Step 604: Obtain the target image captured by the camera.
[0135] After the user follows the guidance on the image acquisition interface to determine the correct shooting posture, the shooting controls (such as the shooting button) on the image acquisition interface can be triggered to perform the shooting operation. In response to the shooting operation, the electronic device can control the camera to capture the target image, and then perform color detection on the oral cavity features based on that target image.
[0136] Step 606: Based on the target image, determine the first color value corresponding to the oral cavity features and the second color value corresponding to the reference object.
[0137] Step 608: Correct the first color value according to the second color value to obtain the target color information corresponding to the oral cavity features.
[0138] In this embodiment of the application, the electronic device responds to the color detection operation by displaying an image acquisition interface corresponding to the camera. The image acquisition interface can display a first guide component corresponding to the oral cavity features and a second guide component corresponding to the reference object, thereby better guiding the user's shooting posture and enabling the camera to capture a more accurate target image, thus ensuring the accuracy of color detection of oral cavity features.
[0139] As shown in Figure 8, in one embodiment, the step of determining the first color value corresponding to the oral cavity feature and the second color value corresponding to the reference object based on the target image may include the following steps.
[0140] Step 802: Identify and segment the target image, and extract the first image region corresponding to the oral cavity features and the second image region corresponding to the reference object.
[0141] In one implementation, the electronic device can identify a target image and extract image features from the target image. These image features may include, but are not limited to, one or more of color features, edge features, and brightness features. Based on these image features, a first image region corresponding to oral cavity features contained in the target image and a second image region corresponding to a reference object can be identified.
[0142] Optionally, when the electronic device responds to the trigger operation of the color detection function, it can acquire one or more oral features selected by the user that require color detection. The electronic device can identify the first image regions corresponding to the various oral features requiring color detection in the target image. When there are multiple oral features requiring color detection, it can identify the first image regions corresponding to the multiple oral features requiring color detection respectively, thus obtaining multiple first image regions.
[0143] Optionally, an oral cavity feature may correspond to one first image region or multiple first image regions. Taking the gingiva as an example, all the gingiva in the target image may correspond to one first image region, or all the gingiva in the target image may correspond to multiple first image regions (e.g., the upper gingiva corresponds to one first image region, and the lower gingiva corresponds to another first image region). The division of the first image region can be set according to actual needs, or the user can choose the division method. There is no limitation here. The way to divide the first image region can be more flexible to meet the needs of different color detection scenarios.
[0144] The reference object contained in the target image can correspond to a second image region. After the electronic device identifies the first image region corresponding to the oral cavity feature in the target image and the second image region corresponding to the reference object, image segmentation can be performed on the first image region and the second image region to obtain the first image region and the second image region. Furthermore, if the target image includes multiple first image regions, image segmentation can be performed on each of the multiple first image regions to obtain multiple first image regions.
[0145] In one implementation, an electronic device can use an image segmentation module to recognize and segment a target image, extracting a first image region corresponding to oral cavity features and a second image region corresponding to a reference object. This image segmentation module can be trained on a large number of sample images, which may include oral cavity features and reference objects, and the image positions corresponding to the oral cavity features and reference objects are labeled. Using an image segmentation module can improve the accuracy and efficiency of image recognition and segmentation.
[0146] Step 804: Calculate the first color value corresponding to the first image region and the second color value corresponding to the second image region.
[0147] As an optional implementation, the electronic device can determine the pixel value of each pixel in the first image area, which can be represented by a color space such as LAB. It can calculate the average pixel value based on the pixel value of each pixel in the first image area and determine the average pixel value as the first color value corresponding to the first image area.
[0148] As another optional implementation, the electronic device can determine the pixel value of each pixel in the first image region. Based on the pixel value of each pixel in the first image region, the color range to which each pixel in the first image region belongs can be determined. Based on the color range to which each pixel in the first image region belongs and the connectivity relationship, the first image region can be divided into multiple sub-regions, each sub-region corresponding to a color. Further, the color value corresponding to the sub-region with the largest area can be determined as the first color value corresponding to the first image region.
[0149] As another alternative implementation, the electronic device can determine the pixel value of each pixel in the first image region, generate a color histogram corresponding to the first image region based on the pixel values of each pixel in the first image region, and determine the color value with the largest number of pixels in the color histogram as the first color value corresponding to the first image region.
[0150] The electronic device can determine the pixel value of each pixel within the second image region, and determine the second color value corresponding to the second image region based on the pixel values of each pixel within the second image region. Optionally, the second color value can be the average pixel value corresponding to the pixel values of each pixel within the second image region, the color value corresponding to the sub-region with the largest area within the second image region, or the color value with the largest number of pixels in the color histogram corresponding to the second image region, etc.
[0151] Optionally, the electronic device can first convert the first and second image regions from the RGB color space to the LAB color space, and then calculate the first color value corresponding to the first image region in the LAB color space, and the second color value corresponding to the second image region in the LAB color space. The color values calculated using the LAB color space are more accurate, further improving the accuracy of color detection of oral cavity features.
[0152] It should be noted that the methods for calculating the first color value corresponding to the first image region and the second color value corresponding to the second image region are not limited to the methods mentioned above, and other methods can also be used, which are not limited here.
[0153] After calculating the first color value corresponding to the first image region and the second color value corresponding to the second image region, the first color value can be corrected based on the second color value to obtain the target color information corresponding to the oral cavity features.
[0154] In some embodiments, when the target image includes multiple first image regions, a first color value corresponding to each first image region can be calculated, and then the first color value corresponding to each first image region can be corrected according to the second color value corresponding to the second image region, thereby obtaining the target color information corresponding to each image region.
[0155] In one implementation, oral cavity features may include teeth, and the target image may include one or more tooth regions, each tooth region serving as a first image region. For example, the target image may include multiple tooth regions, each corresponding to one tooth; or, the target image may include multiple tooth regions, each corresponding to multiple teeth; or, the target image may include a single tooth region encompassing all the teeth in the target image.
[0156] For example, Figure 9A is a schematic diagram of the division of tooth regions in one embodiment. As shown in Figure 9A, the target image 900 may include multiple tooth regions 912, each tooth region 912 corresponding to one tooth.
[0157] For example, Figure 9B is a schematic diagram of the division of tooth regions in another embodiment. As shown in Figure 9B, the target image 900 may include multiple tooth regions 914, each tooth region 914 corresponding to multiple teeth.
[0158] For example, FIG9C is a schematic diagram of the division of a tooth region in another embodiment. As shown in FIG9C, the target image 900 may include a tooth region 916, which includes each tooth in the target image 900.
[0159] The tooth region in the target image can be flexibly adjusted according to actual needs, which can meet the different tooth color detection needs of users.
[0160] The electronic device can calculate the first color value corresponding to each tooth region in the target image, and correct the first color value corresponding to each tooth region according to the second color value corresponding to the reference object, so as to obtain the target color information corresponding to each tooth region.
[0161] It should be noted that when a tooth region corresponds to multiple teeth, one tooth in the region can be selected to calculate its color value as the first color value. Alternatively, the color values for each tooth in the region can be calculated, and then the average value can be taken to obtain the first color value for that region. The method for calculating the first color value for each tooth region is not limited here.
[0162] It can accurately detect the target color information corresponding to each tooth area, improving the accuracy of tooth color detection and making it easier for users to understand the true color of each tooth area, thus improving the user experience.
[0163] Optionally, the target color information corresponding to a tooth area may include the teeth whitening level corresponding to that area. This teeth whitening level can be set according to actual needs or it can be determined based on a teeth shade guide. The electronic device can output the teeth whitening level corresponding to each tooth area, allowing users to intuitively perceive the degree of teeth whitening and improving the user experience.
[0164] For example, Figure 10A is a schematic diagram showing the teeth whitening level in one embodiment. As shown in Figure 10A, the electronic device can display a whitening test result interface 1010, which can display a three-dimensional model of the oral cavity and the teeth whitening level. When the entire oral cavity corresponds to a tooth area, the whitening level of the tooth area can be displayed, for example, "Current tooth color number is 6".
[0165] For example, Figure 10B is a schematic diagram showing the teeth whitening level in another embodiment. As shown in Figure 10B, the electronic device can display a whitening test result interface 1010, which can display a three-dimensional model of the oral cavity and the teeth whitening level. In the case of multiple tooth areas in the entire oral cavity, the whitening level corresponding to each tooth area can be displayed, for example, the whitening level corresponding to the upper teeth area and the whitening level corresponding to the lower teeth area, etc.
[0166] By displaying a 3D model of the oral cavity and the teeth whitening level, the test results of teeth color can be presented more intuitively, making it easier for users to view and improving the user experience.
[0167] In this embodiment, the target image can be identified and segmented, and the first color value of the first image region corresponding to the oral cavity feature and the second color value of the second image region corresponding to the reference object can be calculated, thereby improving the accuracy of the calculated color value and thus improving the accuracy of color detection of the oral cavity feature.
[0168] As shown in Figure 11, in another embodiment, a color detection method for oral cavity features is provided, which can be applied to the above-mentioned electronic device. The method may include the following steps:
[0169] Step 1102: Obtain the target image, which includes oral cavity features and reference objects.
[0170] Step 1104: Based on the target image, determine the first color value corresponding to the oral cavity features and the second color value corresponding to the reference object.
[0171] The descriptions of steps 1102 to 1104 can be found in the relevant descriptions in the above embodiments, and will not be repeated here.
[0172] Step 1106: Correct the first color value based on the second color value and the standard color value corresponding to the reference object to obtain the target color information corresponding to the oral cavity features.
[0173] The standard color value refers to the true color value of the reference object. After determining the second color value corresponding to the reference object in the target image, the first color value can be corrected based on the second color value and the standard color value corresponding to the reference object. This can eliminate the influence of factors such as ambient light on the color of the oral cavity features in the target image, thereby obtaining the target color information corresponding to the oral cavity features.
[0174] Electronic devices can pre-store the standard color values corresponding to reference objects and retrieve the standard color values corresponding to reference objects from the memory.
[0175] In one implementation, the electronic device can be an oral care device, and the reference object can be at least a part of the oral care device. The oral care device can pre-store standard color values corresponding to the component that serves as the reference object. When color detection of oral features is required, the oral care device can acquire the pre-stored standard color values corresponding to the reference object.
[0176] For example, the reference object can be a care component of an oral care device. The oral care device can pre-store the standard color value corresponding to its care component. When it is necessary to perform color detection on oral features, the oral care device can obtain the pre-stored standard color value corresponding to the care component and compare it with the second color value corresponding to the care component in the target image, thereby correcting the first color value corresponding to the oral features in the target image.
[0177] Since the reference object is a component of the oral care device itself, the oral care device does not need to accurately identify which product or device the reference object is in the target image. It can also accurately obtain the standard color value corresponding to the reference object, realize the color detection of oral features, reduce the amount of data processing, and improve the efficiency of color detection of oral features.
[0178] In another implementation, the electronic device can be a terminal device, and the reference object can be at least a part of an oral care product. The terminal device can pre-store standard color values corresponding to various reference objects, determine the specific oral care product corresponding to the reference object contained in the target image, and obtain the corresponding standard color values for color correction.
[0179] The terminal device can obtain the standard color value corresponding to the reference object using any of the following methods:
[0180] Method 1: The terminal device obtains the first device information corresponding to the oral care device connected to the communication connection, and obtains the standard color value corresponding to the reference object based on the first device information.
[0181] The reference object can be at least a part of the oral care device, and the terminal device can establish a communication connection with the oral care device. When the terminal device establishes a communication connection with the oral care device, it indicates that the user is likely currently using the oral care device; therefore, at least a part of the oral care device can serve as a reference object to achieve color detection of oral features.
[0182] The terminal device can obtain first device information corresponding to the oral care device connected to the communication connection. This first device information may include, but is not limited to, one or more of the following: device name, device model, device number, etc., of the oral care device connected to the communication connection. Based on this first device information, the terminal device can search for the standard color value corresponding to a reference object that matches the first device information from a pre-stored list of standard color values corresponding to multiple reference objects.
[0183] Method 2: The terminal device obtains the first product information corresponding to the bound oral care product, and obtains the standard color value corresponding to the reference object based on the first product information.
[0184] Users can add and bind oral care products to their terminal devices. Binding the terminal device to the oral care product indicates that the user is likely to use the oral care product for oral care. Therefore, at least part of the bound oral care product can be used as a reference to achieve color detection of oral features.
[0185] The terminal device can obtain first product information corresponding to the bound oral care product. This first product information may include, but is not limited to, one or more of the following: product name, product model, product number, brand, etc., of the bound oral care product. Based on this first product information, the terminal device can search for the standard color value corresponding to a reference object that matches the first product information from a pre-stored list of standard color values corresponding to multiple reference objects.
[0186] Method 3: The terminal device responds to the device selection operation, determines the second product information corresponding to the selected oral care product, and obtains the standard color value corresponding to the reference object based on the second product information.
[0187] The terminal device can display a product selection interface, which may include a variety of oral care products. The terminal device can store standard color values corresponding to at least some of these oral care products as reference objects. Users can select the oral care product currently in use from this product selection interface. In response to the selection operation, the user's terminal device determines the selected oral care product and uses at least some of the selected product as a reference object to achieve color detection of oral features.
[0188] The terminal device can obtain second product information corresponding to the oral care product selected by the user. This second product information may include, but is not limited to, one or more of the following: product name, product model, product number, brand, etc., of the oral care product selected by the user. Based on this second product information, the terminal device can search for the standard color value corresponding to a reference object that matches the second product information from a pre-stored list of standard color values corresponding to multiple reference objects.
[0189] Terminal devices can acquire the standard color value corresponding to the reference object in a variety of different ways, which improves the flexibility of acquiring the standard color value corresponding to the reference object and meets the different needs of users.
[0190] In some embodiments, the electronic device may use image recognition to obtain the standard color value corresponding to the reference object. As shown in Figure 12, the step of the electronic device obtaining the standard color value corresponding to the reference object may include steps 1202 to 1204.
[0191] Step 1202: Identify the reference objects contained in the target image and obtain reference object information.
[0192] The electronic device can identify reference objects contained in the target image to obtain reference object information. The reference object information may include product information of the oral care product to which the reference object belongs. Furthermore, the reference object information may also include the specific location of the reference object in the oral care product. For example, the reference object is at least a part of the oral care device. The reference object information may indicate whether the reference object belongs to a care component or a handle.
[0193] In one implementation, the electronic device can identify the object shape of a reference object contained in the target image and determine the reference object information based on the object shape.
[0194] For example, an electronic device can extract edge features corresponding to reference objects contained in a target image, and identify the object shape of the reference object based on the edge features. This object shape can be used to describe the shape of the reference object. Multiple standard shapes corresponding to various reference objects can be pre-stored, and the identified object shape of the reference object can be compared with the standard shapes corresponding to the multiple reference objects to determine the standard shape that matches the identified object shape. Then, the reference object information corresponding to the matching standard shape can be obtained.
[0195] As another implementation, the electronic device can identify the logo pattern of a reference object contained in the target image and determine the reference object information based on the logo pattern.
[0196] The reference object may include a logo pattern. For example, the electronic device can identify and extract the logo pattern of the reference object contained in the target image. It can pre-store the logo patterns corresponding to multiple reference objects respectively, compare the logo pattern of the reference object contained in the target image with the pre-stored logo patterns corresponding to multiple reference objects respectively, determine the pre-stored logo pattern that matches the logo pattern of the reference object contained in the target image, and then obtain the reference object information corresponding to the matching pre-stored logo pattern.
[0197] By recognizing the shape of a reference object or its symbolic pattern, reference objects contained in a target image can be accurately identified, thus improving the accuracy of reference object recognition.
[0198] Step 1204: Obtain the standard color value corresponding to the reference object based on the reference object information.
[0199] After acquiring the reference object information, the electronic device can search for the standard color value corresponding to the reference object that matches the reference object information from among the pre-stored standard color values corresponding to multiple reference objects.
[0200] In the above embodiments, the electronic device can identify reference objects contained in the target image, accurately obtain the standard color value corresponding to the reference object, and ensure the accuracy of subsequent correction of the first color value corresponding to the oral cavity features.
[0201] After acquiring the standard color value corresponding to the reference object, the electronic device can calculate the distance between the second color value of the reference object in the target image and the standard color value, and correct the first color value of the oral cavity feature in the target image based on the distance to obtain the target color information corresponding to the oral cavity feature.
[0202] The distance between the color value of the reference object in the image and the standard color value under different ambient light conditions, and the relationship between the distance and the real color corresponding to the oral cavity feature can be pre-constructed, and the target color information corresponding to the oral cavity feature can be determined based on the pre-constructed relationship.
[0203] In one specific implementation, test images can be captured by a camera under various ambient lighting conditions. These test images may include a reference object and a colorimetric chart. The colorimetric chart may include multiple color levels representing oral features, such as a teeth colorimetric chart including multiple teeth whitening levels, but is not limited to this. The first test color value corresponding to the reference object in each test image and the second test color value corresponding to each color level in the colorimetric chart can be extracted. The distance between the second test color value corresponding to each color level and the first test color value corresponding to the reference object can be calculated.
[0204] For example, the distance between the second test color value corresponding to each color level in each test image and the first test color value corresponding to the reference object can be calculated using the following formula:
[0205] In this system, the first test color value corresponding to the reference object can be represented as (L1, A1, B1), and the second test color value corresponding to each color level can be represented as (L2, A2, B2). ΔL can be the difference between L1 and L2, ΔA can be the difference between A1 and A2, and ΔB can be the difference between B1 and B2. L represents lightness, A represents the green to red component, and B represents the blue to yellow component. ΔE represents the distance between the first test color value corresponding to the reference object and the second test color value corresponding to the color level.
[0206] Multiple first color value distances obtained from each test image can be fitted to generate multiple color value fitting curves. These curves can be used to characterize the relationship between the first color value distance and ambient light. Furthermore, these curves can be used to characterize the relationship between the first color value distance corresponding to each color level and ambient light.
[0207] Furthermore, the second color value distance between the first test color value and the standard color value corresponding to the reference object in each test image can be calculated. Based on the second color value distance corresponding to each test image and multiple color value fitting curves, the relationship between the second color value distance and the color value fitting curves can be determined. For example, based on the second color value distance corresponding to the test images under each ambient light and the color value fitting curves corresponding to each ambient light, the correspondence between the second color value distance and the color value fitting curves under each ambient light can be determined.
[0208] The electronic device acquires the standard color value corresponding to the reference object. After calculating the distance between the second color value of the reference object in the target image and the standard color value, it can determine the target color value fitting curve corresponding to the distance based on the correspondence between the second color value distance and the color value fitting curve. Then, it substitutes the first color value corresponding to the oral cavity feature in the target image into the target color value fitting curve to obtain the target color corresponding to the first color value. The target color level can be determined based on the target color corresponding to the first color value.
[0209] In this embodiment, the first color value of the oral cavity feature in the target image can be corrected based on the standard color value corresponding to the reference object and the second color value in the target image. This can reduce the adverse effects of factors such as ambient light on the color of the oral cavity feature in the target image and improve the accuracy of color detection of the oral cavity feature.
[0210] In some embodiments, the above method may further include: beautifying the oral cavity features in the target image according to the target color information to obtain an effect simulation image, and displaying the target image and the effect simulation image.
[0211] Beautifying oral cavity features in a target image can refer to adjusting the colors of oral cavity features in the target image to make them appear more aesthetically pleasing and / or healthier, thereby simulating the effect of beautifying oral cavity features.
[0212] Taking the gums as an example of oral features, the gums in the target image can be lightened according to the target color information corresponding to the gums to obtain the effect module image. This effect simulation image can show the effect of lightening the gums, making the gums appear a healthier color.
[0213] Taking teeth as an example of oral cavity features, the teeth in the target image can be whitened according to the target color information corresponding to the teeth to obtain an effect simulation image. This effect simulation image can show the effect of whitening the teeth, making the teeth present a more beautiful color.
[0214] For example, Figure 13 is a schematic diagram of an interface displaying a simulated effect image in one embodiment. As shown in Figure 13, the electronic device can whiten teeth in a target image to obtain a simulated effect image after whitening. It can display a whitening detection result interface 1010 and an effect simulation interface 1310. The whitening detection result interface 1010 can display the target image and / or target color information, and the effect simulation interface 1310 can display the simulated effect image and / or the beautified color information, etc.
[0215] In some embodiments, the user can also select the desired beautification color level, which can be used to characterize the beautification effect of the oral cavity features that the user wants to see. The electronic device can beautify the oral cavity features in the target image according to the beautification color level to obtain an effect simulation image. The colors of the oral cavity features in the effect simulation image can be matched with the beautification color level, which meets the user's needs to view different beautification effects and improves the user experience.
[0216] In this embodiment, oral features in the target image can be beautified to obtain a simulated image. Beautification refers to processing the oral features in the target image to improve their appearance (e.g., to make them more aesthetically pleasing or healthier). It primarily relates to the appearance of oral features, allowing users to understand the effects that can be achieved after treatment or care for existing oral problems, thus guiding them to actively treat or care for their oral health. For example, beautification includes, but is not limited to, teeth whitening, orthodontic simulation (e.g., aligning teeth, closing gaps, filling missing teeth), and dental veneer simulation.
[0217] For example, the target image and the simulated effect image are displayed, demonstrating the comparison between before and after oral feature enhancement. This further clarifies the differences in oral health issues related to oral features before and after the procedure, thereby increasing users' awareness of their oral health.
[0218] For example, the target image also includes a human face, which includes facial features and oral features including exposed teeth on the face. The electronic device can whiten the exposed teeth on the face in the target image to obtain an effect simulation image. By simulating the whitening of exposed teeth on the user's face, the user's impression of the impact of changes in teeth on the entire face can be deepened, thereby increasing the user's enthusiasm for dental treatment and care.
[0219] For example, the exposed teeth on a person's face are whitened, while other areas of the target image are left unprocessed, resulting in a simulated image that can more accurately reflect the impact of tooth color changes on the overall appearance of the face.
[0220] As shown in Figure 14, in some embodiments, another method for color detection of oral cavity features is provided, which may include the following steps:
[0221] Step 1410: The oral care device acquires a target image captured by a camera. The target image includes oral cavity features and reference objects. The oral care device includes a care component, a handle, and a camera. The camera is mounted on the handle, the care component is within the camera's field of view, and the reference objects include at least a portion of the care component.
[0222] Step 1420: The oral care device sends the target image to the terminal device.
[0223] Step 1430: The terminal device determines the first color value corresponding to the oral cavity features and the second color value corresponding to the reference object based on the target image.
[0224] Step 1440: The terminal device corrects the first color value based on the second color value to obtain the target color information corresponding to the oral cavity features.
[0225] It should be noted that the description of the color detection method for oral features provided in this embodiment can be referred to the description of the color detection method for oral features applied to electronic devices provided in the above embodiments, and will not be repeated here.
[0226] In this embodiment, when using the color detection function for oral features, the user does not need to hold the oral care device in one hand and the terminal device in the other to take a picture, simplifying the user operation and improving convenience. Moreover, the first color value can be corrected according to the second color value corresponding to the reference object, which can reduce the adverse effects of factors such as ambient light on the color of oral features in the target image and improve the accuracy of color detection of oral features.
[0227] As shown in Figure 15, in some embodiments, a color detection device 1500 for oral cavity features is provided, which can be applied to the above-mentioned electronic device. The color detection device 1500 for oral cavity features may include an image acquisition module 1510, a color determination module 1520, and a correction module 1530.
[0228] The image acquisition module 1510 is used to acquire a target image, which includes oral cavity features and reference objects.
[0229] The color determination module 1520 is used to determine the first color value corresponding to the oral cavity features and the second color value corresponding to the reference object based on the target image.
[0230] The correction module 1530 is used to correct the first color value based on the second color value to obtain the target color information corresponding to the oral cavity features.
[0231] In one embodiment, oral features include one or more of teeth, gums, and tongue.
[0232] In one embodiment, the reference is at least a portion of an oral care product.
[0233] In one embodiment, the reference is at least a portion of an oral care product that can be used less than the target number of times.
[0234] In one embodiment, the oral care product includes an oral care device, which includes a care piece and a handle, with reference to at least a portion of the care piece and / or at least a portion of the handle.
[0235] In one embodiment, the oral care device includes a toothbrush, with reference to at least a portion of the toothbrush head.
[0236] In one embodiment, the color detection device 1500 for oral cavity features further includes a brush bristle status recognition module and an alert module.
[0237] The brush bristle state recognition module is used to identify the brush bristle state corresponding to the brush bristles contained in the target image.
[0238] The reminder module outputs a replacement reminder message if the bristles meet the replacement conditions. The replacement reminder message is used to prompt you to replace the toothbrush head.
[0239] In one embodiment, at least a portion of the reference object is a single color.
[0240] In one embodiment, the reference point includes a marker feature.
[0241] In one embodiment, the electronic device includes an oral care device, which includes a care piece, a handle, and a camera. The camera is mounted on the handle, and the care piece is within the field of view of the camera. The reference point includes at least a portion of the care piece.
[0242] In one embodiment, the correction module 1530 is further configured to correct the first color value based on the second color value and the standard color value corresponding to the reference object, so as to obtain the target color information corresponding to the oral cavity feature.
[0243] In one embodiment, the color detection device 1500 for oral features further includes a color acquisition module.
[0244] Optionally, the electronic device includes an oral care device, with at least a portion of the oral care device serving as a reference; and a color acquisition module for acquiring pre-stored standard color values corresponding to the reference.
[0245] Optionally, the electronic device includes a terminal device, and the reference object is at least a portion of the oral care product; the color acquisition module is further configured to acquire first device information corresponding to the oral care device connected in communication, and acquire a standard color value corresponding to the reference object based on the first device information; or, acquire first product information corresponding to the bound oral care product, and acquire a standard color value corresponding to the reference object based on the first product information; or, in response to a device selection operation, determine second product information corresponding to the selected oral care product, and acquire a standard color value corresponding to the reference object based on the second product information.
[0246] In one embodiment, the color acquisition module is further configured to identify reference objects contained in the target image and obtain reference object information; and to obtain the standard color value corresponding to the reference object based on the reference object information.
[0247] In one embodiment, the color acquisition module is further configured to identify the object shape of a reference object contained in the target image and determine the reference object information based on the object shape; or, to identify the mark pattern of a reference object contained in the target image and determine the reference object information based on the mark pattern.
[0248] In one embodiment, the color determination module 1520 includes a segmentation unit and a calculation unit.
[0249] The segmentation unit is used to identify and segment the target image, and extract the first image region corresponding to the oral cavity features and the second image region corresponding to the reference object.
[0250] The calculation unit is used to calculate the first color value corresponding to the first image region and the second color value corresponding to the second image region.
[0251] In one embodiment, the oral cavity features include teeth, and the target image includes one or more tooth regions; the correction module 1530 is further configured to correct the first color value corresponding to each tooth region according to the second color value to obtain the target color information corresponding to each tooth region.
[0252] In one embodiment, the target image includes multiple tooth regions, each corresponding to one tooth; or...
[0253] The target image includes multiple dental regions, each corresponding to multiple teeth; or,
[0254] The target image includes a tooth region, which comprises all the teeth in the target image.
[0255] In one embodiment, the target color information corresponding to the tooth area includes the teeth whitening level corresponding to the tooth area.
[0256] In one embodiment, the color detection device 1500 for oral features further includes an interface display module.
[0257] The interface display module is used to display the image acquisition interface corresponding to the camera in response to the color detection operation. The image acquisition interface includes a first guide component, which is used to guide the shooting area corresponding to the oral cavity features.
[0258] The image acquisition module 1510 is also used to acquire target images captured by the camera.
[0259] In one embodiment, the image acquisition interface further includes a second guiding component, which is used to guide the shooting area corresponding to the reference object.
[0260] In one embodiment, the first guiding component includes a plurality of oral cavity feature guiding parts, each of which is used to guide a shooting area corresponding to an oral cavity feature.
[0261] In one embodiment, the color detection device 1500 for oral features further includes an effect simulation module.
[0262] The effect simulation module is used to enhance the oral cavity features in the target image based on the target color information to obtain an effect simulation image; and to display the target image and the effect simulation image.
[0263] In one embodiment, the target image also includes a human face, which includes facial features and oral features including exposed teeth on the face.
[0264] In one embodiment, the effect simulation module is further used to whiten the exposed teeth on a person's face to obtain an effect simulation image.
[0265] In this embodiment of the application, by acquiring a target image including oral cavity features and a reference object, the first color value can be corrected according to the second color value corresponding to the reference object. This can reduce the adverse effects of factors such as ambient light on the color of oral cavity features in the target image and improve the accuracy of color detection of oral cavity features.
[0266] In some embodiments, a color detection system for oral features is provided, including an oral care device and a terminal device. The oral care device includes a care component, a handle, and a camera. The camera is mounted on the handle, and the care component is within the field of view of the camera.
[0267] An oral care device for acquiring a target image captured by a camera, the target image including oral features and a reference object, the reference object including at least a portion of a care piece; and for transmitting the target image to a terminal device;
[0268] The terminal device is used to determine, based on the target image, a first color value corresponding to the oral cavity features and a second color value corresponding to the reference object; and to correct the first color value based on the second color value to obtain target color information corresponding to the oral cavity features.
[0269] In this embodiment, when using the color detection function for oral features, the user does not need to hold the oral care device in one hand and the terminal device in the other to take a picture, simplifying the user operation and improving convenience. Moreover, the first color value can be corrected according to the second color value corresponding to the reference object, which can reduce the adverse effects of factors such as ambient light on the color of oral features in the target image and improve the accuracy of color detection of oral features.
[0270] Figure 16 is a structural block diagram of an electronic device in one embodiment. As shown in Figure 16, the electronic device 1600 may include one or more of the following components: a processor 1610 and a memory 1620 coupled to the processor 1610, wherein the memory 1620 may store one or more computer programs, which may be configured to implement the methods described in the above embodiments when executed by one or more processors 1610.
[0271] Processor 1610 may include one or more processing cores. Processor 1610 connects to various parts within the electronic device 1600 using various interfaces and lines, and performs various functions and processes data of the electronic device 1600 by running or executing instructions, programs, code sets, or instruction sets stored in memory 1620, and by calling data stored in memory 1620. Optionally, processor 1610 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 1610 may integrate one or more 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 processor 1610 and may be implemented separately using a communication chip.
[0272] The memory 1620 may include random access memory (RAM) or read-only memory (ROM). The memory 1620 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 1620 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.), and instructions for implementing the various method embodiments described above. The data storage area may also store data created by the electronic device 1600 during use.
[0273] Understandably, the electronic device 1600 may include more or fewer structural elements than those shown in the above block diagram, such as a display device, a power module, physical buttons, a WiFi (Wireless Fidelity) module, a speaker, a Bluetooth module, sensors, etc., and may not be limited herein.
[0274] This application discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the methods described in the above embodiments.
[0275] This application discloses a computer program product, including a computer program, which, when executed by a processor, implements the methods described in the above embodiments.
[0276] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, ROM, etc.
[0277] Any references to memory, storage, databases, or other media used herein may include non-volatile and / or volatile memory. Suitable non-volatile memory may include ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. By way of illustration and not limitation, RAM may take many forms, such as Static RAM (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), Rambus DRAM (RDRAM), and Direct Rambus DRAM (DRDRAM).
[0278] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Those skilled in the art should also recognize that the embodiments described in the specification are optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0279] In the various embodiments of this application, it should be understood that the sequence number of each process does not necessarily imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0280] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they can be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0281] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0282] The foregoing has provided a detailed description of a method, apparatus, electronic device, and storage medium for detecting the color of oral features disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and its core ideas. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for color detection of oral cavity features, characterized in that, Applied to electronic devices, the method includes: Acquire a target image, which includes oral cavity features and reference objects; Based on the target image, determine the first color value corresponding to the oral cavity feature and the second color value corresponding to the reference object; The first color value is corrected based on the second color value to obtain the target color information corresponding to the oral cavity feature.
2. The method according to claim 1, characterized in that, The oral features include one or more of the teeth, gums, and tongue.
3. The method according to claim 1, characterized in that, The reference object is at least a portion of an oral care product.
4. The method according to claim 3, characterized in that, The reference is at least a portion of oral care products that can be used less than the target number of times.
5. The method according to claim 3, characterized in that, The oral care product includes an oral care device, which includes a care component and a handle. The reference object includes at least a portion of the care component and / or at least a portion of the handle.
6. The method according to claim 5, characterized in that, The oral care device is able to establish a communication connection with the electronic device and transmit data with the electronic device.
7. The method according to claim 5, characterized in that, The oral care device includes a toothbrush, and the reference point is at least a portion of the toothbrush head.
8. The method according to claim 7, characterized in that, The method further includes: Identify the brush state corresponding to the brush bristles contained in the target image; If the bristle condition meets the replacement criteria, a replacement reminder message is output, which prompts the user to replace the toothbrush head.
9. The method according to claim 1, characterized in that, At least a portion of the reference object is a single color.
10. The method according to claim 1, characterized in that, The reference objects include marker features.
11. The method according to claim 1, characterized in that, The electronic device includes an oral care device, which includes a care component, a handle, and a camera. The camera is mounted on the handle, and the care component is within the field of view of the camera. The reference object includes at least a portion of the care component. The acquisition of the target image includes: The oral care device acquires a target image captured by the camera.
12. The method according to claim 1, characterized in that, The step of correcting the first color value based on the second color value to obtain the target color information corresponding to the oral cavity feature includes: Based on the second color value and the standard color value corresponding to the reference object, the first color value is corrected to obtain the target color information corresponding to the oral cavity feature.
13. The method according to claim 12, characterized in that, The electronic device includes an oral care device, and the reference object is at least a portion of the oral care device; before correcting the first color value according to the second color value and the standard color value corresponding to the reference object, the method further includes: The oral care device acquires the pre-stored standard color value corresponding to the reference object.
14. The method according to claim 12, characterized in that, The electronic device includes a terminal device, and the reference object is at least a portion of an oral care product; prior to correcting the first color value based on the second color value and the standard color value corresponding to the reference object, the method further includes: The terminal device acquires first device information corresponding to the oral care device connected in communication, and obtains the standard color value corresponding to the reference object based on the first device information; or, The terminal device obtains the first product information corresponding to the bound oral care product, and obtains the standard color value corresponding to the reference object based on the first product information; or, The terminal device responds to the device selection operation, determines the second product information corresponding to the selected oral care product, and obtains the standard color value corresponding to the reference object based on the second product information.
15. The method according to claim 12, characterized in that, Before correcting the first color value based on the second color value and the standard color value corresponding to the reference object, the method further includes: Identify reference objects contained in the target image to obtain reference object information; Obtain the standard color value corresponding to the reference object based on the reference object information.
16. The method according to claim 15, characterized in that, The process of identifying reference objects contained in the target image and obtaining reference object information includes: Identify the object shape of a reference object contained in the target image, and determine the reference object information based on the object shape; or, Identify the marker pattern of the reference object contained in the target image, and determine the reference object information based on the marker pattern.
17. The method according to claim 1, characterized in that, The step of determining the first color value corresponding to the oral cavity feature and the second color value corresponding to the reference object based on the target image includes: The target image is identified and segmented to extract the first image region corresponding to the oral cavity feature and the second image region corresponding to the reference object; Calculate the first color value corresponding to the first image region and the second color value corresponding to the second image region.
18. The method according to any one of claims 1 to 17, characterized in that, The oral cavity feature includes teeth, and the target image includes one or more tooth regions; the step of correcting the first color value according to the second color value to obtain the target color information corresponding to the oral cavity feature includes: The first color value corresponding to each of the tooth regions is corrected based on the second color value to obtain the target color information corresponding to each of the tooth regions.
19. The method according to claim 18, characterized in that, The target image includes multiple tooth regions, each corresponding to one tooth; or... The target image includes multiple tooth regions, each tooth region corresponding to multiple teeth; or, The target image includes a tooth region, which includes each tooth in the target image.
20. The method according to claim 18, characterized in that, The target color information corresponding to the tooth area includes the teeth whitening level corresponding to the tooth area.
21. The method according to claim 1, characterized in that, Prior to acquiring the target image, the method further includes: In response to a color detection operation, an image acquisition interface corresponding to the camera is displayed. The image acquisition interface includes a first guidance component, which is used to guide the shooting area corresponding to the oral cavity features. The acquisition of the target image includes: Acquire the target image captured by the camera.
22. The method according to claim 21, characterized in that, The image acquisition interface also includes a second guidance component, which is used to guide the shooting area corresponding to the reference object.
23. The method according to claim 21, characterized in that, The first guiding component includes multiple oral cavity feature guiding parts, each of which is used to guide a shooting area corresponding to an oral cavity feature.
24. The method according to any one of claims 1-17 and 19-23, characterized in that, The method further includes: Based on the target color information, the oral cavity features in the target image are beautified to obtain a simulated image. Display the target image and the effect simulation image.
25. The method according to claim 24, characterized in that, The target image also includes a human face, which includes facial features, and the oral cavity features include exposed teeth on the human face.
26. The method according to claim 25, characterized in that, The oral cavity features in the target image are enhanced to obtain a simulated image, including: The exposed teeth on the face are whitened to obtain a simulated image of the effect.
27. A method for color detection of oral cavity features, characterized in that, The method includes: An oral care device acquires a target image captured by a camera, the target image including oral features and reference objects; the oral care device includes a care component, a handle, and a camera, the camera being mounted on the handle, the care component being within the field of view of the camera, and the reference objects including at least a portion of the care component; The oral care device sends the target image to the terminal device; The terminal device determines the first color value corresponding to the oral cavity feature and the second color value corresponding to the reference object based on the target image; The terminal device corrects the first color value based on the second color value to obtain the target color information corresponding to the oral cavity feature.
28. A color detection device for oral cavity features, characterized in that, Applied to electronic devices, the device includes: Image acquisition module, used to acquire target image, the target image including oral cavity features and reference objects; The color determination module is used to determine the first color value corresponding to the oral cavity feature and the second color value corresponding to the reference object based on the target image. The correction module is used to correct the first color value according to the second color value to obtain the target color information corresponding to the oral cavity feature.
29. A color detection system for oral cavity features, characterized in that, The device includes an oral care device and a terminal device. The oral care device includes a care component, a handle, and a camera. The camera is mounted on the handle, and the care component is within the field of view of the camera. The oral care device is used to acquire a target image captured by a camera, the target image including oral features and a reference object, the reference object including at least a portion of the care device; And for sending the target image to the terminal device; The terminal device is configured to determine, based on the target image, a first color value corresponding to the oral cavity feature and a second color value corresponding to the reference object; and to correct the first color value based on the second color value to obtain target color information corresponding to the oral cavity feature.
30. An electronic device, characterized in that, The system includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the method as described in any one of claims 1 to 26 or 27.
31. A computer-readable storage medium, characterized in that, It stores a computer program thereon, which, when executed by a processor, causes the processor to implement the method as described in any one of claims 1 to 26 or 27.