Method and device for constructing three-dimensional model of traditional Chinese medicine decoction pieces
Through the relative rotational movement of the full-frame camera and the Chinese herbal medicine, multi-angle shooting and multi-focus shooting are carried out, combined with depth of field synthesis and background separation technology, a high-quality three-dimensional model is built, which solves the problem that traditional technology is difficult to display the three-dimensional structure and texture details of Chinese herbal medicine, and achieves high-precision and efficient three-dimensional model construction.
Patent Information
- Application Number
- CN202411660903.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-28
AI Technical Summary
The prior art is difficult to comprehensively and accurately display the three-dimensional structure and texture details of traditional Chinese herbal medicines, and traditional three-dimensional scanning technology is difficult to capture its irregular geometric shapes and complex curved surfaces, which is prone to information loss or deformation.
Multi-angle shooting is performed through the relative rotational movement of the full-frame camera and the Chinese herbal medicine. Combined with multi-focus shooting technology, images of different focal points from multiple angles are obtained, depth of field synthesis and background separation are carried out to build a high-quality three-dimensional model.
It has achieved a comprehensive display of the detailed texture and three-dimensional structure of traditional Chinese medicine tablets, improved the identification accuracy and model accuracy and efficiency, and met the high requirements of modern traditional Chinese medicine research.
Smart Images

Figure CN119722924A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to image processing and three-dimensional modeling, and more specifically, to a method and device for constructing a three-dimensional model of a Chinese herbal medicine. Background Art
[0002] As the main form of clinical Chinese medicine, the quality, shape and characteristics of the medicinal parts of Chinese herbal medicines are crucial to ensuring the efficacy and accuracy of clinical application.
[0003] At present, the traditional display method of Chinese herbal medicine pieces is often limited to physical samples or simple flat pictures, which makes it difficult to fully display the three-dimensional structure and texture details of Chinese herbal medicine pieces. The construction of traditional Chinese herbal medicine pieces 3D models usually relies on manual modeling or laser scanning and other technologies. These methods are not only time-consuming and labor-intensive, but also complex to operate, and the accuracy and efficiency are difficult to meet the needs of modern Chinese medicine research.
[0004] In addition, in the process of digital modeling of Chinese herbal medicines, three-dimensional models have gradually become a hot topic of research because they can fully and truly reflect the three-dimensional morphology, surface texture and internal structural characteristics of Chinese herbal medicines. However, there are many challenges in building high-quality three-dimensional models of Chinese herbal medicines. On the one hand, Chinese herbal medicines are of various types, with different shapes and complex surface textures, which puts high demands on image acquisition and processing; on the other hand, since Chinese herbal medicines often have irregular geometric shapes, traditional three-dimensional scanning technology is difficult to accurately capture all their details, especially when dealing with complex surfaces and fine structures, it is easy to lose information or deform. Summary of the invention
[0005] The purpose of the present disclosure is to provide a method and device for constructing a three-dimensional model of Chinese herbal medicine slices to solve at least one of the problems existing in the prior art.
[0006] In order to achieve the above objectives, the present invention adopts the following technical solutions:
[0007] The first aspect of the present disclosure provides a method for constructing a three-dimensional model of a Chinese herbal medicine piece, comprising:
[0008] Taking the Chinese herbal medicine pieces as the axis, the full-frame camera and the Chinese herbal medicine pieces are relatively rotated to shoot the Chinese herbal medicine pieces at multiple angles;
[0009] The Chinese herbal medicine pieces are photographed with multiple focal points at each shooting angle to obtain a first atlas containing multiple images with different focal points at each shooting angle;
[0010] Performing depth-of-field synthesis on a plurality of images with different focal points in each of the first atlases to obtain a depth-of-field image at each shooting angle;
[0011] Separating the background and the main body of the Chinese herbal medicine pieces in each of the depth of field images to obtain a second atlas containing multiple main body images of the Chinese herbal medicine pieces;
[0012] A three-dimensional model of the Chinese herbal medicine slices is constructed based on the second atlas.
[0013] Furthermore, the interval between adjacent shooting angles of the multi-angle shooting is less than or equal to 30°.
[0014] Furthermore, the focus positions set for the multi-focus shooting include at least the key texture areas, significant structural points, and detail parts with medicinal value or recognition of the Chinese herbal medicine pieces.
[0015] Furthermore, before performing multi-focus photography on the Chinese herbal medicine slices at each photography angle, the method further comprises:
[0016] The Chinese herbal medicine slices are illuminated at multiple angles.
[0017] Furthermore, the separation of the background and the main body of the Chinese herbal medicine pieces in each of the depth of field images to obtain a second atlas containing multiple main body images of the Chinese herbal medicine pieces includes:
[0018] The background and the main body of the Chinese herbal medicine slices in each of the depth of field images are separated by a channel method to obtain a channel with the most obvious distinction between the main body and background colors of the Chinese herbal medicine slices; two color scale adjustments are performed based on the channel to obtain a second atlas containing multiple main body images of the Chinese herbal medicine slices.
[0019] A second aspect of the present invention provides a device for constructing a three-dimensional model of a Chinese herbal medicine piece, comprising:
[0020] A full-frame camera is used to take multi-angle photos of the Chinese herbal medicine pieces by rotating the Chinese herbal medicine pieces relative to the Chinese herbal medicine pieces.
[0021] The Chinese herbal medicine pieces are photographed with multiple focal points at each shooting angle to obtain a first atlas containing multiple images with different focal points at each shooting angle;
[0022] A depth of field synthesis module, used for performing depth of field synthesis on a plurality of images with different focal points in each of the first atlases to obtain a depth of field image at each shooting angle;
[0023] A separation module, used for separating the background and the main body of the Chinese herbal medicine pieces in each of the depth of field images, to obtain a second atlas containing multiple main body images of the Chinese herbal medicine pieces;
[0024] A three-dimensional construction module is used to construct a three-dimensional model of the Chinese herbal medicine slices based on the second atlas.
[0025] Furthermore, the interval between adjacent shooting angles of the multi-angle shooting is less than or equal to 30°.
[0026] Furthermore, the focus positions set for the multi-focus shooting include at least the key texture areas, significant structural points, and detail parts with medicinal value or recognition of the Chinese herbal medicine pieces.
[0027] Furthermore, the device also includes a fill light module, which is used to perform multi-angle fill light on the Chinese herbal medicine slices before performing multi-focus shooting on the Chinese herbal medicine slices at each shooting angle.
[0028] Furthermore, the separation of the background and the main body of the Chinese herbal medicine pieces in each of the depth of field images to obtain a second atlas containing multiple main body images of the Chinese herbal medicine pieces includes:
[0029] The background and the main body of the Chinese herbal medicine slices in each of the depth of field images are separated by a channel method to obtain a channel with the most obvious distinction between the main body and background colors of the Chinese herbal medicine slices; two color scale adjustments are performed based on the channel to obtain a second atlas containing multiple main body images of the Chinese herbal medicine slices.
[0030] The beneficial effects of the present disclosure are as follows:
[0031] The present invention uses a full-frame camera equipped with a macro lens to perform multi-angle shooting with the relative rotation of Chinese herbal medicine pieces. Combined with multi-focus shooting technology, the present invention can capture the detailed texture and three-dimensional structure of Chinese herbal medicine pieces at various angles, thereby comprehensively and realistically displaying the characteristics of their quality, morphology and medicinal parts. This not only helps to improve the accuracy of Chinese herbal medicine piece identification, but also provides more intuitive and detailed reference materials for Chinese medicine teaching, scientific research and clinical application.
[0032] Compared with traditional manual modeling or laser scanning technology, which is time-consuming, labor-intensive, complex to operate, and difficult to ensure the accuracy and efficiency of the model, the present invention can efficiently extract the main information of Chinese herbal medicine pieces from multi-angle images through multi-angle image acquisition with different focal points, combined with depth of field synthesis and background separation, and build a high-quality three-dimensional model based on this. This significantly improves the construction efficiency, ensures the accuracy and detail of the model, and meets the high requirements of modern Chinese medicine research for three-dimensional models.
[0033] Due to the wide variety of Chinese herbal medicines, their different shapes, and complex surface textures, it is difficult for traditional 3D scanning technology to accurately capture all of their details. Based on this, the present invention can effectively process the irregular geometric shapes and complex curved surfaces of Chinese herbal medicines through multi-focus shooting and depth of field synthesis technology, avoiding the problem of information loss or deformation. This enables the constructed 3D model to more accurately reflect the true shape and structural characteristics of Chinese herbal medicines, providing strong support for the subsequent quality control of Chinese herbal medicines, efficacy evaluation, and new drug research and development. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The specific implementation methods of the present disclosure are further described in detail below with reference to the accompanying drawings.
[0035] Figure 1 A flow chart showing a method for constructing a three-dimensional model of a Chinese herbal medicine piece according to an embodiment of the present disclosure.
[0036] Figure 2 Images in the first atlas of the first embodiment of the present disclosure before depth synthesis are shown.
[0037] Figure 3 The depth of field image after depth of field synthesis of the first embodiment of the present disclosure is shown.
[0038] Figure 4 The main image of the Chinese herbal medicine slices after the subject and background of the Chinese herbal medicine slices are separated according to the second embodiment of the present disclosure is shown.
[0039] Figure 5 An actual sample image of the third embodiment in the present disclosure is shown.
[0040] Figure 6 The effect diagram of the three-dimensional model constructed by the third embodiment of the present disclosure is shown.
[0041] Figure 7 A schematic structural diagram of a device for constructing a three-dimensional model of a Chinese herbal medicine piece according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0042] In order to more clearly illustrate the present disclosure, the present disclosure is further described below in conjunction with the embodiments and drawings. Similar components in the drawings are represented by the same reference numerals. It should be understood by those skilled in the art that the content described below is illustrative rather than restrictive, and should not be used to limit the scope of protection of the present disclosure.
[0043] like Figure 1 As shown, an embodiment of the present disclosure provides a method for constructing a three-dimensional model of a Chinese herbal medicine piece, comprising:
[0044] Step S1, taking the Chinese herbal medicine pieces as the axis, photographing the Chinese herbal medicine pieces from multiple angles through relative rotation between the full-frame camera and the Chinese herbal medicine pieces; wherein the full-frame camera is equipped with a macro lens.
[0045] Wherein, multi-focus photography is performed on the Chinese herbal medicine pieces at each shooting angle to obtain a first atlas containing multiple images with different focuses at each shooting angle;
[0046] In a possible implementation, before performing multi-focus photography on the Chinese herbal medicine slices at each photography angle, the method further includes:
[0047] Provide multi-angle lighting for Chinese herbal medicines.
[0048] In a specific implementation, the present embodiment further includes an electric rotating tray. By fixing a full-frame camera and rotating the electric rotating tray on which the Chinese herbal medicine pieces are fixed, the Chinese herbal medicine pieces can be photographed at multiple angles. The electric rotating tray can rotate automatically, and the shooting efficiency is high. At the same time, by fixing the Chinese herbal medicine pieces on the electric rotating tray, compared with the method of rotating the full-frame camera while fixing the Chinese herbal medicine pieces, the following effects are achieved:
[0049] When the camera is fixed and the Chinese herbal medicines are rotated only by the electric rotating tray, the position and angle of the camera remain unchanged, which helps to reduce the vibration and blur that may be caused by the movement of the camera, thereby improving the stability of the shooting, so the photos are clearer; on the other hand, the method of fixing the camera and rotating the tray simplifies the shooting operation process and reduces the difficulty of shooting. The photographer only needs to pay attention to the rotation of the tray and the focus, exposure and other settings of the camera without worrying about the movement and stability of the camera. It is also convenient to fill in the light of Chinese herbal medicines from multiple angles; finally, when the camera is rotated for shooting, the image will be distorted or distorted due to the changes in the perspective and focal length of the lens. The method of fixing the camera and rotating the tray can avoid this distortion and ensure that the captured image is more real and accurate.
[0050] In a specific implementation, this embodiment uses a full-frame camera with a professional macro lens with a focal length of 100mm to accurately present the fine structure of the surface of the slices. The slices of Chinese herbal medicine are photographed at different angles, with each angle interval not exceeding 30°. Each photo is photographed using multiple focal points to capture the subtle differences and rich details of the slices at all levels, ensuring the integrity and accuracy of the information. At the same time, a multi-angle fill light is used to ensure that the color reproduction of the slices remains consistent under the same light source, minimizing the impact of the bottom shadow on the later 3D model synthesis.
[0051] In one possible implementation, the interval between adjacent shooting angles of multi-angle shooting is less than or equal to 30°, which can ensure that the characteristics of Chinese herbal medicine pieces at all angles are fully captured. This dense distribution of shooting angles helps to more accurately restore the three-dimensional form and surface texture of Chinese herbal medicine pieces in the subsequent image processing and three-dimensional reconstruction process. Due to the continuity of shooting angles, the constructed three-dimensional model is more visually coherent, avoiding breaks or dislocations caused by angle jumps.
[0052] In a possible implementation, the focus positions set for multi-focus photography include at least key texture areas of the Chinese herbal medicine, significant structural points, and detail parts with medicinal value or recognition.
[0053] In this embodiment, Chinese herbal medicine pieces usually have rich surface textures, which are of great significance for identifying their quality and medicinal value. By shooting with multiple focal points and focusing on key texture areas, it is possible to ensure that these textures are accurately and clearly presented in the three-dimensional model. This helps to improve the visual realism and recognition of the model.
[0054] The morphological structures of Chinese herbal medicines vary, and some significant structural points (such as the nodes of rhizomes and the edges of leaves) are crucial to determining their types and medicinal parts. By focusing on these significant structural points, we can ensure that they are highlighted in the 3D model, thereby enhancing the recognition and accuracy of the model.
[0055] Some details in Chinese herbal medicines (such as special burrs, spots, etc.) may have unique medicinal value or recognition. By shooting with multiple focal points and focusing on these parts, we can ensure that they are presented in detail in the model, providing strong support for the subsequent quality control of Chinese herbal medicines, efficacy evaluation and new drug research and development.
[0056] Step S2, perform depth-of-field synthesis on multiple images with different focal points in each first atlas to obtain a depth-of-field image at each shooting angle; the depth-of-field image not only retains the clear imaging of the medicinal material at each focal point, but also shows the overall three-dimensional and spatial sense.
[0057] In a specific implementation, this embodiment uses the stack function of the image processing software to perform depth of field synthesis on images in a multi-focus atlas of the same angle, and uses the blending layer function of the image processing software to fuse the focus areas in each image to obtain a depth of field image of the angle.
[0058] Specifically, Figure 2 and Figure 3 , it can be seen that the details of the image are clearer after depth of field synthesis.
[0059] Step S3, separating the background and the main body of the Chinese herbal medicine pieces in each depth of field image, and obtaining a second atlas containing multiple main body images of the Chinese herbal medicine pieces; Figure 4 As shown, the main body of the Chinese herbal medicine is preserved very completely and the image clarity is very high.
[0060] In a possible implementation, the background and the main body of the Chinese herbal medicine pieces in each depth of field image are separated to obtain a second atlas containing multiple main body images of the Chinese herbal medicine pieces, including:
[0061] The channel method is used to separate the background and the main body of the Chinese herbal medicine pieces in each depth of field image, and the channel with the most obvious distinction between the main body and background color of the Chinese herbal medicine pieces is obtained; two color scale adjustments are performed based on the channel to obtain a second atlas containing multiple main body images of Chinese herbal medicine pieces.
[0062] Specifically, this embodiment imports the photographed photos into the professional image processing software Photoshop, and uses the channel method to deduct the main part of the Chinese herbal medicine from the background. First, a channel with the most obvious color difference between the main body and the background is selected, and then two color scale adjustments are performed to eliminate interference factors such as shadows that may be generated during the shooting process, and the detailed features of the Chinese herbal medicine are completely retained, thereby improving the overall quality of the picture.
[0063] In a specific embodiment, the channel selection includes: obtaining an image containing Chinese herbal medicine pieces, and corresponding to the setting operation of the user, obtaining a color channel in which the main body of the Chinese herbal medicine piece and the background color are most clearly distinguished;
[0064] First color level adjustment: Perform the first color level adjustment operation on the selected color channel to eliminate interference factors such as shadows and reflections that may occur during the shooting process, while trying to keep the details of the main part of the Chinese herbal medicine piece intact;
[0065] Second color scale adjustment: Based on the first color scale adjustment, the second color scale adjustment operation is further performed to further optimize the image contrast and ensure that the detailed features of the Chinese herbal medicines are fully preserved. At the same time, the overall quality of the picture is improved, making the distinction between the main body of the Chinese herbal medicines and the background clearer.
[0066] In the process of color channel selection, the color channel with the highest contrast is selected as the processing object by analyzing the red, green, blue (RGB) color space, hue, saturation, value (HSV) color space or Lab color space of the image; in the first and second color scale adjustment steps, the specific adjustment parameters (through input color scale, output color scale and grayscale coefficient) can be flexibly set according to the actual situation of the Chinese herbal medicine image and the expected processing effect, so as to ensure that the processed image not only eliminates interference factors but also retains the necessary detail information.
[0067] Among them, the Lab color space is a color model based on human visual perception, which aims to provide a wider and more accurate color representation. The Lab color space consists of brightness (Luminance, L) and two chromaticity coordinates (a, b).
[0068] Step S4: construct a three-dimensional model of the Chinese herbal medicine slices based on the second atlas.
[0069] In one possible implementation, this embodiment imports the images of the main atlas of Chinese herbal medicine pieces into RealityCapture software, extracts the contour, texture, and color data of the images of the main atlas of Chinese herbal medicine pieces, and constructs a three-dimensional model of the Chinese herbal medicine pieces. The actual sample photos and modeling effects of this embodiment are shown in FIG. Figure 5 ,and Figure 6 It can be seen that the three-dimensional model constructed by the present invention has high precision, accurate detail depiction and extremely high degree of restoration.
[0070] In a specific implementation, the present invention needs to meet the following conditions during the shooting process:
[0071] Choose appropriate shooting equipment and environment to ensure that the photos of Chinese herbal medicines are clear and blur-free, and can fully show the morphological characteristics and detailed information of the herbal medicines.
[0072] Import the photos you have taken into professional image processing software and perform necessary operations such as cropping, rotation and adjustment to ensure that the quality of the photos is optimal.
[0073] Using the depth of field synthesis function in the image processing software, multiple photos with different focal points can be accurately synthesized. During the synthesis process, we can adjust the synthesis parameters and algorithms according to actual needs to achieve the best synthesis effect.
[0074] Import the high-definition images synthesized with depth of field into the 3D modeling software, and use the modeling software and the optimization algorithm in the software to build the 3D model of the Chinese herbal medicine. During the modeling process, the model is adjusted and optimized in detail as needed to improve its realism and expressiveness.
[0075] In summary, this technical method can significantly improve the intuitiveness and accuracy of the display of Chinese herbal medicines. In traditional ways, the display of Chinese herbal medicines is often limited to flat pictures or physical samples, and it is difficult to fully display their three-dimensional morphology and detailed features. The method of this application can present the multi-dimensional information of Chinese herbal medicines by generating full-view depth high-definition pictures and constructing high-precision 3D models, so that observers can understand their structure and characteristics more intuitively and deeply. Secondly, this technical method helps to reduce the storage and transportation costs of Chinese herbal medicine samples. The preservation of physical samples requires a lot of space and is easily damaged by environmental factors. Through the method of this application, we can save and disseminate the information of Chinese herbal medicines in digital form, avoiding the loss and damage risk of physical samples, while reducing the cost of storage and transportation. In addition, this technical method also provides a richer means for teaching and display in the field of traditional Chinese medicine. By displaying full-view depth high-definition pictures and 3D models, teachers can explain the morphological structure and characteristics of Chinese herbal medicines more vividly, helping students better understand and master relevant knowledge. At the same time, this technical method can also be applied to the publicity and promotion of Chinese medicine products to enhance the image and competitiveness of products.
[0076] In summary, the technical method of synthesizing 3D models of Chinese herbal medicine pieces from panoramic depth high-definition images in this application has significant technical effects and practical value, and will bring important impetus and promotion to the research, teaching and display in the field of traditional Chinese medicine.
[0077] On the other hand, the present invention uses a full-frame camera equipped with a macro lens and the relative rotational motion of Chinese herbal medicine pieces to perform multi-angle shooting. Combined with multi-focus shooting technology, the present invention can capture the detailed texture and three-dimensional structure of Chinese herbal medicine pieces at various angles, thereby comprehensively and truly showing the characteristics of its quality, morphology and medicinal parts. This not only helps to improve the accuracy of Chinese herbal medicine piece identification, but also provides more intuitive and detailed reference materials for Chinese medicine teaching, scientific research and clinical application. Compared with traditional manual modeling or laser scanning technology, which is time-consuming, labor-intensive, and difficult to operate, and it is difficult to ensure the accuracy and efficiency of the model, in contrast, the present invention can efficiently extract the main information of Chinese herbal medicine pieces from multi-angle images through multi-angle different focus image acquisition, combined with depth of field synthesis and background separation, and build a high-quality three-dimensional model based on this. This significantly improves the construction efficiency, and also ensures the accuracy and detail performance of the model, meeting the high requirements of modern Chinese medicine research for three-dimensional models. Due to the wide variety of Chinese herbal medicines, their different shapes, and complex surface textures, it is difficult for traditional 3D scanning technology to accurately capture all of their details. Based on this, the present invention can effectively process the irregular geometric shapes and complex curved surfaces of Chinese herbal medicines through multi-focus shooting and depth of field synthesis technology, avoiding the problem of information loss or deformation. This enables the constructed 3D model to more accurately reflect the true shape and structural characteristics of Chinese herbal medicines, providing strong support for the subsequent quality control of Chinese herbal medicines, efficacy evaluation, and new drug research and development.
[0078] This example uses RealityCapture 3D modeling software to build a 3D model of Chinese herbal medicine slices. By extracting information such as contours, textures, and colors from the image, a 3D model with high realism and detail expression is generated through model construction and model optimization. This model can fully display the morphology, structure, and characteristics of Chinese herbal medicine slices, providing researchers with a more intuitive and in-depth means of observation and analysis.
[0079] The second embodiment of the present invention provides a device for constructing a three-dimensional model of a Chinese herbal medicine piece, such as Figure 7 As shown, including:
[0080] Full-frame camera, used to take multi-angle photos of Chinese herbal medicine pieces by rotating them relative to the pieces.
[0081] Wherein, multi-focus photography is performed on the Chinese herbal medicine pieces at each shooting angle to obtain a first atlas containing multiple images with different focuses at each shooting angle;
[0082] A depth of field synthesis module, used for performing depth of field synthesis on a plurality of images with different focal points in each first atlas to obtain a depth of field image at each shooting angle;
[0083] A separation module is used to separate the background and the main body of the Chinese herbal medicine pieces in each depth of field image to obtain a second atlas containing multiple main body images of the Chinese herbal medicine pieces;
[0084] The three-dimensional construction module is used to construct a three-dimensional model of Chinese herbal medicine pieces based on the second atlas.
[0085] Among them, the full-frame camera is equipped with a macro lens.
[0086] In a possible implementation, the interval between adjacent shooting angles in multi-angle shooting is less than or equal to 30°.
[0087] In a possible implementation, the focus positions set for multi-focus shooting include at least key texture areas of the Chinese herbal medicine pieces, significant structural points, and detail parts with medicinal value or recognition.
[0088] In one possible implementation, the device further includes a fill light module for performing multi-angle fill light on the Chinese herbal medicine slices before performing multi-focus photography on the Chinese herbal medicine slices at each shooting angle.
[0089] In a possible implementation, the background and the main body of the Chinese herbal medicine pieces in each depth of field image are separated to obtain a second atlas containing multiple main body images of the Chinese herbal medicine pieces, including:
[0090] The channel method is used to separate the background and the main body of the Chinese herbal medicine pieces in each depth of field image, and the channel with the most obvious distinction between the main body and background color of the Chinese herbal medicine pieces is obtained; two color scale adjustments are performed based on the channel to obtain a second atlas containing multiple main body images of Chinese herbal medicine pieces.
[0091] It should be noted that the principle and workflow of the device for constructing the three-dimensional model of Chinese herbal medicines provided in this embodiment are similar to the method for constructing the three-dimensional model of Chinese herbal medicines mentioned above. The relevant details can be referred to the above description and will not be repeated here.
[0092] In the depth of field synthesis process of this embodiment, the depth of field synthesis module is further configured as follows:
[0093] Automatically align source images so that pictures that were displaced during shooting are automatically aligned.
[0094] Automatically blend layers by stacking images to achieve automatic depth of field composition.
[0095] Automatically blend tones and colors of layers set to seamlessly blend tones and colors to smooth out exposures.
[0096] Automatically identify and fill transparent areas to fill possible transparent areas with automatically identified content.
[0097] In the description of the present disclosure, it should be noted that the orientation or positional relationship indicated by the terms "upper", "lower", etc. is based on the orientation or positional relationship shown in the accompanying drawings, and is only for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present disclosure. Unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, and it can be the internal connection of two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present disclosure can be understood according to the specific circumstances.
[0098] It should also be noted that, in the description of the present disclosure, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or equipment including the elements.
[0099] Obviously, the above embodiments of the present disclosure are merely examples for clearly illustrating the present disclosure, and are not limitations on the implementation methods of the present disclosure. For ordinary technicians in this field, other different forms of changes or modifications can be made on the basis of the above description. It is impossible to list all the implementation methods here. All obvious changes or modifications derived from the technical solution of the present disclosure are still within the protection scope of the present disclosure.
Claims
1. A method for constructing a three-dimensional model of a Chinese herbal medicine piece, characterized in that: include: Taking the Chinese herbal medicine pieces as the axis, the full-frame camera and the Chinese herbal medicine pieces are relatively rotated to shoot the Chinese herbal medicine pieces at multiple angles; The Chinese herbal medicine pieces are photographed with multiple focal points at each shooting angle to obtain a first atlas containing multiple images with different focal points at each shooting angle; Performing depth-of-field synthesis on a plurality of images with different focal points in each of the first atlases to obtain a depth-of-field image at each shooting angle; Separating the background and the main body of the Chinese herbal medicine pieces in each of the depth of field images to obtain a second atlas containing multiple main body images of the Chinese herbal medicine pieces; A three-dimensional model of the Chinese herbal medicine slices is constructed based on the second atlas.
2. The method according to claim 1, characterized in that The interval between adjacent shooting angles of the multi-angle shooting is less than or equal to 30°.
3. The method according to claim 1, characterized in that The focus positions set for the multi-focus shooting include at least the key texture areas, significant structural points, and detail parts with medicinal value or recognition of the Chinese herbal medicine pieces.
4. The method according to claim 1, characterized in that: Before performing multi-focus photography on the Chinese herbal medicine slices at each photography angle, the method further comprises: The Chinese herbal medicine slices are illuminated at multiple angles.
5. The method according to claim 1, characterized in that The process of separating the background and the main body of the Chinese herbal medicine pieces in each of the depth of field images to obtain a second atlas containing a plurality of main body images of the Chinese herbal medicine pieces includes: Separating the background and the main body of the Chinese herbal medicine pieces in each of the depth of field images by using a channel method, and obtaining a channel in which the main body and the background color of the Chinese herbal medicine pieces are most clearly distinguished; Two color scale adjustments are performed based on the channel to obtain a second atlas containing multiple main images of Chinese herbal medicine pieces.
6. A device for constructing a three-dimensional model of a Chinese herbal medicine piece, characterized in that: include: A full-frame camera is used to take multi-angle photos of the Chinese herbal medicine pieces by rotating the Chinese herbal medicine pieces relative to the Chinese herbal medicine pieces. The Chinese herbal medicine pieces are photographed with multiple focal points at each shooting angle to obtain a first atlas containing multiple images with different focal points at each shooting angle; A depth of field synthesis module, used for performing depth of field synthesis on a plurality of images with different focal points in each of the first atlases to obtain a depth of field image at each shooting angle; A separation module, used for separating the background and the main body of the Chinese herbal medicine pieces in each of the depth of field images, to obtain a second atlas containing multiple main body images of the Chinese herbal medicine pieces; A three-dimensional construction module is used to construct a three-dimensional model of the Chinese herbal medicine slices based on the second atlas.
7. The device according to claim 6, characterized in that The interval between adjacent shooting angles of the multi-angle shooting is less than or equal to 30°.
8. The device according to claim 6, characterized in that The focus positions set for the multi-focus shooting include at least the key texture areas, significant structural points, and detail parts with medicinal value or recognition of the Chinese herbal medicine pieces.
9. The device according to claim 6, characterized in that The device also includes a fill light module, which is used to perform multi-angle fill light on the Chinese herbal medicine slices before performing multi-focus shooting on the Chinese herbal medicine slices at each shooting angle.
10. The device according to claim 6, characterized in that The process of separating the background and the main body of the Chinese herbal medicine pieces in each of the depth of field images to obtain a second atlas containing a plurality of main body images of the Chinese herbal medicine pieces includes: Separating the background and the main body of the Chinese herbal medicine pieces in each of the depth of field images by using a channel method, and obtaining a channel in which the main body and the background color of the Chinese herbal medicine pieces are most clearly distinguished; Two color scale adjustments are performed based on the channel to obtain a second atlas containing multiple main images of Chinese herbal medicine pieces.
Citation Information
Cited By
Table type multi-mode fusion three-dimensional optical imaging and intelligent analysis system
CN120852661A