Skip to content

How to consume radar metadata using ACAP application on Axis Q1656-DLE radar video fusion camera #903

Closed Answered by Cacsjep
gahangandi11 asked this question in ACAP
Discussion options

You must be logged in to vote

Just for reference, an example how to consume radar metadatastream via python,
could also be used for standart metadata stream (just modify url)

import av

def extract_and_parse_metadata(rtsp_url):
    """
    Connect to an RTSP stream over TCP, extract XML metadata, and handle potential issues.
    """
    try:
        # Open the RTSP stream with TCP transport
        container = av.open(rtsp_url, 'r', options={'rtsp_transport': 'tcp'})

        # Select the data stream
        if not container.streams.data:
            print("No data stream found in the RTSP container.")
            return
        
        data_stream = container.streams.data[0]
        print(f"Data stream opened: {data…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Cacsjep
Comment options

@Cacsjep
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by gahangandi11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ACAP
Labels
None yet
2 participants