Supercharge Your Innovation With Domain-Expert AI Agents!

Method of using OpenCV (Open Source Computer Vision Library) to display image

A technology for displaying images and images, applied in user interface execution, program control devices, execution paradigms, etc., can solve problems such as low user experience, and achieve the effect of improving user experience

Active Publication Date: 2017-12-08
SHANGHAI MEDIA TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention is to overcome the defect that a new window will pop up when using OpenCV to display images in the prior art, resulting in low user experience, and to provide a method that can display images in the user's current application software window to improve user experience. How to display images using OpenCV

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method of using OpenCV (Open Source Computer Vision Library) to display image
  • Method of using OpenCV (Open Source Computer Vision Library) to display image
  • Method of using OpenCV (Open Source Computer Vision Library) to display image

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The present invention is further illustrated below by means of examples, but the present invention is not limited to the scope of the examples.

[0020] A method for displaying an image using OpenCV, comprising the steps of:

[0021] 101. The function myShowWindow for displaying images in the application software of windows is created in the environment of VC (developing Windows environment program based on C++ language, object-oriented visual integrated programming system released by Microsoft Corporation), and the function includes the following parameters: iOffsetX , iOffsetY, iWidth, iHeight, imageSize, SImageData; among them, iOffsetX and iOffsetY indicate the relative position of the image displayed in the application software window, which can be specified as required, iWidth and iHeight respectively indicate the width and height of the image, and imageSize indicates the image to be displayed The size of the data buffer occupied by the pixel, the value of imageSi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method of using an OpenCV (Open Source Computer Vision Library) to display an image. The method comprises the following steps: S1, calling an OpenCV library function in application software, and opening or generating the to-be-displayed image; S2, acquiring values of nChannels, width, height, widthStep and imageData in a structure body IplImage; S3, converting the values of the imageData to SImageData, wherein the SImageData is used to store values of pixel points of the to-be-displayed image in a format used by the application software; and S4, displaying the to-be-displayed image in a window of the application software. According to the method of using the OpenCV to display the image provided by the invention, the image processed by calling the OpenCV can be enabled to be directly displayed in the application software window without the need for popping up a new window, and a user experience degree is increased.

Description

technical field [0001] The invention relates to the field of image pattern recognition software development, in particular to a method for displaying images using OpenCV. Background technique [0002] OpenCV, or "Open Source Computer Vision Library" (Open Source Computer Vision Library) is a set of cross-platform, open-source middle and high-level "application programming interface" APIs composed of more than 500 C functions organized by Intel (Intel Corporation) in 1999. (Application Programming Interface, application programming interface) development library. Because it is open source based on BSD (Berkeley Software Distribution, Berkeley software suite) license, anyone can download the source program and runtime library of the library from its website, and after calling their own program, there is no need to publish the source code. And it can be used in commercial software and is very popular. Currently, the development library can run on Linux, Windows and Mac OS ope...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
CPCG06F9/449G06F9/451
Inventor 李瑞民刘晨尹丽娟
Owner SHANGHAI MEDIA TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More