Organ positioning method, device, electronic device and storage medium
The face image is acquired through lidar and RGBD cameras, and feature extraction and contour delineation are used to perform two segmentations. The target area and anatomical mark points are determined based on the segmentation results, which solves the problem of insufficient organ positioning and segmentation accuracy in the existing technology and achieves a better High positioning accuracy.
Patent Information
- Application Number
- CN202111585763.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-12-22
AI Technical Summary
The existing technology has insufficient segmentation accuracy in organ positioning, resulting in low organ positioning accuracy.
LiDAR and RGBD cameras are used to acquire facial images, and target organs are segmented twice through feature extraction and contour drawing. The target areas and anatomical landmarks are determined based on the segmentation results to achieve precise positioning of organs.
It improves the precision and accuracy of organ positioning, reduces segmentation errors, and enhances the positioning accuracy of target organs.
Smart Images

Figure CN114495199B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to an organ positioning method, device, electronic device and storage medium. Background Art
[0002] With the continuous development of medicine, organ positioning technology plays an important role in daily medical care. In particular, with the current normalization of epidemic prevention, a large number of nasopharyngeal swab collection work needs to be carried out. In order to reduce the risk of medical staff being infected with the virus during manual collection, auxiliary machines can be used, such as sampling robots based on machine vision technology to assist in nasopharyngeal swab collection. Before collecting nasopharyngeal swabs, the target organ needs to be located first, and then the swab collection is completed based on the positioning information.
[0003] At present, for the accurate positioning of organs, the organ segmentation process can be carried out by automatically outlining the organ contours, and the organs are segmented step by step until all normal organs are segmented.
[0004] However, the single segmentation method is still lacking in segmentation accuracy, resulting in low organ positioning accuracy. Summary of the invention
[0005] In response to the above problems, the embodiments of the present application provide an organ localization method, device, electronic device and storage medium, which are conducive to improving the localization accuracy of the target organ based on the segmentation of the target organ.
[0006] To achieve the above objectives, in a first aspect, an embodiment of the present application provides an organ positioning method, which is applied to a human biological sample collection device, the human biological sample collection device comprising a laser radar and a red, green, and blue depth map (RGB-Depth MapRGBD) camera, and the method comprises the following steps:
[0007] Acquire a first face image and a second face image, wherein the first face image is acquired based on laser radar data, the laser radar data is acquired by the laser radar for a target organ of a detection object, and the second face image is acquired by an RGBD camera;
[0008] Obtaining a first segmentation result based on a feature matrix of the first face image and the second face image;
[0009] Obtaining a second segmentation result according to outlining the first face image and / or the second face image;
[0010] Determine the target area through the first segmentation result and the second segmentation result;
[0011] determining a target anatomical landmark from the target region;
[0012] The position information of the target organ of the detected object is obtained according to the target anatomical landmarks.
[0013] In the embodiment of the present application, the data collected by the laser radar and the RGBD camera are used to obtain the first face image and the second face image respectively, and then the first segmentation result is obtained according to the feature matrix of the first face image and the second face image; at the same time, the second segmentation result can be obtained according to one of the contour segmentation results for the first face image or the second face image, or the contour segmentation results of the first face image and the second face image are merged, and then the second segmentation result is obtained according to the result of the merged processing; finally, the target area is determined by the first segmentation result and the second segmentation result, and the target anatomical point is determined based on the target area, and the target organ is located by the target anatomical point. In this process, the target organ of the same detection object is segmented twice by feature extraction and contour delineation, and the first segmentation result and the second segmentation result are obtained respectively. Finally, the organ is located according to the two segmentation results, which can improve the accuracy of organ positioning to a certain extent.
[0014] In combination with the first aspect, in a possible implementation, a first segmentation result is obtained based on a first facial image and a second facial image, and the method includes: performing feature extraction on the first facial image to obtain a first feature matrix corresponding to the first facial image; performing feature extraction on the second facial image to obtain a second feature matrix corresponding to the second facial image; combining the first feature matrix and the second feature matrix to form a third feature matrix; and obtaining the first segmentation result based on the third feature matrix.
[0015] In an embodiment of the present application, feature matrices of the first face image and the second face image are respectively extracted by feature extraction, and then the two feature matrices are combined to obtain a third feature matrix, and finally a first segmentation result is obtained based on the feature matrix. In this process, feature extraction is performed on two images collected of the same target organ, and the first target organ segmentation is performed based on the two feature matrices. This can reduce the error of organ segmentation to a certain extent, thereby improving the accuracy of organ segmentation and thus improving the accuracy of organ positioning.
[0016] In combination with the first aspect, in a possible implementation, the method also includes: performing pixel alignment on the first facial image and the second facial image to obtain a registered first facial image and a registered second facial image; performing feature extraction on the aligned first facial image to obtain a first feature matrix corresponding to the first facial image; performing feature extraction on the aligned second facial image to obtain a second feature matrix corresponding to the second facial image.
[0017] In an embodiment of the present application, a first feature matrix and a second feature matrix are obtained by performing pixel registration on a first face image and a second face image, and then performing feature extraction on the registered first face image and the second face image. In this process, pixels in the first face image and the second face image are matched one-to-one by pixel registration, and then feature extraction is performed on the pixel-aligned images to obtain a feature matrix. This can make the dimensions of the first feature matrix and the second feature matrix the same, facilitate the computational processing of the feature matrices, and thereby improve the accuracy of the first segmentation of the target organ, thereby improving the positioning accuracy of the target organ.
[0018] In combination with the first aspect, in a possible implementation, the first characteristic matrix and the second characteristic matrix are combined to form a third characteristic matrix, and the method includes: transforming the first characteristic matrix and the second characteristic matrix to obtain a transformed first characteristic matrix and a transformed second characteristic matrix, wherein the values in the transformed first characteristic matrix and the transformed second characteristic matrix are of the same type; combining the transformed first characteristic matrix and the transformed second characteristic matrix to form a third characteristic matrix.
[0019] In an embodiment of the present application, the first characteristic matrix and the second characteristic matrix are transformed so that the values in the transformed first characteristic matrix and the transformed second characteristic matrix belong to the same type, and then the transformed first characteristic matrix and the transformed second characteristic matrix are combined to obtain a third characteristic matrix. This process is beneficial to the calculation of the values in the characteristic matrix, that is, it is beneficial to the formation of the third characteristic matrix, and further beneficial to the first segmentation of the target organ, thereby facilitating the positioning of the target organ.
[0020] In combination with the first aspect, in a possible implementation, a first segmentation result is obtained according to a third matrix. The method includes: segmenting a third face image according to a third feature matrix to obtain a first segmentation result, wherein the third face image is a superimposed image of the first face image after registration and the second face image after registration.
[0021] In combination with the first aspect, in a possible implementation manner, obtaining a second segmentation result according to the first face image and / or the second face image includes:
[0022] Calculating an image registration amount between the first face image and the second face image, where the image registration amount is the number of completely registered pixels in the first face image and the second face image;
[0023] When the image registration amount is greater than or equal to a preset registration amount, outlining a first organ contour is performed on the first face image or the second face image, and a second segmentation result is obtained according to a result of outlining the first organ contour;
[0024] When the image registration amount is less than a preset registration amount, determining a first ratio of the image registration amount in the pixels of the first face image, and determining a second ratio of the image registration amount in the pixels of the second face image;
[0025] Delineating the second organ contour on the first face image to obtain a third segmentation result;
[0026] Delineating the third organ contour on the second face image to obtain a fourth segmentation result;
[0027] Superimposing the third segmentation result and the fourth segmentation result to obtain an overlapping fifth segmentation result;
[0028] Determine a first non-overlapping area between the fifth segmentation result and the third segmentation result, and a third proportion of the first non-overlapping area in the third segmentation result;
[0029] Determine a second non-overlapping area between the fifth segmentation result and the fourth segmentation result, and a fourth proportion of the second non-overlapping area in the fourth segmentation result;
[0030] Determine a maximum value of a first ratio and a second ratio as a target ratio, wherein the first ratio is a ratio of the first ratio to the third ratio, and the second ratio is a ratio of the second ratio to the fourth ratio;
[0031] A second segmentation result is determined according to the non-overlapping area corresponding to the target ratio and the fifth segmentation result, wherein the first ratio corresponds to the first non-overlapping area and the second ratio corresponds to the second non-overlapping area.
[0032] In the embodiment of the present application, by calculating the image registration amount of the first face image and the second face image, if the image registration amount is greater than or equal to the preset registration amount, any one of the first face image or the second face image can be selected for contour outlining to obtain the second segmentation result. If the image registration amount is greater than the preset registration amount, the first face image and the second face image are simultaneously contoured, and the second segmentation result is determined based on the ratio of the image registration amount in the first face image and the second face image, the ratio of the non-overlapping area in the segmentation results of the first face image and the second face image in the respective segmentation results, and the overlapping area in the segmentation results of the first face image and the second face image. In this process, different contour outlining methods are selected according to the difference between the first face image and the second face image to outline the organ contour, which improves the segmentation accuracy of the target organ to a certain extent, thereby improving the positioning accuracy of the target organ.
[0033] In combination with the first aspect, in a possible implementation, a target area is determined by a first segmentation result and a second segmentation result, and the method includes: projecting the second segmentation result onto the first segmentation result, and determining an area to be processed in which the overlap rate between the first segmentation result and the second segmentation result in the projection is greater than a preset percentage; and determining the area to be processed in which the overlap rate is greater than the preset percentage as the target area.
[0034] In an embodiment of the present application, by projecting the second segmentation result onto the first segmentation result, a region to be processed having an overlap rate greater than a preset percentage is determined, and the region to be processed is determined as the target region. In this process, the target region is jointly determined by the first segmentation result and the second segmentation result, which can improve the accuracy of the target region to a certain extent, thereby improving the positioning accuracy of the target organ.
[0035] In combination with the first aspect, in a possible implementation, a target anatomical marker point is determined from a target area; the position information of a target organ of the detection object is obtained based on the target anatomical marker point, and the method includes: identifying the target area and extracting a plurality of anatomical marker points from the target area; calculating a plurality of first distances between the plurality of anatomical marker points and preset marker points, determining the target anatomical marker point as an anatomical marker point corresponding to a first distance less than a preset range; and obtaining the position information of the target organ of the detection object based on the target anatomical marker point.
[0036] In an embodiment of the present application, by determining multiple first distances between multiple anatomical markers in the target area and preset markers, and then locating the target organ according to the anatomical marker with the smallest first distance, the positioning speed can be improved and the positioning accuracy can be improved to a certain extent.
[0037] In a second aspect, an embodiment of the present application provides an organ positioning device for implementing the above-mentioned organ positioning method, the positioning device comprising:
[0038] An acquisition unit, used to acquire a first face image and a second face image;
[0039] A processing unit, configured to obtain a first segmentation result based on a feature matrix of the first face image and the second face image, and to obtain a second segmentation result based on a contour delineation of the first face image and / or the second face image;
[0040] a determination unit, configured to determine a target region by using the first segmentation result and the second segmentation result, and further configured to determine a target anatomical landmark from the target region;
[0041] The positioning unit is used to obtain the position information of the target organ of the detection object according to the target anatomical marking point.
[0042] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, an input device and an output device, a memory, and computer execution instructions stored in the memory and executable on the processor, wherein when the computer execution instructions are executed, the electronic device executes the method in the first aspect or any possible implementation of the first aspect.
[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores computer-readable instructions. When the computer-readable instructions are executed on a computer, the computer executes a method in the first aspect or any possible implementation of the first aspect.
[0044] Implementing the embodiments of the present application has the following beneficial effects:
[0045] It can be seen that the organ localization method and device described in the embodiment of the present application, by acquiring facial images of the target organ of the detection object twice during the organ localization process, and then performing feature extraction and contour outlining on the acquired images respectively, segmenting the organ twice, and finally determining a target area with an overlap rate greater than a preset value in the two segmentation results, determining the target anatomical landmark point from the target area, and realizing the positioning of the target organ. In this process, the positioning of the organ is realized based on the two different segmentation processing of the target organ, which improves the segmentation accuracy of the target organ to a certain extent, thereby improving the positioning accuracy of the target organ. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] 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.
[0047] Figure 1 A schematic diagram of an organ positioning application scenario provided in an embodiment of the present application;
[0048] Figure 2 A schematic diagram of a flow chart of an organ localization solution provided in an embodiment of the present application;
[0049] Figure 3 A schematic diagram of a pixel point (local) registration provided in this embodiment;
[0050] Figure 4 A schematic diagram of an organ contouring process based on a convolutional neural network model provided in an embodiment of the present application
[0051] Figure 5A schematic diagram of an organ positioning device provided in an embodiment of the present application;
[0052] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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.
[0054] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0055] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0056] The embodiments of the present application are described in detail below.
[0057] See also Figure 1 , Figure 1 A schematic diagram of an organ positioning application scenario provided in an embodiment of the present application, such as Figure 1As shown, the application environment includes a human biological sample collection device 110 and a detection object 120 for collecting human biological samples, wherein the human biological sample collection device 110 includes a mechanical arm 1101, and the human biological sample collection device 110 can collect human biological samples from the detection object 120 by controlling the mechanical arm 1101. The mechanical arm 1101 is provided with an RGBD camera 1102 and a laser radar 1103, which are communicatively connected with the human biological sample collection device 110, the RGBD camera 1102 is used to obtain an RGBD face image of the detection object, the laser radar 1103 is used to reciprocately scan and collect data, and the human biological sample collection device 110 converts the data collected by the laser radar 1103 into a face image.
[0058] When the robot arm 1101 moves toward the detection object 120, the RGBD face image of the target organ of the detection object is obtained through the RGBD camera 1102, and the face image of the target organ of the detection object is obtained through the data collected by the laser radar 1103. The face image can be a point cloud face image. After obtaining two face images, two results of organ segmentation are obtained based on the two face images by semantic segmentation and contour delineation, and the positioning of the target organ is achieved according to the two segmentation results.
[0059] Specifically, see Figure 2 , Figure 2 A schematic diagram of a flow chart of an organ positioning scheme provided in an embodiment of the present application. The organ positioning method is applied to a human biological sample collection device and can be based on Figure 1 The application environment shown is implemented as Figure 2 As shown, steps 210-260 are included:
[0060] Step 210: Acquire a first face image and a second face image.
[0061] The first face image is obtained based on the lidar data, which is collected by the lidar for the target organ of the detection object. The second face image is collected by an RGBD camera.
[0062] In an embodiment of the present application, a laser radar and an RGBD camera are installed on a robotic arm, and the human biological sample collection device can be a swab sampling robot, but is not limited to this. At the same time, the human biological sample collection device can be applied to scenarios such as ear swab sampling, throat swab sampling, and nasal swab sampling.
[0063] Specifically, the laser radar scans the detection object to determine the position information and posture information of the detection object. The human biological sample collection device controls the robotic arm to move toward the detection object based on the position information and posture information. During the movement, the laser radar continuously sends radar signals to the detection object and receives the returned laser radar data. Based on the laser radar data, a point cloud face image of the detection object can be obtained; at the same time, the RGBD face image of the detection object is collected by the RGBD camera during the movement.
[0064] Step 220: Obtain a first segmentation result based on the feature matrices of the first face image and the second face image.
[0065] The first segmentation result is obtained based on the feature matrix of the first face image and the second face image, that is, it is necessary to extract features from the first face image and the second face image to obtain the feature matrix, and the first segmentation result is obtained according to the feature matrix.
[0066] In one possible implementation, before feature extraction is performed on the first facial image and the second facial image, pixel alignment is performed on the first facial image and the second facial image to obtain the aligned first facial image and the second facial image, and the aligned first facial image and the aligned second facial image are overlapped to obtain a third facial image.
[0067] Specifically, see Figure 3 , Figure 3 A schematic diagram of a pixel point (local) registration provided in this embodiment, such as Figure 3 As shown in the figure, the completely corresponding pixels in the point cloud face image and the RGBD face image are determined, and the pixels that are not completely aligned are removed to obtain the registered point cloud face image and the registered RGBD face image respectively. At this time, the pixels of the point cloud face image and the RGBD face image are one-to-one corresponding. Then the two registered face images are superimposed to obtain the third face image.
[0068] In one possible implementation, feature extraction is performed on the first facial image after registration to obtain a first feature matrix; feature extraction is performed on the second facial image after registration to obtain a second feature matrix; the first feature matrix and the second feature matrix are combined to form a third feature matrix; the third facial image is segmented according to the third feature matrix to obtain a first segmentation result. In a specific implementation, feature extraction is performed on the point cloud facial image to obtain a point cloud feature matrix, and then feature extraction is performed on the RGBD facial image to obtain an RGBD feature matrix. In order to facilitate operations between feature matrices, they need to be converted into the same matrix type, that is, the matrix dimensions are the same and the matrix elements belong to the same type of values. For the point cloud feature matrix and the RGBD feature matrix, the RGBD feature matrix can be converted into a point cloud feature matrix, and the point cloud feature matrix can also be converted into an RGBD feature matrix.
[0069] Exemplarily, Table 1 is a schematic table of a point cloud feature matrix provided in an embodiment of the present application.
[0070] Table 1
[0071]
[0072]
[0073] The image size is 3 rows and 3 columns, and X, Y, Z, and I represent the three-dimensional coordinates of the point cloud and the laser reflection intensity, respectively. For example, (X11, Y11, Z11, I11) means that the three-dimensional coordinates and reflection intensity of the pixel point in the 1st row and 1st column of the 3-row and 3-column point cloud are X11, Y11, Z11, and I11, respectively.
[0074] Exemplarily, Table 2 is a schematic table of an RGBD feature matrix provided in an embodiment of the present application.
[0075] Table 2
[0076] (R11,G11,B11,D11) (R12,G12,B12,D12) (R13,G13,B13,D13) (R21,G21,B21,D21) (R22,G22,B22,D22) (R23,G23,B23,D23) (R31,G31,B31,D31) (R32,G32,B32,D32) (R33,G33,B33,D33)
[0077] The image size is 3 rows and 3 columns, and R, G, B, and D represent the red, green, and blue color values and depth information respectively. For example, (R11, G11, B11, D11) means that the red, green, blue, color value, and reflection intensity of the pixel point in the first row and first column of the 3-row 3-column RGBD image are R11, G11, B11, and D11 respectively.
[0078] For the conversion between feature matrices, the point cloud information can be converted into the corresponding RGBD information, for example, (X11, Y11, Z11, I11) is converted into the corresponding (r11, g11, b11, d11), where r11, g11, b11, and d11 represent the red, green, and blue color values and depth information corresponding to the pixel point in the 1st row and 1st column of the point cloud image, respectively.
[0079] After completing the feature matrix transformation, the two feature matrices of the same type after transformation are combined. Specifically, the two feature matrices can be added, dot-multiplied or pooled, but not limited to, to form a third feature matrix. Then, the third face image is semantically segmented according to the third feature matrix to obtain a first organ segmentation result, wherein the first organ segmentation result includes the segmented organ areas in the third face image and the semantic text descriptions corresponding to each organ, such as nose, mouth, eyes, etc., corresponding to each organ area in the third face image.
[0080] Step 230: Obtain a second segmentation result based on outlining the first face image and / or the second face image.
[0081] In an embodiment of the present application, before performing contour outlining, it is first necessary to calculate the image registration amount of the first face image and the second face image, and the image registration amount is the number of completely registered pixels in the first face image and the second face image. Then, by comparing the image registration amount with a preset registration amount, different methods are adopted to obtain the second segmentation result, where the preset registration amount can be 50, 100, 150, 200, etc. This is only used as an example and cannot be regarded as a limitation on the embodiments of the present application.
[0082] When the image offset is less than or equal to the preset offset, the contour is delineated according to one of the first face image or the second face image to obtain a second segmentation result.
[0083] In a possible implementation, the first face image or the second face image is input into a convolutional neural network model, and a second segmentation result is output.
[0084] For specific implementation, see Figure 4 , Figure 4 A schematic diagram of an organ contouring process based on a convolutional neural network model provided in an embodiment of the present application is shown in FIG. Figure 4As shown, before the image is input into the convolutional neural network model, the point cloud face image or RGBD face image can be preprocessed (401), such as denoising, image grayscale normalization, etc., and then the convolutional neural network model is established, wherein the process of establishing the convolutional neural network model includes: collecting a segmentation sample set of organs manually outlined by experienced doctors, and collecting existing case face images at the same time, the existing case face images include images in the hospital case face database, and can also include historical organ segmentation result sample images, training the existing case face images and the segmentation sample set manually outlined by doctors, calculating the loss function, and when the loss function reaches a preset threshold or the number of training times reaches a preset number of times, the training of the convolutional neural network model is completed (402), and the trained model parameters are saved. After the convolutional neural network model is established, the preprocessed point cloud face image or RGBD face image is input into the convolutional neural network model (403), and the second segmentation result (404) is output.
[0085] In one possible implementation, the first face image or the second face image is registered with a sample image of a historical organ segmentation result. When the registration error is less than a preset difference, the first face image or the second face image is outlined according to the organ segmentation line in the sample image of the historical organ segmentation result to obtain a second segmentation result.
[0086] Specifically, the point cloud face image or the RGBD face image is registered with the sample image of the historical organ segmentation result, and the registration includes identifying image differences, such as gender differences, body shape differences, etc. Before identification, it is necessary to collect personal feature information of the detection object, which may include gender, body shape, etc., but is not limited to this. According to the recognition result, the image registration error is calculated, and the registration error includes gender error, body shape error, etc. When the registration error is less than the preset difference, the point cloud face image or the RGBD face image is segmented and outlined with reference to the organ segmentation line in the sample image of the historical organ segmentation result to obtain a second segmentation result, wherein the preset difference may be: 10%, 15%, 20%, etc., which is only an example here, but is not limited to this. At the same time, the body shape error can be calculated based on the depth information or face contour information of the face image.
[0087] When the image offset is greater than the preset offset, the first face image and the second face image are simultaneously outlined, and a second segmentation result is obtained based on the outline results of the two.
[0088] The first face image and the second face image are simultaneously outlined. The outline method adopted can be that both face images simultaneously adopt the method based on the convolutional neural network in the above embodiment, or that both face images simultaneously adopt the outline method based on the historical organ segmentation result sample image in the above embodiment, or that one face image correspondingly adopts the outline method based on the neural network and the other face image adopts the outline method based on the historical organ segmentation result sample image. There are no excessive restrictions here. After the outline is completed, the second segmentation result is obtained based on the segmentation results of the two face images.
[0089] In a possible implementation manner, the ratio of the image offset in the pixel points of the first face image and the pixel points of the second face image is calculated, and they are recorded as the first ratio and the second ratio respectively; then, the first face image and the second face image are respectively outlined to obtain a third segmentation result and a fourth segmentation result, and then the third segmentation result and the fourth segmentation result are superimposed to obtain an overlapping fifth segmentation result; then, the fifth segmentation result is overlapped with the third segmentation result and the fourth segmentation result respectively, and the respective non-overlapping areas are respectively taken as the first non-overlapping area and the second non-overlapping area, and at the same time, the ratio of the first non-overlapping area in the third segmentation result is calculated, and the ratio of the second non-overlapping area in the fourth segmentation result is calculated. The fourth proportion of the first and third proportions in the segmentation results are recorded as the third proportion and the fourth proportion respectively; then the ratio of the first proportion to the third proportion is calculated, recorded as the first ratio, and the ratio of the second proportion to the fourth proportion is calculated, recorded as the second ratio; the first ratio and the fourth ratio difference are compared, and the maximum value is taken as the target ratio, wherein the first ratio corresponds to the first non-overlapping area, and the second ratio corresponds to the second non-overlapping area; finally, the second segmentation result is determined according to the non-overlapping area corresponding to the target ratio and the fifth segmentation result. Specifically, the fifth segmentation result can be projected according to the non-overlapping area corresponding to the target ratio, and the organ contour line in the fifth segmentation result is filled according to the projection result, and then the second segmentation result is obtained.
[0090] Exemplarily, please refer to Table 3, which is a data record schematic table of a contour outlining process based on a point cloud face image and an RGBD face image provided in an embodiment of the present application.
[0091] Table 3
[0092] Image Type Pixels Registration points Registration rate Segmentation non-overlapping rate Registration rate / segmentation mismatch rate Point cloud 1000 640 0.64 0.36 2 RGBD graph 800 640 0.8 0.2 4
[0093] As shown in Table 3, the first face image in Table 3 is a point cloud face image, and the second face image is an RGBD face image. After the point cloud face image and the RGBD face image are registered, the number of pixels that can be fully registered is 640 pixels. The registration rate can be determined according to the proportion of the registration points to the total number of pixels in each image, and the segmentation non-overlapping rate can be determined according to the proportion of the non-overlapping area of the segmentation results to each image. Finally, according to the ratio of the registration rate to the segmentation non-overlapping rate, it can be seen that the segmentation result of the RGBD face image is more accurate to a certain extent. On the basis of the overlapping area of the segmentation results of the two face images, the organ contour lines in the overlapping area can be supplemented according to the segmentation result of the RGBD image to obtain the second segmentation result.
[0094] Step 240: Determine the target area according to the first segmentation result and the second segmentation result.
[0095] In an embodiment of the present application, the second segmentation result is projected onto the first segmentation result, and a processing area is determined in which the overlap rate between the first segmentation result and the second segmentation result in the projection is greater than a preset percentage; the processing area in which the overlap rate is greater than the preset percentage is determined as the target area, where the preset percentage can be 75%, 80%, 85%, 90%, etc., but is not limited to this.
[0096] Step 250: Determine target anatomical landmarks from the target region.
[0097] In an embodiment of the present application, the target area is first identified and a plurality of anatomical marker points are extracted from the target area; then, a plurality of first distances between the plurality of anatomical marker points and preset marker points are calculated, and the anatomical marker points corresponding to the first distances less than the preset range are determined as target anatomical marker points.
[0098] In the embodiment of the present application, a convolutional neural network-based method can be used to extract multiple anatomical landmarks in a facial image, but it is not limited to this. It should be understood that there are usually about 500 anatomical landmarks on a human face, such as the tip of the nose, the corners of the mouth, the corners of the eyes, etc., and then multiple first distances between the multiple anatomical landmarks and the preset landmarks are calculated, and the anatomical landmarks corresponding to the first distances less than the preset range are determined as target anatomical landmarks, where the preset range can be 0-3mm, 0-5mm, etc. This is only for illustration and is not a limitation to the embodiments of the present application.
[0099] Step 260: Obtaining the position information of the target organ of the detection object according to the target anatomical landmark.
[0100] According to the target anatomical marker point, the detection object is positioned to obtain the position information of the target organ. In the embodiment of the present application, according to the description in step 250, the target anatomical marker point can be one or more, so the target organ can be positioned according to the area connected by multiple target anatomical points, or the target can be positioned directly according to one target anatomical marker point without too many restrictions.
[0101] Based on the above description of the embodiment of the organ positioning method, the present application also provides an organ positioning device, which can be a computer program (including program code) running in a terminal. The organ positioning device can execute Figure 1 , Figure 2 , Figure 3 , Figure 4 See the method shown in Figure 5 , the device comprises:
[0102] An acquisition unit 501 is used to acquire a first face image and a second face image;
[0103] A processing unit 502, configured to obtain a first segmentation result based on a feature matrix of the first face image and the second face image, and to obtain a second segmentation result based on contour delineation of the first face image and / or the second face image;
[0104] A determination unit 503, configured to determine a target region according to the first segmentation result and the second segmentation result, and further configured to determine a target anatomical landmark from the target region;
[0105] The positioning unit 504 is used to obtain the position information of the target organ of the detection object according to the target anatomical marking point.
[0106] In a possible implementation manner, in terms of obtaining the first segmentation result based on the first face image and the second face image, the processing unit 502 is specifically configured to:
[0107] Performing feature extraction on the first face image to obtain a first feature matrix corresponding to the first face image;
[0108] Performing feature extraction on the second facial image to obtain a second feature matrix corresponding to the second facial image;
[0109] Combining the first characteristic matrix and the second characteristic matrix to form a third characteristic matrix;
[0110] A first segmentation result is obtained according to the third feature matrix.
[0111] In a possible implementation manner, the processing unit 502 is further specifically configured to:
[0112] Performing pixel registration on the first face image and the second face image to obtain a registered first face image and a registered second face image;
[0113] Extracting features from the first face image to obtain a first feature matrix corresponding to the first face image includes:
[0114] Performing feature extraction on the registered first face image to obtain a first feature matrix corresponding to the first face image;
[0115] Extracting features from the second face image to obtain a second feature matrix corresponding to the second face image includes:
[0116] Perform feature extraction on the registered second face image to obtain a second feature matrix corresponding to the second face image.
[0117] In a possible implementation manner, in terms of combining the first characteristic matrix and the second characteristic matrix to form a third characteristic matrix, the processing unit 502 is further specifically configured to:
[0118] The first characteristic matrix and the second characteristic matrix are transformed to obtain a transformed first characteristic matrix and a transformed second characteristic matrix, wherein the values in the transformed first characteristic matrix and the transformed second characteristic matrix are of the same type;
[0119] The transformed first characteristic matrix and the transformed second characteristic matrix are combined to form a third characteristic matrix.
[0120] In a possible implementation manner, in terms of obtaining the first segmentation result according to the third matrix, the processing unit 502 is further specifically configured to:
[0121] The registered first face image and the registered second face image are superimposed to obtain a third face image, and then the third face image is segmented according to a third feature matrix to obtain a first segmentation result.
[0122] In a possible implementation manner, in terms of obtaining the second segmentation result according to the first face image and / or the second face image, the processing unit 502 is further specifically configured to:
[0123] Calculating an image registration amount between the first face image and the second face image, where the image registration amount is the number of pixels in the first face image and the second face image that are completely registered;
[0124] When the image registration amount is greater than or equal to a preset registration amount, outlining a first organ contour is performed on the first face image or the second face image, and a second segmentation result is obtained according to a result of outlining the first organ contour;
[0125] When the image registration amount is less than a preset registration amount, determining a first ratio of the image registration amount in the pixels of the first face image, and determining a second ratio of the image registration amount in the pixels of the second face image;
[0126] Delineating the second organ contour on the first face image to obtain a third segmentation result;
[0127] Delineating the third organ contour on the second face image to obtain a fourth segmentation result;
[0128] Superimposing the third segmentation result and the fourth segmentation result to obtain an overlapping fifth segmentation result;
[0129] Determine a first non-overlapping area between the fifth segmentation result and the third segmentation result, and a third proportion of the first non-overlapping area in the third segmentation result;
[0130] Determine a second non-overlapping area between the fifth segmentation result and the fourth segmentation result, and a fourth proportion of the second non-overlapping area in the fourth segmentation result;
[0131] Determine a maximum value of a first ratio and a second ratio as a target ratio, wherein the first ratio is a ratio of the first ratio to the third ratio, and the second ratio is a ratio of the second ratio to the fourth ratio;
[0132] A second segmentation result is determined according to the non-overlapping area corresponding to the target ratio and the fifth segmentation result, wherein the first ratio corresponds to the first non-overlapping area and the second ratio corresponds to the second non-overlapping area.
[0133] In a possible implementation manner, in terms of determining the target area by using the first segmentation result and the second segmentation result, the determining unit 503 is specifically configured to:
[0134] Projecting the second segmentation result onto the first segmentation result, and determining a to-be-processed area in which the overlap rate between the first segmentation result and the second segmentation result in the projection is greater than a preset percentage;
[0135] The area to be processed with an overlap rate greater than a preset percentage is determined as the target area.
[0136] In a possible implementation manner, in terms of determining the target anatomical marker point from the target region and obtaining the position information of the target organ of the detection object according to the target anatomical marker point, the positioning unit 504 is specifically configured to:
[0137] Identify the target area and extract multiple anatomical landmarks from the target area;
[0138] Calculating a plurality of first distances between a plurality of anatomical marking points and a preset marking point, and determining an anatomical marking point corresponding to a first distance smaller than a preset range as a target anatomical marking point;
[0139] The position information of the target organ of the detected object is obtained according to the target anatomical landmarks.
[0140] The above units are divided based on logical functions. In practical applications, the function of one unit may be implemented by multiple units, or the functions of multiple units may be implemented by one unit.
[0141] Based on the description of the above method embodiment and device embodiment, please refer to Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device provided in this embodiment. The electronic device described in this embodiment, as shown in the figure, includes a processor, an input device, an output device, a memory, and one or more executable program codes stored in the memory. The processor is used to call the executable program code stored in the memory, and can execute the following instructions:
[0142] Acquire a first face image and a second face image;
[0143] Obtaining a first segmentation result based on a feature matrix of the first face image and the second face image;
[0144] Obtaining a second segmentation result according to outlining the first face image and / or the second face image;
[0145] Determine the target area through the first segmentation result and the second segmentation result;
[0146] determining a target anatomical landmark from the target region;
[0147] The position information of the target organ of the detected object is obtained according to the target anatomical landmarks.
[0148] In a possible implementation manner, in terms of obtaining the first segmentation result based on the first face image and the second face image, the program further includes instructions for executing the following steps:
[0149] Performing feature extraction on the first face image to obtain a first feature matrix corresponding to the first face image;
[0150] Performing feature extraction on the second facial image to obtain a second feature matrix corresponding to the second facial image;
[0151] Combining the first characteristic matrix and the second characteristic matrix to form a third characteristic matrix;
[0152] A first segmentation result is obtained according to the third feature matrix.
[0153] In a possible implementation manner, the above program further includes instructions for executing the following steps:
[0154] Performing pixel registration on the first face image and the second face image to obtain a registered first face image and a registered second face image;
[0155] Extracting features from the first face image to obtain a first feature matrix corresponding to the first face image includes:
[0156] Performing feature extraction on the registered first face image to obtain a first feature matrix corresponding to the first face image;
[0157] Extracting features from the second face image to obtain a second feature matrix corresponding to the second face image includes:
[0158] Perform feature extraction on the registered second face image to obtain a second feature matrix corresponding to the second face image.
[0159] In a possible implementation, in terms of combining the first characteristic matrix and the second characteristic matrix to form a third characteristic matrix, the program further includes instructions for executing the following steps:
[0160] The first characteristic matrix and the second characteristic matrix are transformed to obtain a transformed first characteristic matrix and a transformed second characteristic matrix, wherein the values in the transformed first characteristic matrix and the transformed second characteristic matrix are of the same type;
[0161] The transformed first characteristic matrix and the transformed second characteristic matrix are combined to form a third characteristic matrix.
[0162] In a possible implementation manner, in terms of obtaining the first segmentation result according to the third matrix, the program further includes instructions for executing the following steps:
[0163] The registered first face image and the registered second face image are superimposed to obtain a third face image, and then the third face image is segmented according to a third feature matrix to obtain a first segmentation result.
[0164] In a possible implementation manner, in terms of obtaining the second segmentation result according to the first face image and / or the second face image, the program further includes instructions for executing the following steps:
[0165] Calculating an image registration amount between the first face image and the second face image, where the image registration amount is the number of pixels in the first face image and the second face image that are completely registered;
[0166] When the image registration amount is greater than or equal to a preset registration amount, outlining a first organ contour is performed on the first face image or the second face image, and a second segmentation result is obtained according to a result of outlining the first organ contour;
[0167] When the image registration amount is less than a preset registration amount, determining a first ratio of the image registration amount in the pixels of the first face image, and determining a second ratio of the image registration amount in the pixels of the second face image;
[0168] Delineating the second organ contour on the first face image to obtain a third segmentation result;
[0169] Delineating the third organ contour on the second face image to obtain a fourth segmentation result;
[0170] Superimposing the third segmentation result and the fourth segmentation result to obtain an overlapping fifth segmentation result;
[0171] Determine a first non-overlapping area between the fifth segmentation result and the third segmentation result, and a third proportion of the first non-overlapping area in the third segmentation result;
[0172] Determine a second non-overlapping area between the fifth segmentation result and the fourth segmentation result, and a fourth proportion of the second non-overlapping area in the fourth segmentation result;
[0173] Determine a maximum value of a first ratio and a second ratio as a target ratio, wherein the first ratio is a ratio of the first ratio to the third ratio, and the second ratio is a ratio of the second ratio to the fourth ratio;
[0174] A second segmentation result is determined according to the non-overlapping area corresponding to the target ratio and the fifth segmentation result, wherein the first ratio corresponds to the first non-overlapping area and the second ratio corresponds to the second non-overlapping area.
[0175] In a possible implementation manner, in terms of determining the target area by using the first segmentation result and the second segmentation result, the program further includes instructions for executing the following steps:
[0176] Projecting the second segmentation result onto the first segmentation result, and determining a to-be-processed area in which the overlap rate between the first segmentation result and the second segmentation result in the projection is greater than a preset percentage;
[0177] The area to be processed with an overlap rate greater than a preset percentage is determined as the target area.
[0178] In a possible implementation, in terms of determining a target anatomical marker point from the target region; and obtaining position information of a target organ of the detection object according to the target anatomical marker point, the program further includes instructions for executing the following steps:
[0179] Identify the target area and extract multiple anatomical landmarks from the target area;
[0180] Calculating a plurality of first distances between a plurality of anatomical marking points and a preset marking point, and determining an anatomical marking point corresponding to a first distance smaller than a preset range as a target anatomical marking point;
[0181] The position information of the target organ of the detected object is obtained according to the target anatomical landmarks.
[0182] Exemplarily, the electronic device may be a human biological sample collection device or a computer, server, etc. that is communicatively connected to the human biological sample collection device. The server may be an independent physical server, or a server cluster or a distributed system, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, and basic cloud computing services such as big data and artificial intelligence platforms. The electronic device may include but is not limited to a processor, a memory, an input device, an output device, and may also include memory, a power supply, an application client module, etc. Those skilled in the art may understand that the schematic diagram is merely an example of an electronic device and does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or a combination of certain components, or different components.
[0183] The embodiment of the present application also provides a computer storage medium (Memory), which is a memory device in an information processing device, an information sending device, or an information receiving device, for storing programs and data. It is understandable that the computer storage medium here can include both the built-in storage medium in the terminal and the extended storage medium supported by the terminal. The computer storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory; optionally, it can also be at least one computer storage medium located away from the aforementioned processor. In one embodiment, the processor can load and execute one or more instructions stored in the computer storage medium to implement the corresponding steps in the above-mentioned organ positioning method based on ambient brightness.
[0184] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An organ positioning method, the organ positioning method is applied to a human biological sample collection device, the human biological sample collection device includes a laser radar and a red, green, and blue depth map RGBD camera, characterized in that: include: Acquire a first face image and a second face image, wherein the first face image is acquired based on laser radar data, the laser radar data is acquired by the laser radar for a target organ of a detection object, and the second face image is acquired by the RGBD camera; Obtaining a first segmentation result based on a feature matrix of the first face image and the second face image; Obtaining a second segmentation result according to outlining the first face image and / or the second face image; Determining a target area by using the first segmentation result and the second segmentation result includes: projecting the second segmentation result onto the first segmentation result, determining an area to be processed in which the overlap rate between the first segmentation result and the second segmentation result in the projection is greater than a preset percentage; and determining the area to be processed in which the overlap rate is greater than the preset percentage as the target area; determining a target anatomical landmark from the target region; The method comprises: identifying the target area and extracting a plurality of anatomical markers from the target area; calculating a plurality of first distances between the plurality of anatomical markers and preset markers, and determining the anatomical markers corresponding to the first distances less than a preset range as the target anatomical markers; and obtaining the position information of the target organ of the detection object according to the target anatomical markers.
2. The method according to claim 1, characterized in that The obtaining a first segmentation result based on the first face image and the second face image includes: Performing feature extraction on the first facial image to obtain a first feature matrix corresponding to the first facial image; Performing feature extraction on the second facial image to obtain a second feature matrix corresponding to the second facial image; combining the first characteristic matrix and the second characteristic matrix to form a third characteristic matrix; The first segmentation result is obtained according to the third feature matrix.
3. The method according to claim 2, characterized in that The method further comprises: Perform pixel registration on the first face image and the second face image to obtain a registered first face image and a registered second face image; The step of extracting features from the first facial image to obtain a first feature matrix corresponding to the first facial image includes: Performing feature extraction on the registered first face image to obtain a first feature matrix corresponding to the first face image; The step of extracting features from the second facial image to obtain a second feature matrix corresponding to the second facial image includes: Perform feature extraction on the registered second facial image to obtain a second feature matrix corresponding to the second facial image.
4. The method according to claim 3, characterized in that The obtaining the first segmentation result according to the third feature matrix includes: The third facial image is segmented according to the third feature matrix to obtain a first segmentation result, wherein the third facial image is a superimposed image of the registered first facial image and the registered second facial image.
5. The method according to claim 1, characterized in that The obtaining a second segmentation result according to outlining the first face image and / or the second face image includes: Calculating an image registration amount between the first face image and the second face image, where the image registration amount is the number of pixels in the first face image and the second face image that are completely registered; When the image registration amount is greater than or equal to a preset registration amount, outlining a first organ contour is performed on the first face image or the second face image, and obtaining the second segmentation result according to a result of outlining the first organ contour; When the image registration amount is less than a preset registration amount, determining a first ratio of the image registration amount in the pixels of the first face image, and determining a second ratio of the image registration amount in the pixels of the second face image; Delineating a second organ contour on the first face image to obtain a third segmentation result; Delineating a third organ contour on the second facial image to obtain a fourth segmentation result; Superimposing the third segmentation result and the fourth segmentation result to obtain an overlapping fifth segmentation result; Determine a first non-overlapping area between the fifth segmentation result and the third segmentation result, and a third proportion of the first non-overlapping area in the third segmentation result; determining a second non-overlapping area between the fifth segmentation result and the fourth segmentation result, and a fourth proportion of the second non-overlapping area in the fourth segmentation result; Determine a maximum value of a first ratio and a second ratio as a target ratio, wherein the first ratio is a ratio of the first ratio to the third ratio, and the second ratio is a ratio of the second ratio to the fourth ratio; The second segmentation result is determined according to the non-overlapping area corresponding to the target ratio and the fifth segmentation result, wherein the first ratio corresponds to the first non-overlapping area and the second ratio corresponds to the second non-overlapping area.
6. An organ positioning device, the organ positioning device is used to implement the organ positioning method according to any one of claims 1 to 5, characterized in that: include: An acquisition unit, used to acquire a first face image and a second face image; a processing unit, configured to obtain a first segmentation result based on a feature matrix of the first face image and the second face image, and to obtain a second segmentation result based on a contour delineation of the first face image and / or the second face image; a determining unit, configured to determine a target region according to the first segmentation result and the second segmentation result, and further configured to determine a target anatomical landmark from the target region; A positioning unit is used to obtain the position information of the target organ of the detection object according to the target anatomical marking point.
7. An electronic device, characterized in that: The electronic device comprises a processor, an input device and an output device, a memory, and computer-executable instructions stored in the memory and executable on the processor. When the computer-executable instructions are executed, the electronic device executes the method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 5.
