×

fbinsttool下载 bin fbinsttool

高手求救啊,4G的U盘变成了1.5G的空间,显示了2.5G空间未指派,用fbinsttool怎么修复,强行格式化也没用?人脸识别为什么用python开发

admin admin 发表于2022-07-20 02:58:36 浏览102 评论0

抢沙发发表评论

高手求救啊,4G的U盘变成了1.5G的空间,显示了2.5G空间未指派,用fbinsttool怎么修复,强行格式化也没用

您可以将u Disk的数据复制到删除1.5G的数据,然后将4G首先关联。在未签名的4G上创建新的磁盘格式化化时,建议使用FAT32或NTFS格式化化。此方法。我曾经使用USB闪存驱动器,无法格式化化化,并且该文件无法删除,好像是一样被写了。时间,我是大规模生产的和解决的。教程,而且我不太熟悉。似乎有一个软件可以检测u磁盘是否不好,并且忘记了它的名字。

人脸识别为什么用python开发

您可以使用OPENCV,OPENCV的面部检测功能在一般场合仍然不错。UBUNTU仅提供Python-OpenCV软件包,可以轻松实现面部检测代码。

在编写代码之前,您应该安装python-opencv:

#!/usr/bin/python
# -*- coding: UTF-8 -*-
 
# face_detect.py
 
# Face Detection using OpenCV. Based on sample code from:
# http://python.pastebin.com/m76db1d6b
 
# Usage: python face_detect.py 《image_file》
 
import sys, os
from opencv.cv import *
from opencv.highgui import *
from PIL import Image, ImageDraw
from math import sqrt
 
def detectObjects(image):
    “““Converts an image to grayscale and prints the locations of any faces found“““
    grayscale = cvCreateImage(cvSize(image.width, image.height), 8, 1)
    cvCvtColor(image, grayscale, CV_BGR2GRAY)
 
    storage = cvCreateMemStorage(0)
    cvClearMemStorage(storage)
    cvEqualizeHist(grayscale, grayscale)
 
    cascade = cvLoadHaarClassifierCascade(
        ’/usr/share/opencv/haarcascades/haarcascade_frontalface_default.xml’,
        cvSize(1,1))
    faces = cvHaarDetectObjects(grayscale, cascade, storage, 1.1, 2,
        CV_HAAR_DO_CANNY_PRUNING, cvSize(20,20))
 
    result = 
    for f in faces:
        result.append((f.x, f.y, f.x+f.width, f.y+f.height))
 
    return result
 
def grayscale(r, g, b):
    return int(r * .3 + g * .59 + b * .11)
 
def process(infile, outfile):
 
    image = cvLoadImage(infile);
    if image:
        faces = detectObjects(image)
 
    im = Image.open(infile)
 
    if faces:
        draw = ImageDraw.Draw(im)
        for f in faces:
            draw.rectangle(f, outline=(255, 0, 255))
 
        im.save(outfile, “JPEG“, quality=100)
    else:
        print “Error: cannot detect faces on %s“ % infile
 
if __name__ == “__main__“:
    process(’input.jpg’, ’output.jpg’)

Gallery 过期了怎么办


前段时间就发现Gallery这个控件被无情的打上了过期这个烙印。当时很好奇,谷歌为什么就让它过期了,不过那个时候项目忙就没有仔细去看了,反正过期了还能用,只是不维护了嘛。今天刚好有点时间就翻了翻android SDK文档:
This class was deprecated in API level 16.
This widget is no longer supported. Other horizontally scrolling widgets include HorizontalScrollView and ViewPager from the support library.
啊哦,在API level 16(Android 4.1)就过期了,也就是谷歌不在维护这个类了。谷歌还推荐了可以用HorizontalScrollView 或者ViewPager 来代替它。
首先,先给Gallery默哀一分钟吧,过期了,离死也就不远了。这期,我们先谈谈Gallery为什么会被谷歌判了死刑吧。
网上查了一圈,最后只在stackoverflow找到了一个类似的问题和一个疑似答案的答案,附上问题链接:

EcoGallery
Replacement for Gallery widget in Android with View recycling. This originally made by Joseph Earl (details).
Usage:
1- Include ’EcoGallery’ android library to your project. (Eclipse project: properties -》 Android -》 Library - Add)
2- You could declare EcoGallery in the layout xml file, Example:
《us.feras.ecogallery.EcoGallery
android:id=“@+id/images“
android:layout_width=“match_parent“
android:layout_height=“60dp“
android:layout_alignParentBottom=“true“
/》
3- Use EcoGalleryAdapterView instead of AdapterView.
For a complete tutorial check the wiki.
Sample App
Click here to view the sample app
Change Log:
June 24, 2013
Compiler warnings fixed @mnowrot
Limitation:
The existing implementation assumed that each different position in the adapter resulted in a unique view. The changes are only good if your Gallery contains only one type of item, if not you’ll need to add some sort of key based on item type and the amount
of that type required.
-fbinsttool下载