當前位置:首頁 » 編程語言 » java圖像識別

java圖像識別

發布時間: 2023-05-31 03:27:50

A. java 可不可以做圖像識別的系統

當然可以。
一、純JAVA開發的技術可行性,即JAVA是否能夠實現圖像識別的各種演算法
二、如果第一點沒有問題,純JAVA與C++相比,開發效率上的差異。效率要低很多,和具體問題有關。
三、如果第一點沒有問題且第二點差異不太大時,純JAVA與C++相比,相同演算法的情況下,軟體運行效率的差異。運行效率的差異也很大,也是和具體的演算法有關。

B. java怎麼實現人臉識別

應該可以通過java調用別人的人臉識別的介面,主要是利用圖像處理的技術,識別關鍵點

C. java識別照片是彩色還是黑白照

你可以判斷圖片的其中一個像素點,彩色圖一般都是RGB組合答禪困成清念的,格式是那種3*3的矩陣襲譽,而黑白圖像的像素點是通過一個固定的公式轉換來的,轉換後的像素點是1*3的矩陣

D. 關於JAVA的圖片處理問題

public static boolean write(RenderedImage im, String formatName, File output) throws IOException
使用支持給定格式的任意 ImageWriter 將一個圖像寫入 File。如果已經有一個 File 存在,則丟棄其內容。

參數:im - 要寫入的 RenderedImage。
formatName - 包含格式非正式名稱的 String。
output - 將在其中寫入數據的 File。
返回:如果沒有找到合適的 writer,則返回 false。
拋出: IllegalArgumentException - 如果任何參數為 null。
IOException - 如果在寫入過程中發生錯誤。

說白了,就是按指定的formatName把圖片存到file(或OutputStream)中。formatName是已注冊的、可以保存圖片的writer的非正式名稱,比如「jpeg」,「tiff」。如果想知道到底有哪些writer在你的機器上被注冊了,用ImageIO.getWriterFormatNames(),返回類型是String[] 。同樣的,還有讀取圖片的reader,對應的是ImageIO.getReaderFormatNames()。

最後要說的是,這個方法是保存圖片,和上傳沒有關系。你可能是要上傳圖片後再保存吧!

E. 用java寫人臉識別演算法有哪些

Java中常見的人臉識別演算法有:

  • Eigenface: 這是一種基於主成分分析的人臉識別演算法,它將人臉圖像映射到一個低維的特徵空間。

  • Fisherface: 這是一種基衡猜於卜攔乎投影的人臉識別演算法,它利用線性判別分析技術對人臉圖像進行分類。

  • Local Binary Patterns (LBP): 這是一種基於二進制像素點比較的人臉識別演算法,它提取了圖像中的型悉紋理特徵。

  • Haar-like特徵: 這是一種基於積分圖像的人臉識別演算法,它檢測圖像中的邊緣特徵。

  • Convolutional Neural Networks (CNNs): 這是一種基於卷積神經網路的人臉識別演算法,它模擬了人類大腦中的視覺識別過程。

  • 這些演算法都是廣泛用於人臉識別應用中的,根據具體需求和應用環境選擇合適的演算法是很重要的。

F. 想從一張Jpg圖像中識別出若干黑色區域,用於對答題卡的塗卡部分進行自動算分。求Java圖像分割與識別技術

其實不用想得太難。
處理圖像像素用BufferImage類。
首先,你得確定指定的答題卡塗卡的每個可塗選點的物理像素位置,這一步可以用一張空白的答題卡進行人工採集數據,做成一個資料庫形式就可以了。定義好這些可塗選點定義對應的選項A\B\C\D。
然後你從掃描儀得到圖像,把圖像載入,進行像素分析,假設掃描粗悄答題卡放置的方向是正確的,因此不用考慮識別答題卡放置方向。再來,好樣的,從之前採集的資料庫得到一個可塗選的像素坐標位置,用此去識別答題卡上對應的塗選框是否塗選,以此類推逐行識別,因為你之前已空銷經在資料庫裡面定義好了對應的塗選點的含義了,在這里只要往資料庫一查就知道(考生塗選斗凳游的是什麼)了!
下一步只要將試卷上考生塗選的選項轉換為數據保存到考生考試資料庫。

至於如何識別考生塗選的方塊,一般答題卡的塗選選框就是一個固定的大小,你只要知道它高多少像素,寬多少像素。考生塗選選項筆跡時一般都和這個選框大小的區域差不多,只要統計這個位置之內的比較黑的顏色數量占此塗選框的面積%50以上,可以認為這個是考試塗選的 選項。

還有個建議:一般答題卡上面都有一些用來給答題卡識別軟體使用的定位點,你抓住這些規則就應該能更准確定位到答題卡塗選選項的位置。

