Category:C

  • Using C + + to transfer pictures with socket in the form of JSON

    Time:2021-5-12

    This example for you to share the C + + implementation of JSON form of socket transmission image specific code, for your reference, the specific content is as follows General process: the client reads the image, encodes it with Base64, converts it into a string, saves it in JSON, transmits it to the server through […]

  • Crazy grapes

    Time:2021-5-11

    Topic 1 Average score Input: two lines The first line is the number of fractions nThe second line is the N fractions separated by spaces Output: Average score after removing the highest and lowest scores   #include float buf[1001]; void fun(int n){ for(int i=0;i Topic 2 password Input: one line The first line: 26 lowercase […]

  • Using OpenCV to deal with the frame difference of two pictures in C + +

    Time:2021-5-11

    In this paper, we share the specific code of using OpenCV to deal with the frame difference of two pictures, for your reference, the specific content is as follows This program is two pictures do frame difference, using C + + to achieve, the different places with frame up, read the program carefully, it should […]

  • On the right shift of array elements

    Time:2021-5-10

    Topic content:   Topic link      Thinking of solving problems   Method 1 This is a method I found out by myself. I set the array inversely many times to achieve the effect of circulation. I set the array inversely three times, so I need to construct a function, This function can not only reverse an […]

  • Analysis of three frame difference method based on OpenCV

    Time:2021-5-10

    Today, I’d like to talk about three frame difference method to realize moving object detection. There are many tracking methods for motion detection picture frame. You can do it by yourself, and I’ll realize it one by one later. Today, I’ll play three frame difference method for you first( The notes are very clear, and […]

  • Course design C language student achievement management system

    Time:2021-5-9

    Student achievement management system Tips: notes should be written are written, suitable for beginners reference.The maximum number of students in a class is not more than 30 (the specific number is input by the keyboard), and the maximum number of examination subjects is not more than 6 (the specific number is input by the keyboard). […]

  • Opencv uses the first N frames of video to get the average image

    Time:2021-5-9

    This example for you to share the opencv use of the first N frames of video average image specific code, for your reference, the specific content is as follows Write their own ha, you can use the small program to solve the average video model. //How to accumulate multiple images and average them in opencv […]

  • Greedy algorithm activity scheduling problem

    Time:2021-5-8

    Question type description There are n activities that need to use the same resource, and only one activity can use the resource at the same time.Each activity I has a start time Si and an end time fi, and Si < EI. If activity I is selected, it occupies resources in the half open time […]

  • Average background method based on OpenCV

    Time:2021-5-8

    The basic idea of average background method is to calculate the average value and standard deviation of each pixel as its background model. The average background method uses four opencv functions: Cvacc (), cumulative image; Cvabsdiff(), which calculates the only difference of each frame in a certain period of time; Cvinrange (), the image is […]

  • The solution to the problem of Texas Hold’em

    Time:2021-5-7

    Title Description Recently, aqua is a big fan of Texas Hold’em. So she found a lot of people to play with. Because of the large number of people, aqua has to change the rules of the game: All playing cards only look at the numbers, not the colors. The value of each card is one […]

  • Opencv frame difference method to find the image with large difference

    Time:2021-5-7

    This example for you to share the opencv frame difference method to find out the difference between the image, for your reference, the specific content is as follows #include “stdafx.h” #include <stdio.h> #include <stdlib.h> #include <iostream> #include <fstream> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/objdetect/objdetect.hpp> #include <opencv2/ml/ml.hpp> #include <string.h> #define IMAGENO 18456 using namespace […]

  • Have Fun with Numbers

    Time:2021-5-6

    subject   Topic link      The first time to do all English programming (vocabulary is seriously insufficient, also need to remember more words); The general meaning of the title is: enter an integer with no more than 20 digits, multiply the number by 2, and compare the results before and after calculation to see if […]