Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
parkpow
GitHub Repository: parkpow/deep-license-plate-recognition
Path: blob/master/stream/stream_light_update/README.md
643 views

Stream Light Update

  1. Install requirements

pip install -r requirements.txt
  1. On machine 1 that is online, run script to extract the models and code from the Docker image.

python main.py extract -s platerecognizer/alpr-stream:1.53.0 -d platerecognizer/alpr-stream:1.52.0 -o /tmp/extracted_content

You will now have the following folder structure in /tmp/extracted_content:

/tmp/extracted_content update_1.52.0_to_1.53.0 app.tar dist-packages.tar site-packages.tar
  1. Copy the diff folder(/tmp/extracted_content/update_1.52.0_to_1.53.0) to machine 2 that is offline.

  2. On machine 2, run script again to restore the content and create a new Docker image.

python main.py restore -s /tmp/extracted_content/update_1.52.0_to_1.53.0 -d platerecognizer/alpr-stream:1.52.0 -o latest3

Updated image to use will now be called platerecognizer/alpr-stream:latest3 that you can use to rebuild Stream container

We recommend using a new tag so that you can have your previous image available to restore to in case of an issue