agregando 0 a 30 img
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .idea/.gitignore +3 -0
- .idea/Ine_Reverso.iml +8 -0
- .idea/inspectionProfiles/Project_Default.xml +23 -0
- .idea/inspectionProfiles/profiles_settings.xml +6 -0
- .idea/misc.xml +4 -0
- .idea/modules.xml +8 -0
- .idea/vcs.xml +6 -0
- crear.py +27 -0
- data/img/000.jpg +3 -0
- data/img/001.jpg +3 -0
- data/img/002.jpg +3 -0
- data/img/003.jpg +3 -0
- data/img/004.jpg +3 -0
- data/img/005.jpg +3 -0
- data/img/006.jpg +3 -0
- data/img/007.jpg +3 -0
- data/img/008.jpg +3 -0
- data/img/009.jpg +3 -0
- data/img/010.jpg +3 -0
- data/img/011.jpg +3 -0
- data/img/012.jpg +3 -0
- data/img/013.jpg +3 -0
- data/img/014.jpg +3 -0
- data/img/015.jpg +3 -0
- data/img/016.jpg +3 -0
- data/img/017.jpg +3 -0
- data/img/018.jpg +3 -0
- data/img/019.jpg +3 -0
- data/img/020.jpg +3 -0
- data/img/021.jpg +3 -0
- data/img/022.jpg +3 -0
- data/img/023.jpg +3 -0
- data/img/024.jpg +3 -0
- data/img/025.jpg +3 -0
- data/img/026.jpg +3 -0
- data/img/027.jpg +3 -0
- data/img/028.jpg +3 -0
- data/img/029.jpg +3 -0
- data/img/030.jpg +3 -0
- data/key/000.json +6 -0
- data/key/001.json +6 -0
- data/key/002.json +6 -0
- data/key/003.json +6 -0
- data/key/004.json +6 -0
- data/key/005.json +6 -0
- data/key/006.json +6 -0
- data/key/007.json +6 -0
- data/key/008.json +6 -0
- data/key/009.json +6 -0
- data/key/010.json +6 -0
.idea/.gitignore
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
# Default ignored files
|
2 |
+
/shelf/
|
3 |
+
/workspace.xml
|
.idea/Ine_Reverso.iml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<module type="PYTHON_MODULE" version="4">
|
3 |
+
<component name="NewModuleRootManager">
|
4 |
+
<content url="file://$MODULE_DIR$" />
|
5 |
+
<orderEntry type="jdk" jdkName="Python 3.9" jdkType="Python SDK" />
|
6 |
+
<orderEntry type="sourceFolder" forTests="false" />
|
7 |
+
</component>
|
8 |
+
</module>
|
.idea/inspectionProfiles/Project_Default.xml
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<component name="InspectionProjectProfileManager">
|
2 |
+
<profile version="1.0">
|
3 |
+
<option name="myName" value="Project Default" />
|
4 |
+
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
5 |
+
<option name="ignoredPackages">
|
6 |
+
<value>
|
7 |
+
<list size="3">
|
8 |
+
<item index="0" class="java.lang.String" itemvalue="huggingface-hub" />
|
9 |
+
<item index="1" class="java.lang.String" itemvalue="PyYAML" />
|
10 |
+
<item index="2" class="java.lang.String" itemvalue="typing_extensions" />
|
11 |
+
</list>
|
12 |
+
</value>
|
13 |
+
</option>
|
14 |
+
</inspection_tool>
|
15 |
+
<inspection_tool class="PyPep8Inspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
16 |
+
<option name="ignoredErrors">
|
17 |
+
<list>
|
18 |
+
<option value="W605" />
|
19 |
+
</list>
|
20 |
+
</option>
|
21 |
+
</inspection_tool>
|
22 |
+
</profile>
|
23 |
+
</component>
|
.idea/inspectionProfiles/profiles_settings.xml
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<component name="InspectionProjectProfileManager">
|
2 |
+
<settings>
|
3 |
+
<option name="USE_PROJECT_PROFILE" value="false" />
|
4 |
+
<version value="1.0" />
|
5 |
+
</settings>
|
6 |
+
</component>
|
.idea/misc.xml
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" />
|
4 |
+
</project>
|
.idea/modules.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="ProjectModuleManager">
|
4 |
+
<modules>
|
5 |
+
<module fileurl="file://$PROJECT_DIR$/.idea/Ine_Reverso.iml" filepath="$PROJECT_DIR$/.idea/Ine_Reverso.iml" />
|
6 |
+
</modules>
|
7 |
+
</component>
|
8 |
+
</project>
|
.idea/vcs.xml
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="VcsDirectoryMappings">
|
4 |
+
<mapping directory="" vcs="Git" />
|
5 |
+
</component>
|
6 |
+
</project>
|
crear.py
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import json
|
2 |
+
import os
|
3 |
+
|
4 |
+
# Ruta de la carpeta donde se guardarán los archivos JSON
|
5 |
+
folder_path = "./data/key"
|
6 |
+
|
7 |
+
# Verificar si la carpeta existe, de lo contrario, crearla
|
8 |
+
if not os.path.exists(folder_path):
|
9 |
+
os.makedirs(folder_path)
|
10 |
+
|
11 |
+
for i in range(0, 50):
|
12 |
+
data = {
|
13 |
+
"CIC": "",
|
14 |
+
"OCR": "",
|
15 |
+
"MRZ" : "IDMEX",
|
16 |
+
"modelType": ""
|
17 |
+
}
|
18 |
+
|
19 |
+
file_name = f"{i}.json"
|
20 |
+
file_path = os.path.join(folder_path, file_name)
|
21 |
+
|
22 |
+
with open(file_path, 'w') as f:
|
23 |
+
json.dump(data, f, indent=4)
|
24 |
+
|
25 |
+
print(f"Archivo {file_name} creado en {folder_path}.")
|
26 |
+
|
27 |
+
print("Creación de archivos JSON completada.")
|
data/img/000.jpg
ADDED
Git LFS Details
|
data/img/001.jpg
ADDED
Git LFS Details
|
data/img/002.jpg
ADDED
Git LFS Details
|
data/img/003.jpg
ADDED
Git LFS Details
|
data/img/004.jpg
ADDED
Git LFS Details
|
data/img/005.jpg
ADDED
Git LFS Details
|
data/img/006.jpg
ADDED
Git LFS Details
|
data/img/007.jpg
ADDED
Git LFS Details
|
data/img/008.jpg
ADDED
Git LFS Details
|
data/img/009.jpg
ADDED
Git LFS Details
|
data/img/010.jpg
ADDED
Git LFS Details
|
data/img/011.jpg
ADDED
Git LFS Details
|
data/img/012.jpg
ADDED
Git LFS Details
|
data/img/013.jpg
ADDED
Git LFS Details
|
data/img/014.jpg
ADDED
Git LFS Details
|
data/img/015.jpg
ADDED
Git LFS Details
|
data/img/016.jpg
ADDED
Git LFS Details
|
data/img/017.jpg
ADDED
Git LFS Details
|
data/img/018.jpg
ADDED
Git LFS Details
|
data/img/019.jpg
ADDED
Git LFS Details
|
data/img/020.jpg
ADDED
Git LFS Details
|
data/img/021.jpg
ADDED
Git LFS Details
|
data/img/022.jpg
ADDED
Git LFS Details
|
data/img/023.jpg
ADDED
Git LFS Details
|
data/img/024.jpg
ADDED
Git LFS Details
|
data/img/025.jpg
ADDED
Git LFS Details
|
data/img/026.jpg
ADDED
Git LFS Details
|
data/img/027.jpg
ADDED
Git LFS Details
|
data/img/028.jpg
ADDED
Git LFS Details
|
data/img/029.jpg
ADDED
Git LFS Details
|
data/img/030.jpg
ADDED
Git LFS Details
|
data/key/000.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"CIC": "1791999988",
|
3 |
+
"OCR": "5346012761337",
|
4 |
+
"MRZ": "IDMEX1791999988<<5346012761337 7608036H281231MEX<03<<23046<6 ZARATE<AVILA<<EDUARDO<<<<<<<<<",
|
5 |
+
"modelType": "DEF"
|
6 |
+
}
|
data/key/001.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"CIC": "2148826393",
|
3 |
+
"OCR": "5289127845846",
|
4 |
+
"MRZ": "IDMEX2148826393<<5289127845846 02102263H3112319MEX<00<<13774<7 FERRARA<ANGELES<<PABLO<ANTONIO",
|
5 |
+
"modelType": "GH"
|
6 |
+
}
|
data/key/002.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"CIC": "1769695881",
|
3 |
+
"OCR": "5245091943692",
|
4 |
+
"MRZ": "IDMEX1769695881<<5245091943692 9310232H2812313MEX<02<<25228<6 VIEYRA<SANDOVAL<<AMADOR<<<<<<<",
|
5 |
+
"modelType": "DEF"
|
6 |
+
}
|
data/key/003.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"CIC": "",
|
3 |
+
"OCR": "0731132225517",
|
4 |
+
"MRZ": "",
|
5 |
+
"modelType": "C"
|
6 |
+
}
|
data/key/004.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"CIC": "1808262025",
|
3 |
+
"OCR": "2476122414284",
|
4 |
+
"MRZ": "IDMEX1808262025<<2476122414284 0011020H2812313MEX<00<<23754<8 MATA<RODRIGUEZ<<JUAN<ALDAIR<<<",
|
5 |
+
"modelType": "DEF"
|
6 |
+
}
|
data/key/005.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"CIC": "2242933157",
|
3 |
+
"OCR": "1024007995375",
|
4 |
+
"MRZ": "IDMEX2242933157<<1024007995375 7405040H3112319MEX<04<<34126<2 MONSIVAIS<ARRATIA<<GONZALO<<<<",
|
5 |
+
"modelType": "GH"
|
6 |
+
}
|
data/key/006.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"CIC": "1482561076",
|
3 |
+
"OCR": "2041074796539",
|
4 |
+
"MRZ": "IDMEX1482561076<<2041074796539 8806264M2612317MEX<02<<02<<17634<8 VENTURA<VALENCIAN<<PAOLA<JAZMI",
|
5 |
+
"modelType": "DEF"
|
6 |
+
}
|
data/key/007.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"CIC": "1363011355",
|
3 |
+
"OCR": "0469041427840",
|
4 |
+
"MRZ": "IDMEX1363011355<<0469041427840 8202132H2512314MEX<01<<15958<8 RIVERA<GUTIERREZ<<JESUS<RICARD",
|
5 |
+
"modelType": "DEF"
|
6 |
+
}
|
data/key/008.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"CIC": "1887923640",
|
3 |
+
"OCR": "1154052306427",
|
4 |
+
"MRZ": "IDMEX1887923640<<1154052306427 7809257M2912316MEX<05<<09295<8 DIAZ<OROZCO<<ELBA<ROCIO<<<<<<<",
|
5 |
+
"modelType": "DEF"
|
6 |
+
}
|
data/key/009.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"CIC": "2028982816",
|
3 |
+
"OCR": "0781036377304",
|
4 |
+
"MRZ": "IDMEX2028982816<<0781036377304 8209094M3012316MEX<04<<02377<0 CARRIZALES<FONSECA<<MARCELA<<<",
|
5 |
+
"modelType": "GH"
|
6 |
+
}
|
data/key/010.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"CIC": "1872990628",
|
3 |
+
"OCR": "3590041251581",
|
4 |
+
"MRZ": "IDMEX1872990628<<3590041251581 7011203H2912316MEX<02<<07073<9 GONZALEZ<RUIZ<<ARISTEO<<<<<<<<",
|
5 |
+
"modelType": "DEF"
|
6 |
+
}
|