Skip to content
Advertisement

A question regarding plots with matplotlib in python

i hope i can find someone among you who can help me to master the first steps with matplot.

the following scenario is currently bothering me: I am using a custom trained YoloV5 model to apply object detection to a video.

now i can detect n objects per frame, which i generate via screenshot from the video. These objects I would like to plot in a chess-like field as this is applied to a video so it is also necessary to have something like a live-graph.

i am already so far that i get the information and also the positions on the detected objects (x-axis and y-axis) extracted, however i fail miserably at plotting this information…

i actually thought that the graph should have an x-axis which should get the height of the image and the y-axis the width of the image…

could someone here help me with this?

to be more precise – here’s the loop for the inferecing including the pandas array with the detections. for each detected object i want to plot the position on the image to the figure

JavaScript

Advertisement

Answer

I have solved it myself in the meantime. The problem was of course the layer 8 ;-)

here the code i wrote for this… :

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement