Week 2
June 06/09/23
Experiment to find partially detected frames
- Running the distance + defect extraction nb will result in the following cases.
note
The distance + defect extraction nb does not break if the distance text is not extracted using regex from OCR output. All it does is return null.
Nuances
- frames with distance extracted from OCR output
- Other fields can have partially identified text which won't be recognized by our experiment. For example, defect annotation can be missing.
- frames without distance extracted
- original frame did not have distance (this is not a problem)
- original frame had distance, OCR failed to recognize
danger
This experiment will not be able to differentiate between 2i and 2ii without manually inspecting the frames.
June 06/08/23
- Running the blurring notebook
- Convert the nb as a py script. (Deven used
nbdev_export) to create the py file - Use the same groups as OCR for processing
- Make sure the notebook is updated to save
jpgsin full resolution. - Make parallel runs on MSI Server
- Convert the nb as a py script. (Deven used
- Steps on the AI3 front
- The lookup function is being revised.
- When found an exact match it, it returns
(word, True, jaccard_distance)as expected - It is slightly tricky, when the key is not found.
- The reason behind this struggle is that, this was a recursive function written by ChatGPT and adding new functionality in the recursive function is more tricky than expected.
- When found an exact match it, it returns
- Regarding generating more labelled,
- I haven't had the chance to take the laptop home and run the script which will label JSON sentences using Bard in peace.
- I am looking at alternatives which can be used directly in the office.
- The lookup function is being revised.
June 06/07/23
- Frame extraction from all the videos with revised
ffmpegarguments -
Movecompatible-mp4anduncompatible-mp4videos toReceived Datafolder so that thevideo_listcsv can be created.- This is no longer required.
- The original zips were extracted again and frame extraction was run.
Frame extraction
- Extract all frames from all the videos
- Zip the jpgs
- Save them to
Extracted_Framesfolder
Azure OCR
- Modify the stitching command to write the jpg in full-resolution
- Try to write to
ramdiskto improve speed-up - Update the logic to create either a new-folder or save to a new temp file
To run OCR in parallel
- Deven's thought
- Convert the nb to py file and create a CLI out of it
- Open
nterminal windows usingtmuxand make separate calls manually by changing the arguments.
- Pavan's thought
- Modify the shell script that Vannary used to submit
njobs in parallel on SLURM. - Use the
&sign to push the process to background and continue.
- Modify the shell script that Vannary used to submit
June 06/05/23
- Run Azure OCR on Group 1. We need to create a new Azure Vision instance in the Azure Portal.
- Run the blurring notebook.