G. java檢測人臉圖片是否高清

Java檢測人臉圖片是否高清可以通過以下步驟實現。
1、對人臉圖片進行圖像處理,以提取出圖像中的人臉特徵。
2、使用支持向量機SVM分類演算法,建立一個高清人臉圖像與模糊人臉圖像的分類模型,用來區分高清圖像和模糊圖像。
3、將待測人臉圖像和模型進行比較,並判斷其屬於高清圖像還是模糊圖像。

H. java 實現圖片的文字識別

摘要圖像識別是目前很熱門的研究領域,涉及的知識很廣,包括資訊理論、模式識別、模糊數學、圖像編碼、內容分類等等。本文僅對使用Java實現了一個簡單的圖像文本二值處理,關於識別並未實現。
步驟
建立文本字元模板二值矩陣
對測試字元進行二值矩陣化處理
代碼
/*
* @(#)StdModelRepository.java
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
* You should have received a of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
package cn.e.ynu.sei.recognition.util;import java.awt.Image;import java.awt.image.BufferedImage;import java.io.File;import java.io.IOException;import java.util.ArrayList;import java.util.List;import java.util.logging.Level;import java.util.logging.Logger;import javax.imageio.ImageIO;/** * Hold character charImgs as standard model repository.
* @author 88250
* @version 1.0.0.0, Mar 20, 2008
*/
public class StdModelRepository {
/** * hold character images
*/ List charImgs = new ArrayList();
/** * default width of a character
*/ static int width = 16 /** * default height of a character
*/ static int height = 28 /** * standard character model matrix
*/ public int[][][] stdCharMatrix = new int[27][width][height];
/** * Default constructor.
*/ public StdModelRepository() {
BufferedImage lowercase = null try {
lowercase = ImageIO.read(new File("lowercase.png"));
} catch (IOException ex) {
Logger.getLogger(StdModelRepository.class.getName()).
log(Level.SEVERE, null, ex);
}
for (int i = 0 i < 26 i++) {
charImgs.add(lowercase.getSubimage(i * width,
0,
width,
height));
}
for (int i = 0 i < charImgs.size(); i++) {
Image image = charImgs.get(i);
int[] pixels = ImageUtils.getPixels(image,
image.getWidth(null),
image.getHeight(null));
stdCharMatrix[i] = ImageUtils.getSymbolMatrix(pixels, 0).clone();
ImageUtils.displayMatrix(stdCharMatrix[i]);
}
}
}
/*
* @(#)ImageUtils.java
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
* You should have received a of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
package cn.e.ynu.sei.recognition.util;import java.awt.Image;import java.awt.image.PixelGrabber;import java.util.logging.Level;import java.util.logging.Logger;/** * Mainipulation of image data.
* @author 88250
* @version 1.0.0.3, Mar 20, 2008
*/
public class ImageUtils {
/** * Return all of the pixel values of sepecified <code>image< .>* @param image the sepecified image
* @param width width of the image
* @param height height of the image
* @return */ public static int[] getPixels(Image image, int width, int height) {
int[] pixels = new int[width * height];
try {
new PixelGrabber(image, 0, 0, width, height, pixels, 0, width).grabPixels();
} catch (InterruptedException ex) {
Logger.getLogger(ImageUtils.class.getName()).
log(Level.SEVERE, null, ex);
}
return pixels;
}
資源來自:
http://blog.csdn.net/chief1985/article/details/2229572

I. 怎麼用java實現圖片裡面的數字識別

圖片是由點組成(或者是別的方法),記錄點的位置、顏色,控制點就行了。至於ocr,有難度,首先要製作文字的變化范圍及整個字各部分的聯系,這還是簡單的。然後,圖像分解就行了。額,我不會編程,稍微會點c++,所以這個回答就是假設如果我做這種程序的思路。

熱點內容
內置存儲卡可以拆嗎 發布:2025-05-18 04:16:35 瀏覽:335
編譯原理課時設置 發布:2025-05-18 04:13:28 瀏覽:378
linux中進入ip地址伺服器 發布:2025-05-18 04:11:21 瀏覽:612
java用什麼軟體寫 發布:2025-05-18 03:56:19 瀏覽:32
linux配置vim編譯c 發布:2025-05-18 03:55:07 瀏覽:107
砸百鬼腳本 發布:2025-05-18 03:53:34 瀏覽:943
安卓手機如何拍視頻和蘋果一樣 發布:2025-05-18 03:40:47 瀏覽:739
為什麼安卓手機連不上蘋果7熱點 發布:2025-05-18 03:40:13 瀏覽:803
網卡訪問 發布:2025-05-18 03:35:04 瀏覽:511
接收和發送伺服器地址 發布:2025-05-18 03:33:48 瀏覽:371