blob: aabf07ef4236968b0a28e420ca5470eefcf508ad [file] [log] [blame]
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""A demo which runs object classification and streams video to the browser.
export TEST_DATA=/usr/lib/python3/dist-packages/edgetpu/test_data
python3 -m edgetpuvision.classify_server \
--model ${TEST_DATA}/mobilenet_v2_1.0_224_inat_bird_quant.tflite \
--labels ${TEST_DATA}/inat_bird_labels.txt
"""
from .apps import run_server
from .classify import add_render_gen_args, render_gen
def main():
run_server(add_render_gen_args, render_gen)
if __name__ == '__main__':
main()