• 大小: 70.88MB
    文件类型: .rar
    金币: 2
    下载: 3 次
    发布日期: 2022-07-14
  • 语言: Java
  • 标签: opencv  jar  

资源简介

opencv用到的jar包 opencv用到的jar包opencv.jar javac.jar等

资源截图

代码片段和文件信息

import org.bytedeco.javacv.Blobs;
import org.bytedeco.javacv.Canvasframe;

import static org.bytedeco.javacpp.opencv_core.*;
import static org.bytedeco.javacpp.opencv_highgui.*;
import static org.bytedeco.javacpp.opencv_imgproc.*;

///////////////////////////////////////////////////////////////////
//*                                                             *//
//* As the author of this code I place all of this code into   *//
//* the public domain. Users can use it for any legal purpose.  *//
//*                                                             *//
//*             - Dave Grossman                                 *//
//*                                                             *//
///////////////////////////////////////////////////////////////////
public class BlobDemo
{
    public static void main(String[] args)
    {
        System.out.println(“STARTING...\n“);
        demo();
        System.out.println(“ALL DONE“);
    }

    public static void demo()
    {
        int MinArea = 6;
        int ErodeCount =0;
        int DilateCount = 0;
        
        IplImage RawImage = null;

        // Read an image.
        for(int k = 0; k < 7; k++)
        {
            if(k == 0) { RawImage = cvLoadImage(“BlackBalls.jpg“); MinArea = 250; ErodeCount = 0; DilateCount = 1; }
            else if(k == 1) { RawImage = cvLoadImage(“Shapes1.jpg“); MinArea = 6; ErodeCount = 0; DilateCount = 1; }
            else if(k == 2) { RawImage = cvLoadImage(“Shapes2.jpg“); MinArea = 250; ErodeCount = 0; DilateCount = 1; }
            else if(k == 3) { RawImage = cvLoadImage(“Blob1.jpg“); MinArea = 2800; ErodeCount = 1; DilateCount = 1; }
            else if(k == 4) { RawImage = cvLoadImage(“Blob2.jpg“); MinArea = 2800; ErodeCount = 1; DilateCount = 1; }
            else if(k == 5) { RawImage = cvLoadImage(“Blob3.jpg“); MinArea = 2800; ErodeCount = 1; DilateCount = 1; }
            else if(k == 6) { RawImage = cvLoadImage(“Rice.jpg“); MinArea = 30; ErodeCount = 2; DilateCount = 1; }
            //ShowImage(RawImage “RawImage“ 512);
        
            IplImage GrayImage = cvCreateImage(cvGetSize(RawImage) IPL_DEPTH_8U 1);     
            cvCvtColor(RawImage GrayImage CV_BGR2GRAY);
            //ShowImage(GrayImage “GrayImage“ 512);

            IplImage BWImage = cvCreateImage(cvGetSize(GrayImage) IPL_DEPTH_8U 1); 
            cvThreshold(GrayImage BWImage 127 255 CV_THRESH_BINARY);
            //ShowImage(BWImage “BWImage“);
            
            IplImage WorkingImage = cvCreateImage(cvGetSize(BWImage) IPL_DEPTH_8U 1);     
            cvErode(BWImage WorkingImage null ErodeCount);    
            cvDilate(WorkingImage WorkingImage null DilateCount);
            //ShowImage(WorkingImage “WorkingImage“ 512);
        
            //cvSaveImage(“Working.jpg“ WorkingImage);
            //PrintGrayImage(WorkingImage “WorkingImage“);
            //BinaryHistogram(WorkingImage);
        
            Blobs Regions = new Blobs();

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     181637  2014-12-23 17:08  opencv用到的所有jar包\flandmark-android-arm.jar

     文件     231010  2014-12-23 17:55  opencv用到的所有jar包\flandmark-android-x86.jar

     文件      36440  2014-12-23 18:46  opencv用到的所有jar包\flandmark-linux-x86.jar

     文件      38093  2014-12-23 20:56  opencv用到的所有jar包\flandmark-linux-x86_64.jar

     文件      37301  2014-12-23 18:04  opencv用到的所有jar包\flandmark-macosx-x86_64.jar

     文件      29764  2014-12-23 18:41  opencv用到的所有jar包\flandmark-windows-x86.jar

     文件      36537  2014-12-23 20:00  opencv用到的所有jar包\flandmark-windows-x86_64.jar

     文件      11497  2014-12-23 20:56  opencv用到的所有jar包\flandmark.jar

     文件     216396  2014-12-23 18:45  opencv用到的所有jar包\flycapture-linux-x86.jar

     文件     236357  2014-12-23 20:55  opencv用到的所有jar包\flycapture-linux-x86_64.jar

     文件     174500  2014-12-23 18:39  opencv用到的所有jar包\flycapture-windows-x86.jar

     文件     250112  2014-12-23 19:59  opencv用到的所有jar包\flycapture-windows-x86_64.jar

     文件     139275  2014-12-23 20:55  opencv用到的所有jar包\flycapture.jar

     文件     225614  2014-12-23 22:33  opencv用到的所有jar包\javacpp.jar

     文件     335803  2014-12-23 22:33  opencv用到的所有jar包\javacv.jar

     文件     158490  2014-12-23 18:46  opencv用到的所有jar包\libdc1394-linux-x86.jar

     文件     163114  2014-12-23 20:55  opencv用到的所有jar包\libdc1394-linux-x86_64.jar

     文件     158579  2014-12-23 18:04  opencv用到的所有jar包\libdc1394-macosx-x86_64.jar

     文件      29903  2014-12-23 20:55  opencv用到的所有jar包\libdc1394.jar

     文件      78666  2014-12-23 18:46  opencv用到的所有jar包\libfreenect-linux-x86.jar

     文件      80023  2014-12-23 20:55  opencv用到的所有jar包\libfreenect-linux-x86_64.jar

     文件      74671  2014-12-23 18:04  opencv用到的所有jar包\libfreenect-macosx-x86_64.jar

     文件     152128  2014-12-23 18:40  opencv用到的所有jar包\libfreenect-windows-x86.jar

     文件     183448  2014-12-23 19:59  opencv用到的所有jar包\libfreenect-windows-x86_64.jar

     文件      21303  2014-12-23 20:55  opencv用到的所有jar包\libfreenect.jar

     文件      19355  2012-04-15 14:48  opencv用到的所有jar包\LICENSE.txt

     文件    9211502  2014-12-23 17:05  opencv用到的所有jar包\opencv-android-arm.jar

     文件   11229743  2014-12-23 17:52  opencv用到的所有jar包\opencv-android-x86.jar

     文件    7995786  2014-12-23 18:42  opencv用到的所有jar包\opencv-linux-x86.jar

     文件    8157545  2014-12-23 20:52  opencv用到的所有jar包\opencv-linux-x86_64.jar

............此处省略40个文件信息

评论

共有 条评论