├── LICENSE.md ├── README.md ├── config └── doc │ ├── capture_ratio.png │ ├── data_ratio.png │ ├── degree.png │ ├── dir_structure.png │ ├── example1.png │ ├── example2.png │ ├── example3.png │ ├── example4.png │ ├── general_example.png │ ├── gt_example.png │ ├── occlusion.png │ ├── pose_distribution.png │ ├── space_ratio.png │ ├── top_example.png │ ├── truncation.png │ └── weather_ratio.png └── visualize_data.py /LICENSE.md: -------------------------------------------------------------------------------- 1 | (c) 2022 NCSOFT Corporation & UVify Co., Ltd. All Rights Reserved. 2 | 3 | Attribution 4.0 International 4 | 5 | ======================================================================= 6 | 7 | Creative Commons Corporation ("Creative Commons") is not a law firm and 8 | does not provide legal services or legal advice. Distribution of 9 | Creative Commons public licenses does not create a lawyer-client or 10 | other relationship. Creative Commons makes its licenses and related 11 | information available on an "as-is" basis. Creative Commons gives no 12 | warranties regarding its licenses, any material licensed under their 13 | terms and conditions, or any related information. Creative Commons 14 | disclaims all liability for damages resulting from their use to the 15 | fullest extent possible. 16 | 17 | Using Creative Commons Public Licenses 18 | 19 | Creative Commons public licenses provide a standard set of terms and 20 | conditions that creators and other rights holders may use to share 21 | original works of authorship and other material subject to copyright 22 | and certain other rights specified in the public license below. The 23 | following considerations are for informational purposes only, are not 24 | exhaustive, and do not form part of our licenses. 25 | 26 | Considerations for licensors: Our public licenses are 27 | intended for use by those authorized to give the public 28 | permission to use material in ways otherwise restricted by 29 | copyright and certain other rights. Our licenses are 30 | irrevocable. Licensors should read and understand the terms 31 | and conditions of the license they choose before applying it. 32 | Licensors should also secure all rights necessary before 33 | applying our licenses so that the public can reuse the 34 | material as expected. Licensors should clearly mark any 35 | material not subject to the license. This includes other CC- 36 | licensed material, or material used under an exception or 37 | limitation to copyright. More considerations for licensors: 38 | wiki.creativecommons.org/Considerations_for_licensors 39 | 40 | Considerations for the public: By using one of our public 41 | licenses, a licensor grants the public permission to use the 42 | licensed material under specified terms and conditions. If 43 | the licensor's permission is not necessary for any reason--for 44 | example, because of any applicable exception or limitation to 45 | copyright--then that use is not regulated by the license. Our 46 | licenses grant only permissions under copyright and certain 47 | other rights that a licensor has authority to grant. Use of 48 | the licensed material may still be restricted for other 49 | reasons, including because others have copyright or other 50 | rights in the material. A licensor may make special requests, 51 | such as asking that all changes be marked or described. 52 | Although not required by our licenses, you are encouraged to 53 | respect those requests where reasonable. More considerations 54 | for the public: 55 | wiki.creativecommons.org/Considerations_for_licensees 56 | 57 | ======================================================================= 58 | 59 | Creative Commons Attribution 4.0 International Public License 60 | 61 | By exercising the Licensed Rights (defined below), You accept and agree 62 | to be bound by the terms and conditions of this Creative Commons 63 | Attribution 4.0 International Public License ("Public License"). To the 64 | extent this Public License may be interpreted as a contract, You are 65 | granted the Licensed Rights in consideration of Your acceptance of 66 | these terms and conditions, and the Licensor grants You such rights in 67 | consideration of benefits the Licensor receives from making the 68 | Licensed Material available under these terms and conditions. 69 | 70 | 71 | Section 1 -- Definitions. 72 | 73 | a. Adapted Material means material subject to Copyright and Similar 74 | Rights that is derived from or based upon the Licensed Material 75 | and in which the Licensed Material is translated, altered, 76 | arranged, transformed, or otherwise modified in a manner requiring 77 | permission under the Copyright and Similar Rights held by the 78 | Licensor. For purposes of this Public License, where the Licensed 79 | Material is a musical work, performance, or sound recording, 80 | Adapted Material is always produced where the Licensed Material is 81 | synched in timed relation with a moving image. 82 | 83 | b. Adapter's License means the license You apply to Your Copyright 84 | and Similar Rights in Your contributions to Adapted Material in 85 | accordance with the terms and conditions of this Public License. 86 | 87 | c. Copyright and Similar Rights means copyright and/or similar rights 88 | closely related to copyright including, without limitation, 89 | performance, broadcast, sound recording, and Sui Generis Database 90 | Rights, without regard to how the rights are labeled or 91 | categorized. For purposes of this Public License, the rights 92 | specified in Section 2(b)(1)-(2) are not Copyright and Similar 93 | Rights. 94 | 95 | d. Effective Technological Measures means those measures that, in the 96 | absence of proper authority, may not be circumvented under laws 97 | fulfilling obligations under Article 11 of the WIPO Copyright 98 | Treaty adopted on December 20, 1996, and/or similar international 99 | agreements. 100 | 101 | e. Exceptions and Limitations means fair use, fair dealing, and/or 102 | any other exception or limitation to Copyright and Similar Rights 103 | that applies to Your use of the Licensed Material. 104 | 105 | f. Licensed Material means the artistic or literary work, database, 106 | or other material to which the Licensor applied this Public 107 | License. 108 | 109 | g. Licensed Rights means the rights granted to You subject to the 110 | terms and conditions of this Public License, which are limited to 111 | all Copyright and Similar Rights that apply to Your use of the 112 | Licensed Material and that the Licensor has authority to license. 113 | 114 | h. Licensor means the individual(s) or entity(ies) granting rights 115 | under this Public License. 116 | 117 | i. Share means to provide material to the public by any means or 118 | process that requires permission under the Licensed Rights, such 119 | as reproduction, public display, public performance, distribution, 120 | dissemination, communication, or importation, and to make material 121 | available to the public including in ways that members of the 122 | public may access the material from a place and at a time 123 | individually chosen by them. 124 | 125 | j. Sui Generis Database Rights means rights other than copyright 126 | resulting from Directive 96/9/EC of the European Parliament and of 127 | the Council of 11 March 1996 on the legal protection of databases, 128 | as amended and/or succeeded, as well as other essentially 129 | equivalent rights anywhere in the world. 130 | 131 | k. You means the individual or entity exercising the Licensed Rights 132 | under this Public License. Your has a corresponding meaning. 133 | 134 | 135 | Section 2 -- Scope. 136 | 137 | a. License grant. 138 | 139 | 1. Subject to the terms and conditions of this Public License, 140 | the Licensor hereby grants You a worldwide, royalty-free, 141 | non-sublicensable, non-exclusive, irrevocable license to 142 | exercise the Licensed Rights in the Licensed Material to: 143 | 144 | a. reproduce and Share the Licensed Material, in whole or 145 | in part; and 146 | 147 | b. produce, reproduce, and Share Adapted Material. 148 | 149 | 2. Exceptions and Limitations. For the avoidance of doubt, where 150 | Exceptions and Limitations apply to Your use, this Public 151 | License does not apply, and You do not need to comply with 152 | its terms and conditions. 153 | 154 | 3. Term. The term of this Public License is specified in Section 155 | 6(a). 156 | 157 | 4. Media and formats; technical modifications allowed. The 158 | Licensor authorizes You to exercise the Licensed Rights in 159 | all media and formats whether now known or hereafter created, 160 | and to make technical modifications necessary to do so. The 161 | Licensor waives and/or agrees not to assert any right or 162 | authority to forbid You from making technical modifications 163 | necessary to exercise the Licensed Rights, including 164 | technical modifications necessary to circumvent Effective 165 | Technological Measures. For purposes of this Public License, 166 | simply making modifications authorized by this Section 2(a) 167 | (4) never produces Adapted Material. 168 | 169 | 5. Downstream recipients. 170 | 171 | a. Offer from the Licensor -- Licensed Material. Every 172 | recipient of the Licensed Material automatically 173 | receives an offer from the Licensor to exercise the 174 | Licensed Rights under the terms and conditions of this 175 | Public License. 176 | 177 | b. No downstream restrictions. You may not offer or impose 178 | any additional or different terms or conditions on, or 179 | apply any Effective Technological Measures to, the 180 | Licensed Material if doing so restricts exercise of the 181 | Licensed Rights by any recipient of the Licensed 182 | Material. 183 | 184 | 6. No endorsement. Nothing in this Public License constitutes or 185 | may be construed as permission to assert or imply that You 186 | are, or that Your use of the Licensed Material is, connected 187 | with, or sponsored, endorsed, or granted official status by, 188 | the Licensor or others designated to receive attribution as 189 | provided in Section 3(a)(1)(A)(i). 190 | 191 | b. Other rights. 192 | 193 | 1. Moral rights, such as the right of integrity, are not 194 | licensed under this Public License, nor are publicity, 195 | privacy, and/or other similar personality rights; however, to 196 | the extent possible, the Licensor waives and/or agrees not to 197 | assert any such rights held by the Licensor to the limited 198 | extent necessary to allow You to exercise the Licensed 199 | Rights, but not otherwise. 200 | 201 | 2. Patent and trademark rights are not licensed under this 202 | Public License. 203 | 204 | 3. To the extent possible, the Licensor waives any right to 205 | collect royalties from You for the exercise of the Licensed 206 | Rights, whether directly or through a collecting society 207 | under any voluntary or waivable statutory or compulsory 208 | licensing scheme. In all other cases the Licensor expressly 209 | reserves any right to collect such royalties. 210 | 211 | 212 | Section 3 -- License Conditions. 213 | 214 | Your exercise of the Licensed Rights is expressly made subject to the 215 | following conditions. 216 | 217 | a. Attribution. 218 | 219 | 1. If You Share the Licensed Material (including in modified 220 | form), You must: 221 | 222 | a. retain the following if it is supplied by the Licensor 223 | with the Licensed Material: 224 | 225 | i. identification of the creator(s) of the Licensed 226 | Material and any others designated to receive 227 | attribution, in any reasonable manner requested by 228 | the Licensor (including by pseudonym if 229 | designated); 230 | 231 | ii. a copyright notice; 232 | 233 | iii. a notice that refers to this Public License; 234 | 235 | iv. a notice that refers to the disclaimer of 236 | warranties; 237 | 238 | v. a URI or hyperlink to the Licensed Material to the 239 | extent reasonably practicable; 240 | 241 | b. indicate if You modified the Licensed Material and 242 | retain an indication of any previous modifications; and 243 | 244 | c. indicate the Licensed Material is licensed under this 245 | Public License, and include the text of, or the URI or 246 | hyperlink to, this Public License. 247 | 248 | 2. You may satisfy the conditions in Section 3(a)(1) in any 249 | reasonable manner based on the medium, means, and context in 250 | which You Share the Licensed Material. For example, it may be 251 | reasonable to satisfy the conditions by providing a URI or 252 | hyperlink to a resource that includes the required 253 | information. 254 | 255 | 3. If requested by the Licensor, You must remove any of the 256 | information required by Section 3(a)(1)(A) to the extent 257 | reasonably practicable. 258 | 259 | 4. If You Share Adapted Material You produce, the Adapter's 260 | License You apply must not prevent recipients of the Adapted 261 | Material from complying with this Public License. 262 | 263 | 264 | Section 4 -- Sui Generis Database Rights. 265 | 266 | Where the Licensed Rights include Sui Generis Database Rights that 267 | apply to Your use of the Licensed Material: 268 | 269 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right 270 | to extract, reuse, reproduce, and Share all or a substantial 271 | portion of the contents of the database; 272 | 273 | b. if You include all or a substantial portion of the database 274 | contents in a database in which You have Sui Generis Database 275 | Rights, then the database in which You have Sui Generis Database 276 | Rights (but not its individual contents) is Adapted Material; and 277 | 278 | c. You must comply with the conditions in Section 3(a) if You Share 279 | all or a substantial portion of the contents of the database. 280 | 281 | For the avoidance of doubt, this Section 4 supplements and does not 282 | replace Your obligations under this Public License where the Licensed 283 | Rights include other Copyright and Similar Rights. 284 | 285 | 286 | Section 5 -- Disclaimer of Warranties and Limitation of Liability. 287 | 288 | a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE 289 | EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS 290 | AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF 291 | ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, 292 | IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, 293 | WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR 294 | PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, 295 | ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT 296 | KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT 297 | ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. 298 | 299 | b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE 300 | TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, 301 | NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, 302 | INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, 303 | COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR 304 | USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN 305 | ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR 306 | DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR 307 | IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. 308 | 309 | c. The disclaimer of warranties and limitation of liability provided 310 | above shall be interpreted in a manner that, to the extent 311 | possible, most closely approximates an absolute disclaimer and 312 | waiver of all liability. 313 | 314 | 315 | Section 6 -- Term and Termination. 316 | 317 | a. This Public License applies for the term of the Copyright and 318 | Similar Rights licensed here. However, if You fail to comply with 319 | this Public License, then Your rights under this Public License 320 | terminate automatically. 321 | 322 | b. Where Your right to use the Licensed Material has terminated under 323 | Section 6(a), it reinstates: 324 | 325 | 1. automatically as of the date the violation is cured, provided 326 | it is cured within 30 days of Your discovery of the 327 | violation; or 328 | 329 | 2. upon express reinstatement by the Licensor. 330 | 331 | For the avoidance of doubt, this Section 6(b) does not affect any 332 | right the Licensor may have to seek remedies for Your violations 333 | of this Public License. 334 | 335 | c. For the avoidance of doubt, the Licensor may also offer the 336 | Licensed Material under separate terms or conditions or stop 337 | distributing the Licensed Material at any time; however, doing so 338 | will not terminate this Public License. 339 | 340 | d. Sections 1, 5, 6, 7, and 8 survive termination of this Public 341 | License. 342 | 343 | 344 | Section 7 -- Other Terms and Conditions. 345 | 346 | a. The Licensor shall not be bound by any additional or different 347 | terms or conditions communicated by You unless expressly agreed. 348 | 349 | b. Any arrangements, understandings, or agreements regarding the 350 | Licensed Material not stated herein are separate from and 351 | independent of the terms and conditions of this Public License. 352 | 353 | 354 | Section 8 -- Interpretation. 355 | 356 | a. For the avoidance of doubt, this Public License does not, and 357 | shall not be interpreted to, reduce, limit, restrict, or impose 358 | conditions on any use of the Licensed Material that could lawfully 359 | be made without permission under this Public License. 360 | 361 | b. To the extent possible, if any provision of this Public License is 362 | deemed unenforceable, it shall be automatically reformed to the 363 | minimum extent necessary to make it enforceable. If the provision 364 | cannot be reformed, it shall be severed from this Public License 365 | without affecting the enforceability of the remaining terms and 366 | conditions. 367 | 368 | c. No term or condition of this Public License will be waived and no 369 | failure to comply consented to unless expressly agreed to by the 370 | Licensor. 371 | 372 | d. Nothing in this Public License constitutes or may be interpreted 373 | as a limitation upon, or waiver of, any privileges and immunities 374 | that apply to the Licensor or You, including from the legal 375 | processes of any jurisdiction or authority. 376 | 377 | 378 | ======================================================================= 379 | 380 | Creative Commons is not a party to its public 381 | licenses. Notwithstanding, Creative Commons may elect to apply one of 382 | its public licenses to material it publishes and in those instances 383 | will be considered the ¡°Licensor.¡± The text of the Creative Commons 384 | public licenses is dedicated to the public domain under the CC0 Public 385 | Domain Dedication. Except for the limited purpose of indicating that 386 | material is shared under a Creative Commons public license or as 387 | otherwise permitted by the Creative Commons policies published at 388 | creativecommons.org/policies, Creative Commons does not authorize the 389 | use of the trademark "Creative Commons" or any other trademark or logo 390 | of Creative Commons without its prior written consent including, 391 | without limitation, in connection with any unauthorized modifications 392 | to any of its public licenses or any other arrangements, 393 | understandings, or agreements concerning use of licensed material. For 394 | the avoidance of doubt, this paragraph does not form part of the 395 | public licenses. 396 | 397 | Creative Commons may be contacted at creativecommons.org. 398 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # Human tracking dataset captured by drone. 3 | ## Introduction 4 | * We have captured 500 videos by drone in various environment for multi object tracking task. Images were extracted from 30 frame per second video at different rate for training and test purposes. All extracted images are annotated by human with various properties such as occlusion, re-identification, visibility, pose, image truncation. 5 | 6 | 7 |

