Oral cavity picture acquisition method, oral cavity cleaning device, computer equipment and computer readable storage medium
By analyzing the multiple relationship between the motor frequency and the frequency of the photography module in the oral cleaning device, determining the photographing interval and processing the image, the problem of blurry oral images taken by the built-in camera device of the toothbrush is solved, and the clarity and analysis quality are improved.
Patent Information
- Application Number
- CN202410782580.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-06
AI Technical Summary
The oral images captured by the existing toothbrush's built-in camera device during brushing are blurred due to jitter, making it difficult to obtain clear oral photos for analysis.
By combining the vibration module and the photography module in the oral cleaning device, the multiple relationship between the motor frequency and the photography module frequency is analyzed to determine the photography interval, and the collected images are processed according to this relationship to generate clear images to ensure the clarity of the oral photos.
Optimize shooting from the perspective of time and space, improve the clarity of oral photos, facilitate analysis and processing, and improve the quality of analysis.
Smart Images

Figure CN118592877A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image processing technology, and in particular, relates to a method for obtaining oral photographs, an oral cleaning device, a computer device, and a computer-readable storage medium. Background Art
[0002] In daily life, in order to enhance the oral cleaning effect, the prior art integrates a low-cost camera device inside the toothbrush head, and uses a circuit to enable the toothbrush to use the camera device to take images of the oral cavity during the brushing process, and then analyze the oral condition. The camera device moves with the brush head, and because the brush head takes pictures while in motion, the images formed by the pictures are all shaking, and the images are blurred and difficult to use. Therefore, how to obtain clear oral photos for analysis is a technical problem that needs to be solved urgently by those skilled in the art.
[0003] The preceding description is intended to provide general background information and does not necessarily constitute prior art. Summary of the invention
[0004] Based on this, it is necessary to propose an oral photograph acquisition method, an oral cleaning device, a computer device and a computer-readable storage medium to address the above problems, which can effectively acquire clear oral photographs for analysis.
[0005] The present application solves the technical problem by adopting the following technical solutions:
[0006] The present application provides a method for acquiring oral photographs, which is applied to a controller in an oral cleaning device, wherein the oral cleaning device includes a controller, a photographing module, a vibration module and a cleaning module; the controller is electrically connected to the vibration module and the photographing module, and the vibration module is physically connected to the cleaning module; the vibration module is used to drive the cleaning module to vibrate according to control, the cleaning module is used to clean the oral cavity, and the photographing module is used to take images in the oral cavity according to control; the controller is configured to: after starting the vibration module and the photographing module, acquire the motor frequency of the vibration module and the image output frequency of the photographing module; analyze the multiple relationship between the motor frequency and the image output frequency; determine the photo shooting interval according to the multiple relationship; acquire the captured image captured by the photographing module within the photo shooting interval, process the captured image according to the multiple relationship to obtain a clear image, and the clear image is used for oral analysis.
[0007] In an optional embodiment of the present application, a photographing interval is determined according to a multiple relationship, including: determining a plurality of unit phases according to a motor frequency; obtaining, for each unit phase, the vibration and vibration speed of the vibration module, and a sample image taken by the photographing module at each unit phase; calculating the exposure period stability of the sample image; when the vibration corresponding to a unit phase is greater than a vibration threshold, the vibration speed is less than a speed threshold, and the exposure period stability is greater than a stability threshold, marking the unit phase as a photographing interval.
[0008] In an optional embodiment of the present application, the captured image is processed according to the multiple relationship to obtain a clear image, including: dividing the captured image into a number of sub-areas, and calculating the clarity of each sub-area; determining a clarity threshold according to the multiple relationship, and marking the sub-area with a clarity greater than the clarity threshold as an output area; and cropping the captured image according to the output area to generate a clear image.
[0009] In an optional embodiment of the present application, processing the acquired image according to the multiple relationship to obtain a clear image also includes: marking the current multiple relationship as a first multiple relationship, marking the image output area as the first image output area, and marking the acquired image acquired under the first multiple relationship as the first acquired image; selecting a second image output area from the field of view of the acquired image, the second image output area and the first image output area having non-overlapping spatial ranges in the field of view of the acquired image; inferring the second multiple relationship based on the second image output area, and adjusting the motor frequency and the image output frequency so that the two satisfy the second multiple relationship; obtaining a first sub-clear image obtained by cutting the first acquired image according to the first image output area; obtaining a second acquired image acquired under the second multiple relationship, and obtaining a second sub-clear image by cutting the second acquired image according to the second image output area; and summarizing the first sub-clear image and the second sub-clear image to generate a clear image.
[0010] In an optional embodiment of the present application, the photo interval is determined according to the multiple relationship; it is determined whether the multiple relationship satisfies an integer multiple relationship; if the multiple relationship satisfies an integer multiple relationship, the photo interval is directly determined according to the multiple relationship; if the multiple relationship does not satisfy the integer multiple relationship, the phase difference between the motor frequency and the image output frequency is calculated, and the photo interval is determined according to the phase difference.
[0011] In an optional embodiment of the present application, the phase difference between the motor frequency and the image output frequency is calculated, including: calculating multiples of the motor frequency and the image output frequency, taking the integer part of the multiple and the motor frequency to obtain the vibration cycle time; obtaining the photographing cycle time according to the image output frequency; and obtaining the phase difference according to the vibration cycle time and the photographing cycle time.
[0012] In an optional embodiment of the present application, the oral cleaning device also includes an optical projection module, which is used to project reference light within the shooting range of the photographic module; obtain a captured image captured by the photographic module within the shooting interval, including: obtaining a reference image projected by the reference light in the oral cavity; calculating the vibration generated by the photographic module based on the reference image; marking the resulting image directly captured by the photographic module at the output frequency as a rough image; optimizing the rough image based on the vibration to obtain a captured image, and the clarity of the captured image is higher than that of the rough image.
[0013] The present application also provides an oral cleaning device, including a vibration module, a cleaning module, a photographic module and a controller; the vibration module is used to drive the cleaning module to vibrate according to control, and the vibration module is physically connected to the cleaning module; the cleaning module is used to clean the oral cavity; the photographic module is used to take images inside the oral cavity according to control; the controller is electrically connected to the vibration module and the photographic module, and the controller is used to execute the method as described above.
[0014] The present application also provides a computer device, including a processor and a memory: the processor is used to execute a computer program stored in the memory to implement the aforementioned method.
[0015] The present application also provides a computer-readable storage medium storing a computer program, which implements the aforementioned method when the computer program is executed by a processor.
[0016] The embodiments of the present application have the following beneficial effects:
[0017] This application can use the multiple relationship between the motor frequency of the vibration module in the oral cleaning device and the image output frequency of the photography module to find the shooting interval when it is suitable to take pictures, so as to determine the appropriate shooting record from the time dimension; and further use the multiple relationship to process the collected images taken in the shooting interval, so as to determine which part of the collected image is clear from the spatial dimension. From the perspective of time and space, it provides ideas for the collection of oral photos, ensures the clarity of the final generated oral image, facilitates analysis and processing, and improves the quality of analysis.
[0018] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented according to the contents of the specification, and in order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the following preferred embodiments are specifically cited and described in detail with the accompanying drawings. It should be understood that the above general description and the detailed description below are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] in:
[0021] Figure 1 A schematic diagram of a flow chart of a method for acquiring oral photos provided by an embodiment;
[0022] Figure 2 A diagram showing the relationship between internal functional modules of an oral cleaning device provided by an embodiment;
[0023] Figure 3 A schematic diagram of the spatial range occupied by the image output area within the field of view of the captured image provided by an embodiment;
[0024] Figure 4 A schematic diagram of the spatial range occupied by the second image output area within the second captured image field of view under the second multiple relationship provided by an embodiment;
[0025] Figure 5 A schematic block diagram of the structure of a computer device provided by an embodiment. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0027] A low-cost lens is integrated inside the brush head of the electric toothbrush, and line control is used to shoot the oral cavity. The camera follows the movement of the brush head. Since the shooting is performed during the movement of the brush head, the image formed by the shooting is in a shaking state. It is difficult to obtain the regional position information of the brush head inside the oral cavity by analyzing the shaking image. How to obtain a clear oral cavity image for analysis, this application provides an oral cavity photo acquisition method. In order to clearly describe a method for obtaining an oral cavity photo provided in this embodiment, please refer to Figure 1 to Figure 4 , including steps S110 to S120.
[0028] The oral cavity photo acquisition method provided in the present application is applied to a controller 21 of an oral cavity cleaning device 20, and the controller 21 is configured with a controller 21 configured with an oral cavity photo acquisition method. Figure 2 , Figure 2 The figure shows the relationship diagram of the internal functional modules of an oral cleaning device 20 in one embodiment. The oral cleaning device 20 includes a controller 21, a photographing module 22, a vibration module 23 and a cleaning module 24. The controller 21 is electrically connected to the vibration module 23 and the photographing module 22, and the vibration module 23 is physically connected to the cleaning module 24. The vibration module 23 is used to drive the cleaning module 24 to vibrate according to the control, the cleaning module 24 is used to clean the oral cavity, and the photographing module 22 is used to take an image in the oral cavity according to the control. The controller 21 realizes the acquisition of a clear oral cavity image according to the configured oral cavity photo acquisition method.
[0029] Furthermore, the oral cleaning device 20 can be an electric toothbrush or other equipment. And further, taking the oral cleaning device 20 as an example of an electric toothbrush, a conventional electric toothbrush is usually equipped with a vibration module 23 and a cleaning module 24. The oral cleaning device 20 provided in the present application is additionally provided with a photographic module 22 and a controller 21, wherein the photographic module 22 can also be arranged on the electric toothbrush body, for example, arranged adjacent to the cleaning module 24, and can always be located inside the oral cavity during the oral cleaning process, so as to facilitate the capture of oral images. The controller 21 can be specifically an SOC arranged inside the electric toothbrush body, or it can be located outside the electric toothbrush body and exist as a relatively independent device. For example, the controller 21 can be specifically a mobile terminal, which is arranged outside the electric toothbrush as the controller 21, and is connected to the vibration module 23 and the photographic module 22 inside the electric toothbrush through a wireless communication point to achieve control. The mobile terminal and the electric toothbrush are collectively referred to as an oral cleaning device 20.
[0030] The specific form of the controller 21 in the form of a mobile terminal may be, but is not limited to, a mobile phone, a tablet computer, a personal digital assistant (PDA), a mobile Internet device (MID), and a wearable device (such as a smart watch). The mobile terminal may process and display the corresponding information through an application (such as an APP), such as displaying oral images, analyzing reports, or controlling the selection of the oral area to be photographed, and performing corresponding operations, thereby improving the use efficiency. In this embodiment, the wireless communication technology used for the electrical connection between the electric toothbrush and the controller 21 may include but is not limited to: Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), wideband code division multiple access (W-CDMA), code division multiple access (CDMA), time division multiple access (TDMA), Bluetooth, Wireless Fidelity (WiFi) (such as Institute of Electrical and Electronics Engineers standards IEEE 802.11a, IEEE802.11b, IEEE802.11g and / or IEEE 802.11n), Voice over internet protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging and short messages, and any other suitable communication protocols, even those that have not yet been developed. The controller 21 controls to obtain a clear oral image according to the configured oral photo acquisition method, and the specific implementation process will be described in detail later.
[0031] Step S110: after starting the vibration module and the photographing module, the motor frequency of the vibration module and the image output frequency of the photographing module are obtained; and the multiple relationship between the motor frequency and the image output frequency is analyzed.
[0032] In one embodiment, after the vibration module 23 and the photographic module 22 are started, the frequency parameters of the vibration module 23 and the photographic module 22 can be directly read, specifically including the motor frequency of the vibration module 23 and the image output frequency of the photographic module 22. Among them, the vibration module 23 is specifically a motor that drives the cleaning module 24 to vibrate for cleaning the oral cavity, and the frequency of the motor is usually between 200Hz and 300Hz. And it can be understood that in order to reflect the diversity of cleaning the oral cavity, the vibration module 23 is often provided with multiple vibration modes, and the motor frequency of each vibration mode is different. Even the motor frequency in a vibration mode is not necessarily fixed, but dynamically changes, so it needs to be acquired in real time. As for the image output frequency, that is, the image refresh cycle of the photographic module 22, it is usually 15fps-25fps, that is, 15Hz-25Hz, but the image output frequency of the photographic module 22 is usually relatively fixed. According to the multiples of the motor frequency and the image output frequency, the multiple relationship can be analyzed, and the multiple relationship will be specifically reflected in the subsequent acquisition process.
[0033] Step S120: determining a photographing interval according to the magnification relationship; acquiring a captured image captured by the photographing module within the photographing interval, processing the captured image according to the magnification relationship to obtain a clear image, and using the clear image for oral analysis.
[0034] In one embodiment, a photographing interval is determined based on a multiple relationship, including: determining a plurality of unit phases based on a motor frequency; obtaining, for each unit phase, the vibration and vibration speed of the vibration module 23, and a sample image taken by the photographing module 22 at each unit phase; calculating the exposure period stability of the sample image; when the vibration corresponding to a unit phase is greater than a vibration threshold, the vibration speed is less than a speed threshold, and the exposure period stability is greater than a stability threshold, marking the unit phase as a photographing interval.
[0035] In one embodiment, for ease of understanding, it is assumed that the motor frequency is 250Hz and the image output frequency is 25Hz, so the multiple relationship is 10. In addition, it can be understood that the vibration module 23 in the oral cleaning device 20 is in periodic motion: up and down, left and right, so as to drive the cleaning module 24 to reciprocate and clean the oral cavity when the user holds the oral cleaning device 20 still. Since the vibration module 23 moves periodically, the speed of the vibration module 23 will change within a cycle, which causes the clarity of the image captured by the camera module to change. When the speed of the vibration module 23 is large, it is blurred, and when the speed of the vibration module 23 is small, it is clear. However, since the motor frequency is inconsistent with the image output frequency value, and the motor frequency value is much larger than the image output frequency value, when the vibration module 23 is located at the time node of the minimum speed zone, it is not located at the time node of the camera module capturing the image; on the contrary, when the camera module 22 is located at the time node where the image can be captured, it is not the time node when the vibration module 23 is located at the minimum speed zone. In the above cases, the images captured by the camera module 22 are not clear enough.
[0036] In order to improve the acquisition efficiency, the multiple relationship can be used to determine the photo interval. The photo interval is when the speed of the vibration module 23 is the smallest, the interference with the acquisition of the camera module 22 is the smallest, and it is a summary of the time nodes when the camera module 22 can capture images. How to use it to determine, you can use a higher frequency motor frequency to divide multiple unit phases within a preset time period. For example, the motor frequency is 250Hz, and the preset time period is 1s, which can be divided into 250 unit phases. And according to the relevant data of the vibration module 23, the vibration and vibration speed generated at each unit phase can be calculated.
[0037] In addition, multiple photographing modules 22 or photographing cycles can be used in advance to collect samples at each unit phase as sample images, and the exposure period stability of the sample images can be calculated. When the vibration is greater than the vibration threshold, the vibration speed is less than the speed threshold, and the exposure period stability is greater than the stability threshold, the unit phase is marked as a photographing interval. In order to facilitate understanding of the determination and process of the photographing interval, a table is now provided for explanation.
[0038]
[0039]
[0040]
[0041]
[0042] Table 1 Schematic diagram of the relationship between vibration, vibration speed and exposure period stability under multiple unit phases
[0043] The above table provides a total of 100 unit phases corresponding to vibration, vibration speed and exposure stability. Among them, vibration is the displacement generated by the vibration module 23, and because the displacement generated by the vibration module 23 is directional, the vibration is 0 when it is at the center axis, and the values at the two end points are 1 and -1 respectively. The vibration speed is the linear velocity of the vibration module 23 at the corresponding unit phase. Similarly, the values are positive and negative in terms of direction. The vibration speed is 1 or -1 when it is at the center axis, and the minimum value is 0 when it is at the two end points because the speed direction needs to be changed. Therefore, it can be seen that when it is at the two end points, the linear velocity generated by the vibration module 23 is the smallest, and the vibration displacement brought is the largest. Further, it is reflected on the captured image, that is, the size of the afterimage amplitude, and the evaluation standard for the size of the afterimage amplitude is also the exposure stability. The larger the afterimage amplitude, the lower the exposure stability and the higher the value; conversely, the smaller the afterimage amplitude, the higher the exposure stability and the lower the value.
[0044] In summary, to ensure the clarity of oral image acquisition, the lower the amplitude of the residual image in the image, the lower the exposure stability value, which corresponds to the time point with the maximum vibration and the maximum vibration speed. In this regard, the screening of the photo interval needs to simultaneously meet the vibration greater than the vibration threshold, the vibration speed less than the speed threshold, and the exposure stability greater than the stability threshold. Taking the values in Table 1 as an example, the vibration threshold can take an absolute value greater than 0.95, the vibration speed can take an absolute value less than 0.3, and the stability threshold can take less than 3. Based on the screening conditions of the example, two intervals of phases 21-30 and 71-79 can be screened out from 100 unit phases, and the two intervals are marked as photo intervals.
[0045] After determining the photographing interval, the image output frequency of the photographing module 22 can be controlled and adjusted so that the time point for oral image acquisition in the image output frequency is aligned with the photographing interval. In this way, the photographing module 22 can be controlled in the time dimension to take photos only within the photographing interval, thereby avoiding invalid shooting and ensuring the clarity of the acquired oral images.
[0046] In one embodiment, the captured image is processed according to the multiple relationship to obtain a clear image, including: dividing the captured image into a number of sub-areas and calculating the clarity of each sub-area; determining a clarity threshold according to the multiple relationship, marking the sub-area with a clarity greater than the clarity threshold as an output area; and cropping the captured image according to the output area to generate a clear image.
[0047] In one embodiment, it is understood that, under normal circumstances, the photographic module 22 captures images by means of curtain roll exposure. Taking the motor frequency of 200Hz and the image output frequency of 20fps cited above as an example, within the photographing interval, one oral image is captured and the vibration module 23 has moved 10 cycles. Taking the photographic module 22 as an example, if it is a rolling curtain exposure sensor, in this case, there will be 10 large areas of image pixels corresponding to one movement cycle of the vibration module 23, and this movement cycle contains the phase information of the vibration module 23. And according to the data described in Table 1 above, in this embodiment, the acceleration is the largest, that is, the speed is the smallest, when the phase is 20% to 29% and 70% to 79%. The image obtained in this phase interval is the clearest. It is equivalent to 20% of the image being clear, but the actual visual effect is affected by 80% pixel blur, and the entire image feels unclear. For the imaging effect, you can refer to Figure 3 As shown, Figure 3 The figure shows an imaging diagram with a size of 10*10 pixels, and the numbers on the left and the top represent the pixel positions respectively. Since the frequencies of the camera module 22 and the vibration module 23 are only in multiples and are not completely aligned, and the image acquisition method of the camera module 22 is to acquire images pixel by pixel by pixel scanning. Therefore, even if the image is acquired within the shooting interval, the resulting image is not completely clear, and only a part of the entire image can be used and is clear.
[0048] To this end, the clear parts can be screened out from the spatial perspective and retained. To this end, the acquired image can be divided into several sub-areas, which are Figure 3 The example shown can be a single pixel. The clarity of each sub-area is calculated. The clarity can be the exposure stability mentioned above, or other parameters for calculating the clarity of the image. There is no limitation on this. The clarity threshold is calculated using the multiple relationship and the sub-areas are screened. The sub-areas that meet the screening conditions are marked as the output area. The screening condition can be that the clarity is greater than the clarity threshold. The screening process is relatively existing and will not be expanded here. Based on the data listed above, Figure 3 The output area is the gray bar. Figure 3 In the image composed of 100 pixels shown in the figure, in fact, only the pixels in the two gray parts in the 3rd and 8th columns of the figure are clear enough. A clear image can be obtained by cutting them down.
[0049] The clear image obtained in this embodiment is only a part of the captured image field and is obtained within a capture cycle of the camera module 22. The clear image in this case can also be used in certain circumstances, for example, the clear image is a characteristic part of the captured image.
[0050] In one embodiment, processing a captured image according to a multiple relationship to obtain a clear image also includes: marking the current multiple relationship as a first multiple relationship, marking the image output area as a first image output area, and marking the captured image captured under the first multiple relationship as a first captured image; selecting a second image output area from the field of view of the captured image, wherein the second image output area and the first image output area do not overlap in the spatial range occupied by the second image output area in the field of view of the captured image; inferring a second multiple relationship based on the second image output area, and adjusting the motor frequency and the image output frequency so that the two satisfy the second multiple relationship; obtaining a first sub-clear image obtained by cutting the first captured image according to the first image output area; obtaining a second captured image captured under the second multiple relationship, and obtaining a second sub-clear image by cutting the second captured image according to the second image output area; and summarizing the first sub-clear image and the second sub-clear image to generate a clear image.
[0051] In one embodiment, in the previous embodiment, it can be seen that when the multiple relationship is fixed, the clear images collected under multiple cycles are actually fixed parts of the collected images. And it can be known that the output area is actually determined according to the multiple relationship, that is to say, adjusting the multiple relationship can realize the displacement or scrolling of the output area in the image. That is, the time of the 0 phase end point position closest to the point can be used as (n+1) / f, where n is the integer part of the frequency multiple, and f is the motor frequency. The difference calculated by the two is the time difference generated most recently at the end of the whole cycle, which is 0 when the cycle multiple is an integer. When the cycle multiple is a non-integer, interpolation is generated. That is, each output cycle of the 0 phase is offset, and each offset time difference is the same, which also generates the rolling of the phase information. It is equivalent to the 0 phase area moving in the image, and each picture moves a fixed time difference. When the motor frequency is adjusted or the output frequency changes the frequency multiple, the offset time difference changes accordingly, and its impact effect is the speed of the scrolling speed of the phase information.
[0052] Based on this idea, in order to make a distinction, the multiple relationship of the current cycle is marked as the first multiple relationship, the image output area is marked as the first image output area, and the acquired image acquired under the first multiple relationship is marked as the first acquired image. A second image output area is selected within the field of view of the acquired image. Preferably, the second image output area can be non-overlapping with the spatial range occupied by the first image output area within the field of view of the acquired image. For details, please refer to Figure 3 and Figure 4 As shown. Figure 3 and Figure 4 There are 100 pixels in the field of view of the captured image shown. Figure 3 The first output area in the image is the grayed-out columns 3 and 8. In order to ensure the integrity of the final clear image, the second output area can be selected as follows Figure 4The 4th and 9th columns shown. In the above implementation, the first output area can be derived and calculated according to the first multiple relationship. Conversely, the second output area of the target can also be used to reversely deduce the second multiple relationship that the motor frequency and the output frequency need to satisfy. And using the second multiple relationship to adjust the motor frequency and the output frequency means that the conditions of the second multiple relationship are met, and the data are collected and processed in the manner described above.
[0053] The result obtained by cutting the first collected image according to the first output image area is marked as the first sub-clear image, such as Figure 3 The pixels in the 3rd and 8th columns shown in FIG. 1 are cut using the second output image area to obtain the acquired image acquired under the second multiple relationship. Figure 4 The pixels in the 4th and 9th columns are marked as the second sub-clear image. After multiple cycles of adjustment, the image output area gradually fills the entire field of view of the collected image, and finally aggregates and collages to generate a clear image. The difference between this clear image and the previous embodiment is that the clear image obtained by this embodiment is obtained by processing and obtaining multiple sub-clear images that do not overlap in the field of view of the collected image in multiple cycles, and then aggregates and collages them, thereby obtaining a clear image with a larger clear area. And it can be understood that Figure 3 , Figure 4 The distribution of the image output area described in this embodiment is only obtained based on the multiple relationship exemplified in this embodiment. The actual situation may not be completely consistent with the description of the embodiment of this application. The actual distribution of the image output area is based on the calculation based on the multiple relationship. Furthermore, the distribution of the image output area in the field of view of the captured image is also not fixed. Figure 3 or Figure 4 The situation shown, Figure 3 , Figure 4 The output area distribution shown is only for the convenience of explanation and understanding. The actual situation may be different. Figure 3 , Figure 4 As shown, and the actual calculation results based on the multiple relationship.
[0054] In one embodiment, a photographing interval is determined according to a multiple relationship; it is determined whether the multiple relationship satisfies an integer multiple relationship; if the multiple relationship satisfies an integer multiple relationship, the photographing interval is directly determined according to the multiple relationship; if the multiple relationship does not satisfy an integer multiple relationship, the phase difference between the motor frequency and the image output frequency is calculated, and the photographing interval is determined according to the phase difference.
[0055] In one embodiment, the phase difference between the motor frequency and the image output frequency is calculated, including: calculating multiples of the motor frequency and the image output frequency, taking the integer part of the multiple and the motor frequency to obtain the vibration cycle time; obtaining the photographing cycle time according to the image output frequency; and obtaining the phase difference according to the vibration cycle time and the photographing cycle time.
[0056] In one embodiment, in a preferred embodiment of the present application, the multiple relationship can satisfy an integer multiple relationship, such as the 10-fold relationship described in the previous embodiment. In the case of an integer multiple, the multiple relationship can be directly used to obtain the photo interval. The specific solution process is described in the previous text and will not be repeated here.
[0057] If the multiple relationship does not satisfy the integer multiple, the phase difference needs to be calculated to solve the photo interval. The specific solution process can be to first calculate the multiples of the motor frequency and the image output frequency. For the sake of convenience, the multiple of 9.8 is used as an example. Take the complete end point of the cycle as the calculation reference point, and use the image output frequency (slow speed) as the benchmark to obtain the time corresponding to the image output cycle as the end point of the end 0 phase. Take the integer part of the multiple and the motor frequency to obtain the vibration cycle time. First get the integer part 9 (n=9), then calculate the time n+1 to get (n+1) / F1 to get the total time T1 of the vibration cycle of n+1, and then get the time 1 / 20=0.05 seconds T2 of the image output frequency, T2 is the photo cycle time. Among them, T1-T2 represents the end 0 phase time difference, and the time difference is divided by the total cycle (motor frequency), which is the phase difference. According to the phase difference, the photo interval can be obtained in the same way as the magnification relationship.
[0058] In one embodiment, the oral cleaning device 20 also includes an optical projection module, which is used to project reference light within the shooting range of the photographic module 22; obtain a captured image captured by the photographic module 22 within the shooting interval, including: obtaining a reference image projected by the reference light in the oral cavity; calculating the vibration amplitude generated by the photographic module 22 based on the reference image; marking the resulting image directly captured by the photographic module 22 at the image output frequency as a rough image; optimizing the rough image according to the vibration amplitude to obtain a captured image, and the clarity of the captured image is higher than that of the rough image.
[0059] In one embodiment, an optical projection module may be further provided in the oral cleaning device 20. The optical projection module is capable of projecting a reference light beam toward a target point in the oral cavity, and using the photographic module 22 to capture a plurality of reference images including the reference light beam. Using the reference light beam as a reference, the vibration amplitude of the photographic module 22 caused by the vibration driven by the vibration module 23 can be analyzed. The image captured by the photographic module 22 according to the photographing interval is marked as a rough image. Before the rough image is processed in the image area, the rough image may be optimized according to the vibration amplitude to eliminate the jitter therein. The optimized rough image is marked as the captured image originally used for processing. It can be understood that the processed captured image has a higher clarity than the rough image.
[0060] In one embodiment, with a clear image, the oral cavity can be analyzed as needed. Specifically, the analysis can be to determine where the cleaning module 24 is located in the oral cavity from a cleaning perspective to adjust the cleaning mode; or it can be to analyze the health of the oral cavity, such as caries, tartar, plaque or periodontal disease. The specific analysis process and requirements are set according to actual needs without restriction. The analysis results can generate a test report and output it so that the user or doctor can understand the oral condition more intuitively, which is convenient for the subsequent work.
[0061] Therefore, the present application can use the multiple relationship between the motor frequency of the vibration module in the oral cleaning device and the image output frequency of the photography module to find the shooting interval when it is suitable to take pictures, so as to determine the appropriate shooting record from the time dimension; and further use the multiple relationship to process the collected images taken in the shooting interval, so as to determine which part of the collected image is clear from the spatial dimension. From the perspective of time and space, it provides ideas for the collection of oral photos, ensures the clarity of the final generated oral image, facilitates analysis and processing, and improves the quality of analysis.
[0062] Figure 5 FIG. 1 shows an internal structure diagram of a computer device in an embodiment. The computer device may be a terminal or a server. Figure 5 As shown, the computer device includes a processor, a memory and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may implement the method for acquiring oral photographs. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor may implement the method for acquiring oral photographs. Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0063] In one embodiment, the present application further proposes a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of the aforementioned method.
[0064] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0065] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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.
[0066] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for obtaining oral photos, applied to a controller in an oral cleaning device, the oral cleaning device comprising the controller, a photographing module, a vibration module and a cleaning module; the controller is electrically connected to the vibration module and the photographing module, the vibration module is physically connected to the cleaning module; the vibration module is used to drive the cleaning module to vibrate according to control, the cleaning module is used to clean the oral cavity, and the photographing module is used to take images in the oral cavity according to control; It is characterized in that The controller is configured to: After starting the vibration module and the camera module, obtaining the motor frequency of the vibration module and the image output frequency of the camera module; analyzing the multiple relationship between the motor frequency and the image output frequency; Determine a photographing interval according to the multiple relationship; The captured image captured by the photography module in the photographing interval is acquired, and the captured image is processed according to the multiple relationship to obtain a clear image, and the clear image is used for oral cavity analysis.
2. The method for obtaining oral photos according to claim 1, characterized in that: The determining of the photographing interval according to the multiple relationship includes: determining a plurality of unit phases according to the motor frequency; Acquire each of the unit phases, the vibration and vibration speed of the vibration module, and the sample image taken by the photography module in each of the unit phases; calculate the exposure period stability of the sample image; When the vibration corresponding to a unit phase is greater than a vibration threshold, the vibration speed is less than a speed threshold, and the exposure period stability is greater than a stability threshold, the unit phase is marked as a photographing interval.
3. The method for obtaining oral photos according to claim 1, characterized in that: The step of processing the collected image according to the multiple relationship to obtain a clear image includes: Dividing the acquired image into a plurality of sub-regions, and calculating the clarity of each sub-region; Determine a definition threshold value according to the multiple relationship, and mark the sub-region whose definition is greater than the definition threshold value as a picture output region; The collected image is cropped according to the image output area to generate the clear image.
4. The method for obtaining oral photos according to claim 3, characterized in that: The step of processing the collected image according to the multiple relationship to obtain a clear image further includes: Marking the current multiple relationship as a first multiple relationship, marking the image output area as a first image output area, and marking the acquired image acquired under the first multiple relationship as a first acquired image; Selecting a second image output area from the field of view of the acquired image, wherein the second image output area and the first image output area do not overlap each other in the field of view of the acquired image; Inferring a second multiple relationship according to the second image output area, adjusting the motor frequency and the image output frequency so that the two satisfy the second multiple relationship; Acquire a first sub-clear image obtained by cutting the first acquired image according to the first image output area; acquire a second acquired image acquired under the second multiple relationship, and obtain a second sub-clear image obtained by cutting the second acquired image according to the second image output area; The first sub-clear image and the second sub-clear image are combined to generate the clear image.
5. The method for obtaining oral photos according to claim 1, characterized in that: Determining the photographing interval according to the multiple relationship; Determining whether the multiple relationship satisfies an integer multiple relationship; If the multiple relationship satisfies an integer multiple relationship, the photographing interval is directly determined according to the multiple relationship; If the multiple relationship does not satisfy an integer multiple relationship, the phase difference between the motor frequency and the image output frequency is calculated, and the photo shooting interval is determined according to the phase difference.
6. The method for obtaining oral cavity photographs according to claim 5, characterized in that: The calculating the phase difference between the motor frequency and the image output frequency comprises: Calculate the multiples of the motor frequency and the image output frequency, take the integer part of the multiple and the motor frequency to obtain the vibration cycle time; and obtain the photographing cycle time according to the image output frequency; The phase difference is obtained according to the vibration cycle time and the photographing cycle time.
7. The method for obtaining oral cavity photographs according to claim 1, characterized in that: The oral cleaning device further comprises an optical projection module, and the optical projection module is used to project reference light within the shooting range of the photography module; The acquiring of the captured image captured by the photographing module within the photographing interval includes: Acquire a reference image projected by the reference light in the oral cavity; Calculating the vibration amplitude generated by the photographic module according to the reference image; Marking the image directly taken by the photographic module at the image output frequency as a rough image; The rough image is optimized according to the vibration amplitude to obtain the captured image, and the clarity of the captured image is higher than that of the rough image.
8. An oral cleaning device, characterized in that: It includes a vibration module, a cleaning module, a photography module and the controller; The vibration module is used to drive the cleaning module to vibrate according to control, and the vibration module is physically connected to the cleaning module; the cleaning module is used to clean the oral cavity; The photography module is used to capture intraoral images according to the control; The controller is electrically connected to the vibration module and the camera module, and the controller is used to execute the method as claimed in any one of claims 1 to 7.
9. A computer device, characterized in that: including a processor and a memory; The processor is configured to execute the computer program stored in the memory to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Water pressure adjusting method, oral irrigator, storage medium and computer program product
CN118948473A
