000000000036.jpg,216,257,208,257,230,257,257,255,243,208,216,211,hand 000000000036.jpg,419,469,339,386,449,339,419,343,439,386,469,381,hand 000000000077.jpg,29,47,254,276,47,259,38,254,29,272,38,276,hand 000000000077.jpg,291,307,58,69,291,62,294,69,307,65,305,58,hand 000000000077.jpg,292,305,58,69,292,63,295,69,305,64,302,58,hand 000000000077.jpg,307,315,76,86,315,78,311,76,307,85,311,86,hand 000000000165.jpg,109,182,210,253,109,224,116,253,182,239,174,210,hand 000000000165.jpg,219,274,262,312,243,262,219,280,250,312,274,294,hand 000000000165.jpg,185,237,217,257,226,257,237,229,195,217,185,245,hand 000000000165.jpg,244,298,170,202,293,202,298,177,249,170,244,195,hand 000000000322.jpg,189,212,148,167,194,148,189,157,208,167,212,158,hand 000000000322.jpg,53,75,163,186,75,171,65,163,53,178,63,186,hand 000000000389.jpg,426,446,246,264,440,264,446,255,432,246,426,255,hand 000000000431.jpg,218,231,148,159,219,148,218,156,230,159,231,151,hand 000000000436.jpg,98,246,89,173,98,151,164,173,246,111,180,89,hand 000000000436.jpg,265,444,149,225,404,225,444,181,305,149,265,193,hand 000000000446.jpg,280,361,192,228,296,192,280,212,346,228,361,207,hand 000000000446.jpg,283,345,198,219,284,198,283,218,343,219,345,199,hand 000000000510.jpg,223,252,179,211,223,179,223,211,252,211,251,179,hand 000000000510.jpg,228,268,180,209,267,209,268,181,228,180,228,208,hand 000000000532.jpg,206,214,233,245,211,233,206,234,209,245,214,243,hand 000000000532.jpg,228,233,224,232,233,224,228,224,228,232,233,232,hand 000000000572.jpg,75,100,260,285,99,260,75,260,76,285,100,284,hand 000000000572.jpg,153,195,258,291,195,260,162,258,153,288,186,291,hand 000000000572.jpg,224,253,157,182,253,158,228,157,224,181,249,182,hand 000000000659.jpg,113,131,193,213,131,204,123,193,113,202,121,213,hand 000000000659.jpg,111,131,193,214,117,193,111,204,125,214,131,203,hand 000000000659.jpg,74,88,200,225,88,203,78,200,74,222,84,225,hand 000000000722.jpg,67,80,233,248,73,233,67,240,74,248,80,241,hand 000000000722.jpg,92,99,247,258,99,247,92,247,92,258,99,258,hand,其中第一个为文件名,第二个为坐标,第三个为标签,将所有行依次按照文件名的txt拆分为单独的txt文件
时间: 2023-09-23 10:12:17 浏览: 46
agaraga - Copia (2)_qwet_fametish.com.copia_asdfg_asdq_
要将给定的标注数据按照文件名拆分为单独的txt文件,您可以使用Python编写一个脚本来完成此任务。以下是一个示例脚本,可以将提供的标注数据拆分为单独的txt文件:
```python
import os
# 提供的标注数据
annotations = [
"000000000036.jpg,216,257,208,257,230,257,257,255,243,208,216,211,hand",
"000000000036.jpg,419,469,339,386,449,339,419,343,439,386,469,381,hand",
"000000000077.jpg,29,47,254,276,47,259,38,254,29,272,38,276,hand",
"000000000077.jpg,291,307,58,69,291,62,294,69,307,65,305,58,hand",
"000000000077.jpg,292,305,58,69,292,63,295,69,305,64,302,58,hand",
"000000000077.jpg,307,315,76,86,315,78,311,76,307,85,311,86,hand",
"000000000165.jpg,109,182,210,253,109,224,116,253,182,239,174,210,hand",
"000000000165.jpg,219,274,262,312,243,262,219,280,250,312,274,294,hand",
"000000000165.jpg,185,237,217,257,226,257,237,229,195,217,185,245,hand",
"000000000165.jpg,244,298,170,202,293,202,298,177,249,170,244,195,hand",
"000000000322.jpg,189,212,148,167,194,148,189,157,208,167,212,158,hand",
"000000000322.jpg,53,75,163,186,75,171,65,163,53,178,63,186,hand",
"000000000389.jpg,426,446,246,264,440,264,446,255,432,246,426,255,hand",
"000000000431.jpg,218,231,148,159,219,148,218,156,230,159,231,151,hand",
"000000000436.jpg,98,246,89,173,98,151,164,173,246,111,180,89,hand",
"000000000436.jpg,265,444,149,225,404,225,444,181,305,149,265,193,hand",
"000000000446.jpg,280,361,192,228,296,192,280,212,346,228,361,207,hand",
"000000000446.jpg,283,345,198,219,284,198
阅读全文