This commit is contained in:
Javier Gutiérrez 2025-11-19 10:42:53 +01:00 committed by GitHub
commit 67fb00a4e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 3810 additions and 0 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@ etc/odoo-server.log
etc/addons/
etc/sessions/
etc/filestore/
venv/
screenshots/

View File

@ -0,0 +1,2 @@
# This file makes Python treat the directory as a package
from . import models

1145
etc/odoo-server.log.1 Normal file

File diff suppressed because it is too large Load Diff

1150
etc/odoo-server.log.2 Normal file

File diff suppressed because it is too large Load Diff

1334
etc/odoo-server.log.3 Normal file

File diff suppressed because it is too large Load Diff

BIN
filters.xlsx Normal file

Binary file not shown.

View File

@ -0,0 +1,58 @@
from PIL import Image
import openpyxl
import os
def identify_filters(image_path, output_file):
# Open the image file
image = Image.open(image_path)
# Create a new Excel workbook and select the active worksheet
workbook = openpyxl.Workbook()
worksheet = workbook.active
# Write the header row
worksheet.append(['Model', 'Brand', 'Description'])
# Basic OCR implementation to extract text from the image
from PIL import Image
import pytesseract
import openpyxl
import os
def identify_filters(image_path, output_file):
# Open the image file
image = Image.open(image_path)
# Use pytesseract to extract text from the image
text = pytesseract.image_to_string(image)
# Create a new Excel workbook and select the active worksheet
workbook = openpyxl.Workbook()
worksheet = workbook.active
# Write the header row
worksheet.append(['Model', 'Brand', 'Description'])
# Process the extracted text to identify filters
# This is a simplified example - you'll need to adapt it to your specific image
lines = text.split('\n')
for line in lines:
if 'Filter' in line or 'Filtro' in line:
parts = line.split()
if len(parts) >= 3:
model = parts[0]
brand = parts[1] if len(parts) > 1 else 'Unknown'
description = ' '.join(parts[2:]) if len(parts) > 2 else 'No description'
worksheet.append([model, brand, description])
# Save the workbook
workbook.save(output_file)
# Save the workbook
workbook.save(output_file)
if __name__ == "__main__":
image_path = "memory_bank/filtros1.jpg"
output_file = "filters.xlsx"
identify_filters(image_path, output_file)
print(f"Filter identification complete. Results saved to {output_file}")

BIN
memory_bank/filtros1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 863 KiB

101
memory_bank/fleet_data.md Normal file
View File

@ -0,0 +1,101 @@
* T-01
Placas: 69AP5V
Marca: KENWORTH
Año: 2000
Serie: 3WKAD60X4YF508138
* 02
Placas: 46AR7M
Marca: KENWORTH
Año: 2012
Serie: 3WKDD40X6CF835456
* T-03
Placas: 12BH1B
Marca: KENWORTH
Año: 2012
Serie: 3WKDD40X9CF835452
* T06
Placas: 59AR8M
Marca: INTERNATIONAL
Año: 2013
Serie: 3HSDJAPT0DN175180
* T07
Placas: 58AR8M
Marca: INTERNATIONAL
Año: 2013
Serie: 3HSDJAPT9DN201209
* T11
Placas: 68AS2V
Marca: INTERNATIONAL
Año: 2014
Serie: 3HSDJAPT2EN041692
* T12
Placas: 69AS2V
Marca: INTERNATIONAL
Año: 2016
Serie: 3HSDJAPT3GN280851
* T13
Placas: 881AS2
Marca: KENWORTH
Año:
Serie:
* T16
Placas: 11BH1B
Marca: KENWORTH
Año: 2005
Serie: 3WKAD40X85F621770
* T18
Placas: 50BA1K
Marca: FREIGHTLINER
Año: 2018
Serie:
* T19
Placas: 51BA1K
Marca: FREIGHTLINER
Año: 2018
Serie: 3AKJGLDR3JSJL1849
* T20
Placas: 52BA1K
Marca: FREIGHTLINER
Año: 2018
Serie: 3AKJGLDRXJSJL1850
* PLATAFORMA 04
Placas: 44AR8M
Marca:
Año:
Serie:
* PLATAFORMA 05
Placas: 43AR8M
Marca: Dodge
Año: 1969
Serie:
* PLATAFORMA 14
Placas: 750DR5
Marca:
Año:
Serie:
* GRUA 08
Placas: FF0211A
Marca: Unknown
Año:
Serie:
* GRUA 22
Placas: FE4340A
Marca: INTERNATIONAL
Año: 1990
Serie: 1HTSDZ4N0LH293236

View File

@ -0,0 +1,18 @@
Unidad , Placas , Marca , Año , Serie;
T-01 , 69AP5V , KENWORTH , 2000 , 3WKAD60X4YF508138;
02 , 46AR7M , KENWORTH , 2012 , 3WKDD40X6CF835456;
T-03 , 12BH1B , KENWORTH , 2012 , 3WKDD40X9CF835452;
T06 , 59AR8M , INTERNATIONAL , 2013 , 3HSDJAPT0DN175180;
T07 , 58AR8M , INTERNATIONAL , 2013 , 3HSDJAPT9DN201209;
T11 , 68AS2V , INTERNATIONAL , 2014 , 3HSDJAPT2EN041692;
T12 , 69AS2V , INTERNATIONAL , 2016 , 3HSDJAPT3GN280851;
T13 , 881AS2 , KENWORTH , , ;
T16 , 11BH1B , KENWORTH , 2005 , 3WKAD40X85F621770;
T18 , 50BA1K , FREIGHTLINER , 2018 , ;
T19 , 51BA1K , FREIGHTLINER , 2018 , 3AKJGLDR3JSJL1849;
T20 , 52BA1K , FREIGHTLINER , 2018 , 3AKJGLDRXJSJL1850;
PLATAFORMA 04 , 44AR8M , , , ;
PLATAFORMA 05 , 43AR8M , Dodge , 1969 , ;
PLATAFORMA 14 , 750DR5 , , , ;
GRUA 08 , FF0211A , Unknown , , ;
GRUA 22 , FE4340A , INTERNATIONAL , 1990 , 1HTSDZ4N0LH293236;