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.

Inactive Publication Date: 2021-05-28
SHENZHEN DANYA TECH CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The training data and test data of the current deep learning model are mostly collected one by one and manually calibrated, but the collection process is very troublesome and takes a long time, and the manual labeling process also takes a long

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for generating training samples in nail semantic segmentation, equipment and medium
  • Method and device for generating training samples in nail semantic segmentation, equipment and medium
  • Method and device for generating training samples in nail semantic segmentation, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

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 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a method and device for generating training samples in nail semantic segmentation, equipment and a medium. The method comprises the steps of acquiring a plurality of nail base plate images and a plurality of nail sample plate images, wherein the nail base plate images are nail images coated with primer of the same color or not coated, and the nail sample plate images are nail images coated with primer of multiple different colors; respectively marking the nail substrate image and the nail template image to determine a first nail area in the nail substrate image and a second nail area in the nail template image; and taking each nail substrate image as a template, and covering the first nail region in each nail substrate image by using the image of the second nail region in each nail template image to generate a new training sample. Therefore, a large number of training samples are directly generated through a small number of samples, the acquisition of the training samples is accelerated, the labor investment is reduced, and the acquisition difficulty of the training samples is also reduced.

Description

technical field [0001] The embodiments of the present invention relate to the field of deep learning technology, and in particular to a method, device, device and medium for generating training samples in nail semantic segmentation. Background technique [0002] With the development of deep learning, it has gradually been applied to the field of image recognition, and further deep learning can be used to realize the process of self-service nail art. However, to use deep learning for analysis, it is first necessary to train and test a good deep learning model through a large amount of sample data, so that the model can be used to obtain more accurate analysis results. [0003] The training data and test data of the current deep learning model are mostly collected one by one and manually calibrated, but the collection process is very troublesome and takes a long time, and the manual labeling process also takes a long time and Higher cost is a waste of manpower and material re...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06K9/32G06K9/34G06K9/62
CPCG06V10/25G06V10/267G06F18/214
Inventor 何鹏郭倩林镇清何文贵胡永华
Owner SHENZHEN DANYA TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products