| | |
| | | "cells": [ |
| | | { |
| | | "cell_type": "code", |
| | | "execution_count": 6, |
| | | "execution_count": 4, |
| | | "metadata": { |
| | | "collapsed": true |
| | | }, |
| | |
| | | }, |
| | | { |
| | | "cell_type": "code", |
| | | "execution_count": 19, |
| | | "execution_count": 9, |
| | | "metadata": { |
| | | "collapsed": true |
| | | }, |
| | |
| | | }, |
| | | { |
| | | "cell_type": "code", |
| | | "execution_count": 20, |
| | | "execution_count": 10, |
| | | "metadata": { |
| | | "collapsed": false |
| | | }, |
| | |
| | | "name": "stdout", |
| | | "output_type": "stream", |
| | | "text": [ |
| | | "289\n" |
| | | "250\n" |
| | | ] |
| | | } |
| | | ], |
| | |
| | | " yaw = float(annot[1]) * 180 / np.pi\n", |
| | | " pitch = float(annot[2]) * 180 / np.pi\n", |
| | | " roll = float(annot[3]) * 180 / np.pi\n", |
| | | " if abs(pitch) > 98 or abs(yaw) > 98 or abs(roll) > 98:\n", |
| | | " if abs(pitch) > 98.99 or abs(yaw) > 98.99 or abs(roll) > 98.99:\n", |
| | | " counter += 1\n", |
| | | " continue\n", |
| | | " out.write(original_line)\n", |