Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter API의 필드명 명세 관련 질문입니다. #1

Open
tucan9389 opened this issue Nov 7, 2018 · 9 comments
Open

filter API의 필드명 명세 관련 질문입니다. #1

tucan9389 opened this issue Nov 7, 2018 · 9 comments
Assignees
Labels
question Further information is requested

Comments

@tucan9389
Copy link

  1. 모든 필터 객체(?)는 아래와 같은 필드를 가지나요?
  • name
  • standard
  • imageURL
  • align-left
  • gravity
  1. align-left이 AR을 쓸껀지 아닐지 판별하는 boolean이죠?

  2. gravityalign-left1일 경우 필터를 어디에 위치시킬지 정해주는 필드죠?

  3. gravity 필드에는 어떤 값들이 들어갈 수 있나요?

[ 
    // Single Outer Form
    {
        type : "human" ,
        
        [
            // Single Inner Form
            {
                name : "name" ,
                standard : "one" , 
                imageURL : "aws_s3_image.png" , 
                align-left : 1 (boolean) ,
                gravity : "bottom-center"
            } , 
            // Single Inner Form End
            { ... } , 
            { ... }     
        ]
        
    } , 
    // Single Outer Form End
    {
        type : "background" ,
        [ {} , {} , ...] 
    } ,
    { ... } , 
    { ... }     

]
@tucan9389 tucan9389 added the question Further information is requested label Nov 7, 2018
@kim-howard
Copy link
Contributor

kim-howard commented Nov 9, 2018

  1. 현재 filter 타입은
{
        "type_id" : ${Long value}
	"type" : "one" ,
	"name" : "world_3" , 
	"standard" : "1" ,
	"alignLeft" : "true" , 
	"gravity" : "1"
}

이런형식으로 되어 있으며 각 타입의 자세한 내용은 @Jeongah-Shin 에게 물어보면 좋을 것 같습니다!

  1. 3,4 또한 @Jeongah-Shin 부탁해요

추가로 alignLeft 를 boolean 으로 정의하기로 했는데 입력하실때는 "true" 혹은 "false"로 넣어주시면 됩니다. 이번 주말내에 위키에 정리해놓겠습니다~

@tucan9389

@Jeongah-Shin
Copy link
Member

답변이 늦어서 죄송합니다🙏@tucan9389

일단 저희가 앱 버전 1.0에서 지원할 필터 종류는 아래와 같이 네 가지이며,

  • 인물
  • 텍스트
  • 재미
  • 배경

각기 종류별로 1-2개 씩 예시 필터를 만들어서 앱에 올려볼 예정입니다. 위에 현태님이 명시해주신 json format은 제가 미리 앱 기능을 구현해보면서 느꼈던 필요 요소들을 간단하게 정리해본 것인데, 실제 다민님이 디자인 해주신 필터를 올려보면 더 추가 요소가 발생할 것이라고 생각됩니다.

그 부분을 주말 내로 확정 지어서 알려드릴게요🙂

2, 3, 4번에 질문 주신 요소를 간단히만 정리해보면

  • standard : 필터 배치에 기준이 되는 물체가 무엇인가? 예시: 사람, 건물
  • align-left : standard 를 기준으로 했을 때, 왼쪽에 배치할 것인가? (boolean)
  • gravity : align-left 속성이 true 인 경우에 어떤 정렬 방법을 채택할 것인가?

ex) 왼쪽 정렬, 오른쪽 정렬, 가운데 정렬

@Jeongah-Shin
Copy link
Member

@onemoongit

현태님, 관련해서 배치와 관련된 속성들이 지금 형태로는 String으로 내려질 것으로 보이는데,

boolean 형으로 조절해주실 수 있나요?

@kim-howard
Copy link
Contributor

@Jeongah-Shin

일단 제가 작업할때는 텍스트로 작업했는데 , 이번 주말에 s3 작업 진행하면서 json 형태로 boolean 값 형식 진행해보겠습니다 ^^

작업이 완료되면 말씀드릴게요!

@tucan9389
Copy link
Author

우선 1차 배포는 @Jeongah-Shin, @onemoongit 이렇게 정의해서 작업하겠습니다. 잘못된 부분이 있으면 말씀해주세요. 확실하게 명세가 될 때까지 이 이슈는 열어두도록 하겠습니다.

  1. type은 카메라 UI에서 이 부분을 정하는 거죠?

screen shot 2018-11-12 at 10 04 24 am

  1. type 종류: "human", "text", "funny", "background" 이렇게 해놓고 작업하겠습니다.

  2. standard 종류: "human", "background"

  3. align-lefttrue일때만 ResNet 추론을 하면 되죠?

    ResNet 추론에서 confidence가 가장 높은 사람에대해서 align-leftgravity에 맞춰 정렬하겠습니다.
    예시) align-left: true, gravity: "bottom-center"이면 가운데 하단에 정렬하겠습니다.

  4. gravity는 "{vertical_align}-{horizental_align}"으로 하겠습니다.

    vertical_align의 종류에는 bottom, top, center
    horizental_align의 종류에는 left, right, center

참고

[ 
    // Single Outer Form
    {
        type : "human" ,
        
        [
            // Single Inner Form
            {
                name : "name" ,
                standard : "one" , 
                imageURL : "aws_s3_image.png" , 
                align-left : true,
                gravity : "bottom-center"
            } , 
            // Single Inner Form End
            { ... } , 
            { ... }     
        ]
        
    } , 
    // Single Outer Form End
    {
        type : "background" ,
        [ {} , {} , ...] 
    } ,
    { ... } , 
    { ... }     

]

@tucan9389
Copy link
Author

@onemoongit 엇 위에 댓글 보니 filter안에 type이 또 있던데
큰 카테고리의 type과 같은 건가요?

{
        "type_id" : ${Long value}
	"type" : "one" ,
	"name" : "world_3" , 
	"standard" : "1" ,
	"alignLeft" : "true" , 
	"gravity" : "1"
}

@kim-howard
Copy link
Contributor

@tucan9389
답이 늦었네요 ㅠㅠ 네 맞습니다 큰 카테고리와 동일합니다. 오늘중에 위키에 정리해놓겠습니다!

@kim-howard
Copy link
Contributor

@Jeongah-Shin
boolean 값 관련해서 지금 확인을 해봤는데 , 추가적인 개념 작업이 필요할듯 하여 일단 우선순위를 미뤄두어도 괜찮을까요??

현재는 위에 써놓은 것 처럼 "true" or "false"로 작업해주시면 좋을 것 같습니다.

@Jeongah-Shin
Copy link
Member

@onemoongit 롸져🙏

It Only Depends on Your Choice 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants