Changes between Version 58 and Version 59 of Other/Summer/2023/Latency


Ignore:
Timestamp:
Aug 8, 2023, 7:38:46 PM (11 months ago)
Author:
Ayush_Iyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Other/Summer/2023/Latency

    v58 v59  
    7272
    7373Following up on our plan from week 6, we worked on plotting histograms of the hex byte data. This had a rough start as when uploading the artificial videos to the node, the node ended up corrupting the video, making it impossible to use. As a result, we uploaded frames from the video to the node in order to compute it. After this, several histogram scripts were developed, each functioning in a different way. Ultimately, we decided upon creating three separate graphs for each color (RGB) of how often certain values occurred. After testing these with the JPEG images, we then used it on the camera where we changed LED setup to take up more of the camera’s view as well as used FFMPEG to get video into one MJPEG or many JPEG files. The resulting histograms were the following:
    74 [[Image()]]
    75 [[Image()]]
    76 [[Image()]]
     74[[Image(https://cdn.discordapp.com/attachments/750525976105975828/1138556199319642233/Screenshot_2023-08-08_153319.png)]]
     75[[Image(https://cdn.discordapp.com/attachments/750525976105975828/1138556199709708428/Screenshot_2023-08-08_153427.png)]]
     76[[Image(https://cdn.discordapp.com/attachments/750525976105975828/1138556200162709524/Screenshot_2023-08-08_153516.png)]]
    7777
    7878These histograms show the number of occurrences in the 5-sec camera footage for each type of colored pixel value with no noise.
     
    9797During this week, we decided to take a step back to understand what the values in the JPEG hex values meant. Once analyzing the hex files from the video, it was quickly discovered there were certain indicators present, being FFD8 and FFD9. FFD8 represented the start of frame while FFD9 represented the end of the frame, while everything inside containing the frame contents. Knowing this, we were then able to isolate specific frames via these indicators via Python.
    9898
    99 [[Image(Hexdata.png)]]
     99[[Image(https://cdn.discordapp.com/attachments/750525976105975828/1138556198992494683/Hexdata.png)]]
    100100
    101101After this step, we were finally able to calculate latency. By comparing the frame data to the packet data, we could find what exact packet correlates to the frame. By using the timestamp of the packet, we can then be able to find the latency.