data = np.array([1.0, 2.0, 3.0, 4.0],dtype=np.float32)
with open("[filename]", "wb") as f:
byte = np.array(data,dtype=np.float32).tobytes()
f.write(byte)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Camera Sample</title> | |
<style> | |
#viewer { | |
width: 720px; | |
height: 480px; | |
position: relative; | |
background-color: #000000; |
emcc -o zstd.js -O0 \
-s WASM=1 \
-s "MODULARIZE=1" \
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.XR.iOS; | |
public class MyGenerateImageAnchor : MonoBehaviour { | |
[SerializeField] | |
private ARReferenceImage referenceImage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
// https://www.csharpcodi.com/vs2/1607/MBINCompiler/MBINCompiler/HalfHelper.cs/ | |
public static class HalfHelper | |
{ | |
private static uint[] mantissaTable = GenerateMantissaTable(); | |
private static uint[] exponentTable = GenerateExponentTable(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Windows.Kinect; | |
using System.Runtime.InteropServices; | |
using System; | |
using System.Linq; | |
using UnityEngine.Rendering; | |
[RequireComponent(typeof(MeshRenderer))] | |
[RequireComponent(typeof(MeshFilter))] | |
public class KinectView : MonoBehaviour { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using System.Runtime.InteropServices; | |
using System; | |
using UnityEngine; | |
using AOT; | |
namespace UnityEngine.XR.iOS | |
{ | |
public class Jetfire { |
Reference to scipy.ndimage.maximum_filter
- Swift4
- Xcode9
- iOS11
- OpenCV:iOS pack v3.3.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
extension OutputStream { | |
func write(data: Data) -> Int { | |
return data.withUnsafeBytes { | |
write($0.bindMemory(to: UInt8.self).baseAddress!, maxLength: data.count) | |
} | |
} | |
var data: Data? { |
OlderNewer