CHECK DEVELOP BRANCH FOR LATEST CHANGES AND UPGRADES
FoodNetx is a library created using the python package NetworkX. It creates a database based in graphs, in concrete a Directed graph, in which could occur cycles. The main idea is cover the challenge of Foodvisor ( Challenge1 and Challenge2 ) but any other use is welcomed, please if it used reference this Github and its creator.
- Download the source file from github
- Unzip and navigate to the folder containing
setup.py
and other files - Run the following command:
python setup.py install
pip3 install FoodNetX
Download and install the python package FoodNetx, then clone the repo. In the Github repository has been left a folder called Test, where tests are stored. To execute any test, just use the following shell command from inside the github repo:
python3 ./Test/TestFile.py
Example:
python3 ./Test/FoodVisor_Challenge1_test.py
If you use an IDE for programming just select the test file desired and just click Run.
FoodVisor_Challenge1_test.py:
{"img001": "granularity_staged", "img002": "valid"}
{"img001": "granularity_staged", "img002": "coverage_staged", "img003": "invalid"}
By now the foodvisor challenge #2 is being developed and implemented to join this package at the end of this week
- Python - v3.7
This library has been created with the help of Networkx and Matplotlib