Skip to content

Instantly share code, notes, and snippets.

View uelordi01's full-sized avatar

Unai uelordi01

View GitHub Profile
@uelordi01
uelordi01 / ACAP
Created June 11, 2019 07:21
This file represents the most useful commands for Axis ACAP deployment and development.
create-package.sh mipsisa32r2el > log.txt
here you have to put your IP idress and the pass, usually is root.
eap-install.sh
#how to see where is located your compiler:
find / -name "mips*"
/usr/local/mipsisa32r2el/r23/bin/
set your PKG dir from opencv:
PKGS = gio-2.0 glib-2.0 axhttp opencv
gdb ./vac -in=../data/manual_manyPers1.avi -c=VAC_BASE_ALL.json -d 2>/dev/null -d
run
bt
backtrace
sudo docker exec -it 4007523d8a70 gosu user /bin/bash
# https://github.com/mystic123/tensorflow-yolo-v3
python3 mo_tf.py \
--log_level=DEBUG \
--data_type FP16 --input_shape [1,416,416,3] \
--input_model /home/VICOMTECH/uelordi/repos/tensorflow-yolo-v3/yolo_v3.pb \
--tensorflow_use_custom_operations_config /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/extensions/front/tf/yolo_v3.json
python3 demo.py \
--weights_file yolov3.weights \
--class_names coco.names \
--input_img image.jpg \
--output_img out.jpg
@uelordi01
uelordi01 / git_unshtash
Created January 8, 2019 11:39
this is the unstash command where you can pop your locacl modificiations (example: absolute paths).
# recent stashing:
git stash pop
# specific stash list
git stash apply stash@{1}
@uelordi01
uelordi01 / stash_list_diff
Created January 8, 2019 11:36
This script shows the diff-s of the stash list
# See the most recent stash:
git stash show -p
# See an arbitrary stash:
git stash show -p stash@{1}
@uelordi01
uelordi01 / mount_image_in_raspberri_pi.sh
Created January 8, 2019 10:46
mount img in a SD_CARD, only for linux users
#!/bin/bash
sudo fdisk -l
dd bs=4M if=../raspbian-stretch.img of=/dev/sdb1
@uelordi01
uelordi01 / backup_img_from_raspi
Last active January 8, 2019 10:46
copy backup from sdcard to img
sudo dd bs=4M if=/dev/sdb of=smb://ajeto/tmp/uelordi/raspiimg/raspbian.img
#take the base64_decode from https://renenyffenegger.ch/notes/development/Base64/Encoding-and-decoding-base-64-with-cpp
std::string raw = base64_decode(im64);
cv::Mat rawData( 1, raw.size(), CV_8UC1, (void*) raw.c_str());
cv::Mat decodedImage = cv::imdecode( rawData, cv::IMREAD_COLOR /*, flags */ );
cv::imshow("hola",decodedImage);