지역 분류 기준
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
영역 분류자는 객체의 형식과 위치를 지정합니다. 분류자는 이미지의 경우 2차원 직사각형, 문서의 경우 텍스트 줄, 동영상의 경우 시간 등일 수 있습니다. 리전을 정의하려면 사용하려는 콘텐츠 유형과 일치하는 리전 분류자를 선택합니다. 예를 들어 콘텐츠가 텍스트인 경우 txt
또는 line
지역 분류기를 사용할 가능성이 높습니다. 지역 분류기의 예시는 댓글 및 답글 관리를 참고하세요.
다음은 Google Drive API에 포함된 지역 분류자 목록입니다.
rect
2차원 이미지의 직사각형입니다.
속성 |
설명 |
유형 |
x |
x축의 위치입니다. 이미지의 경우 단위는 기본적으로 픽셀이고 PDF의 경우 백분율입니다. |
더블 |
y |
y축의 위치입니다. 이미지의 경우 단위는 기본적으로 픽셀이고 PDF의 경우 백분율입니다. |
더블 |
w |
x축의 길이입니다. 이미지의 경우 단위는 기본적으로 픽셀이고 PDF의 경우 백분율입니다. |
더블 |
h |
y축의 길이입니다. 단위는 이미지의 경우 픽셀, PDF의 경우 백분율이 기본값입니다. |
더블 |
mw |
댓글이 작성된 시점의 문서 전체 너비입니다. x 와 w 는 백분율처럼 작동할 수 있으므로 이를 사용하여 단위가 없는 값으로 만듭니다. |
더블 |
mh |
댓글이 작성된 시점의 문서 전체 높이입니다. 목적은 위의 mw 를 참고하세요. |
더블 |
r |
문서의 회전 각도입니다. 예를 들어 이미지가 시계 방향으로 90도 회전되면 0,0의 직사각형이 이미지의 오른쪽 상단에 표시됩니다. 0, 90, 180, 270 중 하나여야 합니다. |
더블 |
page
페이지가 있는 PDF, TIFF 또는 기타 문서의 페이지 번호입니다. 페이지와 유사한 요소 (예: 스프레드시트, 슬라이드, 레이어)가 있는 문서에 사용합니다.
속성 |
설명 |
유형 |
p |
페이지 번호 (0부터 시작하는 색인)입니다. |
정수 |
mp |
이 문서의 페이지 수입니다. |
정수 |
time
시간 측정기준이 있는 동영상 또는 기타 문서의 시간입니다.
속성 |
설명 |
유형 |
t |
시작 시간입니다. |
hh:MM:ss.frac 형식의 시간 문자열 (여기서 M = 분, m = 밀리초, 시간과 분은 선택사항) |
d |
기간의 지속 시간입니다. |
hh:MM:ss:mmm 형식의 시간 문자열 (여기서 M은 분, m은 밀리초) |
md |
문서의 전체 시간입니다. |
hh:MM:ss:mmm 형식의 시간 문자열 (여기서 M은 분, m은 밀리초) |
txt
문서의 텍스트 범위입니다.
속성 |
설명 |
유형 |
o |
시작 오프셋 (파일 시작 부분에서 문자 오프셋) |
정수 |
l |
텍스트 범위의 길이입니다. |
정수 |
ml |
이 문서의 길이(문자 수)입니다. |
정수 |
line
텍스트 파일의 특정 행 또는 행이 포함된 파일
속성 |
설명 |
유형 |
n |
줄 번호입니다. |
정수 |
l |
줄 범위의 길이입니다. |
정수 |
ml |
파일의 최대 줄 수입니다. |
정수 |
matrix
행렬과 유사한 구조의 위치입니다. 스프레드시트 문서 또는 행이나 열 구조가 있는 기타 문서에서 행과 열을 정의하는 데 사용됩니다.
속성 |
설명 |
유형 |
c |
열 번호입니다. |
정수 |
r |
행 번호입니다. |
정수 |
w |
열 수입니다. |
정수 |
h |
행 수 |
정수 |
mw |
최대 너비입니다. |
정수 |
mh |
최대 높이입니다. |
정수 |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-29(UTC)
[null,null,["최종 업데이트: 2025-08-29(UTC)"],[],[],null,["# Region classifiers\n\nA region classifier specifies the format and location for an object. A\nclassifier might be a 2-dimensional rectangle for an image, a line of text in a\ndocument, a time duration in a video, and so on. To define a region, select the\nregion classifier that matches the type of content you're trying to use. For\nexample, if your content is text, you're likely going to use either the `txt`\nor `line` region classifier. To see an example of a region classifier, see\n[Manage comments and\nreplies](https://developers.google.com/workspace/drive/api/guides/manage-comments#define).\n\nThe following is a list of the region classifiers included with the\nGoogle Drive API:\n\n`rect`\n\n: A rectangle in a 2-dimensional image.\n\n | Property | Description | Type |\n |----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|\n | `x` | Position on the x axis, units default to pixels for images and percent for PDFs. | Double |\n | `y` | Position on the y axis, units default to pixels for images and percent for PDFs. | Double |\n | `w` | Length on the x axis, units default to pixels for images and percent for PDFs. | Double |\n | `h` | Length on the y axis, units default to pixels for images and percent for PDFs. | Double |\n | `mw` | The full width of the document when the comment was made. Use this to make `x` and `w` unitless since they can act like a percentage. | Double |\n | `mh` | The full height of the document when the comment was made. See `mw` above for purpose. | Double |\n | `r` | The degrees of rotation of the document. For example, if an image is rotated 90 degrees clockwise then a rectangle at 0,0 displays in the top right of the image. Should be one of 0, 90, 180, 270. | Double |\n\n`page`\n\n: A page number in a PDF, TIFF, or other document with pages. Use this for documents with page-like elements (such as a spreadsheet, slide, or layer).\n\n | Property | Description | Type |\n |----------|---------------------------------------|---------|\n | `p` | The page number (0-indexed). | Integer |\n | `mp` | The number of pages in this document. | Integer |\n\n`time`\n\n: A duration of time in a video or other document with a time dimension.\n\n | Property | Description | Type |\n |----------|-----------------------------------------|-------------------------------------------------------------------------------------------------------|\n | `t` | The start time. | `hh:MM:ss.frac` formatted time string (where M = minutes, m = millis; hours and minutes are optional) |\n | `d` | The duration of the time range. | `hh:MM:ss:mmm` formatted time string (where M = minutes, m = millis) |\n | `md` | The full-time duration of the document. | `hh:MM:ss:mmm` formatted time string (where M = minutes, m = millis) |\n\n`txt`\n\n: A range of text in a document.\n\n | Property | Description | Type |\n |----------|-------------------------------------------------------------|---------|\n | `o` | Start offset (character offset from the start of the file). | Integer |\n | `l` | The length of the text range. | Integer |\n | `ml` | The length of this document in characters. | Integer |\n\n`line`\n\n: A specific line in a text file or any files with lines in it.\n\n | Property | Description | Type |\n |----------|------------------------------------------|---------|\n | `n` | Line number. | Integer |\n | `l` | The length of the line range. | Integer |\n | `ml` | The maximum number of lines in the file. | Integer |\n\n`matrix`\n\n: A location in a matrix-like structure. Used to define rows and columns in spreadsheet documents, or any other documents that have a row or column structure.\n\n | Property | Description | Type |\n |----------|------------------------|---------|\n | `c` | The column number. | Integer |\n | `r` | The row number. | Integer |\n | `w` | The number of columns. | Integer |\n | `h` | The number of rows. | Integer |\n | `mw` | The maximum width. | Integer |\n | `mh` | The maximum height. | Integer |"]]