Method and device for generating training samples in nail semantic segmentation, equipment and medium
A training sample and semantic segmentation technology, applied in the field of deep learning, can solve the problems of insufficient training samples, long time, and long time.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] figure 1 It is a flowchart of a method for generating training samples in nail semantic segmentation provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where a large number of training samples need to be obtained first to train the deep learning model in the semantic segmentation of nails. This method can be performed by the device for generating training samples in the semantic segmentation of nails provided by the embodiment of the present invention. The device can be composed of It can be realized by means of hardware and / or software, and can generally be integrated into computer equipment. Such as figure 1 As shown, it specifically includes the following steps:
[0028] S11. Obtain multiple nail base images and multiple nail template images, wherein the nail base images are nail images coated with the same color primer or not coated, and the nail template images are nails coated with multiple different color primers ...
Embodiment 2
[0039] figure 2 It is a flowchart of a method for generating training samples in nail semantic segmentation provided by Embodiment 2 of the present invention. The technical solution of this embodiment is further refined on the basis of the above technical solution. Optionally, by using the corresponding mask image and logical AND operation, the image of the nail area can be obtained more conveniently, so as to generate training samples more conveniently. . Specifically, in this embodiment, the nail base image and the nail template image are respectively marked to determine the first nail area in the nail base image and the second nail area in the nail template image, including: separately marking the nail base image Annotate with the nail template image to obtain the first mask image of the first nail region and the second mask image of the second nail region; correspondingly, use each nail substrate image as a template and use each nail template image respectively The imag...
Embodiment 3
[0051] image 3 It is a flowchart of a method for generating training samples in nail semantic segmentation provided by Embodiment 3 of the present invention. The technical solution of this embodiment is further refined on the basis of the above technical solution. Optionally, before generating a new image, the image can be corrected through perspective transformation to ensure that the nail plate image and the nail template image can be based on the same direction. This makes the coverage process more accurate and efficient. Specifically, in this embodiment, before performing a logical AND operation on the nail template image and the corresponding second mask image to obtain the image of the second nail region in the nail template image, it also includes: according to the corresponding second nail region Perform cutting and perspective transformation on the nail template image and the second mask image to obtain the first ROI of the nail template image and the second ROI of ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com