{"title":"基于Linux的激光射击系统的研究与实现","authors":"Dengyou Wang, Shunxiang Wu, W. Guo","doi":"10.1109/ICCSE.2017.8085542","DOIUrl":null,"url":null,"abstract":"Laser shooting will gradually replace the traditional live fire shooting as the main shooting training method, this paper discusses the Linux environment based on laser shooting system server-side software design ideas and implementation of the program. The software uses a multithreaded architecture, the use of message queues as a tool for communication between threads. Based on the V4L2 standard-driven USB camera to capture images, the introduction of third-party open source library OpenCV processing images, custom network data transfer protocol, the use of JSON string as a message carrier, server and client communicate through the socket interface based on the TCP protocol. This paper discusses in detail the communication between threads and synchronous access to shared resource methods.","PeriodicalId":256055,"journal":{"name":"2017 12th International Conference on Computer Science and Education (ICCSE)","volume":"54 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2017-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Research and implementation of laser shooting system based on Linux\",\"authors\":\"Dengyou Wang, Shunxiang Wu, W. Guo\",\"doi\":\"10.1109/ICCSE.2017.8085542\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Laser shooting will gradually replace the traditional live fire shooting as the main shooting training method, this paper discusses the Linux environment based on laser shooting system server-side software design ideas and implementation of the program. The software uses a multithreaded architecture, the use of message queues as a tool for communication between threads. Based on the V4L2 standard-driven USB camera to capture images, the introduction of third-party open source library OpenCV processing images, custom network data transfer protocol, the use of JSON string as a message carrier, server and client communicate through the socket interface based on the TCP protocol. This paper discusses in detail the communication between threads and synchronous access to shared resource methods.\",\"PeriodicalId\":256055,\"journal\":{\"name\":\"2017 12th International Conference on Computer Science and Education (ICCSE)\",\"volume\":\"54 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2017-08-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2017 12th International Conference on Computer Science and Education (ICCSE)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/ICCSE.2017.8085542\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2017 12th International Conference on Computer Science and Education (ICCSE)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICCSE.2017.8085542","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Research and implementation of laser shooting system based on Linux
Laser shooting will gradually replace the traditional live fire shooting as the main shooting training method, this paper discusses the Linux environment based on laser shooting system server-side software design ideas and implementation of the program. The software uses a multithreaded architecture, the use of message queues as a tool for communication between threads. Based on the V4L2 standard-driven USB camera to capture images, the introduction of third-party open source library OpenCV processing images, custom network data transfer protocol, the use of JSON string as a message carrier, server and client communicate through the socket interface based on the TCP protocol. This paper discusses in detail the communication between threads and synchronous access to shared resource methods.