CN109842777A - A kind of industrial personal computer multichannel USB camera application method and system - Google Patents
A kind of industrial personal computer multichannel USB camera application method and system Download PDFInfo
- Publication number
- CN109842777A CN109842777A CN201711213222.1A CN201711213222A CN109842777A CN 109842777 A CN109842777 A CN 109842777A CN 201711213222 A CN201711213222 A CN 201711213222A CN 109842777 A CN109842777 A CN 109842777A
- Authority
- CN
- China
- Prior art keywords
- usb camera
- information
- camera
- usb
- list
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Studio Devices (AREA)
Abstract
The invention discloses a kind of industrial personal computer multichannel USB camera application method and system, method includes: to be identified in system starting to the USB camera of grafting based on predefined USB camera list of devices;After identifying successfully, when system runs to hardware abstraction layer module, hardware abstraction layer module detects USB camera number, while reading the information of USB camera, establishes USB camera information list in conjunction with predefined USB camera feature list;Upper application software calls the camera information list generated for realizing that the different of multichannel USB camera are used.Implement industrial personal computer multichannel USB camera application method and system of the invention, has the advantages that the present invention solves the problems, such as to realize that multichannel USB camera is used on industrial personal computer, the specific of each camera can be pre-configured with scene.
Description
Technical field
The present invention relates to wisdom retail domain more particularly to a kind of industrial personal computer multichannel USB camera application method and it is
System.
Background technique
Since juice extractor industrial personal computer needs multi-path monitoring data, reach realization and support recognition of face, fruit quality identifies, and squeezes
Juicing overall process real time monitoring etc. inside juice machine, it is general by buying one external multi-path monitoring equipment, the above function may be implemented
Energy.But if multichannel USB camera can be realized on internal industrial personal computer, this makes it possible to reduce corresponding external monitoring to set
It is standby, while can also reduce the data acquisition of industrial personal computer and monitoring outlay, including human face data, fruit juice quality status data
Deng related R&D work, further reduce the cost.
Summary of the invention
The technical problem to be solved in the present invention is that in view of the above drawbacks of the prior art, providing a kind of industrial personal computer multichannel
USB camera application method and system.
The technical solution adopted by the present invention to solve the technical problems is: constructing a kind of industrial personal computer multichannel USB camera fortune
With method, comprising:
Based on predefined USB camera list of devices, the USB camera of grafting is identified in system starting;
After identifying successfully, when system runs to hardware abstraction layer module, hardware abstraction layer module detects USB camera
Number, while the information of USB camera is read, USB camera information column are established in conjunction with predefined USB camera feature list
Table;
Upper application software calls the camera information list generated for realizing that the different of multichannel USB camera are used.
In industrial personal computer multichannel USB camera application method of the present invention, method further include: predefined USB camera shooting
Head apparatus list configures different types of function, configurable function according to the equipment manufacturer ID and device id of USB camera
Type includes recognition of face, the transmission of monitoring orange, orange quality identifies, orange juicing is peeled and monitored to monitoring orange, while
Predefined USB camera feature list in system;
Wherein, the USB camera list of devices includes the equipment manufacturer ID and device id of USB camera;The USB
Camera function list includes following information: the equipment manufacturer ID of USB camera, USB camera device id, represent USB
The Function Identification for the function type that camera is configured, multiplexing functions information, the rotation angle of USB camera.
In industrial personal computer multichannel USB camera application method of the present invention, it is described system starting when to grafting
USB camera carry out identification specifically include: the equipment manufacturer ID and device id of the USB camera of insertion are identified,
If the equipment manufacturer ID and device id of the USB camera of insertion are present in the USB camera list of devices, it is determined that
It identifies successfully, otherwise determines recognition failures.
In industrial personal computer multichannel USB camera application method of the present invention, the USB camera information list includes
Camera title, function type, rotation angle, access path, the USB camera information list of establishing specifically include:
The USB camera number of detection system carry and path pass through ioctl function and setting based on USB camera
Standby manufacturer ID and device id obtain the following information of USB camera by the USB camera feature list: Function Identification,
Multiplexing functions information, rotation angle, camera title, access path;
If get Function Identification in some USB camera information be it is unknown, then do not handle;
If getting the multiplexing functions information in some USB camera information as multiplexing, some USB camera shooting is decomposed
Function Identification in head information judges that each Function Identification after decomposing whether there is in the item entries of USB camera information list,
It is such as not present, then adds the item entries of some the USB camera information in USB camera information list, otherwise, do not add;
If getting the multiplexing functions information in some USB camera information is not to be multiplexed, judge that some USB takes the photograph
As the Function Identification in head information whether there is in the item entries of USB camera information list, be such as not present, then USB image
Otherwise the item entries that head information list adds some the USB camera information are not added.
The invention also discloses a kind of industrial personal computer multichannel USB cameras to use system, including industrial personal computer and is connected thereto
USB camera, the industrial personal computer includes processor and the memory for being stored with instruction, and described instruction can be loaded by processor
And it executes:
Based on predefined USB camera list of devices, the USB camera of grafting is identified in system starting;
After identifying successfully, when system runs to hardware abstraction layer module, hardware abstraction layer module detects USB camera
Number, while the information of USB camera is read, USB camera information column are established in conjunction with predefined USB camera feature list
Table;
Upper application software calls the camera information list generated for realizing that the different of multichannel USB camera are used.
It is used in system in industrial personal computer multichannel USB camera of the present invention, the predefined USB camera equipment
List includes the equipment manufacturer ID and device id of USB camera;The predefined USB camera list of devices includes following
Information: the equipment manufacturer ID of USB camera, USB camera device id, represent the function type that USB camera is configured
Function Identification, multiplexing functions information, the rotation angle of USB camera, wherein configurable function type include face know
Not, orange juicing is peeled and monitored to the transmission of monitoring orange, the identification of orange quality, monitoring orange.
In industrial personal computer multichannel USB camera of the present invention in system, it is described in system starting to grafting
USB camera carry out identification specifically include: the equipment manufacturer ID and device id of the USB camera of insertion are identified,
If the equipment manufacturer ID and device id of the USB camera of insertion are present in the USB camera list of devices, it is determined that
It identifies successfully, otherwise determines recognition failures.
In industrial personal computer multichannel USB camera of the present invention in system, the USB camera information list includes
Camera title, function type, rotation angle, access path, the USB camera information list of establishing specifically include:
The USB camera number of detection system carry and path pass through ioctl function and setting based on USB camera
Standby manufacturer ID and device id obtain the following information of USB camera by the USB camera feature list: Function Identification,
Multiplexing functions information, rotation angle, camera title, access path;
If get Function Identification in some USB camera information be it is unknown, then do not handle;
If getting the multiplexing functions information in some USB camera information as multiplexing, some USB camera shooting is decomposed
Function Identification in head information judges that each Function Identification after decomposing whether there is in the item entries of USB camera information list,
It is such as not present, then adds the item entries of some the USB camera information in USB camera information list, otherwise, do not add;
If getting the multiplexing functions information in some USB camera information is not to be multiplexed, judge that some USB takes the photograph
As the Function Identification in head information whether there is in the item entries of USB camera information list, be such as not present, then USB image
Otherwise the item entries that head information list adds some the USB camera information are not added.
Implement industrial personal computer multichannel USB camera application method and system of the invention, has the advantages that this hair
It is bright solve the problems, such as on industrial personal computer realize multichannel USB camera use, can to each camera it is specific with scene into
Row is pre-configured with.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings:
Fig. 1 is the flow chart for the industrial personal computer multichannel USB camera application method that present pre-ferred embodiments provide.
Specific embodiment
To facilitate the understanding of the present invention, a more comprehensive description of the invention is given in the following sections with reference to the relevant attached drawings.In attached drawing
Give exemplary embodiments of the invention.But the invention can be realized in many different forms, however it is not limited to this paper institute
The embodiment of description.On the contrary, purpose of providing these embodiments is make it is more thorough and comprehensive to the disclosure.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention
The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool
The purpose of the embodiment of body, it is not intended that in the limitation present invention.
The total thinking of the present invention is: predefined USB camera list of devices is based on, in system starting to grafting
USB camera is identified;After identifying successfully, when system runs to hardware abstraction layer module, hardware abstraction layer module detects USB
Camera number, while the information of USB camera is read, USB camera shooting is established in conjunction with predefined USB camera feature list
Head information list;Upper application software calls the camera information list generated for realizing the different fortune of multichannel USB camera
With.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper
It states technical solution to be described in detail, it should be understood that the specific features in the embodiment of the present invention and embodiment are to the application
The detailed description of technical solution, rather than the restriction to technical scheme, in the absence of conflict, the present invention are implemented
Technical characteristic in example and embodiment can be combined with each other.
With reference to Fig. 1, the industrial personal computer multichannel USB camera application method of preferred embodiment, comprising:
S100, predefined USB camera list of devices, according to the equipment manufacturer ID (abbreviation PID) of USB camera and set
Standby ID configures different types of function (abbreviation VID), and configurable function type includes recognition of face, the transmission of monitoring orange, orange
Orange juicing, while predefined USB camera feature list in systems are peeled and are monitored in sub- quality identification, monitoring orange;
Wherein, with reference to the following table 1, the USB camera list of devices includes the equipment manufacturer ID and equipment of USB camera
ID;
Table 1
Serial number | PID | VID |
1 | 11111 | 11111 |
2 | 22222 | 22222 |
3 | 33333 | 33333 |
4 | 44444 | 44444 |
5 | 55555 | 55555 |
Wherein, with reference to the following table 2,3, the USB camera feature list includes following information: the equipment of USB camera is raw
Business men ID, the device id of USB camera, the Function Identification for representing the function type that USB camera is configured, multiplexing functions letter
The rotation angle of breath, USB camera.The case where not being multiplexed is illustrated that in table 2, and the feelings in the presence of multiplexing are illustrated that in table 3
Condition.
Table 2
Table 3
It should be noted that the specific value of PID, VID in the above table do not represent actual conditions, it is only for show
Meaning.
S200, it is based on predefined USB camera list of devices, the USB camera of grafting is carried out in system starting
Identification;
Wherein, it is described system starting when to the USB camera of grafting carry out identification specifically include: to the USB of insertion
The equipment manufacturer ID and device id of camera are identified, if the equipment manufacturer ID and equipment of the USB camera of insertion
ID is present in the USB camera list of devices, it is determined that identifies successfully, otherwise determines recognition failures.
S300, after identifying successfully, when system runs to hardware abstraction layer module, hardware abstraction layer module detect USB camera shooting
Head number, while the information of USB camera is read, USB camera letter is established in conjunction with predefined USB camera feature list
Cease list;
With reference to the following table 4, the USB camera information list includes camera title, function type, rotation angle, access
Path.
Table 4
Wherein, the USB camera information list of establishing specifically includes:
The USB camera number of detection system carry and path pass through ioctl function and setting based on USB camera
Standby manufacturer ID and device id obtain the following information of USB camera by the USB camera feature list: Function Identification,
Multiplexing functions information, rotation angle, camera title, access path;
If get Function Identification in some USB camera information be it is unknown, then do not handle;
If getting the multiplexing functions information in some USB camera information as multiplexing, some USB camera shooting is decomposed
Function Identification in head information judges that each Function Identification after decomposing whether there is in the item entries of USB camera information list,
It is such as not present, then adds the item entries of some the USB camera information in USB camera information list, otherwise, do not add;
If getting the multiplexing functions information in some USB camera information is not to be multiplexed, judge that some USB takes the photograph
As the Function Identification in head information whether there is in the item entries of USB camera information list, be such as not present, then USB image
Otherwise the item entries that head information list adds some the USB camera information are not added.
S400, upper application software call the camera information list generated for realizing the different fortune of multichannel USB camera
With.
Based on the same inventive concept, the invention also discloses a kind of industrial personal computer multichannel USB cameras to use system, system packet
Include: industrial personal computer and USB camera connected to it, the industrial personal computer include processor and the memory for being stored with instruction,
Described instruction can be loaded and be executed by processor:
Based on predefined USB camera list of devices, the USB camera of grafting is identified in system starting;
After identifying successfully, when system runs to hardware abstraction layer module, hardware abstraction layer module detects USB camera
Number, while the information of USB camera is read, USB camera information column are established in conjunction with predefined USB camera feature list
Table;
Upper application software calls the camera information list generated for realizing that the different of multichannel USB camera are used.
Wherein, the predefined USB camera list of devices includes the equipment manufacturer ID and equipment of USB camera
ID;The predefined USB camera list of devices includes following information: equipment manufacturer ID, USB camera shooting of USB camera
The rotation of the device id, the Function Identification, multiplexing functions information, USB camera that represent the function type that USB camera is configured of head
Gyration, wherein configurable function type includes recognition of face, the transmission of monitoring orange, orange quality identifies, monitoring orange is cut
Skin and monitoring orange juicing;The USB camera information list includes camera title, function type, rotation angle, access road
Diameter.
Wherein, it is described system starting when to the USB camera of grafting carry out identification specifically include: to the USB of insertion
The equipment manufacturer ID and device id of camera are identified, if the equipment manufacturer ID and equipment of the USB camera of insertion
ID is present in the USB camera list of devices, it is determined that identifies successfully, otherwise determines recognition failures.
Wherein, the USB camera information list of establishing specifically includes:
The USB camera number of detection system carry and path pass through ioctl function and setting based on USB camera
Standby manufacturer ID and device id obtain the following information of USB camera by the USB camera feature list: Function Identification,
Multiplexing functions information, rotation angle, camera title, access path;
If get Function Identification in some USB camera information be it is unknown, then do not handle;
If getting the multiplexing functions information in some USB camera information as multiplexing, some USB camera shooting is decomposed
Function Identification in head information judges that each Function Identification after decomposing whether there is in the item entries of USB camera information list,
It is such as not present, then adds the item entries of some the USB camera information in USB camera information list, otherwise, do not add;
If getting the multiplexing functions information in some USB camera information is not to be multiplexed, judge that some USB takes the photograph
As the Function Identification in head information whether there is in the item entries of USB camera information list, be such as not present, then USB image
Otherwise the item entries that head information list adds some the USB camera information are not added.
In conclusion implementing industrial personal computer multichannel USB camera application method and system of the invention, have beneficial below
Effect: the present invention solves the problems, such as that realization multichannel USB camera is used on industrial personal computer, can be to the specific fortune of each camera
It is pre-configured with scene.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (8)
1. a kind of industrial personal computer multichannel USB camera application method characterized by comprising
Based on predefined USB camera list of devices, the USB camera of grafting is identified in system starting;
After identifying successfully, when system runs to hardware abstraction layer module, hardware abstraction layer module detects USB camera number, together
When read the information of USB camera, establish USB camera information list in conjunction with predefined USB camera feature list;
Upper application software calls the camera information list generated for realizing that the different of multichannel USB camera are used.
2. industrial personal computer multichannel USB camera application method according to claim 1, which is characterized in that method further include: pre-
USB camera list of devices is defined, different types of function is configured according to the equipment manufacturer ID and device id of USB camera,
Configurable function type includes recognition of face, the transmission of monitoring orange, orange quality identifies, orange is peeled and monitored to monitoring orange
Juicing, while predefined USB camera feature list in systems;
Wherein, the USB camera list of devices includes the equipment manufacturer ID and device id of USB camera;The USB camera shooting
Head feature list includes following information: the equipment manufacturer ID of USB camera, USB camera device id, represent USB camera shooting
The Function Identification for the function type that head is configured, multiplexing functions information, the rotation angle of USB camera.
3. industrial personal computer multichannel USB camera application method according to claim 1, which is characterized in that described in system
It carries out identification to the USB camera of grafting when starting to specifically include: to the equipment manufacturer ID and equipment of the USB camera of insertion
ID is identified, if the equipment manufacturer ID and device id of the USB camera of insertion are present in the USB camera equipment column
In table, it is determined that identify successfully, otherwise determine recognition failures.
4. industrial personal computer multichannel USB camera application method according to claim 1, which is characterized in that the USB camera
Information list includes camera title, function type, rotation angle, access path, and described establishes USB camera information list
It specifically includes:
The USB camera number of detection system carry and path, by ioctl function and the equipment based on USB camera is raw
Business men ID and device id obtain the following information of USB camera: Function Identification, function by the USB camera feature list
Multiplexed information, rotation angle, camera title, access path;
If get Function Identification in some USB camera information be it is unknown, then do not handle;
If getting the multiplexing functions information in some USB camera information as multiplexing, some USB camera letter is decomposed
Function Identification in breath judges that each Function Identification after decomposing whether there is in the item entries of USB camera information list, if not
In the presence of then adding the item entries of some the USB camera information in USB camera information list, otherwise, do not add;
If getting the multiplexing functions information in some USB camera information is not to be multiplexed, some USB camera is judged
Function Identification in information whether there is in the item entries of USB camera information list, such as be not present, then believes in USB camera
Otherwise the item entries that some the USB camera information is added in breath list are not added.
5. a kind of industrial personal computer multichannel USB camera uses system, which is characterized in that including industrial personal computer and USB connected to it
Camera, the industrial personal computer include processor and the memory for being stored with instruction, and described instruction can be loaded and be held by processor
Row:
Based on predefined USB camera list of devices, the USB camera of grafting is identified in system starting;
After identifying successfully, when system runs to hardware abstraction layer module, hardware abstraction layer module detects USB camera number, together
When read the information of USB camera, establish USB camera information list in conjunction with predefined USB camera feature list;
Upper application software calls the camera information list generated for realizing that the different of multichannel USB camera are used.
6. industrial personal computer multichannel USB camera according to claim 5 uses system, which is characterized in that predefined described
USB camera list of devices includes the equipment manufacturer ID and device id of USB camera;The predefined USB camera is set
Standby list includes following information: the equipment manufacturer ID of USB camera, USB camera device id, represent USB camera institute
The Function Identification of the function type of configuration, multiplexing functions information, the rotation angle of USB camera, wherein configurable function class
Type includes recognition of face, the transmission of monitoring orange, orange quality identifies, orange juicing is peeled and monitored to monitoring orange.
7. industrial personal computer multichannel USB camera according to claim 6 uses system, which is characterized in that described in system
It carries out identification to the USB camera of grafting when starting to specifically include: to the equipment manufacturer ID and equipment of the USB camera of insertion
ID is identified, if the equipment manufacturer ID and device id of the USB camera of insertion are present in the USB camera equipment column
In table, it is determined that identify successfully, otherwise determine recognition failures.
8. industrial personal computer multichannel USB camera according to claim 6 uses system, which is characterized in that the USB camera
Information list includes camera title, function type, rotation angle, access path, and described establishes USB camera information list
It specifically includes:
The USB camera number of detection system carry and path, by ioctl function and the equipment based on USB camera is raw
Business men ID and device id obtain the following information of USB camera: Function Identification, function by the USB camera feature list
Multiplexed information, rotation angle, camera title, access path;
If get Function Identification in some USB camera information be it is unknown, then do not handle;
If getting the multiplexing functions information in some USB camera information as multiplexing, some USB camera letter is decomposed
Function Identification in breath judges that each Function Identification after decomposing whether there is in the item entries of USB camera information list, if not
In the presence of then adding the item entries of some the USB camera information in USB camera information list, otherwise, do not add;
If getting the multiplexing functions information in some USB camera information is not to be multiplexed, some USB camera is judged
Function Identification in information whether there is in the item entries of USB camera information list, such as be not present, then believes in USB camera
Otherwise the item entries that some the USB camera information is added in breath list are not added.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711213222.1A CN109842777A (en) | 2017-11-28 | 2017-11-28 | A kind of industrial personal computer multichannel USB camera application method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711213222.1A CN109842777A (en) | 2017-11-28 | 2017-11-28 | A kind of industrial personal computer multichannel USB camera application method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109842777A true CN109842777A (en) | 2019-06-04 |
Family
ID=66880744
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711213222.1A Pending CN109842777A (en) | 2017-11-28 | 2017-11-28 | A kind of industrial personal computer multichannel USB camera application method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109842777A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110602378A (en) * | 2019-08-12 | 2019-12-20 | 阿里巴巴集团控股有限公司 | Processing method, device and equipment for images shot by camera |
CN112399083A (en) * | 2020-11-10 | 2021-02-23 | 上海臻面智能信息科技有限公司 | Method for realizing USB high-efficiency transmission custom instruction communication |
-
2017
- 2017-11-28 CN CN201711213222.1A patent/CN109842777A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110602378A (en) * | 2019-08-12 | 2019-12-20 | 阿里巴巴集团控股有限公司 | Processing method, device and equipment for images shot by camera |
CN110602378B (en) * | 2019-08-12 | 2021-03-23 | 创新先进技术有限公司 | Processing method, device and equipment for images shot by camera |
CN112399083A (en) * | 2020-11-10 | 2021-02-23 | 上海臻面智能信息科技有限公司 | Method for realizing USB high-efficiency transmission custom instruction communication |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109842777A (en) | A kind of industrial personal computer multichannel USB camera application method and system | |
CN104572735B (en) | A kind of picture mark words recommending method and device | |
CN105139858B (en) | A kind of information processing method and electronic equipment | |
CA2490984A1 (en) | System and method for collecting electronic evidence data | |
CN110072085A (en) | Video monitoring method and device | |
EP1511220A3 (en) | Non-intrusive method for routing policy discovery | |
CN109639700A (en) | Personal identification method, device, equipment, cloud server and storage medium | |
CN110262721A (en) | Method for exhibiting data and device, electronic equipment | |
EP3588266A1 (en) | Method for detecting input using audio signal, and electronic device therefor | |
CN108111797A (en) | Participant's treating method and apparatus | |
CN104915252B (en) | A kind of process port management means and method | |
CN109800571A (en) | Event-handling method and device and storage medium and electronic device | |
Divakaran | Multimedia content analysis: theory and applications | |
CN105072117B (en) | Finger prints processing method and relevant apparatus and system | |
CN106780138A (en) | Distribution network failure method for early warning and device | |
CN110225285A (en) | Audio/video communication method, apparatus, computer installation and readable storage medium storing program for executing | |
CN103135931B (en) | Touch operation method and communication terminal | |
CN107608739A (en) | Method, device and equipment for automatically running program on HID (human interface device) | |
CN208889330U (en) | A kind of intelligence prison room terminal | |
CN105740056B (en) | Information processing method and electronic equipment | |
CN107870791B (en) | Application management method, device, storage medium and electronic equipment | |
CN104080104B (en) | communication control method and user equipment | |
CN106294659B (en) | Question searching method and device based on intelligent terminal | |
WO2021135933A1 (en) | Target recognition method and device, storage medium and electronic device | |
CN106941586A (en) | The method and apparatus for shooting photo |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190604 |