Skip to content

Instantly share code, notes, and snippets.

@ashish1405
ashish1405 / nodemcu_esp8266_on_off_timer_switch.ino
Last active March 21, 2023 09:21
nodemcu esp8266 on off timer switch script
#define RTCMEMORYSTART 65
#define MAXHOUR 11 // number of hours to deep sleep for
extern "C" {
#include "user_interface.h"
}
typedef struct {
int count;
} rtcStore;
@ashish1405
ashish1405 / generate_m3u8.sh
Last active May 7, 2021 09:55
Shell script for generating m3u8 file from a list of encrypted ts files.
#!/bin/bash
keyfilepath=$(dirname "${1}")
#read keyinfo file
IFS=$'\n' read -d '' -r -a keyfilelines < $1
KEYFILE="$keyfilepath/${keyfilelines[1]}"
IV=${keyfilelines[2]}
KEY=$(xxd -p $KEYFILE)
#read m3u8 file
IFS=$'\n' read -d '' -r -a m3u8filelines < $2
@ashish1405
ashish1405 / deepstream_gstreamer_decoding_with_python.py
Created January 11, 2021 05:38 — forked from CasiaFan/deepstream_gstreamer_decoding_with_python.py
Use Nvidia deepstream SDK gstreamer plugin to decode H.264 video stream and output decoded frames in python
import subprocess as sp
import cv2
import numpy as np
cmd = ["gst-launch-1.0",
"rtspsrc", "location=rtsp://admin:[email protected]/Streaming/Channels/1", "latency=100", "!",
"queue", "!",
"rtph264depay", "!",
"h264parse", "!",
"nvv4l2decoder", "drop-frame-interval=2", "!",
@ashish1405
ashish1405 / install.sh
Last active December 4, 2018 08:43
Compile OpenCV with ffmpeg for python3
sudo apt-get --assume-yes -qq remove x264 libx264-dev ffmpeg
sudo apt-get --assume-yes --purge remove libav-tools
sudo apt-get --assume-yes --purge autoremove
sudo apt-get --assume-yes update
sudo apt-get --assume-yes install libjpeg8-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt-get --assume-yes install libx264-dev
sudo apt-get --assume-yes install libgtk-3-dev
sudo apt-get --assume-yes install libatlas-base-dev gfortran
sudo apt-get --assume-yes install python2.7-dev python3.5-dev
0
133 <nul>
1 A
2 B
3 C
4 D
5 E
6 F
7 G
8 H
#!/usr/bin/python
import os
import sys
import json
import math
import cv2
import numpy as np
import copy
import yaml
python lstm_ocr.py
loading train data, please wait--------------------- get image: 128000
loading validation data, please wait--------------------- get image: 500
2017-07-31 11:36:49.389513: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-07-31 11:36:49.389668: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-07-31 11:36:49.389719: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2017-07-31 11:36:49.389764: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and

Welcome to the iosOpenDevInstallTools wiki!

http://blog.csdn.net/u013583789/article/details/50396747 (Chinese Version)

English Version

I'll try to clearly show the solution of how to install iOSOpenDev on Mac OS X 11 and Xcode 7

Here is the complete solution

  1. You need to install MacPorts, Choose your OS X Version to Download, Wait for the install to finish