Skip to content

Code Updated #15

Open
das-anubhav wants to merge 4 commits intohanleyweng:masterfrom
das-anubhav:master
Open

Code Updated #15
das-anubhav wants to merge 4 commits intohanleyweng:masterfrom
das-anubhav:master

Conversation

@das-anubhav
Copy link

Fixed the on tap keyboard pop up issue
Fixed UI for iPhone X and above
Cleaned some code and removed the FPS anD Node count
Modified Accuracy as Confidence Percentage

let classifications = observations[0...1] // top 2 results
.flatMap({ $0 as? VNClassificationObservation })
.map({ "\($0.identifier) \(String(format:"- %.2f", $0.confidence))" })
.map({ "\($0.identifier) \(String(format:"- %.2f", ($0.confidence)*100)) \("%")" })
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Earlier it showed only the confidence and the output used to be eg: 0.7632
Now it will show in percentage and the output comes as eg: 76.32 %


// Show statistics such as fps and timing information
sceneView.showsStatistics = true

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleared the statistics for fps as it was effecting the user experience

super.didReceiveMemoryWarning()
// Release any cached data, images, etc that aren't in use.
}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleared as most of those problems were back in the iPhone 3GS days when memory was more limited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant