javacv

Is Gradle system property in gradle.properies not being used? (javacpp, intellij)

喜欢而已 提交于 2021-02-10 16:01:39
问题 According to the JavaCPP documentation, if we set the system property: javacpp.platform=linux-x86_64 it should not download the other platforms: This is from javacpp: ... This downloads binaries for all platforms, but to get binaries for only one platform we can set the javacpp.platform system property (via the -D command line option) to something like android-arm, linux-x86_64, macosx-x86_64, windows-x86_64, etc. The way to set system properties in Gradle: Using the -D command-line option,

OpenCV Transparent API UMat is missing

回眸只為那壹抹淺笑 提交于 2021-01-29 09:57:51
问题 I tried to use OpenCV Transparent API UMat class for hardware acceleration in my desktop java application but I couldn't find the UMat class implementation. I'm using OpenCV version 4.1 , where T-API java bindings are said to be available up from version 3.0 as said here: T-API (transparent API) has been introduced, this is transparent GPU acceleration layer using OpenCL. It does not add any compile-time or runtime dependency of OpenCL. When OpenCL is available, it’s detected and used, but it

H264 ByteStream to Image Files

前提是你 提交于 2021-01-05 07:46:31
问题 first time here so be gentle. I've been working for a few weeks on a given H.264 byte stream: General notes: The Byte Stream is not from a file, it is being fed live to me from an external source. The Byte Stream is encoded with Android's Media Codec. When writing the stream into a file with a .H264 extension, VLC is able to play it properly. What I'm trying to achieve? One of the following: Converting the frames of the H264 stream to a saveable picture file (png/jpeg etc') Converting the

H264 ByteStream to Image Files

怎甘沉沦 提交于 2021-01-05 07:46:24
问题 first time here so be gentle. I've been working for a few weeks on a given H.264 byte stream: General notes: The Byte Stream is not from a file, it is being fed live to me from an external source. The Byte Stream is encoded with Android's Media Codec. When writing the stream into a file with a .H264 extension, VLC is able to play it properly. What I'm trying to achieve? One of the following: Converting the frames of the H264 stream to a saveable picture file (png/jpeg etc') Converting the

JavaFX2.0开发桌面应用

跟風遠走 提交于 2020-08-13 23:00:49
目录结构 在JavaFX引用中,启动类、fxml和Controller类一一对应.Main作为登录页的启动类,Index则作为首页的启动类。fxml的元素使用fx:id=“”后,在Controller中通过@FXML注解获取该对象。 启动类包含登录和主页,共用一个stage,通过切换scene方式实现页面跳转。同时,通过把Main的引用传递给其他Controller,实现启动类和Controller的数据交互。 package com.test; import com.bohhom.temperature.controller.IndexController; import com.bohhom.temperature.controller.LoginController; import com.bohhom.temperature.model.ClientLoginResultDTO; import com.bohhom.temperature.model.ImagePaths; import com.bohhom.temperature.model.ImageVideoModel; import com.bohhom.temperature.client.Client; import com.bohhom.temperature.model.LoginModel; import

2种方式获取视频时长、截取视频帧作为封面(java or H5)

强颜欢笑 提交于 2020-08-10 05:37:52
1、(JAVA)使用jave获取视频时长 先安装jave包,从 http://www.sauronsoftware.it/projects/jave/download.php 下载jar包,然后使用maven命令安装到本地: mvn install:install-file -Dfile=E:\jave-1.0.2.jar -DgroupId=it.sauronsoftware -DartifactId=jave -Dversion=1.0.2 -Dpackaging=jar 命令说明:mvn install:install-file -Dfile=jar包的位置 -DgroupId=包的groupId -DartifactId=包的artifactId -Dversion=包的version -Dpackaging=jar 然后pom.xml中引入依赖 <!-- 视频时长获取 --> <dependency> <groupId>it.sauronsoftware</groupId> <artifactId>jave</artifactId> <version>1.0.2</version> </dependency> 代码(摘自网络) package com.eya.video; import it.sauronsoftware.jave.Encoder; import it

Flv封装相关基础内容

我是研究僧i 提交于 2020-08-08 10:48:02
序言 关于1078实时监控的另一种做法,就是自己编码处理音视频裸流.这种形式需要了解更多的音视频基础知识,因为之前的处理过程是JavaCV帮我们做了很多东西.本文只是做个准备工作,先了解一些基础知识在,然后才能知道该方案的可行性 参考资料: https://blog.csdn.net/u013008311/article/details/80249586 https://blog.csdn.net/u013008311/article/details/80251479 https://blog.csdn.net/jefry_xdz/article/details/8461343 https://www.cnblogs.com/wainiwann/p/7477794.html H264/AVC 视频编解码技术有两套标准: 国际电联(ITU-T)的标准H.263、H.263+等; ISO 的MPEG标准Mpeg1、Mpeg2、Mpeg4等等。 H.264/AVC是两大组织集合H.263+和Mpeg4的优点联合推出的最新标准,最具价值的部分无疑是更高的数据压缩比。在同等的图像质量条件下,H.264的数据压缩比能比H.263高2倍,比MPEG-4高1.5倍。 所以说H264和AVC 其实是指同一个东西. H.264/AVC标准是由ITU-T和ISO/IEC联合开发的

when i record video with javacv it comes “java.lang.NoClassDefFoundError: org.bytedeco.javacpp.avutil”

眉间皱痕 提交于 2020-06-17 14:58:57
问题 I make a video recorder android app with javacv. But, when i run this app this error occurs "java.lang.NoClassDefFoundError: org.bytedeco.javacpp.avutil". How can I solve this error? gradle.build file android { .............. packagingOptions { exclude 'META-INF/services/javax.annotation.processing.Processor' pickFirst 'META-INF/maven/org.bytedeco.javacpp-presets/opencv/pom.properties' pickFirst 'META-INF/maven/org.bytedeco.javacpp-presets/opencv/pom.xml' pickFirst 'META-INF/maven/org

when i record video with javacv it comes “java.lang.NoClassDefFoundError: org.bytedeco.javacpp.avutil”

点点圈 提交于 2020-06-17 14:58:08
问题 I make a video recorder android app with javacv. But, when i run this app this error occurs "java.lang.NoClassDefFoundError: org.bytedeco.javacpp.avutil". How can I solve this error? gradle.build file android { .............. packagingOptions { exclude 'META-INF/services/javax.annotation.processing.Processor' pickFirst 'META-INF/maven/org.bytedeco.javacpp-presets/opencv/pom.properties' pickFirst 'META-INF/maven/org.bytedeco.javacpp-presets/opencv/pom.xml' pickFirst 'META-INF/maven/org