createsample.exe每次都崩溃

时间:2016-06-27 17:17:46

标签: opencv opencv3.0 createsamples

您好我正在尝试使用opencv_createsamples.exe创建示例,但每次都会崩溃。我检查了不同的构建,opencv2和opencv3。我不知道如何克服这一点。我的命令看起来像这样

import React from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  TouchableOpacity,
  View
} from 'react-native';

import Popover from 'react-native-popover';

class MyApp extends React.Component {
  constructor (props) {
    super(props);

    this.onLongPress = this.onLongPress.bind(this);
    this.onClose = this.onClose.bind(this);

    this.state = {
      isVisible: false,
      buttonRect: {}
    }
  }

  onLongPress () {
    this._button.measure((ox, oy, width, height, px, py) => {
      this.setState({
        isVisible: true,
        buttonRect: {x: px, y: py, width: width, height: height}
      });
    });
  }

  onClose () {
    this.setState({ isVisible: false });
  }

  render () {
    return (
      <View style={styles.container}>
        <TouchableOpacity
          ref={(component) => this._button = component}
          style={styles.button}
          onLongPress={this.onLongPress}>
          <Text>Long Press Me</Text>
        </TouchableOpacity>

        <Popover
          isVisible={this.state.isVisible}
          fromRect={this.state.buttonRect}
          onClose={this.onClose}
          backgroundStyle={styles.popoverBackground}>
          <Text>I'm the content of this popover!</Text>
        </Popover>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center'
  },

  button: {
    backgroundColor: '#ddd',
    padding: 20
  },

  popoverBackground: {
    backgroundColor: 'rgba(0,0,0,0)'
  }
});

AppRegistry.registerComponent('MyApp', () => MyApp);

显示示例的窗口正在打开,但之后我收到程序没有响应的信息。有什么想法吗?

//编辑 我试图从伪unix bash开始,然后我收到opencv_createsamples.exe -img C:/Users/dpach/Pictures/Interfejsy/img/1.jpg -maxxangle 15 -maxyangle 15 -maxzangle 1 -w 80 -h 40 -vec test.vec -bgtresh 0 -bgcolor 0 -show

// EDIT2 它在Segmentation fault

之后粉碎了

0 个答案:

没有答案