8 | drawing 9 | drawing 10 |

11 | 12 | ## Label format 13 | * Figure below is the example of ground truth file. 14 | 15 |

16 | drawing 17 |

18 | 19 | | Position | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 20 | |----------|--------------|-----------------|-------------------|----------------|----------------|-----------|------------|----------|------------|-----------|-----------|------------| 21 | | | frame_number | person_id_index | tracking_id_index | box_top_left_x | box_top_left_y | box_width | box_height | is_valid | pose_class | occlusion | truncated | visibility | 22 | 23 | ## Description of properties 24 | 25 | | Key | Value type | Description | 26 | |----------------|-------------|---------------------------------------------------------------------------------------------------| 27 | | frame_number | INT | Image frame number | 28 | | person_id | INT | Unique number assinged to person in the sequence (i.e., same person in the sequence will have same number regardeless of appear/disapper) | 29 | | tracking_id | INT | Unique number assigned to track of person (i.e., when same person disapeared and appeared again in the sequence, this number will be different) | 30 | | box_top_left_x | INT | X coordinate of top left corner | 31 | | box_top_left_y | INT | Y coordinate of top left corner | 32 | | box_width | INT | box width | 33 | | box_height | INT | box height | 34 | | is_valid | INT (0/1) | 0 : invalud instance (e.g., human in the picture), 1 : valid instance | 35 | | pose_class | INT (0/1/2) | 0 : General pose, 1 : Sitting, 2 : Waving hands | 36 | | occlusion | INT (0/1) | 0 : occlusion , 1 : no occlusion | 37 | | truncated | INT (0/1) | 0 : truncated , 1 : no truncated | 38 | | visibility | FLOAT | area of actual visible area in pixel / area of object size in the image predicted by human labeler | 39 | 40 | 41 | ## Download 42 | 43 | - [Download](https://uvify.sharepoint.com/:f:/s/research/EtBbHTxuaLJMlQM0aIkIF9UBnN2hd1nQ4ZLlkRIRTX4z5g?e=NZZeeZ) 44 | - Train images were extracted from video taken from drone at 1 frame per second. 45 | - This is for model training. 46 | - Test images were extracted from video taken from drone at 3 frame per second. 47 | - This is for evaluating the trained model. 48 | 49 | ## Directory Structure 50 |
 51 |  [root path]/
 52 |  └──[test or train]/                  
 53 |     └──[seqence_(sequence number)]/
 54 |        ├──(sequence_number).txt     <--- ground truth
 55 |        └──[images]/
 56 |           └──(frame_number).png     <--- image
 57 | 
