WWDC 2020 세션 중, Detect Body and Hand Pose with Vision 을 인상깊게 봤는데 일단 손동작을 detect하는 것을 따라해보겠습니다. 엄지와 검지를 붙인채로 텍스트를 쓰는 것을 보여줬는데요..! 너무 너무 멋있어서 설레는 마음으로 예제 프로젝트를 돌려서 해봤는데ㅠㅠ 절대 저렇게 안되더라구요...(속은 기분..) 저거 빼고 손동작이랑 똑같은 이모지 보여주는 것이랑 특정 손동작으로 사진 촬영 같은 UI Control 하는 것 따라해보겠습니다..!! 위의 두개는 예제프로젝트로 공개 안해줬는데, 과연 잘될까요..?.? [1] AVCaptureSession과 AVCaptureViedoPreviewLayer 설정해주기 우선 info.plist에 카메라 접근 권한 요청을 추가해주고..
[1] 디폴트 - name: Build and test run: xcodebuild test -workspace GithubActionTest.xcworkspace -scheme 'GithubActionTest' -destination 'platform=iOS Simulator,name=iPhone 11' ==> 테스트 결과를 찾기 너무 힘들다. failed로 검색해서 찾음. [2] xcpretty를 썼을때 - name: Build and test run: xcodebuild -workspace GithubActionTest.xcworkspace -scheme 'GithubActionTest' -destination 'platform=iOS Simulator,name=iPhone 11' test | xc..
우선 여기를 보고 github token을 만들어주세요..! (secrets.GITHUB_TOKEN을 써야해서 필요합니다.) 이 중, actions/github-script 를 사용해서 아주 간편하게 github API를 사용할 수 있어요 (여기서 제공하는 github과 context라는 변수를 이용해서!!!) 만약에 저것을 안쓰고 githubAPI에 요청한다면, 이런식으로 스텝을 만들어줘야하는데, - name: Create issue using REST API run: | curl --request POST \ --url https://api.github.com/repos/${{ github.repository }}/issues \ --header 'authorization: Bearer ${{ sec..
디자이너와 이미지 필터만드는 방법 에서 이어집니다-!! ⚠️ 정확히 이해못했는데, 기록용으로 쓰는 것이라서 자세한 설명을 기대하지 마시오 ⚠️ ⚠️ Metal로 하는법은 제대로 안나오고 있으니 따라하지 마시오 ⚠️ [1] Lut Image 프로젝트에 넣어주기 여기서 35 FREE LUTs를 다운받아주세요-! 디자이너분이 포토샵 작업 후 35개의 Lut image를 주셨다고 가정합니다. 이렇게 넣어주세요 그리고 Lookup 이라는 enum을 만들어주세요 enum Lookup: String, CaseIterable { case GamingCareers_Acevdeo case GamingCareers_Barrera case GamingCareers_Brewer case GamingCareers_Brooks c..
[1] MTLSamplerState texture가 어떻게 샘플링되어야하는 지를 정의하는 객체이다. (여기 예제에서는 texture를 input image라고 생각하면 됨) MTLDevice의 아래 함수를 통해 만들 수 있다. func makeSamplerState(descriptor: MTLSamplerDescriptor) -> MTLSamplerState? (메탈에서는 pipleline, sampler에 해당하는 클래스 이름에 State를 붙여서 MTLPipelineState, MTLSamplerState 라고 한다. 왜지..?) 아래에서는 descriptor를 알아보자-!! [2] MTLSamplerDescriptor descriptor를 만들고 descriptor의 프로터피들을 세팅한다. 그 de..
Using a Render Pipeline to Render Primitives 정리-!! (예제가 objective-c라서 swift로 해두신 이 블로그 정말 정말 많이 참고 했어요 감사합니다...!! ) 이전 포스팅에서 이어집니다. 저기 주석을 지우고 삼각형을 그리라는 명령을 이어서 해줄 것입니다. 우리의 목표는 이렇게 생긴 삼각형을 그려주는 것--!! 샘플은 삼각형 세 꼭지점(vertext)에 대한 position과 color를 제공합니다. render pipeline이 그 데이터를 사용해서 triangle을 렌더링할 것 입니다. [1] Metal Render Pipeline render pipeline은 많은 단계가 있습니다. 샘플은 세 단계에 초점을 맞춥니다. 1. vertex stage 2. ..
평소 카메라 앱들을 보고 디자이너나 여행작가가 필터 디자인을 하면 개발자가 개발하는 프로세스?!? 는 어떻게 될까 너무 궁금했는데요. 상용 카메라 앱 개발 경험이 있으신 개발자분이 알려주셨습니다...!! (감사합니당..>__ 여기서 35 FREE LUTs를 다운 받을 수도 있습니다. [3] LUT cube파일을 png파일로 변환하기 포토샵에서 쉽게 할 수 있다고 합니다. 2번에서 만든 CUBE LUT 파일을 로드해줍니다. png로 저장해줍니다. 출처: streamshark.io/obs-guide/converting-cube-3dl-lut-to-image Convert a CUBE or 3DL LUT to a PNG Image Follow our step by step guide on how to conv..
여기서 봤는데, 너무 간결한데 쏙쏙 이해가 잘되게 쓰셨다..!! 감동.. 🥺 Creating a device A Metal device (MTLDevice) is the interface to the GPU. It supports methods for creating objects such as function libraries and textures. Creating a library The library (MTLLibrary) is a repository of kernel functions (in our case, compute shaders) that are typically compiled into your application by Xcode. Creating a Command Queue The..
Using Metal to Draw a View’s Contents 정리 메탈로 graphics content를 렌더링 하는 법을 배울 것-!! 1. MTKView 준비 & 세팅 2. MTKViewDelegate 설정 3. MTLCommandQueue 준비 4. Render Pass Descriptor & Render Pass 만들기 5. Drawable을 screen에 present하기 6. Command Buffer를 commit 하기 [1] MTKView 준비 & 세팅 MetalKit 은 메탈 앱을 적은 코드로 더 빠르고 쉽게 만들 수 있게 해주는 프레임 워크이다. 우선 MetalKit을 import 해준다. import MetalKit draw를 위해 MTKView를 준비한다. MTKView는 N..
Basic Tasks and Concepts 중, Performing Calculations on a GPU 정리 1. 메탈 파일 만들고 MSL로 GPU 함수 작성하기 2. MTLDevice 준비하기 3. MTLCommandQueue 준비하기 4. 메탈 함수 불러와서 pipeline으로 컨버팅하기 5. MTLBuffer 만들고 버퍼에 데이터 load해주기 6. MTLCommand Buffer 만들기 7. MTLCommand Encoder 만들기 8. Command Buffer를 commit해서 commands 실행시켜주기 [1] MSL로 GPU 함수 작성하기 두 array의 elements들을 더한 값을 result라는 array에 추가하는 코드를 살펴보자 아래 코드는 CPU에서 연산이 수행..
- Total
- Today
- Yesterday
- flutter deep link
- Watch App for iOS App vs Watch App
- DRF APIException
- Flutter Clipboard
- Flutter getter setter
- 플러터 얼럿
- ribs
- Sketch 누끼
- 장고 Custom Management Command
- flutter build mode
- Django FCM
- cocoapod
- 장고 URL querystring
- Django Heroku Scheduler
- Flutter Text Gradient
- drf custom error
- flutter 앱 출시
- flutter dynamic link
- github actions
- Flutter 로딩
- Flutter Spacer
- Django Firebase Cloud Messaging
- 플러터 싱글톤
- Dart Factory
- 구글 Geocoding API
- ipad multitasking
- SerializerMethodField
- METAL
- PencilKit
- Python Type Hint
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |