code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/simple_features/simple_model_settings.cc
C++
apache-2.0
837
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/simple_features/simple_model_settings.h
C++
apache-2.0
2,055
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/simple_features/yes_power_spectrum_data.cc
C++
apache-2.0
1,058
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/simple_features/yes_power_spectrum_data.h
C++
apache-2.0
1,350
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/simple_features/yes_simple_features_data.cc
C++
apache-2.0
11,146
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/simple_features/yes_simple_features_data.h
C
apache-2.0
1,140
import pyaudio import wave import random import time import os from IPython import display #from pydub import AudioSebment #from pydub.playback import play #from playsound import playsound CHUNK = 2 FORMAT = pyaudio.paInt16 CHANNELS = 1 RATE = 16000 SAMPLEWIDTH = 2 RECORD_SECONDS = 1 FILE_FORMAT = '.wav' RECODER_NAME ...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/record.py
Python
apache-2.0
3,031
import pyaudio import wave import random import time import os from IPython import display #from pydub import AudioSebment #from pydub.playback import play #from playsound import playsound CHUNK = 2 FORMAT = pyaudio.paInt16 CHANNELS = 1 RATE = 16000 SAMPLEWIDTH = 2 RECORD_SECONDS = 1 FILE_FORMAT = '.wav' RECODER_NAME ...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/record_noise.py
Python
apache-2.0
2,698
load("//tensorflow:tensorflow.bzl", "tf_cc_binary", "tf_cc_test", "tf_py_test") package( default_visibility = [ "//visibility:public", ], licenses = ["notice"], ) py_binary( name = "accuracy_utils_py", srcs = ["accuracy_utils.py"], main = "accuracy_utils.py", python_version = "PY3"...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/BUILD
Starlark
apache-2.0
8,869
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/accuracy_utils.cc
C++
apache-2.0
5,262
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/accuracy_utils.h
C++
apache-2.0
2,359
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/accuracy_utils.py
Python
apache-2.0
6,159
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/accuracy_utils_test.cc
C++
apache-2.0
2,298
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/freeze.py
Python
apache-2.0
11,759
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/freeze_test.py
Python
apache-2.0
5,086
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/generate_streaming_test_wav.py
Python
apache-2.0
11,074
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/generate_streaming_test_wav_test.py
Python
apache-2.0
1,416
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/input_data.py
Python
apache-2.0
30,509
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/input_data_test.py
Python
apache-2.0
11,134
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/label_wav.cc
C++
apache-2.0
6,362
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/label_wav.py
Python
apache-2.0
4,614
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/label_wav_dir.py
Python
apache-2.0
4,773
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/label_wav_test.py
Python
apache-2.0
2,233
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/models.py
Python
apache-2.0
34,618
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/models_test.py
Python
apache-2.0
4,866
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/recognize_commands.cc
C++
apache-2.0
5,282
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/recognize_commands.h
C++
apache-2.0
3,472
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/recognize_commands.py
Python
apache-2.0
7,567
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/recognize_commands_test.cc
C++
apache-2.0
3,824
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/test_streaming_accuracy.cc
C++
apache-2.0
12,675
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/test_streaming_accuracy.py
Python
apache-2.0
9,972
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/train.py
Python
apache-2.0
19,825
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/train_test.py
Python
apache-2.0
4,503
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/wav_to_features.py
Python
apache-2.0
6,930
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/wav_to_features_test.py
Python
apache-2.0
3,212
{ "cells": [ { "cell_type": "markdown", "source": [ "# 训练唤醒词模型" ], "metadata": { "colab_type": "text", "id": "pO4-CY_TCZZS" } }, { "cell_type": "markdown", "source": [ "This notebook demonstrates how to train a 20 kB [Simple Audio Recognition](https://www.tensorflow.org/tutor...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/train/train_micro_speech_model.ipynb
Jupyter Notebook
apache-2.0
20,969
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/yes_1000ms_sample_data.cc
C++
apache-2.0
130,685
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/yes_1000ms_sample_data.h
C++
apache-2.0
1,276
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/yes_30ms_sample_data.cc
C++
apache-2.0
4,670
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/micro_speech/yes_30ms_sample_data.h
C++
apache-2.0
1,451
/* * Copyright (C) 2020-2023 Alibaba Group Holding Limited */ #include <stdio.h> #include <stdint.h> #include <stdbool.h> #include <ulog/ulog.h> #include "oled/oled.h" void oled_init(void) { sh1106_init(); } void oled_show(oled_str_e str) { OLED_Clear(); if (str == OLED_STR_WAKEUP) { OLED_Show_S...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/oled/oled.c
C
apache-2.0
750
#ifndef _OLED_H_ #define _OLED_H_ #ifdef __cplusplus extern "C" { #endif typedef enum { OLED_STR_IDLE, OLED_STR_WAKEUP, OLED_STR_LIGHT_ON, OLED_STR_LIGHT_OFF, OLED_STR_MAX } oled_str_e; void oled_show(oled_str_e str); #ifdef __cplusplus } // extern "C" #endif #endif
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/oled/oled.h
C
apache-2.0
294
/* * Copyright (C) 2020-2023 Alibaba Group Holding Limited */ #include <stdio.h> #include <stdint.h> #include <stdbool.h> #include <ulog/ulog.h> #include "uvoice_init.h" #include "uvoice_types.h" #include "uvoice_event.h" #include "uvoice_player.h" #include "uvoice_recorder.h" #include "ulog/ulog.h" #include "aos/ker...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/player/player.c
C
apache-2.0
4,560
#ifndef _PLAYER_H_ #define _PLAYER_H_ #include <stdint.h> #ifdef __cplusplus extern "C" { #endif typedef enum { PLAYER_MP3_WELCOME, PLAYER_MP3_WAKEUP, PLAYER_MP3_LIGHT_ON, PLAYER_MP3_LIGHT_OFF, PLAYER_MP3_MAX } player_mp3_e; typedef void (*player_cb_t)(player_mp3_e file); int32_t player_init(...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/player/player.h
C
apache-2.0
492
/* * Copyright (C) 2020-2023 Alibaba Group Holding Limited */ #include <stdio.h> #include <stdint.h> #include <stdbool.h> #include <ulog/ulog.h> #include "uvoice_init.h" #include "uvoice_types.h" #include "uvoice_event.h" #include "uvoice_recorder.h" #include "ulog/ulog.h" #include "aos/kernel.h" #include "uvoice_os....
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/recorder/recorder.c
C
apache-2.0
1,307
#ifndef _RECORDER_H_ #define _RECORDER_H_ #include <stdint.h> #ifdef __cplusplus extern "C" { #endif #include "uvoice_types.h" int32_t recorder_init(void); int32_t recorder_uninit(void); int32_t recorder_start(media_format_t fmt, int32_t rate, int32_t channels, int32_t bits, int32_t samples, char *sink); int32_t rec...
YifuLiu/AliOS-Things
solutions/tflite_micro_speech_demo/recorder/recorder.h
C
apache-2.0
467
CPRE := @ ifeq ($(V),1) CPRE := VERB := --verbose endif MK_GENERATED_IMGS_PATH:=generated PRODUCT_BIN:=product .PHONY:startup startup: all all: @echo "Build Solution by $(BOARD) " $(CPRE) scons $(VERB) --board=$(BOARD) $(MULTITHREADS) $(MAKEFLAGS) @echo ucloud ai demo build Done @echo [INFO] Create bin files # ...
YifuLiu/AliOS-Things
solutions/ucloud_ai_demo/Makefile
Makefile
apache-2.0
882
#! /bin/env python from aostools import Make # defconfig = Make(elf='yoc.elf', objcopy='generated/data/prim', objdump='yoc.asm') defconfig = Make(elf='aos.elf', objcopy='aos.bin') Export('defconfig') defconfig.build_components()
YifuLiu/AliOS-Things
solutions/ucloud_ai_demo/SConstruct
Python
apache-2.0
233
#!/usr/bin/env python3 import os import sys import getpass import shutil #!/usr/bin/env python3 import os import sys import getpass import shutil comp_path = sys.path[0] print("comp_path:") print(comp_path) # original folder org_image_path = comp_path + "/resources/image" org_font_path = comp_path + "/resources/fo...
YifuLiu/AliOS-Things
solutions/ucloud_ai_demo/cp_resources.py
Python
apache-2.0
882
/* * 这个例程演示了用SDK配置MQTT参数并建立连接, 之后创建2个线程 * * + 一个线程用于保活长连接 * + 一个线程用于接收消息, 并在有消息到达时进入默认的数据回调, 在连接状态变化时进入事件回调 * * 接着演示了在MQTT连接上进行属性上报, 事件上报, 以及处理收到的属性设置, 服务调用, 取消这些代码段落的注释即可观察运行效果 * * 需要用户关注或修改的部分, 已经用 TODO 在注释中标明 * */ #include <stdio.h> #include <string.h> #include <unistd.h> #include <aos/kernel.h> #include ...
YifuLiu/AliOS-Things
solutions/ucloud_ai_demo/linkkit_event.c
C
apache-2.0
17,197
/* * Copyright (c) 2014-2016 Alibaba Group. All rights reserved. * License-Identifier: Apache-2.0 * * 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 * * http://www.apache.org/licenses...
YifuLiu/AliOS-Things
solutions/ucloud_ai_demo/main.c
C
apache-2.0
2,682
/* * Copyright (C) 2015-2020 Alibaba Group Holding Limited */ #include <stdio.h> #include <stdlib.h> #include <aos/kernel.h> #include "aos/init.h" #include "board.h" #include <k_api.h> #ifndef AOS_BINS extern int application_start(int argc, char *argv[]); #endif /* If board have no component for example board_xx_i...
YifuLiu/AliOS-Things
solutions/ucloud_ai_demo/maintask.c
C
apache-2.0
1,362
/* * Copyright (C) 2015-2018 Alibaba Group Holding Limited */ #include <stdio.h> #include <string.h> #include "ulog/ulog.h" #include "aos/kernel.h" #include "ugraphics.h" #include "aiconfig.h" #include "aiagent_service.h" #include "ucamera_service.h" #ifdef AOS_OLED_SH1106 #include "sh1106.h" #endif #ifdef AOS_USE...
YifuLiu/AliOS-Things
solutions/ucloud_ai_demo/ucloud_ai_demo.c
C
apache-2.0
19,962
# coding=utf-8 # This is a sample Python script. import utime from video import camera print("start video preview test") # 打开摄像头 camera = camera() camera.open(0) # 开启视频采集和预览功能,持续10000秒 camera.preview(10000) # 关闭摄像头 camera.close() print("end video preview test")
YifuLiu/AliOS-Things
solutions/videopreview_demo/src/main.py
Python
apache-2.0
318
# coding=utf-8 # This is a sample Python script. import usys import utime import network from video import Recorder # 检查参数 if len(usys.argv) < 3: print("Usage: %s <ssid> <password>" % usys.argv[0]) usys.exit(1) # 定义网络事件回调函数 def network_evt_cb(eid): print('%s:%d' %('eid', eid)) # 连接网络 network.init(networ...
YifuLiu/AliOS-Things
solutions/videortsp_demo/src/main.py
Python
apache-2.0
732
# Copyright (c) 2020 Huawei Device Co., Ltd. # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
yp9522/docs_wyzAOP
docker/Dockerfile
Dockerfile
public-domain
5,461
# Copyright (c) 2020 Huawei Device Co., Ltd. # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
yinlin/docs
docker/Dockerfile
Dockerfile
public-domain
5,461
# Copyright (c) 2020 Huawei Device Co., Ltd. # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
zgh8848/docs
docker/Dockerfile
Dockerfile
public-domain
5,461
# Copyright (c) 2020 Huawei Device Co., Ltd. # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
yuzhewang/docs_9845
docker/Dockerfile
Dockerfile
public-domain
5,461
# Copyright (c) 2020 Huawei Device Co., Ltd. # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
zzz701/docs
docker/Dockerfile
Dockerfile
public-domain
5,461
# Copyright (c) 2020 Huawei Device Co., Ltd. # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
zzc19990127/docs
docker/Dockerfile
Dockerfile
public-domain
5,461
# Copyright (c) 2020 Huawei Device Co., Ltd. # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
yy822811/docs
docker/Dockerfile
Dockerfile
public-domain
5,461
# Copyright (c) 2020 Huawei Device Co., Ltd. # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
zhushuanghong/docs
docker/Dockerfile
Dockerfile
public-domain
5,461
# Copyright (c) 2020 Huawei Device Co., Ltd. # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
zengyawen/docs
docker/Dockerfile
Dockerfile
public-domain
5,461
# Copyright (c) 2020 Huawei Device Co., Ltd. # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
zzz701/docs_6712
docker/Dockerfile
Dockerfile
public-domain
5,461
# Copyright (c) 2020 Huawei Device Co., Ltd. # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
zhushuanghong/docs_1
docker/Dockerfile
Dockerfile
public-domain
5,461
# Copyright (c) 2020 Huawei Device Co., Ltd. # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
zhushuanghong/docs_2
docker/Dockerfile
Dockerfile
public-domain
5,461