tobyspark / orbit-camera Goto Github PK
View Code? Open in Web Editor NEWAn iOS app used by blind and low-vision people to collect videos for the ORBIT dataset project.
Home Page: https://orbit.city.ac.uk
License: MIT License
An iOS app used by blind and low-vision people to collect videos for the ORBIT dataset project.
Home Page: https://orbit.city.ac.uk
License: MIT License
Accessibility-wise, WKWebView is a black box. So...?
e.g. video statuses for verified, notifications
Uh-oh. After flawless operation for weeks, this –
Fatal error: Duplicate elements of type 'WeakRef<PreviewMetalView>' were found in a Set.
This usually means either that the type violates Hashable's requirements, or
that members of such a set were mutated after insertion.
class Camera {
/// Attach a preview view to this camera. Holds a weak reference.
/// This previews the video coming from the device. A `PreviewMetalView` will fill the view's frame while maintaining the aspect ratio.
/// As currently set, the frames sent to the preview are 1920x1080. The view renders this onto whatever the size frame is, for a square frame this will visually match the 1080x1080 recorded output.
func attachPreview(to view: PreviewMetalView) {
#if !targetEnvironment(simulator)
videoDataDelegate.queue.async {
view.rotation = .rotate180Degrees
// Holding a weak ref should allow 'detach' of the views.
let result = self.previewViews.insert(WeakRef(object: view))
if result.inserted {
os_log("Camera adding preview", type: .debug)
}
}
start()
#endif
}
You can dismiss the popover using voiceover as per sighted method, i.e. select elsewhere and action. However this isn’t obvious as a) that we’re in a modal popover is not advertised and b) the popover has some kind of accessibility action that is doing nothing, but should dismiss the popover (the selection is implicit).
..and does this with no animation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.