Windows Path Error #13460
Labels
dependencies
Dependencies and packages
detect
Object Detection issues, PR's
question
Further information is requested
Search before asking
Question
import platform
import pathlib
if platform.system() != 'Windows':
pathlib.WindowsPath = pathlib.PosixPath
import subprocess
import os
import cv2
import matplotlib.pyplot as plt
import time
from paddleocr import PaddleOCR
import re
from flask import Blueprint, request, jsonify
from werkzeug.utils import secure_filename
from models.database import Box,PackedItem
from app import db
from datetime import datetime
from dotenv import load_dotenv
from pathlib import Path
load_dotenv()
YOLO_WEIGHTS_PATH = r"C:\Users\tanya\OneDrive\Pictures\web_app\backend\models\best.pt"
DETECT=r"C:\Users\tanya\OneDrive\Pictures\web_app\backend\yolov5\detect.py"
DETECT_RUNS=r"C:\Users\tanya\OneDrive\Pictures\web_app\backend\yolov5\runs\detect"
YOLO_WEIGHTS_PATH = "/root/backend/models/best.pt"
DETECT = "/root/backend/yolov5/detect.py"
DETECT_RUNS = "/root/backend/yolov5/runs/detect"
ocr = PaddleOCR(use_angle_cls=True, lang='en', det_db_thresh=0.3, det_db_box_thresh=0.5)
detected_texts = []
Create Blueprint
detect_front_side_blueprint = Blueprint('detect_front_side', name)
def run_yolo_inference(image_path):
"detect_front_side.py" [dos] 249L, 8997B 6,0-1 Top
here i want to use poxix path but internal files of yolov5 are runt able to take this
Additional
No response
The text was updated successfully, but these errors were encountered: