我正在开发一个iOS应用程序,需要检测用户何时打哈欠.
我所做的是包括Open CV并使用haar级联找到面孔,然后在面部内找到嘴(也使用haarcascade).
我遇到的麻烦是,我相信能够很容易地发现哈欠像做某事(face.y - mouth.y)<something = yawn.
但我所遇到的问题是面部和嘴部的面积是"不稳定的",我的意思是每次循环运行时,面部和嘴部的X和Y值都是(显然)不一样.
我可以使用任何"张开嘴"的haar级联,或者我怎么知道用户何时张开嘴?
我已将我的项目导入Eclipse(Helios + m2eclipse),也导入Netbeans(7.0),在两个IDE中,其中一个问题是:
这是我尝试构建时在Netbeans中获得的内容.
项目com.miCompany:myProject:1.0(.....)有1个错误
不可解析的构建扩展:插件org.apache.axis2:axis2-wsdl2code-maven-plugin:1.3或其中一个依赖项无法解析:无法收集org.apache.axis2的依赖项:axis2-wsdl2code-maven-plugin:jar :1.3():无法读取org.apache.woden的工件描述符:woden:jar:1.0-incubating-M7b:无法传输工件org.apache.woden:woden:pom:1.0-incubating-M7b from/to jibx (http://jibx.sourceforge.net/maven):没有连接器可用于使用可用工厂WagonRepositoryConnectorFactory访问存储库jibx(http://jibx.sourceforge.net/maven) - > [帮助2]
这是我在Eclipse中得到的:
项目构建错误:无法解析的构建扩展:插件org.apache.axis2:axis2-wsdl2code-maven-plugin:1.3或其中一个依赖项无法解析:无法收集org.apache.axis2的依赖项:axis2-wsdl2code-maven -plugin:jar:1.3()pom.xml/myProject line 1 Maven问题
在Eclipse中我已经下载了这个:http://www.apache.org/dyn/mirrors/mirrors.cgi/axis/axis2/java/core/1.5.4/axis2-eclipse-service-plugin-1.5.4. zip解压缩并将文件:"org.apache.axis2.eclipse.codegen.plugin_1.5.4.jar"复制到我的Eclipse安装目录"plugins"中.我仍然得到同样的错误.
我在Win XP上运行Netbeans而在Win XP上运行Eclipse,也在Mac上运行Netbeans,总是出现同样的错误.
有人知道我该怎么办?
这是我的pom.xml
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>MyParent</artifactId>
<groupId>com.mycompany</groupId>
<version>1.0</version>
</parent>
<groupId>com.mycompany</groupId>
<artifactId>myModule</artifactId>
<version>1.0</version>
<name>myModule</name>
<url>http://maven.apache.org</url>
<build>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>src/main/java</directory>
<includes>
<include>com/mycompany/client/*.java</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
<version>1.3</version>
<extensions>true</extensions>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>wsdl2code</goal>
</goals>
</execution>
</executions>
<configuration>
<packageName>com.mycompany.client</packageName>
<wsdlFile>src/main/axis2/MyWsdl.wsdl</wsdlFile>
<outputDirectory>.</outputDirectory> …Run Code Online (Sandbox Code Playgroud) 我有一个带有 UITextView 的多行表格视图单元格。在那些 UITextView 中,用户可以输入值。
我遇到的问题是,如果我想在行隐藏时获取行的值,我会得到零。
NSString *cellValue = ((UITextField *)[[[self.table cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:1]] contentView] viewWithTag:[self.table cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:1]].tag]).text;
Run Code Online (Sandbox Code Playgroud)
我想保存用户在 UITextField 中输入的值,但是如果用户单击执行计算的行,则不会调用委托 textFieldDidEndEditing。
我不知道如何以安全的方式获得这些值。
我需要创建一个SQL查询来以XML格式导出我的Magento网站产品.
我无法确定属性值和产品图像的存储位置.
现在我的查询是这样的:
SELECT cpe.entity_id, cpe.sku, csi.qty, eav_color.value, eav_talla.value
FROM catalog_product_entity AS cpe
JOIN cataloginventory_stock_item AS csi ON csi.product_id = cpe.entity_id
JOIN catalog_product_entity_int AS eav_color ON eav_color.entity_id = cpe.entity_id
AND eav_color.attribute_id =85
JOIN catalog_product_entity_int AS eav_talla ON eav_talla.entity_id = cpe.entity_id
AND eav_talla.attribute_id =127
WHERE csi.qty >0
AND csi.is_in_stock
AND cpe.type_id = 'simple'
LIMIT 0 , 30
Run Code Online (Sandbox Code Playgroud)
但我得到属性ID(我认为).我的查询返回:
entity_id sku qty value value
6000 0121011000-RED-L 2.0000 66 5
Run Code Online (Sandbox Code Playgroud)
我得到66作为列属性的值和值为5的"talla"属性..但这些值必须是"RED"和"L".我不明白在哪个表中存储了那些值.
而另一方面,我需要获得产品图像,但我无法确定存储表的位置.
这是我的代码:
$frontendOptions = array('lifeTime' => 10);
$backendOptions = array('cacheDir' => '../tmp/');
$cache = Zend_Cache::factory( 'Core',
'File',
$frontendOptions,
$backendOptions);
$cache = Zend_Cache::factory('Core', 'File', $frontendOptions, $backendOptions);
$locale = new Zend_Locale('es_ES');
Zend_Registry::set('Zend_Locale', $locale);
Zend_Locale::setCache($cache);
$date = new Zend_Date('11-03-2010');
Run Code Online (Sandbox Code Playgroud)
当我尝试创建 Zend_Date 对象时,脚本速度变慢。
我在 MAMP (Mac / Snow Leopard) 上使用 Zend 1.11.5。
有谁知道我怎样才能加快速度?
我已经制作了这段代码,以显示某些可配置产品是否有库存.但是我无法在varien/product.js中的任何地方获得库存数量
updateStock: function(){
var tempProducts = [];
var allowedProducts = [];
var idColor = jQuery('#attribute85').val();
var idTalla = jQuery('#attribute127').val();
// productos por color
var options = this.getAttributeOptions(85);
for (var i = 0; i < options.length; i++ ) {
if (options[i].id == idColor) {
for (var j = 0; j < options[i].products.length; j++) {
tempProducts.push(options[i].products[j]);
}
}
}
jQuery('#input-box-127 a').each(function(index) {
// jQuery(this).find('.talla').removeClass('seleccionado');
jQuery(this).find('div').addClass('sin_stock');
idTalla = jQuery(this).attr('rel');
options = spConfig.getAttributeOptions(127);
for (var i = 0; i < options.length; i++ ) { …Run Code Online (Sandbox Code Playgroud) 我的管理员中有两个属性:颜色和大小.
此属性具有以下配置:
范围:全局目录输入类型:下拉应用于:全部用于分层导航:可过滤结果
我有可配置的产品,有简单的产品.例如:
可配置:我的T恤简单1:我的T恤,颜色=白色,尺码= L简单2:我的T恤,颜色=黑色,尺码= L
可配置:我的其他T恤简单1:我的其他T恤,颜色=白色,尺码= S简单2:我的其他T恤,颜色=黑色,尺码= M
但我无法通过分层导航中的"颜色"或"大小"看到过滤器.我只是可以按价格和子类别进行过滤.
为什么这些属性没有出现在我的分层导航中?
ios ×2
magento ×2
magento-1.6 ×2
php ×2
eclipse ×1
haar-wavelet ×1
java ×1
javascript ×1
maven ×1
netbeans ×1
opencv ×1
uitextfield ×1
zend-date ×1