58 | 59 | 60 | 61 | 62 | ## Visualizer 63 | 64 | ``` ruby 65 | python3 visualize_data.py --dir=[root_dir_path] --type=[train or test] --seq=[sequence number( 450 <= test < 500 , 0 <= train < 450)] 66 | ``` 67 | 68 |
 69 | key 'q' 'esc' : exit program
 70 | key 'n' '->'  : next frame
 71 | key 'p' '<-'  : prev frame
 72 | 
73 | 74 | ## Data Distribution 75 | 76 | ### Dataset 77 | | | Number of images | Description | 78 | |-----|------------------|------------------------------------------| 79 | |train| 13,500 | Dataset used during the learning process | 80 | |test | 4,500 | Dataset used only to assess performance | 81 | |total| 18,000 | | 82 | 83 | 84 | 85 | ### Drone camera angle 86 | | | Number of images | Description | 87 | |--------|------------------|----------------------------------------------------------------------------------------| 88 | |general | 14,370 | Dataset taken when the angle of the drone camera to the ground is between 10~60 degrees| 89 | |top | 3,630 | Dataset taken when the angle of the drone camera to the ground is around 90 degrees | 90 | |total | 18,000 | | 91 | 92 | 93 | ### Weather 94 | | | Number of images | Description | 95 | |--------|------------------|---------------------------------------------| 96 | |sunny | 10,320 | Dataset taken on a sunny day | 97 | |cloudy | 7,680 | Dataset taken on a rainy or cloudy day | 98 | |total | 18,000 | | 99 | 100 | ### Filming location 101 | | | Number of images | Description | 102 | |----------------|------------------|-------------------------------------------------------------------------------------| 103 | |general | 9,000 | Dataset taken from common roads such as side walk and asphalt | 104 | |green | 6,900 | Dataset taken in natural environments | 105 | |play ground | 2,100 | Dataset taken from outdoor sports venues such as tennis courts and basketball courts| 106 | |total | 18,000 | | 107 | 108 | 109 | 110 | 116 | 117 | ## Class Distribution 118 | 119 | ### Human pose class 120 | | | Number of objects| Description | 121 | |-----------|------------------|---------------------------------------------------------------------------------------| 122 | |general | 134,328 | Objects(people) with comman posture, such as walking or standing | 123 | |sitting | 9,598 | Objects(people) with sitting posutre | 124 | |waving hand| 542 | Object(people) waving hands | 125 | |total | 144,468 | | 126 | 127 | 128 | ### Occlusion 129 | | | Number of objects| Description | 130 | |------------|------------------|--------------------------------------------------------------------------------------| 131 | |occluded | 49,258 | Objects that are obscured by other objects within the image | 132 | |not occluded| 95,210 | Objects that appear completely without occlusion within the image | 133 | |total | 144,468 | | 134 | 135 | 136 | 137 | ### Truncation 138 | | | Number of objects| Description | 139 | |-------------|------------------|--------------------------------------------------------------------------------------| 140 | |truncated | 10,508 | Objects whose part is out of the image | 141 | |not truncated| 133,960 | Objects that appear completely without truncation within the image | 142 | |total | 144,468 | | 143 | 144 | 145 | 150 | 151 | 152 | ## Data Example 153 | * Images below are example images from dataset. 154 |

