yundun

package
v0.0.0-...-1fffc49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PicBaseLineLabel = []string{
	"pornographic_adultContent",
	"pornographic_adultContent_tii",
	"sexual_suggestiveContent",
	"sexual_partialNudity",
	"sexual_affectionDisplay",
	"political_historicalNihility",
	"political_historicalNihility_tii",
	"political_politicalFigure",
	"political_politicalFigure_name_tii",
	"political_politicalFigure_metaphor_tii",
	"political_prohibitedPerson",
	"political_prohibitedPerson_tii",
	"political_taintedCelebrity",
	"political_taintedCelebrity_tii",
	"political_flag",
	"political_map",
	"political_TVLogo",
	"political_outfit",
	"political_religion_tii",
	"political_racism_tii",
	"violent_explosion",
	"violent_armedForces",
	"violent_crowding",
	"violent_gunKnives",
	"violent_gunKnives_tii",
	"violent_horrificContent",
	"violent_horrific_tii",
	"contraband_drug",
	"contraband_drug_tii",
	"contraband_gamble",
	"contraband_gamble_tii",
	"fraud_videoAbuse",
	"fraud_playerAbuse",
}
View Source
var PicProfilePhotoLabel = []string{
	"pornographic_adultContent",
	"pornographic_adultToys",
	"pornographic_artwork",
	"pornographic_adultContent_tii",
	"sexual_suggestiveContent",
	"sexual_breastBump",
	"sexual_cleavage",
	"sexual_femaleUnderwear",
	"sexual_femaleShoulder",
	"sexual_femaleLeg",
	"sexual_maleTopless",
	"sexual_cartoon",
	"sexual_pregnancy",
	"sexual_underage",
	"political_historicalNihility",
	"political_historicalNihility_tii",
	"political_politicalFigure_1",
	"political_politicalFigure_2",
	"political_politicalFigure_3",
	"political_politicalFigure_4",
	"political_politicalFigure_name_tii",
	"political_politicalFigure_metaphor_tii",
	"political_prohibitedPerson_1",
	"political_prohibitedPerson_2",
	"political_taintedCelebrity",
	"political_taintedCelebrity_tii",
	"political_Chinaflag",
	"political_otherflag",
	"political_Chinamap",
	"political_logo",
	"political_outfit",
	"political_medicalOutfit",
	"political_badge",
	"political_racism_tii",
	"violent_explosion",
	"violent_burning",
	"violent_armedForces",
	"violent_crowding",
	"violent_gun",
	"violent_Knives",
	"violent_gunKnives_tii",
	"violent_blood",
	"violent_horrific",
	"violent_horrific_tii",
	"contraband_drug",
	"contraband_drug_tii",
	"contraband_gamble",
	"contraband_gamble_tii",
	"contraband_certificate_tii",
	"religion_funeral",
	"religion_buddhism",
	"religion_christianity",
	"religion_muslim",
	"religion_tii",
	"racism_tii",
	"PDA_kiss",
	"PDA_physicalContact",
	"object_landmark",
	"object_rmb",
	"object_foreignCurrency",
	"object_wn",
	"object_carcrash",
	"object_candle",
	"object_flood",
	"pt_logotoSocialNetwork",
	"pt_qrCode",
	"pt_programCode",
	"pt_toDirectContact_tii",
	"pt_toSocialNetwork_tii",
	"pt_toShortVideos_tii",
	"pt_investment_tii",
	"pt_recruitment_tii",
	"pt_certificate_tii",
	"inappropriate_smoking",
	"inappropriate_drinking",
	"inappropriate_tattoo",
	"inappropriate_middleFinger",
	"inappropriate_foodWasting",
	"quality_meaningless",
	"logo_brand",
	"profanity_oral_tii",
	"profanity_offensive_tii",
	"meme_vulgar",
	"meme_metaphor",
}
View Source
var TextLabel = []string{
	"political_content",
	"profanity",
	"contraband",
	"sexual_content",
	"violence",
	"nonsense",
	"negative_content",
	"religion",
	"cyberbullying",
	"C_customized",
}
View Source
var YunDunClient *green20220302.Client

Functions

func CheckBaseLinePic

func CheckBaseLinePic(file []byte, fileType string) (bool, errors.WTError)

func CheckHeaderPic

func CheckHeaderPic(file []byte, fileType string) (bool, errors.WTError)

func CheckName

func CheckName(name string) (bool, errors.WTError)

func CheckText

func CheckText(data string) (bool, errors.WTError)

func InitYunDun

func InitYunDun() errors.WTError

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL