91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 4.78MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-08-15
  • 語言: Java
  • 標簽:

資源簡介

用電腦攝像頭掃描二維碼 java做的一個小程序 很好用

資源截圖

代碼片段和文件信息

package?com.kc.fmj;

import?javax.swing.Jframe;
import?java.awt.BorderLayout;
import?java.awt.Dimension;
import?java.awt.Graphics2D;
import?java.awt.image.BufferedImage;
import?java.io.File;
import?java.io.FileInputStream;
import?java.io.FileNotFoundException;
import?java.io.InputStream;
import?java.util.Hashtable;

import?javax.media.Manager;
import?javax.media.MediaLocator;
import?javax.media.Player;
import?javax.swing.JPanel;
import?java.io.InputStream;
import?com.google.zxing.BinaryBitmap;
import?com.google.zxing.DecodeHintType;
import?com.google.zxing.LuminanceSource;
import?com.google.zxing.MultiFormatReader;
import?com.google.zxing.Result;
import?com.google.zxing.client.j2se.BufferedImageLuminanceSource;
import?com.google.zxing.common.HybridBinarizer;

import?net.sf.fmj.ui.application.CaptureDeviceBrowser;
import?net.sf.fmj.ui.application.ContainerPlayer;
import?net.sf.fmj.ui.application.PlayerPanelPrefs;
/**
?*?
?*?@author?Lee
?*
?*/

public?class?Cameraframe?extends?Jframe{

/**
?*?@param?args
?*?@throws??
?*/
public?static?void?main(String[]?args)throws?Exception?{
//InputStream?is?=?new?FileInputStream(“E:\\Epay_wordspace\\qrcode\\beep.mp3“);
//System.out.println(“InputStream:“+is);
Cameraframe?camera?=?new?Cameraframe();
camera.setVisible(true);
}
OpenUrl?openUrl=new?OpenUrl();
????private?static?int?num?=?0;
????
????public?Cameraframe()?throws?Exception{
????????this.settitle(“攝像頭讀取二維碼應用“);
????????this.setSize(480?500);
????????//this.setSize(250?280);
????????this.setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);
????????final?JPanel?cameraPanel?=?new?JPanel();
????????this.getContentPane().setLayout(new?BorderLayout());
????????this.getContentPane().add(cameraPanel?BorderLayout.CENTER);
????????ContainerPlayer?containerPlayer?=?new?ContainerPlayer(cameraPanel);
????????MediaLocator?locator?=?CaptureDeviceBrowser.run(null);???//彈出攝像頭設備選擇

????????PlayerPanelPrefs?prefs?=?new?PlayerPanelPrefs();
????????containerPlayer.setMediaLocation(locator.toExternalForm()?prefs.autoPlay);
????????
????????new?Thread()?{
????????????public?void?run()?{
????????????????while?(true)?{
????????????????????try?{
????????????????????????Thread.sleep(1000);
????????????????????????Dimension?imageSize?=?cameraPanel.getSize();
????????????????????????BufferedImage?image?=?new?BufferedImage(
????????????????????????????????imageSize.width?imageSize.height
????????????????????????????????BufferedImage.TYPE_INT_ARGB);
????????????????????????Graphics2D?g?=?image.createGraphics();
????????????????????????cameraPanel.paint(g);
????????????????????????g.dispose();
????????????????????????LuminanceSource?source?=?new?BufferedImageLuminanceSource(image);
????????????????????????BinaryBitmap?bitmap?=?new?BinaryBitmap(new?HybridBinarizer(source));
????????????????????????
???????????? Hashtable?hints?=?new?Hashtable();
???????????? hints.put(DecodeHintType.CHAR

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-06-10?10:37??qrcodeReader\
?????文件????????1035??2012-10-09?09:50??qrcodeReader\.classpath
?????文件?????????388??2012-10-09?09:49??qrcodeReader\.project
?????目錄???????????0??2015-06-10?10:37??qrcodeReader\.settings\
?????文件?????????629??2012-10-09?09:49??qrcodeReader\.settings\org.eclipse.jdt.core.prefs
?????目錄???????????0??2015-06-10?10:37??qrcodeReader\bin\
?????目錄???????????0??2015-06-10?10:37??qrcodeReader\bin\com\
?????目錄???????????0??2015-06-10?10:37??qrcodeReader\bin\com\kc\
?????目錄???????????0??2015-06-10?10:37??qrcodeReader\bin\com\kc\fmj\
?????文件????????2787??2015-06-10?10:37??qrcodeReader\bin\com\kc\fmj\Cameraframe$1.class
?????文件????????2073??2015-06-10?10:37??qrcodeReader\bin\com\kc\fmj\Cameraframe.class
?????文件????????2804??2015-06-09?10:12??qrcodeReader\bin\com\kc\fmj\Cameraframe2$1.class
?????文件????????1974??2015-06-09?10:12??qrcodeReader\bin\com\kc\fmj\Cameraframe2.class
?????文件????????2153??2015-06-10?10:36??qrcodeReader\bin\com\kc\fmj\OpenUrl.class
?????文件??????159744??2007-09-28?09:39??qrcodeReader\civil.dll
?????文件???????65536??2007-09-28?09:39??qrcodeReader\jdshow.dll
?????目錄???????????0??2015-06-10?10:37??qrcodeReader\lib\
?????文件???????64156??2012-06-06?00:00??qrcodeReader\lib\ffmpeg-java.jar
?????文件??????937276??2012-06-06?00:25??qrcodeReader\lib\fmj-applet.jar
?????文件??????828244??2012-06-06?00:25??qrcodeReader\lib\fmj-nojmf.jar
?????文件?????1007362??2012-06-06?00:03??qrcodeReader\lib\fmj.jar
?????文件???????31946??2012-02-04?11:13??qrcodeReader\lib\javase.jar
?????文件??????153253??2012-06-06?00:00??qrcodeReader\lib\jdom.jar
?????文件??????105446??2012-06-06?00:00??qrcodeReader\lib\jl1.0.jar
?????文件???????67867??2012-06-06?00:00??qrcodeReader\lib\lti-civil-no_s_w_t.jar
?????文件???????24538??2012-06-06?00:00??qrcodeReader\lib\mp3spi1.9.4.jar
?????文件?????1743059??2011-09-19?15:58??qrcodeReader\lib\substance.jar
?????文件??????102723??2012-06-06?00:00??qrcodeReader\lib\tritonus_share.jar
?????文件???????13776??2012-06-06?00:00??qrcodeReader\lib\vorbisspi1.0.2.jar
?????文件??????373145??2012-09-26?17:45??qrcodeReader\lib\zxing-1.7.jar
?????目錄???????????0??2015-06-10?10:37??qrcodeReader\src\
............此處省略8個文件信息

評論

共有 條評論