- 博客(20)
- 收藏
- 关注
原创 飞桨领航团AI达人创造营(笔记一)
一、熊猫头表情生成器 框架图 二、安全帽佩戴检测 安全帽佩戴检测是目标检测实例化任务之一。目标检测 的任务是找出图像中所有感兴趣的目标(物体),确定它们的位置和大小,是计算机视觉领域的核心问题之一。由于各类物体有不同的外观,形状,姿态,加上成像时光照,遮挡等因素的干扰,目标检测一直是计算机视觉领域最具有挑战性的问题。 三、看图写诗 实现思路 我认为研究AI其实就是在研究我们人类,为什么这么说呢?举个例子: 我们在看图说话时,一般都是先看看图片上有什么内容,比如一张图里有山有水还有很多的植
2021-07-27 20:32:14
147
原创 用膨胀腐蚀方法实现区域图像的提取
用膨胀腐蚀方法实现 (1)如下图片的表格线提取(2)如下图片的字母A提取 (1)图片的表格线提取 import cv2 import numpy as np import matplotlib.pyplot as plt #读入图片 alphabeta = cv2.imread("pic/alphabeta.png", 0) #显示图片 plt.imshow(alphabeta) #表格线提取 kernel = np.ones((1,100), np.uint8) close1
2021-04-25 22:01:46
662
1
原创 PTA 数据结构与算法题目集(中文)6-12 二叉搜索树的操作集
6-12 二叉搜索树的操作集(30 分) 本题要求实现给定二叉搜索树的5种常用操作。 函数接口定义: BinTree Insert( BinTree BST, ElementType X ); BinTree Delete( BinTree BST, ElementType X ); Position Find( BinTree BST, ElementType X ); Position...
2018-08-28 14:41:32
571
原创 PTA 数据结构与算法题目集(中文)6-10 二分查找
6-10 二分查找(20 分)本题要求实现二分查找算法。函数接口定义:Position BinarySearch( List L, ElementType X ); 其中List结构定义如下:typedef int Position; typedef struct LNode *List; struct LNode { ElementType Data[MAXSIZE]; Posi...
2018-07-05 19:31:38
4634
原创 PTA 数据结构与算法题目集(中文) 6-9 二叉树的遍历
6-9 二叉树的遍历(25 分)本题要求给定二叉树的4种遍历。函数接口定义:void InorderTraversal( BinTree BT ); void PreorderTraversal( BinTree BT ); void PostorderTraversal( BinTree BT ); void LevelorderTraversal( BinTree BT ); 其中BinTre...
2018-06-02 11:45:59
2626
3
原创 PTA 数据结构与算法题目集(中文)6-8 求二叉树高度
6-8 求二叉树高度(20 分)本题要求给定二叉树的高度。函数接口定义:int GetHeight( BinTree BT ); 其中BinTree结构定义如下:typedef struct TNode *Position; typedef Position BinTree; struct TNode{ ElementType Data; BinTree Left; Bin...
2018-06-02 11:08:05
3436
2
原创 PTA 数据结构与算法题目集(中文)6-7 在一个数组中实现两个堆栈
6-7 在一个数组中实现两个堆栈(20 分)本题要求在一个数组中实现两个堆栈。函数接口定义:Stack CreateStack( int MaxSize ); bool Push( Stack S, ElementType X, int Tag ); ElementType Pop( Stack S, int Tag ); 其中Tag是堆栈编号,取1或2;MaxSize堆栈数组的规模;Stack结...
2018-06-02 11:02:31
798
原创 PTA 数据结构与算法题目集(中文)6-6 带头结点的链式表操作集
6-6 带头结点的链式表操作集(20 分)本题要求实现带头结点的链式表操作集。函数接口定义:List MakeEmpty(); Position Find( List L, ElementType X ); bool Insert( List L, ElementType X, Position P ); bool Delete( List L, Position P ); 其中List结构定义...
2018-06-02 10:52:15
1455
原创 PTA 数据结构与算法题目集(中文)6-5 链式表操作集
6-5 链式表操作集(20 分)本题要求实现链式表的操作集。函数接口定义:Position Find( List L, ElementType X ); List Insert( List L, ElementType X, Position P ); List Delete( List L, Position P ); 其中List结构定义如下:typedef struct LNode *Ptr...
2018-05-28 11:25:08
3026
4
原创 PTA 数据结构与算法题目集(中文)6-4 链式表的按序号查找
6-4 链式表的按序号查找(10 分)本题要求实现一个函数,找到并返回链式表的第K个元素。函数接口定义:ElementType FindKth( List L, int K ); 其中List结构定义如下:typedef struct LNode *PtrToLNode; struct LNode { ElementType Data; PtrToLNode Next; }; ty...
2018-05-28 10:28:07
2170
原创 PTA 数据结构与算法题目集(中文)6-3 求链式表的表长
6-3 求链式表的表长(10 分)本题要求实现一个函数,求链式表的表长。函数接口定义:int Length( List L ); 其中List结构定义如下:typedef struct LNode *PtrToLNode; struct LNode { ElementType Data; PtrToLNode Next; }; typedef PtrToLNode List; L是...
2018-05-28 10:25:17
1014
原创 PTA 数据结构与算法题目集(中文)6-2 顺序表操作集
6-2 顺序表操作集(20 分)本题要求实现顺序表的操作集。函数接口定义:List MakeEmpty(); Position Find( List L, ElementType X ); bool Insert( List L, ElementType X, Position P ); bool Delete( List L, Position P ); 其中List结构定义如下:typede...
2018-05-28 10:21:19
2344
1
原创 PTA 数据结构与算法题目集(中文)6-1 单链表逆转
6-1 单链表逆转(20 分)本题要求实现一个函数,将给定的单链表逆转。函数接口定义:List Reverse( List L ); 其中List结构定义如下:typedef struct Node *PtrToNode; struct Node { ElementType Data; /* 存储结点数据 */ PtrToNode Next; /* 指向下一个结点的指针 */ ...
2018-05-28 09:58:18
2142
4
原创 LeetCode 7. Reverse Integer
Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123 Output: 321 Example 2:Input: -123 Output: -321 Example 3:Input: 120 Output: 21 Note:Assume we are dealing with an envir...
2018-04-28 18:54:07
79
原创 LeetCode 6. ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H N A P L S I I G ...
2018-04-27 19:09:49
125
原创 LeetCode 5. Longest Palindromic Substring
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example 1:Input: "babad" Output: "bab" Note: "aba" is also a valid answer. Example 2:...
2018-04-20 10:27:24
93
原创 LeetCode 4. Median of Two Sorted Arrays
There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).Example 1:nums1 = [1, 3] nums2...
2018-04-16 23:06:50
117
原创 LeetCode 3. Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.Given "bbbbb", the answer is "b", with the l...
2018-04-14 13:10:50
97
原创 LeetCode 2. Add Two Numbers
DescriptionYou are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers a...
2018-04-13 23:20:03
113
原创 51nod 1287 加农炮
1287 加农炮 题目来源: Codility 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 收藏 关注 一个长度为M的正整数数组A,表示从左向右的地形高度。测试一种加农炮,炮弹平行于地面从左向右飞行,高度为H,如果某处地形的高度大于等于炮弹飞行的高度H(A[i] >= H),炮弹会被挡住并落在i
2017-09-04 20:20:52
189
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人