Skip to content

Commit

Permalink
update proj metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
likedan committed Oct 1, 2017
1 parent 7564a4b commit e925e16
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions CarRecognition.xcodeproj/project.pbxproj
Expand Up @@ -133,7 +133,7 @@
attributes = {
LastSwiftUpdateCheck = 0900;
LastUpgradeCheck = 0900;
ORGANIZATIONNAME = "Vadym Markov";
ORGANIZATIONNAME = Thywis;
TargetAttributes = {
D5174FC71EFB24F0000D98EB = {
CreatedOnToolsVersion = 9.0;
Expand Down Expand Up @@ -352,7 +352,7 @@
DEVELOPMENT_TEAM = BW259GUV6N;
INFOPLIST_FILE = "$(SRCROOT)/CarRecognition/Resources/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = codes.cocoaml.Flowers;
PRODUCT_BUNDLE_IDENTIFIER = com.thywis.carrecognition;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -371,7 +371,7 @@
DEVELOPMENT_TEAM = BW259GUV6N;
INFOPLIST_FILE = "$(SRCROOT)/CarRecognition/Resources/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = codes.cocoaml.Flowers;
PRODUCT_BUNDLE_IDENTIFIER = com.thywis.carrecognition;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
4 changes: 2 additions & 2 deletions CarRecognition/ClassificationService.swift
Expand Up @@ -3,7 +3,7 @@ import Vision
import VisionLab

protocol ClassificationServiceDelegate: class {
func classificationService(_ service: ClassificationService, didDetectFlower flower: String)
func classificationService(_ service: ClassificationService, didDetectCar car: String)
}

/// Service used to perform gender, age and emotion classification
Expand Down Expand Up @@ -42,6 +42,6 @@ final class ClassificationService: ClassificationServiceProtocol {

@objc private func handleClassification(request: VNRequest, error: Error?) {
let result = extractClassificationResult(from: request, count: 3)
delegate?.classificationService(self, didDetectFlower: result)
delegate?.classificationService(self, didDetectCar: result)
}
}
4 changes: 2 additions & 2 deletions CarRecognition/ViewController.swift
Expand Up @@ -11,9 +11,9 @@ final class ViewController: ImageClassificationController<ClassificationService>
// MARK: - ClassificationServiceDelegate

extension ViewController: ClassificationServiceDelegate {
func classificationService(_ service: ClassificationService, didDetectFlower flower: String) {
func classificationService(_ service: ClassificationService, didDetectCar car: String) {
DispatchQueue.main.async { [weak mainView] in
mainView?.label.text = flower.capitalized
mainView?.label.text = car.capitalized
}
}
}
Binary file removed Convert/CarRecognition.mlmodel
Binary file not shown.

0 comments on commit e925e16

Please sign in to comment.