Skip to content

Instantly share code, notes, and snippets.

View bogdan's full-sized avatar
💭
Developing everything, fixing everything, delivering everything

Bogdan Gusiev bogdan

💭
Developing everything, fixing everything, delivering everything
View GitHub Profile
{
"plus_code" :
{
"compound_code" : "PVFG+4W8 Lisbon, Portugal",
"global_code" : "8CCGPVFG+4W8"
},
"results" :
[
{
"address_components" :
{
"plus_code": {
"compound_code": "V676+C5X White River, CA, USA",
"global_code": "8573V676+C5X"
},
"results": [
{
"address_components": [
{
"long_name": "36261",
{
"plus_code": {
"compound_code": "V676+C5X White River, CA, USA",
"global_code": "8573V676+C5X"
},
"results": [
{
"address_components": [
{
"long_name": "36261",
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "Sample API with x-nullable nested schema"
},
"host": "api.example.com",
"basePath": "/v1",
"schemes": ["https"],
"paths": {
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "Sample API with x-nullable nested schema"
},
"host": "api.example.com",
"basePath": "/v1",
"schemes": ["https"],
"paths": {
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "Sample API with x-nullable nested schema"
},
"host": "api.example.com",
"basePath": "/v1",
"schemes": ["https"],
"paths": {
@bogdan
bogdan / metadata.json
Created December 22, 2024 19:46
image metadata
{
"Make": {
"value": "Apple",
"attributes": {},
"description": "Apple"
},
"Model": {
"value": "iPhone 13",
"attributes": {},
"description": "iPhone 13"
extension CameraManagerPhotoOutput: @preconcurrency AVCapturePhotoCaptureDelegate {
func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: (any Error)?) {
guard let imageData = photo.fileDataRepresentation(),
let ciImage = CIImage(data: imageData)
else { return }
// Retrieve metadata from AVCapturePhoto
var metadata = photo.metadata
// Process the CIImage with filters
extension CameraManagerPhotoOutput: @preconcurrency AVCapturePhotoCaptureDelegate {
func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: (any Error)?) {
guard let imageData = photo.fileDataRepresentation(),
let ciImage = CIImage(data: imageData)
else { return }
// Retrieve metadata from AVCapturePhoto
var metadata = photo.metadata
// Process the CIImage with filters
extension CameraManagerPhotoOutput: @preconcurrency AVCapturePhotoCaptureDelegate {
func photoOutput(_ output: AVCapturePhotoOutput, didFinishProcessingPhoto photo: AVCapturePhoto, error: (any Error)?) {
guard let imageData = photo.fileDataRepresentation(),
let ciImage = CIImage(data: imageData)
else { return }
// Retrieve metadata from AVCapturePhoto
var metadata = photo.metadata
// Process the CIImage with filters