Luxonis
    Our new model ZOO works with DepthAI V3. Find out more in our documentation.
    1+ Likes
    Model Details
    Model Description
    The Openvino vehicle-attributes-recognition-barrier-0039 model is a fast vehicle attributes classification algorithm built to run efficiently on edge devices. For each input image the model returns two classification heads:
    • color: a softmax output across seven color classes [white, gray, yellow, red, green, blue, black]
    • type: a softmax output across four type classes [car, bus, truck, van]
    More information:
    • Original model:
    • Re-implemented by:
    • Model type: Computer Vision
    • License:
    • Resources for more information:
    Training Details
    The model was trained on cropped images of cars, trucks, vans and buses all of seven different colors, making it suitable for a traffic analysis scenario.
    Testing Details
    The below metrics are based on the underlying source model before it was converted to RVC2 and RVC4 compatible format. Results of RVC2/4 compiled model may be different.
    Metrics
    Color accuracy (%)
    bluegrayyellowgreenblackwhitered
    blue79.534.320.626.416.542.470.12
    gray2.5378.0101.361.1816.740.18
    yellow013.954.0111.21010.710.16
    green3.791.521.5283.336.063.030.76
    black0.851.9200.3296.10.740.07
    white1.4510.860.172.530.0884.830.08
    red0.890.32.182.180.31.8892.27
    Type accuracy (%)
    carvantruckbus
    car98.260.560.980.2
    van3.7289.166.150.97
    truck1.712.4694.271.56
    bus7.943.819.6968.57
    Technical Specifications
    Input/Output Details
    • Input:
      • Name: image
        • Info: NCHW BGR non-normalized image (cropped image of a vehicle)
    • Output:
      • Name: tf.identity_1
        • Info: Softmax scores across seven color classes: [white, gray, yellow, red, green, blue, black]
      • Name: output2_yolov6r2
        • Info: Softmax scores across four type classes : [car, bus, truck, van]
    Model Architecture
    Please consult the for more information on model architecture.
    Throughput
    Model variant: vehicle-attributes-classification:72x72
    • Input shape: [1, 3, 72, 72] • Output shapes: [[1, 1, 1, 4], [1, 1, 1, 7]]
    • Params (M): 0.626 • GFLOPs: 0.063
    PlatformPrecisionThroughput (infs/sec)Power Consumption (W)
    RVC2FP16918.01N/A
    RVC4FP16634.452.55
    * Benchmarked with , using 2 threads (and the DSP runtime in balanced mode for RVC4).
    * Parameters and FLOPs are obtained from the package.
    Utilization
    Models converted for RVC Platforms can be used for inference on OAK devices. DepthAI pipelines are used to define the information flow linking the device, inference model, and the output parser (as defined in model head(s)). Below, we present the most crucial utilization steps for the particular model. Please consult the docs for more information.
    Install DAIv3 and depthai-nodes libraries:
    pip install depthai
    pip install depthai-nodes
    
    Define model:
    model_description = dai.NNModelDescription(
        "luxonis/vehicle-attributes-classification:72x72"
    )
    
    nn = pipeline.create(ParsingNeuralNetwork).build(
        <CameraNode>, model_description
    )
    
    Inspect model head(s):
    • ClassificationParser that outputs message (vehicle type).
    • ClassificationParser that outputs message (vehicle color).
    The model is multi-headed. You can set up the queues as follows:
    queue_vehicle_type = nn.getOutput(0).createOutputQueue()
    queue_vehicle_color = nn.getOutput(1).createOutputQueue()
    
    Get parsed output(s):
    while pipeline.isRuning():
        vehicle_type: Classifications = queue_vehicle_type.get()
        vehicle_color: Classifications = queue_vehicle_color.get()
    
    Example
    TBA
    Vehicle attributes classification
    A fast Openvino model built for classifying vehicle type and color.
    License
    MIT
    Commercial use
    Downloads
    1650
    Tasks
    Classification
    Model Types
    ONNX
    Model Variants
    NameVersionAvailable ForCreated AtDeploy
    RVC2, RVC410 months ago
    Luxonis - Robotic vision made simple.
    XYouTubeLinkedInGitHub