Skip to content

open-AIMS/reefscan_desktop_data_manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

449 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Initialise

virtualenv venv

On Linux:
source venv/bin/activate
On Windows:
venv\Scripts\Activate

python -m ensurepip
python -m pip install -r requirements.txt

Add dependencies

add dependencies to requirements.txt

GUI designer

QT designer is installed as part of the PyQT depenency
You can run it from a conda prompt
conda activate --name reef-scanner-data-entry
designer

You can integrate with Pycharm as an external tool (allows you to rightclick on a UI file and start the designer)
First find the executable mine was here:
C:\ProgramData\Miniconda3\envs\reef-scanner-data-entry\Library\bin\designer
File - settings - external tools
(+) to create
These are the values for the three edit boxes

  1. C:\ProgramData\Miniconda3\envs\reef-scanner-data-entry\Library\bin\designer
  2. $FilePathRelativeToProjectRoot$
  3. $ProjectFileDir$

Create executable

pip pinstall -r requirements.txt On Windows:
pyinstaller reefscan.spec

pyinstaller -p src -p real_src --noconsole --name reefscan --add-data src\resources*;resources --icon src\resources\aims_fish.ico --collect-submodules=sspilib --onedir --splash src/resources/ReefScan_inline_.png src\main.py --clean --version-file=version.txt

"C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\signtool" sign /f C:\greg\certificate-windows-reefscan\certificate.pfx /p reefscan /fd SHA256 /tr http://timestamp.digicert.com /td SHA256 dist\reefscan\reefscan.exe

or pyinstaller reefscan-simulated.spec Rename the exe file to reefscan-deep.exe for reefscan deep functionality On Linux:
pyinstaller -p src --noconsole --name reefscan-transom --add-data src/resources/*:resources --icon src\resources\aims_fish.ico --onefile src/main.py

pip install ..\reef_scanner_data_model\dist\reefscanner-0.2.0-py3-none-any.whl

Language stuff

Create or update ts files ensure reefscan.pro (this is a text file) is up to date pylupdate5 reefscan.pro or pylupdate5 -noobsolete reefscan.pro

this will update src/resources/eng-vi.ts Install QT and use QT linguist to edit and release the file. That will create a .qm file

Test in vietnamese by running main.py with a command line parameter "viet"

EOD processing (inferencing)

For installing on the CCIP end of day processing computer, also install the following dependencies

pip install -r requirements-eod.txt

But remove these if you want to make an executable pip uninstall -r requirements-eod.txt

to run the simulator

  • copy fake data from here to a convenient loction
    • \pearl\techdev\Software\reefscan-desktop-data-manager\reefscan_fake_data.zip
  • run reefscan-sim.bat --fakedata="c:/location/of/fake/data"

to run from the command line

.\reefscan.bat

for reefscan deep compatible

.\reefscan.bat deep

for reefcloud DEV compatible

.\reefscan.bat dev

for gen2 compatible

.\reefscan.bat v2

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

5 watching

Forks

Packages

 
 
 

Contributors

Languages