叶尔特列克
1月前来过
全职 · 320/日  ·  6960/月
工作时间: 工作日9:30-24:00、周末10:30-24:00工作地点: 远程
服务企业: 4家累计提交: 0工时
联系方式:
********
********
********
聊一聊

使用APP扫码聊一聊

个人介绍

花费10万元学习Python   2年精通 数据分析 人工智能 爬虫 web前端开发 维护class MainGame():
    window  None
    Start_X  constants.Start_X
    Start_Y  constants.Start_Y
    Line_Span  constants.Line_Span
    Max_X  Start_X + 8 * Line_Span
    Max_Y  Start_Y + 9 * Line_Span


    player1Color  constants.player1Color
    player2Color  constants.player2Color
    Putdownflag  player1Color
    piecesSelected  None

工作经历

  • 2020-09-01 -至今在校大学生互联网

    第一次参与工作def drawChessboard(self): #画象棋盘 mid_end_y = MainGame.Start_Y + 4 * MainGame.Line_Span min_start_y = MainGame.Start_Y + 5 * MainGame.Line_Span for i in range(0, 9): x = MainGame.Start_X + i * MainGame.Line_Span if i==0 or i ==8: y = MainGame.Start_Y + i * MainGame.Line_Span pygame.draw.line(MainGame.window, constants.BLACK, [x, MainGame.Start_Y], [x, MainGame.Max_Y], 1) else: pygame.

教育经历

  • 2020-09-01 - 渤海大学电子商务本科

    在校大学生MainGame.piecesList.append(pieces.Rooks(MainGame.player2Color, 0,0)) MainGame.piecesList.append(pieces.Rooks(MainGame.player2Co

技能

作品
Python人脸识别源代码可自动识别出年龄、性别等

import base64 from aip import AipFace import cv2 # 配置百度aip参数 APP_ID = '19484855' API_KEY = 'V2mDOleCsk3yEE6P5MgVwSjI' SECRET_KEY = 'RbRMAuPmz8QpDweikrbpfGQjXUm7HiCD' a_face = AipFace(APP_ID, API_KEY, SECRET_KEY) image_type = 'BASE64' options = {'face_field': 'age,gender,beauty', "max_face_num": 10} max_face_num = 10 def get_file_content(file_path): """获取文件内容""" with open(file_path, 'rb') as fr: content = base64.b64encode(fr.read()) return content.decode('utf8') def face_score(file_path): """脸部识别分数""" result = a_face.detect(get_file_content(file_path), image_type, options) return result # 图片地址,图片与程序同一目录下 file_path = "timg.jpg" result = face_score(file_path) # #从文件读取图像并转为灰度图像 img = cv2.imread(file_path) # 图片放文字 # 设置文件的位置、字体、颜色等参数 font = cv2.FONT_HERSHEY_DUPLEX # font = ImageFont.truetype("simhei.ttf", 20, encoding="utf-8") color = (0, 0, 255) for item in result['result']['face_list']: x = int(item['location']['left']) y = int(item['loca

0
2023-02-27 16:02
Python实现微信朋友圈图片分割源代码

from PIL import Image import sys # 将图片填充为正方形 def fill_image(image): width, height = image.size # 选取长和宽中较大值作为新图片的 new_image_length = width if width > height else height # 生成新图片[白底] new_image = Image.new(image.mode, (new_image_length, new_image_length), color='white') # 将之前的图粘贴在新图上,居中 if width > height: # 原图宽大于高,则填充图片的竖直维度 # (x,y)二元组表示粘贴上图相对下图的起始位置 new_image.paste(image, (0, int((new_image_length - height) / 2))) else: new_image.paste(image, (int((new_image_length - width) / 2), 0)) return new_image # 切图 def cut_image(image): width, height = image.size item_width = int(width / 3) box_list = [] # (left, upper, right, lower) for i in range(0, 3): # 两重循环,生成9张图片基于原图的位置 for j in range(0, 3): # print((i*item_width,j*item_width,(i+1)*item_width,(j+1)*item_width)) box = (j * item_width, i * item_width, (j + 1) * item_width, (i + 1) * item_width) box_list.append(box)

0
2023-02-27 16:03
GPS任意拍摄

import exifread import re import json import requests import os # 转换经纬度格式 def latitude_and_longitude_convert_to_decimal_system(*arg): """ 经纬度转为小数, param arg: :return: 十进制小数 """ return float(arg[0]) + ((float(arg[1]) + (float(arg[2].split('/')[0]) / float(arg[2].split('/')[-1]) / 60)) / 60) # 读取照片的GPS经纬度信息 def find_GPS_image(pic_path): GPS = {} date = '' with open(pic_path, 'rb') as f: tags = exifread.process_file(f) for tag, value in tags.items(): # 纬度 if re.match('GPS GPSLatitudeRef', tag): GPS['GPSLatitudeRef'] = str(value) # 经度 elif re.match('GPS GPSLongitudeRef', tag): GPS['GPSLongitudeRef'] = str(value) # 海拔 elif re.match('GPS GPSAltitudeRef', tag): GPS['GPSAltitudeRef'] = str(value) elif re.match('GPS GPSLatitude', tag): try: match_result = re.match('\[(\w*),(\w*)

0
2023-02-27 16:04
更新于: 2021-10-07 浏览: 152