CN-122022795-A - Charging method and system based on view angle proportion self-adaption
Abstract
The invention relates to the field of image processing, in particular to a charging method and a charging system based on view angle proportion self-adaption, wherein the method comprises the steps of collecting facial images of a patient by using an image collecting device; the method comprises the steps of carrying out gray processing on an acquired facial image, extracting a skin damage area, calculating a texture compactness index of each pixel point in the skin damage area, mapping the texture compactness index of each pixel point into a curved surface projection compensation coefficient, calculating the pixel inner diameter of an adaptive charging unit corresponding to each pixel point in the skin damage area, carrying out traversal coverage on the skin damage area by using the adaptive charging unit based on the pixel inner diameter of the adaptive charging unit, counting the total number of the adaptive charging units covered on the skin damage area, and generating a medical treatment charging result according to the total number of the adaptive charging units and the price corresponding to a single charging unit. The method of the invention can effectively improve the accuracy of the quantization result of the number of the charging units.
Inventors
- FAN KAI
Assignees
- 广州市中崎商业机器股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260204
Claims (10)
- 1. A charging method based on view angle proportion self-adaption is characterized by comprising the steps of collecting facial images of a patient by utilizing an image collecting device, carrying out graying treatment on the collected facial images, extracting a skin damage area, calculating gray gradients of all pixel points in the skin damage area, and calculating texture compactness indexes of all pixel points based on the gray gradients, wherein the texture compactness indexes are positively correlated with the corresponding gray gradients; Mapping the texture compactness index of the pixel points into a curved surface projection compensation coefficient, wherein the curved surface projection compensation coefficient is used for representing the area loss rate when the three-dimensional curved surface is projected to a two-dimensional plane; calculating the pixel inner diameter of an adaptive charging unit corresponding to each pixel point in the skin damage area by using a reference proportionality coefficient, the physical diameter of a currently used laser spot and the curved surface projection compensation coefficient, wherein the pixel inner diameter is in negative correlation with the curved surface projection compensation coefficient and is in positive correlation with the reference proportionality coefficient and the physical diameter; Performing traversal coverage on the skin damage area by using the adaptive charging unit based on the pixel inner diameter of the adaptive charging unit, and counting the total number of the adaptive charging units covered on the skin damage area after the saturation termination condition is met; and generating medical treatment charging results according to the total number of the adaptive charging units and the corresponding price of the single charging unit.
- 2. The viewing angle scale adaptive-based charging method as claimed in claim 1, wherein the reference scale factor obtaining method comprises: acquiring the vertical distance from the lens optical center of the image acquisition device to a reference plane passing through a central datum point of the face of a patient; calculating a reference scaling factor based on the internal parameters of the image acquisition device and the vertical distance, which The computational expression is: ; In the formula, The reference scale factor is represented by a reference scale factor, Represents the focal length of the lens of the image acquisition device, mu represents the physical size density of the individual pixels of the image acquisition device, Representing the perpendicular distance of the lens center of the image acquisition device to a reference plane passing through the center fiducial point of the patient's face.
- 3. The viewing angle scale adaptive based charging method as claimed in claim 1, wherein the calculation expression of the texture compactness index is: ; In the formula, Representing image coordinates A texture compactness index of the position, And Representing the gray scale gradient of the point in the horizontal and vertical directions respectively, For the gray value of the point, As the average gray value of the skin-damaged area, To prevent a small constant with zero denominator.
- 4. The viewing angle ratio adaptive charging method according to claim 1, wherein the curved projection compensation coefficient is calculated by the following expression: ; In the formula, Representing the projection compensation factor at coordinates (x, y), lambda being a preset texture-geometry mapping sensitivity factor, The function is an arctangent function.
- 5. The viewing angle ratio adaptive-based charging method according to claim 1, wherein the calculation expression of the pixel inner diameter of the adaptive charging unit is: ; In the formula, Indicating the charging element pixel inside diameter that should be used when performing the overlay calculation at the image coordinates (x, y), Is the physical inner diameter of the laser spot, As a reference scaling factor, the reference scaling factor, Is the projection compensation coefficient at coordinates (x, y).
- 6. The adaptive charging method based on view angle scale according to claim 1, wherein traversing the lesion area with the adaptive charging unit comprises establishing a coverage status mask consistent with the face image size and initializing the coverage status mask to an uncovered status; Searching uncovered points in the skin damage area to serve as candidate centers, and acquiring the pixel inner diameters of the corresponding adaptive charging units according to the coordinates of the candidate centers; defining the coverage area of the current charging unit based on the pixel inner diameter of the adaptive charging unit, and calculating the overlapping rate of the current charging unit and the marked area in the coverage state mask; if the overlapping rate is lower than a preset overlapping rate threshold value, judging the current charging unit as an effective charging unit, adding one to the total number of the effective charging units, and marking the coverage of the current charging unit as a covered state in the coverage state mask; And repeatedly executing the steps of searching for uncovered points and judging the overlapping rate until a preset saturation termination condition is met, wherein the saturation termination condition comprises that any complete adaptive charging unit meeting the requirement of an overlapping threshold cannot be placed in the remaining uncovered part of the skin damage area, or the proportion of the area marked as the covered state in the covered state mask to the total area of the skin damage area reaches a preset saturation threshold.
- 7. The view-scale-based adaptive charging method according to claim 6, wherein calculating the overlap ratio of the current charging element and the marked region in the coverage status mask comprises: Calculating the total number of pixels which are in the coverage of the current charging unit and are covered in the coverage state mask as the number of overlapped pixels; calculating the total number of pixels contained in the current charging unit as the total number of unit pixels; the ratio of the number of overlapping pixels to the total number of unit pixels is determined as the overlapping ratio.
- 8. The viewing angle scale based adaptive billing method of claim 1 wherein generating a medical treatment billing result from the total number of adaptive billing units and the price corresponding to the individual billing unit comprises: acquiring a preset reference charging unit price and a preset reference light spot area; Calculating the physical area of the current laser spot according to the physical diameter of the laser spot, and calculating an area gain coefficient by combining the reference light spot area and a preset energy density balance index; acquiring the shape type of a laser spot currently used, and determining a shape technology coefficient according to a preset shape value mapping table; calculating unit price of single charging unit by using the reference charging unit price, the area gain coefficient and the shape technology coefficient, wherein the calculation expression is as follows: ; In the formula, Indicating the unit price of a single billing unit, The reference billing unit price is represented and, Representing the area gain factor in question, Representing the shape technology coefficients; And multiplying the total number of the effective charging units by the unit price of the single charging unit to obtain the medical treatment charging result.
- 9. The viewing angle ratio adaptive charging method according to any one of claims 1-8, wherein the adaptive charging unit is an interactable charging unit, the method further comprising: After the saturation termination condition is met, in response to a patient performing a cancel operation on the adaptive charging unit covered on the skin damage area, canceling the corresponding adaptive charging unit from the skin damage area; and after the patient performs the cancel operation on the adaptive charging units covered on the skin damage area, the total number of the adaptive charging units covered on the skin damage area is counted again, and the medical treatment charging result is regenerated.
- 10. A viewing angle ratio adaptive based charging system comprising a processor and a memory, the memory storing computer program instructions, wherein the computer program instructions when executed by the processor implement the viewing angle ratio adaptive based charging method of any of claims 1-9.
Description
Charging method and system based on view angle proportion self-adaption Technical Field The present invention relates to the field of image processing. More particularly, the invention relates to a charging method and a charging system based on view angle proportion self-adaption. Background In the current medical cosmetology industry, laser treatment (such as picosecond laser speckle removal, dot matrix laser skin rejuvenation, photon skin rejuvenation and the like) is the most widely applied skin cosmetology project. To formulate a scientific treatment regimen and evaluate treatment costs, medical institutions often need to quantitatively analyze the skin lesion area of a patient's face and calculate the cost based on the number of treatment spots or coverage area. The existing mainstream technical means generally adopts a two-dimensional image measurement method, namely, a high-resolution camera is used for collecting facial images of a patient, and the number of pixels on the images is converted into a physical area based on a standard 'pinhole camera model' by combining focal length parameters of the camera. On this basis, the number of treatment spots required (billing unit) is estimated by dividing the total area of the lesions by the area of the individual laser spots. However, this existing calculation method mainly relies on the assumption of "ideal parallel plane imaging", i.e., the surface of the subject (face) is flat by default and always remains parallel to the imaging plane of the camera. However, in a practical medical scene, a human face is a three-dimensional entity with complex geometric features, and the human face comprises a plurality of non-planar areas with significant inclination angles relative to the optical axis of a camera, such as nose wings, cheekbone sides, mandible angles and the like. When the skin lesions are located in these oblique or curved regions, they are subject to the principle of perspective projection in optical imaging, and the images imaged on the two-dimensional image sensor are subject to "geometric compression" deformation, which is manifested in that the projected pixel area is significantly smaller than its actual three-dimensional surface area (i.e., perspective foreshortening). Because the prior art lacks a compensation mechanism for the projection error of the three-dimensional curved surface, when a unified plane scaling factor is used for calculation, the number of calculated charging units on the side surface of the face or in a large-curvature area is far less than the number of physical light spots required for actually covering the area, and the accuracy of the charging result of medical treatment and aesthetic treatment is poor. In summary, the existing medical treatment charging method mainly has the following technical problems that the three-dimensional curved surface characteristic of the face is ignored, the area compression error caused by perspective projection cannot be eliminated, so that in the area with large face inclination and curvature, the calculated treatment facula number has obvious deviation from the actual physical coverage required number, and the data quantization distortion of the treatment scheme and the accuracy of the medical treatment charging result are poor. Disclosure of Invention In order to solve the technical problems of data quantization distortion of a treatment scheme and poor accuracy of medical treatment charging results caused by significant deviation between the calculated treatment facula number and the number required by actual physical coverage in the existing medical treatment charging method, the invention provides a scheme in the following aspects. In a first aspect, the present invention provides a viewing angle scale-based adaptive billing method, the method comprising acquiring a facial image of a patient with an image acquisition device, Carrying out graying treatment on the collected facial image, extracting a skin damage area, calculating the gray gradient of each pixel point in the skin damage area, and calculating the texture compactness index of each pixel point based on the gray gradient; Mapping the texture compactness index of the pixel points into a curved surface projection compensation coefficient, wherein the curved surface projection compensation coefficient is used for representing the area loss rate when the three-dimensional curved surface is projected to a two-dimensional plane; calculating the pixel inner diameter of an adaptive charging unit corresponding to each pixel point in the skin damage area by using a reference proportionality coefficient, the physical diameter of a currently used laser spot and the curved surface projection compensation coefficient, wherein the pixel inner diameter is in negative correlation with the curved surface projection compensation coefficient and is in positive correlation with the reference proportionality coefficient and the physical diamete