155 | drawing 156 | drawing 157 |

158 | 159 |

160 | drawing 161 | drawing 162 |

163 | 164 | ## Acknowledgement 165 | 166 | 이 데이터는 2021년도 정부(과학기술정보통신부)의 재원으로 정보통신기획평가원의 지원을 받아 수행된 연구의 결과물임 (No.171125972, 인명 구조용 드론을 위한 영상/음성 인지 기술 개발) 167 | 168 | This work was supported by Institute of Information & communications Technology Planning & Evaluation (IITP) grant funded by the Korea government(MSIT) (No.171125972, Audio-Visual Perception for Autonomous Rescue Drones) -------------------------------------------------------------------------------- /config/doc/capture_ratio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uvify-public/human_tracking_dataset/eb3af0cfe49de018a0c4736581daadd8eb860883/config/doc/capture_ratio.png -------------------------------------------------------------------------------- /config/doc/data_ratio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uvify-public/human_tracking_dataset/eb3af0cfe49de018a0c4736581daadd8eb860883/config/doc/data_ratio.png -------------------------------------------------------------------------------- /config/doc/degree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uvify-public/human_tracking_dataset/eb3af0cfe49de018a0c4736581daadd8eb860883/config/doc/degree.png -------------------------------------------------------------------------------- /config/doc/dir_structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uvify-public/human_tracking_dataset/eb3af0cfe49de018a0c4736581daadd8eb860883/config/doc/dir_structure.png -------------------------------------------------------------------------------- /config/doc/example1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uvify-public/human_tracking_dataset/eb3af0cfe49de018a0c4736581daadd8eb860883/config/doc/example1.png -------------------------------------------------------------------------------- /config/doc/example2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uvify-public/human_tracking_dataset/eb3af0cfe49de018a0c4736581daadd8eb860883/config/doc/example2.png -------------------------------------------------------------------------------- /config/doc/example3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uvify-public/human_tracking_dataset/eb3af0cfe49de018a0c4736581daadd8eb860883/config/doc/example3.png -------------------------------------------------------------------------------- /config/doc/example4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uvify-public/human_tracking_dataset/eb3af0cfe49de018a0c4736581daadd8eb860883/config/doc/example4.png -------------------------------------------------------------------------------- /config/doc/general_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uvify-public/human_tracking_dataset/eb3af0cfe49de018a0c4736581daadd8eb860883/config/doc/general_example.png -------------------------------------------------------------------------------- /config/doc/gt_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uvify-public/human_tracking_dataset/eb3af0cfe49de018a0c4736581daadd8eb860883/config/doc/gt_example.png -------------------------------------------------------------------------------- /config/doc/occlusion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uvify-public/human_tracking_dataset/eb3af0cfe49de018a0c4736581daadd8eb860883/config/doc/occlusion.png -------------------------------------------------------------------------------- /config/doc/pose_distribution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uvify-public/human_tracking_dataset/eb3af0cfe49de018a0c4736581daadd8eb860883/config/doc/pose_distribution.png -------------------------------------------------------------------------------- /config/doc/space_ratio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uvify-public/human_tracking_dataset/eb3af0cfe49de018a0c4736581daadd8eb860883/config/doc/space_ratio.png -------------------------------------------------------------------------------- /config/doc/top_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uvify-public/human_tracking_dataset/eb3af0cfe49de018a0c4736581daadd8eb860883/config/doc/top_example.png -------------------------------------------------------------------------------- /config/doc/truncation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uvify-public/human_tracking_dataset/eb3af0cfe49de018a0c4736581daadd8eb860883/config/doc/truncation.png -------------------------------------------------------------------------------- /config/doc/weather_ratio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uvify-public/human_tracking_dataset/eb3af0cfe49de018a0c4736581daadd8eb860883/config/doc/weather_ratio.png -------------------------------------------------------------------------------- /visualize_data.py: -------------------------------------------------------------------------------- 1 | 2 | import glob 3 | from os import truncate 4 | 5 | import cv2 as cv 6 | import re 7 | import random 8 | import argparse 9 | 10 | from pandas.core import frame 11 | 12 | parser = argparse.ArgumentParser() 13 | parser.add_argument('--dir' , help='root directroy path') 14 | parser.add_argument('--type', help='data type (train < 450) , (test >= 450)') 15 | parser.add_argument('--seq' , help='sequence number') 16 | 17 | 18 | args = parser.parse_args() 19 | seq_path = args.dir + "/" + args.type + "/sequence_" + ("%05d" % int(args.seq)) 20 | 21 | txt_files = glob.glob(seq_path + '/**/*.txt', recursive=True) 22 | img_files = glob.glob(seq_path + '/**/*.png', recursive=True) 23 | 24 | img_files = sorted(img_files) 25 | id_color_map = dict() 26 | 27 | def get_pick_color(model): 28 | model_id = model 29 | r = int(model_id/(256**3)) 30 | g = int(model_id%(256**3)/(256**2)) 31 | b = int(model_id%(256**2)/256) 32 | a = int(model_id%256) 33 | return (r, g, b, a) 34 | 35 | 36 | cv.namedWindow("win") 37 | 38 | f = open(txt_files[0] , 'r') 39 | lines = f.readlines() 40 | 41 | regex = re.compile(r'\d+.png') 42 | 43 | i = 0 44 | while True: 45 | 46 | mat = cv.imread(img_files[i]) 47 | 48 | path_tokens = img_files[i].split(sep="/") 49 | 50 | sub_string = '/'.join(path_tokens[-5:-1]) 51 | 52 | img_file_name = path_tokens[-1] 53 | frame_number = int(re.search(r"(\d+).png",img_file_name).group(1)) 54 | 55 | for line in lines: 56 | line = line.strip() 57 | line_tokens = line.split(',') 58 | if(frame_number == int(line_tokens[0])): 59 | box_top_left_x = int(line_tokens[3]) 60 | box_top_left_y = int(line_tokens[4]) 61 | box_width = int(line_tokens[5]) 62 | box_hegiht = int(line_tokens[6]) 63 | 64 | 65 | person_id = "person id: " + line_tokens[1] 66 | tracking_id = "tracking id: " + line_tokens[2] 67 | is_valid = "is_valid: " + line_tokens[7] 68 | pose_class = "pose_class: " + line_tokens[8] 69 | occlusion = "occlusion: " + line_tokens[9] 70 | truncated = "truncated: "+ line_tokens[10] 71 | visibiltiy = "visibility: "+ line_tokens[11] 72 | 73 | try: 74 | color = id_color_map[line_tokens[1]] 75 | except KeyError: 76 | color = (random.randint(0,255), random.randint(0,255), random.randint(0,255)) 77 | id_color_map[line_tokens[1]] = color 78 | 79 | cv.rectangle(mat, (box_top_left_x, box_top_left_y), (box_top_left_x+box_width, box_top_left_y+box_hegiht), color, 3) 80 | cv.putText(mat, person_id, (box_top_left_x+10 + box_width, box_top_left_y+ 10) ,cv.FONT_HERSHEY_COMPLEX, 0.4, color, 1, cv.LINE_AA) 81 | cv.putText(mat, tracking_id, (box_top_left_x+10 + box_width, box_top_left_y + 25) ,cv.FONT_HERSHEY_COMPLEX, 0.4, color, 1, cv.LINE_AA) 82 | cv.putText(mat, is_valid, (box_top_left_x+10 + box_width, box_top_left_y+ 40) ,cv.FONT_HERSHEY_COMPLEX, 0.4, color, 1, cv.LINE_AA) 83 | cv.putText(mat, pose_class, (box_top_left_x+10 + box_width, box_top_left_y + 55) ,cv.FONT_HERSHEY_COMPLEX, 0.4, color, 1, cv.LINE_AA) 84 | cv.putText(mat, occlusion, (box_top_left_x+10 + box_width, box_top_left_y + 70) ,cv.FONT_HERSHEY_COMPLEX, 0.4, color, 1, cv.LINE_AA) 85 | cv.putText(mat, truncated, (box_top_left_x+10 + box_width, box_top_left_y + 85) ,cv.FONT_HERSHEY_COMPLEX, 0.4, color, 1, cv.LINE_AA) 86 | cv.putText(mat, visibiltiy, (box_top_left_x+10 + box_width, box_top_left_y + 100) ,cv.FONT_HERSHEY_COMPLEX, 0.4, color, 1, cv.LINE_AA) 87 | 88 | 89 | cv.putText(mat, line_tokens[0] ,(30,30), cv.FONT_HERSHEY_COMPLEX, 1.0 , (255,255,255), 1, cv.LINE_AA) 90 | 91 | 92 | 93 | 94 | cv.imshow("win", mat) 95 | key = cv.waitKey(0) 96 | if(key == 27 or key == 113): 97 | exit() 98 | 99 | elif(key==112 or key == 81): 100 | if(i >1 ): 101 | i = i-1 102 | 103 | else: 104 | i = i+1 105 | 106 | 107 | --------------------------------------------------------------------------------