酸洗图像数据及其标签

时间:2017-03-22 01:16:10

标签: python pickle

我是Python中determineSomehow()的新手。我有图像和他们的标签。我怎么能腌制那些?

1 个答案:

答案 0 :(得分:0)

虽然我不确定这是否真的符合有效的SO问题,但我最好的建议是创建一个包含图像数据和标签的类,然后实现# Dependencies [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") # Form Skeleton $objForm = New-Object System.Windows.Forms.Form $objForm.Text = "Select a Song" $objForm.Size = New-Object System.Drawing.Size(400,300) $objForm.StartPosition = "CenterScreen" # Use Enter/Escape in addition to GO/Cancel $objForm.KeyPreview = $True $objForm.Add_KeyDown({if ($_.KeyCode -eq "Enter") {$UserInput=$objListBox.SelectedItem;$objForm.Close()}}) $objForm.Add_KeyDown({if ($_.KeyCode -eq "Escape") {$objForm.Close()}}) # Search Bar $objTextBox = New-Object System.Windows.Forms.TextBox $objTextBox.Location = New-Object System.Drawing.Size(10,40) $objTextBox.Size = New-Object System.Drawing.Size(300,160) $objTextBox.Text = "Search..." $objTextBox.AutoCompleteSource = 'CustomSource' $objTextBox.AutoCompleteMode='SuggestAppend' $objTextBox.AutoCompleteCustomSource=$autocomplete $objForm.Controls.Add($objTextBox) # Box the files appear in $objListBox = New-Object System.Windows.Forms.ListBox $objListBox.Location = New-Object System.Drawing.Size(40,70) $objListBox.Size = New-Object System.Drawing.Size(260,20) $objListBox.Height = 150 # Listing the songs in the directory Get-ChildItem 'C:\Users\adammcgurk\Desktop\Songs' | % {$objTextBox.AutoCompleteCustomSource.AddRange($_) } $objForm.Controls.Add($objTextBox) # Just some style $objForm.Topmost = $True $objForm.Add_Shown({$objForm.Activate()}) [void] $objForm.ShowDialog() __getstate__ ,根据每个python.org的描述。此外,假设您正在使用库来存储和操作图像,请查看它是否支持酸洗,因为捎带它的实现可以为您节省很多麻烦。希望这有帮助!